[FFmpeg-user] Stack + resize + use audio from first video?

Gilles codecomplete at free.fr
Mon Feb 8 21:00:15 EET 2021


Hello,

It's a bit over my head.

In one command, I'd like to stack two videos, resize them to the same
width+height, and use audio from the first video.

Would someone have a working example?

#Stack
ffmpeg -i input0 -i input1 -filter_complex vstack=inputs=2 output

#Using audio from one particular input. This example will use the audio from
input1:
ffmpeg -i input0 -i input1 -filter_complex "[0:v][1:v]vstack=inputs=2[v]"
-map "[v]" -map 1:a output

#Resize/scale an input
ffmpeg -i input0 -i input2 -filter_complex
"[0:v]scale=640:-1[v0];[v0][1:v]vstack=inputs=2" output

Thank you.



--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/


More information about the ffmpeg-user mailing list