Log in

View Full Version : Converting 3 channel LPCM to dolby digital


mrc881
25th April 2009, 21:09
Hello,

I am having trouble converting an audio file from my blu-ray rip of "Vicky Cristina Barcelona" into ac3. The file is a strange format: 3 channel LPCM, 16 bits/chan. Normally I use eac3to for all audio issues, but none of the encoders seem to take that configuration. The goal is to stream the file to ps3: for some reason, the h264 video I encoded, when muxed with this audio, plays too fast. Divx encodes worked, so I am trying to get the audio into a compatible format.

Any suggestions on this? My searching has been fruitless thus far.

Eac3to log for reference:

eac3to v3.05
command line: eac3to vicky.m2ts 2:vicky.ac3
------------------------------------------------------------------------------
M2TS, 1 video track, 1 audio track, 1 subtitle track, 1:36:44, 24p /1.001
1: VC-1, 1080p24 /1.001 (16:9)
2: RAW/PCM, English, 3.0 channels, 16 bits, 48khz
3: Subtitle (PGS), English
[a02] Extracting audio track number 2...
[a02] Reading RAW/PCM...
[a02] Swapping endian...
[a02] The AC3 encoder received a non-supported data format (pcm, 3, 16, -). <ERROR>
Aborted at file position 1048576. <ERROR>


Thanks!

tebasuna51
25th April 2009, 23:55
Use the external Aften encoder with 320 Kb/s, for instance:

eac3to vicky.m2ts 2: stdout.wav | Aften -b 320 -pad 0 -readtoeof 1 - vicky.ac3

mrc881
3rd May 2009, 20:54
Thanks for the tip. Using the aften encoder I was able to create a 3/0 ac3 track, however it still did not play properly on my ps3, it had that distinct stuttering/robot sound.

The solution that worked (though not particularly elegant) was burning my re-encoded h264 file + 3 chan LPCM to an AVCHD disc. For some reason, this worked fine off a disc but failed when streamed.

Thanks.