[FFmpeg-devel] [PATCH] libavformat/segment: strftime date sub-directories

James Courtier-Dutton james.dutton at gmail.com
Tue Sep 25 19:52:55 EEST 2018


>
> Automatically create sub-directories if needed based on date.
> E.g.
> ffmpeg ... -timelimit 2147483647 -f segment -strftime 1 -segment_time 10
> "%Y/%m/%d/%Y-%m-%d_%H-%M-%S.mkv"
>
>
>
>
> Maybe you want add an option named “strftime_mkdir” not
> “use_localtime_mkdir”.
> You should add the option describe into doc/muxer.texi
>
> reference to: https://trac.ffmpeg.org/ticket/7393
>
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> Thanks
> Steven
>
> Hi Steven,

I don't understand what you are suggesting?
There are no extra command line options to enable this feature.
It just works it out from the format string.
If you put a "/" in the format string, it creates the directories for you.
As per my example command line above.


More information about the ffmpeg-devel mailing list