Created
March 24, 2011 14:54
-
-
Save andyfowler/885187 to your computer and use it in GitHub Desktop.
Reminders for HTML5 <video> + flash fall-through encoding from h.264 mov
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 screencast.mov -vcodec copy -acodec copy screencast.mp4 | |
# move moov atom to beginning for progressive flash streaming | |
qtfaststart.py 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