HydrogenAudio

Digital Audio/Video => General A/V => Topic started by: AlexanderTG on 2005-07-31 17:44:56

Title: Extract Audio From Matroska MKV File
Post by: AlexanderTG on 2005-07-31 17:44:56
Does anyone know how to extract audio from a mkv file?  I have a mp4 audio file in there and I want extract it.  But each time I do I am unable to play the file back.

Thanks
Title: Extract Audio From Matroska MKV File
Post by: Klyith on 2005-07-31 20:13:48
Quote
Does anyone know how to extract audio from a mkv file?
Yes, but...
Quote
I have a mp4 audio file in there and I want extract it.  But each time I do I am unable to play the file back.
I think it should be aac inside the mkv, not a mp4.


Anyways, what you want to do is download and install mkvtoolnix (http://www.bunkus.org/videotools/mkvtoolnix/downloads.html#windows).  You want to use mkvextract.exe, which unfortunatly doesn't have a gui. But it should be pretty easy. If your mkv file is just plain video + audio, the command line will almost certianly be
Code: [Select]
mkvextract tracks "yourmovie.mkv" 2:audio.aac

If you have a file with more than two tracks, read the help. In the doc directory there is a good manual that shows how to use mkvextract for more complicated tasks.
Title: Extract Audio From Matroska MKV File
Post by: AlexanderTG on 2005-08-01 13:01:15
Thanks I'll try that

I did try that commandline script before but it would not playback in fb2k.  The only difference between your example and what I typed in was the number before the audio track file name.  I typed in 1:audio.aac

will that mess things up?

Thanks
Title: Extract Audio From Matroska MKV File
Post by: mixderax on 2005-08-01 14:09:54
Quote
Thanks I'll try that

I did try that commandline script before but it would not playback in fb2k.  The only difference between your example and what I typed in was the number before the audio track file name.  I typed in 1:audio.aac

will that mess things up?

Thanks
[a href="index.php?act=findpost&pid=317146"][{POST_SNAPBACK}][/a]


First track usually is video.
Title: Extract Audio From Matroska MKV File
Post by: ChristianHJW on 2005-08-02 21:03:34
There is a GUI for mkvextract :

http://corecodec.org/projects/mkvextractgui/ (http://corecodec.org/projects/mkvextractgui/)

It's just, we usually dont advertise it too much to prevent people from converting our beloved container files into something else  .....

Christian
matroska project admin
Title: Extract Audio From Matroska MKV File
Post by: AlexanderTG on 2005-08-02 23:09:10
mixderax - Thanks, that was exactly the problem, I was extracting the video without realizing it and extracting it as audio.aac!

ChristianHJW - That gui is gonna make my life so much easier!  Thanks
Title: Extract Audio From Matroska MKV File
Post by: ChristianHJW on 2005-08-05 00:49:25
Quote
ChristianHJW - That gui is gonna make my life so much easier!  Thanks
... noooooooo, oh my god, what have i done  ....
Title: Extract Audio From Matroska MKV File
Post by: AlexanderTG on 2005-08-13 18:28:46
lol