This page requires JavaScript to be enabled for full functionality.

How can I combine a video with audio and a video without audio using FFmpeg?

Answered on : 2024-01-24

SourcesAnswer

Improve the Answer

To merge a video with audio and a video without audio using FFmpeg, follow these steps:

1. Open a terminal or command prompt.

2. Use the following command:

```

ffmpeg -i video_with_audio.mp4 -i video_without_audio.mp4 -c:v copy -c:a aac -strict experimental output.mp4

```

Replace "video_with_audio.mp4" and "video_without_audio.mp4" with your input filenames, and "output.mp4" with the desired output filename.

- This command copies the video stream (`-c:v copy`) and adds the audio stream (`-c:a aac`) to create a new video with both video and audio [1][3].

Remember to adjust filenames and paths accordingly for your specific case.

Glarity
Glarity

SourcesRelated

User-shared questions
Require assistance? or Tired of chatting with AI?
Don’t worry, a human is here to help you!
Copyright © 2024 Sparticle Inc.