Last active
August 29, 2015 14:17
-
-
Save DannyDelott/b8e5a4cb62edb8583151 to your computer and use it in GitHub Desktop.
Use ffmpeg to create a small motion background
This file contains 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
# Download ffmpeg with all the good stuff (requires homebrew) | |
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools | |
# get video information | |
ffmpeg -i filename.mp4 | |
# strip out audio | |
ffmpeg -i input.mp4 -vcodec copy -an output.mp4 | |
# rescale video | |
# Common 16:9 video scales | |
# 854×480, 768x 432 | |
# 640×360, 512×288 | |
# 320×180, 256×144 | |
ffmpeg -i input.mp4 -vf scale=256:144 output.mp4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment