[FFmpeg-devel] [PATCH] segment: Create missing directories

Ricardo Constantino wiiaboo at gmail.com
Tue Feb 20 13:22:26 EET 2018


On 20 February 2018 at 11:17, Georgi Chorbadzhiyski <gf at unixsol.org> wrote:

> The attached patch allows segment muxer to be used for file archiving by
> allowing it to automatically create the output directories. For example the
> following should work as expected:
>
> ffmpeg
>   ...input_params...
>   -f segment \
>      -segment_atclocktime 1 \
>      -segment_time 5 \
>      -write_empty_segments 1 \
>      -segment_format_options movflags=+faststart \
>      -strftime 1 output_directory/mychannel/%Y/
> %m/%d/%H/%M/mychannel-%s-%Y%m%d-%H%M%S.mp4
>
> The patch is against ffmpeg-3.3.6
>
>
Patches should be made for git master, not old releases.


More information about the ffmpeg-devel mailing list