Log in

View Full Version : DGIndex can't see audio in my MPEG-2 + PCM TS file!


Blue_MiSfit
17th March 2010, 22:21
http://www.mediafire.com/?du4h0nyqfuy

Hi neuron2!

I think I've got another pathalogical little bugger for you to look at and (hopefully!) support in DGIndex.

The file is an MPEG-TS (incorrectly named MPG, my fault), containing MPEG-2 video and 5.1ch 16 bit 48 KHz PCM audio.

DGIndex does not see an audio track, but eac3to does, and can extract it successfully.

Thoughts?
~MiSfit

Blue_MiSfit
24th March 2010, 23:52
I hate to moan / whine, but have you had a chance to take a look at this sample? I have lots of files like this :(

~MiSfit

Guest
25th March 2010, 03:02
I love to moan and whine. Why would you hate it? I did look at your sample. I will look again.

Blue_MiSfit
25th March 2010, 21:00
:D

Thanks, neuron2!

MiSfit

Guest
26th March 2010, 02:28
Please post a link to the correctly demuxed audio and tell me how to play it.

Blue_MiSfit
26th March 2010, 20:46
Hi Neuron2,

Thanks for taking the time to look at my sample.

I was able to demux the full uncut source with eac3to, like this:


eac3to GoodGerman.mpg 2:audio.wav


Unfortunately, it looks like trimming out a sample via DGSplit resulted in a file that eac3to could not recognize.

Any suggestions on a safer way to cut the stream?

~MiSfit

Guest
26th March 2010, 21:02
You're saying that EAC3TO cannot get the audio out of the sample you gave me?! Your first post implies that it did.

If you cut from the beginning, is it OK then?

Blue_MiSfit
27th March 2010, 00:03
Sorry about that, I did another sample and this one works with eac3to for sure.

I think you're correct, I must have sent you a piece that wasn't from the beginning.

Uploading now... slooooowly :(

Here's the video:
http://www.mediafire.com/?mynmknuyydk

And the WAV I was able to extract with eac3to:
http://www.mediafire.com/?benuzmj4nny

Guest
27th March 2010, 19:01
As you may know, DGIndex currently does not package the demuxed PCM audio into a WAV. So if we were to fix DGIndex to properly demux the audio for your stream, we would still need to follow-up with something like SOX to put a WAV header on it.

So you are asking me to fix DGIndex so that you can replace:

EAC3TO

with:

DGIndex + SOX

Is that really what you want, or are you also asking for DGIndex to add the WAV packaging for PCM audio demuxing?

Blue_MiSfit
28th March 2010, 05:10
It would be nice for consistency's sake if DGIndex could handle writing the WAV packaging. If you could at least alert the user that the file contains LPCM which DGIndex cannot extract to WAV, that would be more than enough..

My particular workflow uses eac3to by default to extract audio.

IIRC, DGIndex currently reports either nothing about the track, or shows 1+1 AC3. I really don't remember though, I deal with thousands of files per month.

~MiSfit

Guest
28th March 2010, 14:32
If you could at least alert the user that the file contains LPCM which DGIndex cannot extract to WAV, that would be more than enough. The section Output Method in the users manual is not enough?

When LPCM is demuxed from a transport stream, usually an M2TS (Blu-Ray) stream, the raw PCM is stored in the output file. You can convert this to a standard wave file using the popular SOX audio processor tool, which you can get here:

http://sourceforge.net/projects/sox/

A typical command line would be as follows (although you need to check your audio parameters in the Info dialog to choose the correct SOX options):

sox -B -r48000 -t .raw -c 6 -2 -s "Blu-ray PCM PID 1101 DELAY 0ms.pcm" "out.wav"

A future version of DGIndex may integrate the WAV packaging functionality for transport streams.

Blue_MiSfit
29th March 2010, 01:12
No, that's perfectly fine. It's your app, of course :)

Still, something in the app to remind the user upon encountering a file like this would be nice. When you're working with thousands of files per month, things like this are quite helpful :)

DGIndex cannot extract the raw PCM, correct?

~MiSfit

Guest
29th March 2010, 14:21
DGIndex cannot extract the raw PCM, correct? It can, with a small change. But I'm doubting it will help you, because you need WAV.

Blue_MiSfit
29th March 2010, 18:38
Correct.

Thanks for your assistance though, neuron2.