IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Extract FLAC from MKV and Convert to AC3?
consultant
post Apr 2 2010, 23:02
Post #1





Group: Members
Posts: 42
Joined: 24-February 04
Member No.: 12240



I've having the toughest time figuring out how to extract the FLAC audio from an MKV and then convert it to AC3 so I can remux to a VOB or m2ts to play via USB HDD on my Playstation 3.

I tried the MKVExtract in MKVToolnix. MKCEXtractGUI won't demux FLAC. So I tried command line like this:

mkvextract --no-ogg source.mkv 1:video.264 2:audio.flac

It is interesting even though I used --no-ogg options the status message still says it is writting to ogg container. Does the no-ogg option not work so this is causing the problem?

Then I tried EAC2ToGUI and I get "the format of the source file cannot be detected" I get a similar error if I try to play the .FLAC file in VLC but after it displays
the error, it plays fine anyway.

Help!
Go to the top of the page
+Quote Post
UED77
post Apr 3 2010, 00:54
Post #2





Group: Members
Posts: 41
Joined: 12-February 06
Member No.: 27709



I tried to reproduce your situation, but everything works fine for me. I'm using mkvextract v3.2.0 "Beginnings".

First, I created an MKV file with mkvmerge by importing the H.264 video from another MKV and a (native) FLAC file. Then I used for the following mkvextract command line:
CODE
C:\apps\mkvmerge>mkvextract tracks --no-ogg C:\test\muxed.mkv 2:"C:\test\demuxed.flac"

Extracting track 2 with the CodecID 'A_FLAC' to the file 'C:\test\demuxed.flac'.
Container format: raw data
Progress: 100%


The resulting file is a native FLAC file. Are you using the latest version of mkvtoolnix?


--------------------
UED77
wavpack 4.50 -hx3; lame 3.97 -V4 --vbr-new
Go to the top of the page
+Quote Post
DVDdoug
post Apr 5 2010, 19:52
Post #3





Group: Members
Posts: 2625
Joined: 24-August 07
From: Silicon Valley
Member No.: 46454



I don't know if it will work with your file, but SUPER (FREE!!!) has helped me with "difficult formats" a few times. (It does support MKV & FLAC).
Go to the top of the page
+Quote Post
probedb
post Apr 5 2010, 21:10
Post #4





Group: Members
Posts: 1266
Joined: 6-September 04
Member No.: 16817



Have you tried Handbrake? That'll convert audio to AAC/MP3 which is compatible with the PS3 (or at least it'll play anyways). Not sure if Handbrake can deal with FLAC tho it is good with most stuff.
Go to the top of the page
+Quote Post
cathywht
post Jan 4 2013, 06:23
Post #5





Group: Members
Posts: 1
Joined: 4-January 13
Member No.: 105574



Google is your friend. Google search "Techisky convert MKV FLAC to AC3" to easy solve your issue.
Go to the top of the page
+Quote Post
Rollin
post Jan 4 2013, 08:20
Post #6





Group: Members
Posts: 195
Joined: 5-March 08
Member No.: 51815



ffmpeg
ffmpeg.exe -i file.mkv -vn -acodec ac3 -ab 320k file.ac3
You will get ac3 file with bitrate 320 kbps
Go to the top of the page
+Quote Post
The Seeker
post Jan 4 2013, 10:33
Post #7





Group: Members
Posts: 102
Joined: 15-June 04
From: Buxton, UK
Member No.: 14694



I've found XMedia Recode to be the best tool for this kind of thing.


--------------------
Music washes away from the soul the dust of everyday life.
Go to the top of the page
+Quote Post
nastea
post Jan 4 2013, 13:07
Post #8





Group: Members
Posts: 48
Joined: 30-July 12
Member No.: 101867



QUOTE (consultant @ Apr 2 2010, 23:02) *
I've having the toughest time figuring out how to extract the FLAC audio from an MKV and then convert it to AC3 so I can remux to a VOB or m2ts to play via USB HDD on my Playstation 3.

I tried the MKVExtract in MKVToolnix. MKCEXtractGUI won't demux FLAC. So I tried command line like this:

mkvextract --no-ogg source.mkv 1:video.264 2:audio.flac

It is interesting even though I used --no-ogg options the status message still says it is writting to ogg container. Does the no-ogg option not work so this is causing the problem?

Then I tried EAC2ToGUI and I get "the format of the source file cannot be detected" I get a similar error if I try to play the .FLAC file in VLC but after it displays
the error, it plays fine anyway.

Help!


First of all, there's no flac-audio in an mkv file. Chances are that the sound is already stored as AC3 in the mkv file, with up to 6 channels.
Maybe its a good idea to extract the sound to wav, and afterwards convert the wav to the type of AC3 you need.
For extracting the sound of any video file, you might give these programs a try:
Quick Media Converter, Aura Video to Audio Converter
(they helped me out in similar situations)
Good luck!

This post has been edited by nastea: Jan 4 2013, 13:30
Go to the top of the page
+Quote Post
Soap
post Jan 4 2013, 13:25
Post #9





Group: Members
Posts: 1016
Joined: 19-November 06
Member No.: 37767



QUOTE (nastea @ Jan 4 2013, 07:07) *
First of all, there's no flac-audio in an mkv file.


Come again?

The simplest of Google searches would quickly show that this is an increasingly common situation with poor hardware and software decoding support (thus the question). Or did you just think that all the other replies failed to catch such a blatant error?


This post has been edited by Soap: Jan 4 2013, 13:26


--------------------
Creature of habit.
Go to the top of the page
+Quote Post
nastea
post Jan 4 2013, 13:44
Post #10





Group: Members
Posts: 48
Joined: 30-July 12
Member No.: 101867



QUOTE (Soap @ Jan 4 2013, 13:25) *
QUOTE (nastea @ Jan 4 2013, 07:07) *
First of all, there's no flac-audio in an mkv file.


Come again?

The simplest of Google searches would quickly show that this is an increasingly common situation with poor hardware and software decoding support (thus the question). Or did you just think that all the other replies failed to catch such a blatant error?


I've just never seen it, all the mkv movies I ever played on my pc had AC3 or MPEG AAC Audio (mp4a) as soundstream.
Go to the top of the page
+Quote Post
Soap
post Jan 4 2013, 13:49
Post #11





Group: Members
Posts: 1016
Joined: 19-November 06
Member No.: 37767



I've never seen a kangaroo, but if someone asked me how to extract a Joey from its mother's pouch I wouldn't tell OP kangaroo's don't exist!


--------------------
Creature of habit.
Go to the top of the page
+Quote Post
nastea
post Jan 4 2013, 13:56
Post #12





Group: Members
Posts: 48
Joined: 30-July 12
Member No.: 101867



QUOTE (Soap @ Jan 4 2013, 13:49) *
I've never seen a kangaroo, but if someone asked me how to extract a Joey from its mother's pouch I wouldn't tell OP kangaroo's don't exist!


Your kangaroo talk isn't really helping the OP.
But even if sometimes flac is used in mkv files that does not make much of a difference regarding the suggestions I did for how to extract the sound etc.

This post has been edited by nastea: Jan 4 2013, 13:57
Go to the top of the page
+Quote Post
Kohlrabi
post Jan 4 2013, 14:29
Post #13





Group: Super Moderator
Posts: 1079
Joined: 12-March 05
From: Kiel, Germany
Member No.: 20561



QUOTE (nastea @ Jan 4 2013, 13:56) *
QUOTE (Soap @ Jan 4 2013, 13:49) *
I've never seen a kangaroo, but if someone asked me how to extract a Joey from its mother's pouch I wouldn't tell OP kangaroo's don't exist!


Your kangaroo talk isn't really helping the OP.
How was your misinformation about MKV any more helpful? MKV can store virtually any audio or video codec, just because certain dubious sources use it to spread movies across the net with certain codecs doesn't mean it's limited to that.

Also, this thread already has a plethora of good solutions to the problem at hand. For completeness' sake, let's have the full ffmpeg commandline to mux to MPEG2-TS:
CODE
ffmpeg -i videofile -i audiofile.mkv -c:v copy -c:a ac3 -b:a 448k -c:s copy out.m2ts

If the MKV containing the FLAC does also contain the video stream, you can of course omit the "-i videofile". Also you may have to specify the number of channels for ac3 encoding if the FLAC is multichannel ("-ac 6").

This post has been edited by Kohlrabi: Jan 4 2013, 14:30


--------------------
Ceterum censeo Masterdiskem esse delendam.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2014 - 13:24