View Full Version : PCM audio


Floatingshed
18th March 2011, 19:38
I'm new to Bluray ripping. I have a m2ts file which DGAVCindex opens fine and reports has h264 video and pcm 48khz 24bit audio.
I can open the h264 video in avisynth no problem but no source I have will open the pcm.
Google searches suggest that Directshowsource should, but it doesn't (I have all audio codecs enabled in FFDshow).
Does anyone know how to do this please?

tebasuna51
18th March 2011, 21:04
eac3to can extract/convert the PCM from the m2ts to WAV/W64/FLAC (losseless) or AC3 (lossy)

Floatingshed
18th March 2011, 23:15
Since posting my question I've been trying a few things...
I tried eac3to and it did produce a .wav file but it appears to be headerless and no software I've tried can play it.
Is there no way to import the pcm directly into an Avisynth script?

IanB
19th March 2011, 01:07
NicAudio.dll either NicLPCMSource() or RaWavSource()

tebasuna51
19th March 2011, 03:06
Use the output .wav or .w64 from eac3to and open in AviSynth with RaWavSource (included with NicAudio.dll)

You can use also .pcm output from eac3to but you need inform the samplerate, bitdepth and numchannels (info included in waw/w64 header)

Floatingshed
19th March 2011, 11:22
Thanks guys.

Floatingshed
21st March 2011, 21:37
I'm afraid that none of the above suggestions were successful.
RaWavsource complained about incorrect number of channels (there are only 2).
LPCMsource gave no error message but also no audio!

I found that loading the pcm into cooledit pro as: 48/stereo/24bit packed Motorola pcm is the only thing that I can get to work...

Diggitysc
21st March 2011, 22:46
Try this:

input.mpg output.ac3 -demux -down2 -blu-ray -192 -resampleTo44100

You should be able to rename the m2t to mpg without breaking anything.

IanB
22nd March 2011, 00:17
Sorry it seems RaWavSource () has found some header it likes and is trying to use that, it is not reading raw bytes as you would like. We probably need to revise how that code works or add a simple RawSource().

NicLPCMSource() will read raw bytes according to the description in the call, however the byte order cannot be specified.

tebasuna51
22nd March 2011, 00:36
Please put the eac3to log file when you run (where X is the PCM audio track):

eac3to your.m2ts X: audio.wav