[FFmpeg-devel] [PATCH] another stab at improved dv probe

Reimar Döffinger Reimar.Doeffinger
Sun Sep 27 14:00:50 CEST 2009

On Sun, Sep 27, 2009 at 01:27:54PM +0300, Maksym Veremeyenko wrote:
> i had a mov file where DV frames chunk start from 17-th byte and
> probe test found that its a raw DV stream with ratio 0.75. In that
> case truncated raw DV stream will have 0.5 but normal 0.99

Your code does not really work well for that, first it can be mod 12000 for
mov, too, while for badly cut DV files it won't be at offset 12000.
_Reliable_ detection of DV in mov would check that the distance between "primary"
DV headers is exactly the same as the frame size, but that is completely
independent of single-frame detection.
Now another step "up" would be to extend the frame reading to support DV
in mov without mov, but that is likely not such a great idea due to possibly
breaking things too much.

More information about the ffmpeg-devel mailing list