Opened 12 years ago

Closed 11 years ago

#1328 closed enhancement (wontfix)

image2 demuxer to support file list

Reported by: burek Owned by:
Priority: wish Component: avformat
Version: unspecified Keywords: image2
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Is it a big hassle to modify the image2 demuxer to support a text file at the input (instead of image name format with %d) which will tell ffmpeg where from to read image file names?

For example, something like this would be perfect:

ffmpeg -f image2 -i list.txt ... output.avi

FFmpeg could recognize the extension (or do some other kind of recognition) for text file, containing the list of images to process.

Change History (6)

comment:1 by Carl Eugen Hoyos, 12 years ago

How should FFmpeg / libavformat know that list.txt is not an image in your example command line?

comment:2 by burek, 12 years ago

As far as I can see, img2.c uses av_str2id() to guess the image format, based on the file extension, so it might me implemented the same way? If the file has an extension of ".txt" or ".lst", ".pls", ".m3u"... then ffmpeg can read the "playlist" and get the input files from it.

Maybe the most intuitive way would be to use playlist extensions (m3u, pls, ...). My personal choice would be .m3u because of its simplicity (each line represents path to a file and lines beginning with # are comments: http://en.wikipedia.org/wiki/M3U

in reply to:  2 comment:3 by Stefano Sabatini, 11 years ago

Component: undeterminedavformat
Keywords: image2 added
Status: newopen

Replying to burek:
[...]

Maybe the most intuitive way would be to use playlist extensions (m3u, pls, ...). My personal choice would be .m3u because of its simplicity (each line represents path to a file and lines beginning with # are comments: http://en.wikipedia.org/wiki/M3U

Can't you use the concat demuxer for that?

in reply to:  2 comment:3 by Stefano Sabatini, 11 years ago

Component: undeterminedavformat
Keywords: image2 added
Status: newopen

Replying to burek:
[...]

Maybe the most intuitive way would be to use playlist extensions (m3u, pls, ...). My personal choice would be .m3u because of its simplicity (each line represents path to a file and lines beginning with # are comments: http://en.wikipedia.org/wiki/M3U

Can't you use the concat demuxer for that?

comment:4 by burek, 11 years ago

hmh, I was never aware it can be done that way. Could you please suggest a sample command line to achieve this same thing with concat demuxer?

comment:5 by Carl Eugen Hoyos, 11 years ago

Resolution: wontfix
Status: openclosed

Since the concat demuxer supports this kind of input list - see http://ffmpeg.org/ffmpeg-formats.html#concat - I don't think the image2 demuxer will get this additional feature.

Note: See TracTickets for help on using tickets.