[FFmpeg-devel] [PATCH] dox/muxers: document how to use glob patterns in the image2 demuxers

Nicolas George nicolas.george at normalesup.org
Sun Aug 5 23:41:19 CEST 2012

Le nonidi 19 thermidor, an CCXX, Stefano Sabatini a écrit :
> We can try to solve the riddle and save "the goat and the cabbages"
> (sorry no equivalent in English, check for Alcuino and "Propositio
> de lupo et capra et fasciculo cauli").
> I suggest to follow this path: we keep the current behavior, but
> 1. we add an option which sets the pattern type, in case it is set to
> "glob" it will perform pure glob matching with no need to escape
> 2. in the default mode ("sequence") we keep the current semantics but
> we warn in case a glob pattern is detected
> 3. we deprecate and drop the mixed "sequence mode" at the next major
> bump
> Variant: we create -pattern_type with three values, "glob_sequence",
> "glob", "sequence", and deprecate/drop "glob_sequence" at the next
> major bump.
> This way we save backward compatibility but favor "pure" modes. This
> in case we agree that pure glob/sequence mode should be favored over
> mixed mode and %-escaping (which seems to me rather awkward).
> Also with -pattern_type glob we can fail cleanly with no need for
> second-guessing heuristics on the back of the user to detect if glob()
> is supported.

I rather like the second version, given the current state.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120805/263f3391/attachment.asc>

More information about the ffmpeg-devel mailing list