[FFmpeg-devel] [PATCH] img2enc: add option to use strftime() for filename

Ramiro Polla ramiro.polla at gmail.com
Wed Jan 8 05:49:42 CET 2014


On Fri, Jul 19, 2013 at 5:50 AM, Stefano Sabatini <stefasab at gmail.com> wrote:
> On date Thursday 2013-07-18 19:21:36 -0300, Ramiro Polla encoded:
>> Attached patch adds option to use strftime() for img2enc filename, as such:
>> ffmpeg -f video4linux2 -r 1 -re -i /dev/video0 -strftime 1
>> "%Y-%m-%d_%H-%M-%S.jpg"
>>
>> Ramiro
>
>> From 5af884e6129f4dbac5ea06a50c3127fc89726e98 Mon Sep 17 00:00:00 2001
>> From: Ramiro Polla <ramiro.polla at gmail.com>
>> Date: Thu, 18 Jul 2013 19:17:11 -0300
>> Subject: [PATCH] img2enc: add option to use strftime() for filename
>>
>> ---
>>  libavformat/img2enc.c |   11 +++++++++++
>>  1 file changed, 11 insertions(+)
>
> Please send documentation updates, also the example stays better in
> the docs than in the log.

Attached.

> Also note that this solution is suboptimal, since we should support
> some form of pattern or an expansion mode like for the image2 demuxer.

Could you please explain more in depth how this should work?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-doc-muxers-image2-add-strftime-option.patch
Type: text/x-patch
Size: 1401 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140108/6833a180/attachment.bin>


More information about the ffmpeg-devel mailing list