Skip to content

Instantly share code, notes, and snippets.

@sax
Last active May 21, 2017 22:52
Show Gist options
  • Save sax/d15355ea0d9209216be03294d3604859 to your computer and use it in GitHub Desktop.
Save sax/d15355ea0d9209216be03294d3604859 to your computer and use it in GitHub Desktop.
ffmpeg: add overlay to video
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'
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
ffmpeg -ss 00:00:00 \
-i video.mp4 \
-t 00:00:21 \
00.output.mp4
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