Skip to content

Instantly share code, notes, and snippets.

@cdzombak
Forked from andyfowler/gist:885187
Created March 4, 2013 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdzombak/5086228 to your computer and use it in GitHub Desktop.
Save cdzombak/5086228 to your computer and use it in GitHub Desktop.
# 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