How to merge audio and video file in ffmpeg
Problem
I want to merge an audio file (.wav or .au format) with a video file (.mp4 format). Please suggest me how to achieve this. I want to merge these file to new .mp4 video file. An ffmpeg command would be very welcome.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How to merge audio and video file in ffmpeg
Merging video and audio, with audio re-encoding See this example, taken from this blog entry but updated for newer syntax. It should be something to the effect of: Here, we assume that the video file does not contain any audio stream yet, and that you want to have the same output format (here, MP4) as the input format. The above command transcodes the audio, since MP4s cannot carry PCM audio streams. You can use any other desired audio codec if you want. See the FFmpeg Wiki: AAC Encoding Guide …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix