I understand that this is a very open ended question. I have done some initial reading into FFmpeg, but now require some guidance.
input.mov
.overlay.wov
.output.mov
).Thanks - C.
ffmpeg -i input.mov -i overlay.mov -filter_complex "[0:0][1:0]overlay[out]" -shortest -map [out] -map 0:1 -pix_fmt yuv420p -c:a copy -c:v libx264 -crf 18 output.mov
This nearly works, however:
input.mov
& overlay.mov
) are the same length.0:00
.FFmpeg offers the overlay filter as a way to overlay images (or even other videos) onto video streams. To centre overlay/watermark on a video, use this command: ffmpeg -i inputvideo.avi -i watermarklogo.png -filter_complex \ "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -codec:a copy output.flv.
FFmpeg offers different commands that you can use to split up a video. We'll take a look at how to use the seeking parameter -ss , but you can also use other commands such as the trim filter. To cut a specific part of a video, you use the seeking option -ss to get to a specific part that you want to cut.
If you just want a ffmpeg command, try
ffmpeg -i input.mov -i overlay.mov \
-filter_complex "[1:v]setpts=PTS-10/TB[a]; \
[0:v][a]overlay=enable=gte(t\,5):shortest=1[out]" \
-map [out] -map 0:a \
-c:v libx264 -crf 18 -pix_fmt yuv420p \
-c:a copy \
output.mov
This starts the overlay at 5 seconds with the overlaid video start point being 00:15
.
setpts=PTS-10/TB
is setpts=PTS+(overlay_delay-video_trim_in)/TB
overlay=enable=gte(t\,5)
is overlay=enable=gte(t\,overlay_delay)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With