I need to add INTRO.mp4 at the beginning of video.mp4 and add watermark.png (bottom right corner)
How to do this using ffmpeg, because I'm lost?
I need to add INTRO.mp4 at the beginning of video.mp4 and add watermark.png (bottom right corner)
How to do this using ffmpeg, because I'm lost?
Copy and paste this command. It will work with any intro.mp4
and video.mp4
assuming they both have audio.
ffmpeg -i intro.mp4 -i video.mp4 -i watermark1.png -filter_complex "[0:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1,setsar=1,fps=30000/1001,format=yuv420p[intro];[1:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1,setsar=1,fps=30000/1001,format=yuv420p[video];[2]scale=96:-1[logo];[0:a]aformat=sample_rates=48000:channel_layouts=stereo[introa];[1:a]aformat=sample_rates=48000:channel_layouts=stereo[videoa];[intro][introa][video][videoa]concat=n=2:v=1:a=1[vid][a];[vid][logo]overlay=W-w-5:H-h-5[v]" -map "[v]" -map "[a]" -movflags +faststart output.mp4
See: