7
1
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
Unrelated to your question, but
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. – llogan – 2016-01-13T18:57:59.917Do both inputs contain audio? If yes, how do you want to deal with the audio? With your command
ffmpeg
will choose audio from one input. You should always include the complete console output from your command when asking forffmpeg
help. – llogan – 2016-01-13T19:04:00.997