[FFmpeg-devel] [PATCH] fix playback of partial DV files

Baptiste Coudurier baptiste.coudurier
Mon Feb 9 03:05:16 CET 2009

Reimar D?ffinger wrote:
> Hello,
> currently libavformat handles it badly or not at all when you cut out a
> part of the dv file in the middle.
> This is because it does not checks at all if the headers are actually at
> the place where it expects them.
> Proper error concealment needs more modifications, but attached patch at
> least makes it search for a DV header in dv_read_header, which is enough
> for simple cases like http://multimedia.cx/dv/spacejam-title.40MB.dv
> I also think that based on this a proper auto-detection of DV should be
> possible - for my pet project (http://sourceforge.net/projects/extractor-gtk)
> I implemented it by search for the bytes 1f 07 00 3f or 0x1f 07 00 bf,
> skipping the next four bytes and then checking that the next 8 bytes are all
> ff.

Here is the probe function.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dv_probe.patch
Type: text/x-diff
Size: 966 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090208/66b192cb/attachment.patch>

More information about the ffmpeg-devel mailing list