[FFmpeg-devel] segment: Create missing directories

Julien Gaulmin julien.gaulmin at 4g-technology.eu
Thu Sep 6 18:02:28 EEST 2018


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

-- 
Julien GAULMIN <julien.gaulmin at 4g-technology.eu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: segment_create_dir.master.patch
Type: text/x-patch
Size: 3113 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180906/ea9c058f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180906/ea9c058f/attachment.sig>


More information about the ffmpeg-devel mailing list