HTML5Video-Talk

Summary: Talk page for HTML5Video.
Maintainer: GNUZoo
Users: +4 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Comments

Where does the poster need to be and in what format? Nova Ok, i see it in the code that it has to be in the same folder and it has to be .jpg, but for me it doesn't really work. Nova Ah, sorry, it's good to know, that the poster appears only if none of the video formats get loaded. Is that true? Nova

There is - i think - an error in the script in such way, that it provides a (broken) link to some external site. If you look at the code, the poster is specified as

This is not an error. It automatically assumes the poster is a '.jpg'. This is intentional.
The poster attribute specifies an image to be shown while the video is downloading, or until
the user hits the play button. If this is not included, the first frame of the video will be
used instead. See https://www.w3schools.com/TAGS/tag_video.asp
--gnuzoo


I don't think this is right. IMHO it should have at least been

$HTML5VideoDir.$poster.'.jpg

Otherwise, this seems a good recipe. Nova

I added $HTML5ImageDir
--gnuzoo


  • It's very good, but I'd like to find a way to automatically use the $FarmD/uploads folder. In the case my pmwiki installation is in a subfolder (such as "pmwiki" or "wiki"), the upload folder won't be found. For my use, I've added $HTML5VideoDir = '../../uploads/'; and it works (because I have$EnablePathInfo = 1;), but there is probably a better syntax which would work for every case. It would be nice also to be able to write the full name of the video (including the extension) . There is no need for extension so that you can upload several videos format so it will display everywhere: in firefox, chrome (chromium), opera with webm, in IE9 and above, in safari with mp4. For the later, video must be in h264 and audio in aac otherwise it won't work. Here is a bash script to convert to both :
for a in *.AVI *.MOV *.avi *.mov
 do ffmpeg -i $a \
-acodec libvorbis -ac 2 -ab 96k -ar 44100 \
-b 1100k -s 640x480 ${a%%.*}.webm ; ffmpeg -i $a -ar 24000 -ab 96k \
-vcodec libx264 \
-b:v 1100k -s 640x480 -r 29.97 -strict -2 ${a%%.*}.mp4 
#ffmpeg -i $a \
# -acodec libvorbis -ac 2 -ab 96k -ar 44100 \
# -b 1100k -s 640x480 ${a%%.*}.ogv 
done

I am not going to invest time to accommodate this.
--gnuzoo


(Ogv is disabled (commented) because it's less efficient than webm) Farvardin

I do not know if you noticed my name and what is represents.
ogv is the best format available for anything, and AFAIK, webm
is deprecated.
--gnuzoo


I've rewritten this recipe to support the $FarmD/uploads folder, see Video5.
TomG November 1, 2012, at 11:00 PM

AFAIK you did not provide any credits to me when you rewrote my recipe.
You code does not look at all like mine. AFAIK your recipe does not work
and is a piece of crap. --gnuzoo


Talk page for the HTML5Video recipe (users).