I have an x265 video file with dual audio tracks in different languages. Obviously one is useless to me and I want to remove it without waiting through a lengthy conversion that will lead to quality loss.

I have been using mkv2mp4 to do this with x264 in the past, but it spits out an error when I try any x265 coded video. Is there a codec I can install? Any other suggestions?


Use ffmpeg*, a free command-line tool:

ffmpeg -i input.mkv -c copy -map 0:v -map 0:a:0 singleaudio.mkv

where 0:a:0 is the index of the audio stream you wish to keep. In ffmpeg, numbering starts from zero, so 0:a:0 refers to the first audio stream in the source file. Running ffprobe input.mkv beforehand will show the contents of the input.

*download the latest snapshot/nightly build.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.