Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Reminders for HTML5 <video> + flash fall-through encoding from h.264 mov
# reminder for h.264 + theora <video> preflighting. ignoring stupid webm for now.
# html5 code looks like (yes, the single/double quotes are correct)
# use medieelement.js for flash fall-through
# <video width="600" height="450">
# <source src="http://.../screencast.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
# <source src="http://.../screencast.ogv" type='video/ogg; codecs="theora, vorbis"'>
# </video>
# convert mov container to mpeg-4
ffmpeg -i -vcodec copy -acodec copy screencast.mp4
# move moov atom to beginning for progressive flash streaming screencast.mp4
# encode theora version -- -v 9 tends to be about 15% larger, with little noticable quality diff
ffmpeg2theora -v 9 screencast.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.