[Ffmpeg-devel] [PATCH proposal] MPEG4 video probe v3

Thijs Vermeir thijsvermeir
Tue Nov 7 20:33:30 CET 2006


Hi,

On 7-nov-06, at 17:52, Michael Niedermayer wrote:

> Hi
>
> On Tue, Nov 07, 2006 at 12:25:43PM +0100, Thijs Vermeir wrote:
>
> encode mpeg4 at high birate you will not find any startcode within
> a megabyte sized buffer furthermore you cannot play a file
> before a VOL correctly so theres no use in guessing its mpeg4 before

+    if (( VOP >= VISO) && (VOP >= VOL) && (VO >= VOL) && (VOP > 0))
+        return AVPROBE_SCORE_MAX/2;

Probing is not defining but probing is guessing ( Like you mentioned).
Therefore I use NOT the MAX but the half of the max_score. So other  
types can
have a beter probe if they know it better.

In another patch I delete everything until I get a VOL so the  
decoding works fine.

I succesfully use it for network stream's of MPEG2/4 from 1Mb till  
13,6 Mb.

I think doing something (with a lower score on succes) is better dan  
doing nothing
and failling all the time....

Gr,
Thijs




More information about the ffmpeg-devel mailing list