Skip to content

Instantly share code, notes, and snippets.

@henriquegogo
Last active April 21, 2018 20:04
Show Gist options
  • Save henriquegogo/b14492f3dd7b1a334d0a466f28eec6f4 to your computer and use it in GitHub Desktop.
Save henriquegogo/b14492f3dd7b1a334d0a466f28eec6f4 to your computer and use it in GitHub Desktop.
Fade out and watermark with ffmpeg
ffmpeg -ss 18 -i VID_20180421_134758383.mp4 \
-loop 1 -i thriller.png \
-filter_complex "[0:v]fade=out:st=35:d=2,hflip,vflip[myrecord]; \
[1:v]fade=out:st=3:d=1[watermark]; \
[myrecord][watermark]overlay=(W-w)/2:(H-h)/2[v]; \
[0:a]afade=out:st=35:d=2[a]"
-map "[v]" -map "[a]" -to 37 thriller.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment