Last active
August 29, 2015 14:09
-
-
Save sebgeelen/cb54651ff71f9a567f06 to your computer and use it in GitHub Desktop.
ffmpeg command help sheet
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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# basic video conversion | |
ffmpeg -i input.flv output.webm | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# get frame count (realy simple : show in stdout) | |
ffmpeg -i "a.flv" -f null /dev/null | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# add green screen to test_videos : bg.png is a green image | |
# | |
# -loop 1 => loop over the bg.png to mimic a video | |
# -i bg.png => the background source image, in our case a green image | |
# -r xx => the frame rate, xx number of frame per seconds | |
# -vframes xx => the number of frame of the video, the input video being a fake looped image, we have to speciafy the number of total frames | |
# -vf => the filter that fake the actual video bein an "logo" overlay above our fake png video | |
# -s => the size of the video output | |
# -y => the name.ext of the ouput video | |
ffmpeg -loop 1 -i bg.png -r 30 -vframes 31 -vf "movie=a.flv [logo]; [in][logo] overlay=0:0 [out]" -s 154x132 -y green.mp4 | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# add the alpha chanel in a splited video below normal video | |
ffmpeg -i input.flv -vf "split [a], pad=iw:2*ih [b], [a] alphaextract, [b] overlay=0:h" -y output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment