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.


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 videoformats 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

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


Otherwise, this seems a good recipe. Nova

  • 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 

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

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

Talk page for the HTML5Video recipe (users).