Last active
December 13, 2018 23:48
-
-
Save jessepollak/7979768 to your computer and use it in GitHub Desktop.
Makin' movies for the web.
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
<video preload autoplay> | |
<source src="/static/video/screen.mp4" type="video/mp4" /> | |
<source src="/static/video/screen.ogv" type="video/ogg" /> | |
<object width="640" height="360" type="application/x-shockwave-flash" data="/static/video/screen.swf"> | |
<param name="movie" value="/static/video/screen.swf" /> | |
<param name="flashvars" value="autostart=true&file=/static/video/screen.mp4" /> | |
</object> | |
</video> | |
# reduce quality # ffmpeg -i screen.mov -crf 20 screen-low.mov | |
# remove sound # ffmpeg -i screen.mov -vcodec copy -an screen-no-sound.mov | |
# extract first frame # ffmpeg -i screen.mov -vframes 1 screen-frame.png | |
ffmpeg -i screen.mov -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -preset slower -crf 18 -vf "scale=scale=-1:360" screen.mp4 | |
ffmpeg -i screen.mov -c:v libvpx -c:a libvorbis -pix_fmt yuv420p -quality good -b:v 2M -crf 5 -vf "scale=-1:360" screen.webm | |
ffmpeg -i screen.mov -vf "scale=-1:360" screen.swf | |
ffmpeg2theora screen.mov | |
# should leave with .mov, .mp4, .swf, and .ogv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment