I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.
-
ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "[1]scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t\,10\,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4
I want to insert one (greenvideo.mp4) overlay another video Main and Background.
Video (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
The green video over the background.ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4
Please help me combine the above two code snippets into one?