The following was summarized from Microsoft Knowledge Base Article 165908.
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
The audio file itself might be corrupted or improperly encoded. Solutions to the "Cannot Use That File" Error
ffmpeg -i your_audio.mp3 -ar 48000 -ac 2 -c:a pcm_s16le output.wav 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
Since this conversion is lossless, it preserves all the original quality. Alternatively, you can convert your FLAC file to a raw MP3 stream. ffmpeg -i temp_video
Check an empty track slot, click the dropdown menu, and choose . Browse and select your newly formatted audio file.
If your audio is .mka or .ogg , try renaming it to .mp3 or .aac if it's encoded as such. Alternatively, you can convert your FLAC file to
: Avidemux cannot use audio that is already inside a container (like : You must provide the "raw" audio stream (e.g., ) or convert the file to a standard before importing. Metadata Interference
For users who prefer a graphical interface, Audacity is an excellent free tool. It’s particularly useful for editing audio lengths to match your video perfectly.