ffmpeg -i temp_video.mkv -i fixed_audio.wav -c:v copy -map 0:v:0 -map 1:a:0 -c:a aac -shortest final_video.mp4
If you have the audio and video as two separate files, try opening the video first, then go to (though this is primarily for joining files, it can sometimes bypass header checks). 4. The "Muxer" Workaround avidemux+cannot+use+that+file+as+audio+track
: Some versions of Avidemux struggle with 32-bit float WAV files; using 16-bit PCM WAV is more reliable. Common Fixes ffmpeg -i temp_video
: Avidemux often cannot import audio files that are themselves inside containers like .mp4 , .m4a , or .ogg as external tracks. Common Fixes : Avidemux often cannot import audio
To fix the "Cannot use that file as audio track" error in Avidemux, you typically need to convert your audio into a raw format or a simpler container. Avidemux often fails to import audio tracks that are already muxed into modern containers like avidemux.org 1. Unsupported File Containers
Avidemux has specific requirements for external tracks depending on the version and the intended use avidemux.org Supported Formats : MP3, WAV (PCM), AC3, and MP2 avidemux.org AAC Requirement : If using AAC, it must be (ADTS- or LATM-encapsulated), not inside an avidemux.org Secondary Tracks : If you are adding a audio track, it must be (Constant Bit Rate), such as MP3 CBR or AC3 3. Outdated Software