Temporarily change Video Output to Mpeg4 ASP (Xvid) or Mpeg4 AVC (x264) and set Configure to Constant Rate Factor = 22 . Then add the audio. If it works, the original video’s structure was broken. (You will have to re-encode the video, which is slow.)
Unlike standard media players or full-fledged video editing suites, Avidemux is fundamentally a demuxer and multiplexer. It lacks the internal architecture to unpack external media containers when adding standalone audio tracks. The error typically stems from three specific issues: 1. The Audio is Wrapped inside a Container ( .m4a , .mp4 )
Avidemux is strict about how audio tracks are multiplexed (muxed) into video files. The error generally stems from three specific issues: avidemux+cannot+use+that+file+as+audio+track
If you simply want to add a permanent audio track to an .mkv file, is the industry standard. It is incredibly fast and ignores the picky parsing rules that plague Avidemux. Simply drag your video and audio into the GUI, and click "Start Multiplexing." 2. Use VLC Media Player
(This strips the MP4 container and outputs a raw ADTS-encapsulated AAC stream that Avidemux official forum developers confirm will load perfectly.) : ffmpeg -i input.ogg output.wav Use code with caution. Method 2: Transcode to Standard MP3 or WAV via Audacity Temporarily change Video Output to Mpeg4 ASP (Xvid)
The most common solution is to re-encode your target audio file into a universally accepted format, such as uncompressed PCM, WAV, or plain AAC/MP3. You can use free audio editors like to do this: Open your audio file in Audacity. Go to the top menu and click File > Export . Select Export as WAV or Export as MP3 . Ensure the Bit Rate Mode is set to Constant (CBR) . Save the file and try loading it back into Avidemux. Method 2: Strip Metadata and Re-Wrap (Using FFmpeg)
The error message in Avidemux occurs because the software requires raw, uncontainerized audio streams (such as standard .mp3 , .wav , or .ac3 files) when replacing or adding an external audio track. If you attempt to upload an audio file that is muxed into a container format (like .m4a or .ogg ) or a file that contains conflicting metadata headers, Avidemux will reject it instantly. (You will have to re-encode the video, which is slow
: A file ending in .m4a is not a raw AAC audio track; it is an Apple MP4 container holding an AAC track. Avidemux cannot invoke its demuxers on external files that are wrapped inside these containers.