[FFmpeg-devel] [patch] allow wordexp globs in image2 file sequence import

Michael Niedermayer michaelni
Sun Jan 2 04:28:57 CET 2011


On Fri, Dec 31, 2010 at 12:11:26PM -0500, Brian Olson wrote:
> It seemed cumbersome to me to have to symlink/rename my image sequence files to fit
> ffmpeg -i prefix%05d.jpg
> so I hacked libavformat/img2.c to use <wordexp.h> file globbing, and now I can
> ffmpeg -i '*.jpg'
> (and other shell-expnsion patterns like ? * [] {})
> 
> This is my first attempt at submitting to ffmpeg. I hope you like it. Feedback welcome. Hopefully I didn't break the conventions too much.
> 
> Brian Olson
> http://bolson.org/
> 

>  img2.c |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--------
>  1 file changed, 55 insertions(+), 8 deletions(-)
> 27ac4fb6e59175875e0fc3ef0c46f21e3bdfe196  img2_wordexp.diff

is there an advantage in this over using the concat protocol?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110102/28f6a334/attachment.pgp>



More information about the ffmpeg-devel mailing list