[FFmpeg-devel] [PATCH] dts probe

Benjamin Larsson banan
Sat May 3 16:55:27 CEST 2008


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 ?

MvH
Benjamin Larsson




More information about the ffmpeg-devel mailing list