Last active
May 21, 2017 22:52
-
-
Save sax/d15355ea0d9209216be03294d3604859 to your computer and use it in GitHub Desktop.
ffmpeg: add overlay to video
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
ffmpeg -i video.mp4 -vf \ | |
"movie=logo.png [overlay]; \ | |
[overlay] scale=250:-1 [a]; \ | |
[a] format=yuva420p,colorchannelmixer=aa=0.5 [b]; \ | |
[in] curves=preset=lighter [vid]; \ | |
[vid][b] overlay=50:50 [out]" \ | |
-pix_fmt yuv420p \ | |
output.mp4 \ | |
&& terminal-notifier -message 'done' |
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
ffmpeg -i input1.mp4 -i input2.mp4 \ | |
-filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" \ | |
-map "[v]" -map "[a]" output.mp4 |
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
ffmpeg -ss 00:00:00 \ | |
-i video.mp4 \ | |
-t 00:00:21 \ | |
00.output.mp4 |
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
ffmpeg -i video.mp4 -vf \ | |
"movie=logo.png [overlay]; \ | |
[overlay] scale=250:-1 [a]; \ | |
[a] format=yuva420p,colorchannelmixer=aa=0.5 [b]; \ | |
[in] eq=1.2:0.1:1 [vid]; \ | |
[vid][b] overlay=50:50 [out]" \ | |
-pix_fmt yuv420p \ | |
output.mp4 \ | |
&& terminal-notifier -message 'done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment