[FFmpeg-devel] [PATCH] resend: add segment_path for save segment movie

Stefano Sabatini stefasab at gmail.com
Thu Oct 31 10:28:29 CET 2013

On date Tuesday 2013-10-29 09:00:03 +0800, Steven Liu encoded:
> 在 2013年10月28日,下午5:26,Stefano Sabatini <stefasab at gmail.com> 写道:
> > Note that your approach won't work for example on Windows, where "/"
> > is not recognized as a file separator.
> This is a problem, i think i will fix it. :-)
> > 
> > I see two solutions.
> > 
> > 1. we *always* print on the list file the segment file basename (the
> >   filename stripped of the prefix path), as it is done in hlsenc.c
> hlsenc is just can be used at the HLS, for real time play AV. There only have few AV segments
> displayed in the list file. there have a scene for transform from the realtime AV stream into local 
> and save all the mpegts name into the list file for display. this function maybe must use segment.c
> because this function hls can not support.

> > 2. we allow to specify a pattern for the name of the file written on
> >   the list file (probably overkill), or at least allow to specify a
> >   prefix.

> Yes, just want to implementation this way, i want to support this :-)
> Let me try to send a new patch later :-)

A pattern would require string interpolation. Note that for the moment
a simple prefix (added to the filename basename) should be good
enough to fix your use-case (and should be trivial to implement).
FFmpeg = Fancy & Fabulous Mind-dumbing Portentous Esoteric Ghost

More information about the ffmpeg-devel mailing list