On Thu, 6 Sep 2018, Julien Gaulmin wrote:
I find this patch very useful. Here is a version against master as
recommended by Ricardo.
Works well for me. Thanks Georgi.
Le 20/02/2018 à 12:17, Georgi Chorbadzhiyski a écrit :
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
hlsenc.c has similar functionality, reuse and factorize code from there,
and use a same option name to enable the functionality in the segment muxer.
Regards,
Marton
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel