On Thu, Sep 06, 2018 at 05:02:28PM +0200, 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 > > -- > Julien GAULMIN <julien.gaul...@4g-technology.eu>
> segment.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 54 insertions(+) > 1e5970ff8eafbb989ad29b77cd88fd0e4a259df1 segment_create_dir.master.patch > diff --git a/libavformat/segment.c b/libavformat/segment.c > index 7fb4dc7d21..f6b9ea8b89 100644 > --- a/libavformat/segment.c > +++ b/libavformat/segment.c fails to build on mingw32 CC libavformat/segment.o src/libavformat/segment.c: In function ‘create_dir’: src/libavformat/segment.c:250:18: error: expected identifier or ‘*’ before ‘;’ token goto OUT; ^ src/libavformat/segment.c:253:1: error: expected expression before ‘:’ token OUT: ^ src/libavformat/segment.c:255:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: some warnings being treated as errors make: *** [libavformat/segment.o] Error 1 make: Target `all' not remade because of errors. [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Opposition brings concord. Out of discord comes the fairest harmony. -- Heraclitus
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel