[FFmpeg-devel] [PATCH] dts probe

Michael Niedermayer michaelni
Sat May 3 17:41:04 CEST 2008


On Sat, May 03, 2008 at 04:55:27PM +0200, Benjamin Larsson wrote:
> Michael Niedermayer wrote:
> 
> >> Hi, I tried that but it didn't work so well, one problem is how to
> >> detect regular pcm from a probe when the stream is marked with
> >> CODEC_ID_NONE. 
> > 
> > if(format=wav)
> >     codec_id= S16LE in set_codec_from_probe_data()
> 
> Ok, that could work.
> 
> > 
> > 
> >> One thing that did work was to increase the wav probe
> >> buffer size so the dts probe would kick in first.
> > 
> > This is a hack the file is a wav file not a raw dts file.
> > Also this would need some comment explaining why this buffer size check
> > is there.
> > Anyway iam not strongly against this hack it just does not appear to be
> > the cleanest solution.
> > 
> 
> When I tried with the set_codec_from_probe_data() way it just didn't
> work, the codec is set to DTS but I don't get any channels or
> samplerate. I'd prefer to use this solution. Ok, to commit with a note
> on why it is large ?

ok but bewere ill revert it if it breaks something (like other .wav files)!

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080503/18e22bb8/attachment.pgp>



More information about the ffmpeg-devel mailing list