[FFmpeg-devel] segment: Create missing directories
cus at passwd.hu
Sat Sep 8 01:13:13 EEST 2018
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:
>> -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.
More information about the ffmpeg-devel