[FFmpeg-user] Change only video

Ulf Zibis Ulf.Zibis at CoSoCo.de
Mon Oct 16 15:01:03 EEST 2023

Am 16.10.23 um 13:50 schrieb Cecil Westerhof via ffmpeg-user:
> I have started with creating YouTube videos. A lot to learn. I want to
> use ffmpeg to help me and it does. :-D
> But there are a lot of things I do not know at the moment.
> For example: if I have a video where I want to change for a short
> while only the video, but not the audio.
> Say I have a video A of five minutes B of 3 seconds and C of 5
> seconds.
> At 2:12 I want to use the video of video B instead of video A, but
> keep the sound of video A.
> And at 3:41 I want to do the same thing with video C.
> How would I do that?
> And what if I want to switch the video and merge the audio?

I think you will need the "concat" filter with dedicated mapping in a "filter_complex" environment.

A simple example I have used in my thread "-preset veryfast produces smallest file, weird" from yesterday.


More information about the ffmpeg-user mailing list