[FFmpeg-devel] [PATCH] Adobe Filmstrip muxer and demuxer

pross at xvid.org pross
Wed Jan 13 10:27:12 CET 2010


On Tue, Jan 12, 2010 at 02:52:58PM +0100, Michael Niedermayer wrote:
> On Tue, Jan 12, 2010 at 10:03:56PM +1100, pross at xvid.org wrote:
> > $subject
> > 
> > Samples in upload.mplayerhq.hu /MPlayer/incoming/filmstrip

> > +static int probe(AVProbeData *p)
> > +{
> > +    if (av_match_ext(p->filename, "flm"))
> > +        return AVPROBE_SCORE_MAX / 2;
> > +    return 0;
> > +}
> 
> This can be done simpler by setting the extension for the format,
> but cant this be probed in some more advanced way?

unfortunately the file header info is at the end of the file.

one option would be to extend AVProbeData to optionally supply the
last n bytes of the file. of the top of my head i can't think of
any other formats that would benefit from this.

updated patch enclosed.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filmstrip-r2.diff
Type: text/x-diff
Size: 7534 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100113/0e2f9d7c/attachment.diff>
-------------- 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/20100113/0e2f9d7c/attachment.pgp>



More information about the ffmpeg-devel mailing list