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? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
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. -Ulf
Am 16.10.2023 um 13:50 schrieb Cecil Westerhof via ffmpeg-user:
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?
There is an example in chapter 2.64 in my book: http://www.astro-electronic.de/FFmpeg_Book.pdf Michael
Michael Koch <astroelectronic@t-online.de> writes:
Am 16.10.2023 um 13:50 schrieb Cecil Westerhof via ffmpeg-user:
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?
There is an example in chapter 2.64 in my book: http://www.astro-electronic.de/FFmpeg_Book.pdf
I will look into it. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
participants (3)
-
Cecil Westerhof -
Michael Koch -
Ulf Zibis