Log in

View Full Version : Demuxing SMPTE 302M audio from TS


kieranrk
7th August 2010, 02:47
Is there a nice way of demuxing SMPTE 302M audio from a transport stream? Every method I've found so far hasn't worked; generally the bit reversal wasn't applied correctly.

madshi
7th August 2010, 09:13
Have you tried eac3to?

kieranrk
7th August 2010, 14:03
Yes I tried eac3to. Here's the output:

------------------------------------------------------------------------------
TS, 1 video track, 3 audio tracks, 1 subtitle track, 0:00:11, 60i /1.001
1: MPEG2, 1080i60 /1.001 (16:9)
2: RAW/PCM, English, 2.0 channels, 20/24 bits, 48kHz, -436ms
3: AC3, English, 2.0 channels, 320kbps, 48kHz, -472ms
4: Unknown audio track, unknown parameters, -436ms
5: Subtitle (SRT)
Bitstream parsing for track 4 failed. <WARNING>
Demuxing this track may still produce correct results - or not. <WARNING>
[a02] Extracting audio track number 2...
[a02] Reading RAW/PCM...
[a02] Applying RAW/PCM delay...
[a02] Writing WAV...
[a02] The ts pcm reader received a PCM block in an unexpected format. <WARNING>
[a02] The original audio track has a constant bit depth of 24 bits.
[a02] The WAV writer didn't receive any audio data. <ERROR>
Aborted at file position 57539280. <ERROR>

madshi
7th August 2010, 15:43
If you upload a sample, I can probably fix it. However, it might take a while, since eac3to is currently not my development priority...

kieranrk
7th August 2010, 16:20
If you upload a sample, I can probably fix it. However, it might take a while, since eac3to is currently not my development priority...

You'll need to find a copy of the SMPTE 302M spec or figure it out from VLC. I'll see if I can cut a sample cleanly.

madshi
7th August 2010, 16:58
I have the spec.

Maxiuca
4th August 2011, 12:31
madshi,

Did you by any chance, made some progress with those 302M streams?

madshi
4th August 2011, 14:42
Should be supported by the current eac3to version.

Maxiuca
5th August 2011, 15:06
Bollocks... It ain't working with the stream I have...
Would you care to have a look at it?

I've uploaded a small sample (100MB) here:

http://yakumama.pl/smptets/thegooddoctor.ts (http://yakumama.pl/smptets/thegooddoctor.ts)

Thanks.

madshi
5th August 2011, 15:22
Is there supposed to be audio in there? I've found a bug but after fixing it all I'm getting from that sample seems to be silence (just multiple seconds of zeroes)?

Maxiuca
5th August 2011, 16:25
It's the beginning of a movie so it might be just silence.

I've uploaded a part with some dialogue.

http://yakumama.pl/smptets/thegooddoctor2.ts

I just checked VLC and it plays it fine. And yes, there is only silence in the beginning.

madshi
5th August 2011, 16:50
http://madshi.net/eac3to302M.rar

Maxiuca
8th August 2011, 11:03
Thanks!! You're the best :)

It works like a charm.