[FFmpeg-devel] [PATCH] Option to change picture numbering
Stefano Sabatini
stefano.sabatini-lala
Sun Jan 9 00:13:25 CET 2011
On date Saturday 2011-01-08 22:43:04 +0300, Alexander Sorockin encoded:
> The other day I was making videos from a bunch of pictures and I needed
> ffmpeg to be able to start from a particular file without having to rename
> the whole sequence. (I know I could use symbolic links instead as suggested
> in FAQ, but it's still inconvenient when you have to do it multiple times.)
> Below is a simple patch that adds option first_index specifying the number
> ffmpeg starts counting picture files from. Cheers.
>
> Index: libavformat/avformat.h
> ===================================================================
> --- libavformat/avformat.h (revision 26251)
> +++ libavformat/avformat.h (working copy)
> @@ -915,6 +915,9 @@
> * - decoding: Unused.
> */
> int64_t start_time_realtime;
> +
> + int first_index;
> +
> } AVFormatContext;
Do we support per-demuxer options? If that's the case then maybe it
would be better to use that rather than pollute the global option
namespace.
--
FFmpeg = Faithless Fabulous Merciful Picky Exploitable Gorilla
More information about the ffmpeg-devel
mailing list