I have two videos merged into one file using below command. Unfortunately second video covers first video and it is not visible. How to make second video transparent (eg. 50%)?
ffmpeg
-i in1.mp4 -i in2.mp4
-filter_complex "nullsrc=size=480x360 [base];
[0:v] setpts=PTS-STARTPTS, scale=480x360 [top];
[1:v] setpts=PTS-STARTPTS, scale=480x360 [bottom];
[base][top] overlay=shortest=1 [temp];
[temp][bottom] overlay=shortest=1"
-acodec libvo_aacenc -vcodec libx264 out.pm4
libvo_aacenc
is a crappy AAC encoder. Use-c:a aac
instead. Ifffmpeg
provides an error mentioning thataac
is experimental then upgrade yourffmpeg
becauseaac
is no longer experimental.ffmpeg
will choose audio from one input. You should always include the complete console output from your command when asking forffmpeg
help.