[FFmpeg-devel] [PATCH] S/PDIF demuxer (was:[PATCH] Detect DTS in wav (issue70) + about ac3-in-wav)

Anssi Hannula anssi.hannula
Fri Jul 23 07:00:21 CEST 2010


Michael Niedermayer kirjoitti torstai, 22. hein?kuuta 2010 21:59:57:
> On Thu, Jul 22, 2010 at 09:35:07PM +0300, Anssi Hannula wrote:
> > Michael Niedermayer kirjoitti torstai, 22. hein?kuuta 2010 14:58:02:
> > > On Thu, Jul 22, 2010 at 02:57:43AM -0700, Kieran Kunhya wrote:
> > > > >   o All the ac3-in-wav files (at least all I have)
> > > > > 
> > > > > seem to have 8 bytes before
> > > > > 
> > > > >     every ac3 frame: 72 f8 1f 4e 01 00 10 57. I
> > > > > 
> > > > > guess this case can be added
> > > > > 
> > > > >     to the probe (either checking the byte values
> > > > > 
> > > > > or not).
> > > > 
> > > > That's a SPDIF Preamble, which consists of a startcode and some data
> > > > fields.
> > 
> > I had a feeling someone might recognise it :)
> > 
> > > so i guess this should be handled through a spdif demuxer?
> > 
> > IMO that would be preferable, that would take care of all the endianness
> > & padding stuff.
> > 
> > So, add another case to the needs-chained-demuxers list :)
> 
> that one will likely work if the spdif demuxer just tries to demux
> the file and is a bit tolerant in terms of random junk at the begin

Ok, attached is an S/PDIF demuxer. Both ac3-in-spdif-in-wav files and normal 
wav files confirmed to work correctly after the patch.

-- 
Anssi Hannula



More information about the ffmpeg-devel mailing list