[FFmpeg-devel] [PATCH] libavformat/segment: strftime date sub-directories

Moritz Barsnick barsnick at gmx.net
Tue Sep 25 12:22:28 EEST 2018


On Tue, Sep 25, 2018 at 08:49:25 +0000, Jeyapal, Karthick wrote:
> > It is a duplicate from hisenc.c.  hisenc already has this "create
> > sub-directories" feature, but I needed it for the segment use case.
> > I made it static so that it would be treated as local to the .c file.
> > I don't know ffmpeg well enough to know how best to de-duplicate it.
> > I am happy to update my patch, if someone can give me a pointer as to what
> > to do.
> 
> When faced with a similar situation, I created a new file(.c and .h) with those function made global within libavformat(prefix it with ff_).
> Then these functions could be used by both hlsenc.c and other files inside the libavformat library. 
> You could refer to below commit as a pointer
> https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/da49cdf6401ea3caa616c226f24dfb407633acd0

Steven already posted a patch proposal to this list, factoring out the
function:
https://patchwork.ffmpeg.org/patch/10471/
http://ffmpeg.org/pipermail/ffmpeg-devel/2018-September/234538.html

Moritz


More information about the ffmpeg-devel mailing list