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

Stefano Sabatini stefasab at gmail.com
Thu Aug 9 00:25:19 CEST 2012


On date Sunday 2012-08-05 23:41:19 +0200, Nicolas George encoded:
> 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.

Patch merged with:
lavf/img2dec: add and document pattern_type option
-- 
FFmpeg = Fantastic & Faithless Multipurpose Programmable Elfic Gorilla


More information about the ffmpeg-devel mailing list