[FFmpeg-devel] [PATCH] lavf/segment: extend format for the segment list file

Stefano Sabatini stefasab at gmail.com
Sun Jul 8 11:54:05 CEST 2012


On date Thursday 2012-07-05 00:18:48 +0200, Stefano Sabatini encoded:
> On date Wednesday 2012-07-04 01:38:15 +0200, Stefano Sabatini encoded:
> > On date Tuesday 2012-07-03 01:38:16 +0200, Stefano Sabatini encoded:
> > > On date Friday 2012-06-29 17:18:47 +0200, Stefano Sabatini encoded:
> > > > Write the start and ending time for each segment. This is required to
> > > > make it available this information to external tools without the need
> > > > to perform file analysis in the resulting segments.
> > > 
> > > I'm less sure about this, since it breaks the syntax of the list
> > > file. I can eventually add an option for enabling this extension.
> > 
> > Updated.
> > 
> > I'm thinking about:
> > -segment_list_extend 1 -segment_list out.list
> 
> Updated with no syntax break, and a new option -segment_list_type
> which should allow to easily add support to other formats as well
> (e.g. m3u8). Works for me.
> -- 
> FFmpeg = Frightening and Fancy Mean Picky Evil Gadget

> From be307e86983b147a07b62489bb63ede706417753 Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefasab at gmail.com>
> Date: Fri, 13 Jan 2012 23:29:09 +0100
> Subject: [PATCH] lavf/segment: add segment_list_type option, extend format
>  for the segment list file
> 
> Add list extended format which allows to write the start and ending time
> for each segment. This is required to make it available this information
> to external tools without the need to perform file analysis in the
> resulting segments.
> ---
>  doc/muxers.texi       |   31 +++++++++++++++++++++++++++++--
>  libavformat/segment.c |   22 +++++++++++++++++++++-
>  2 files changed, 50 insertions(+), 3 deletions(-)

I'll push this soon, together with the other segment patches, unless I
see comments on this.

The current change doesn't break backward compatibility, and can be
extended later with no further breaks.

I see if I can find some way to add a regtest (suggestions are
welcome), but I can't promise I'll do it soon.
-- 
FFmpeg = Frenzy and Formidable Mind-dumbing Pitiless Elastic Generator


More information about the ffmpeg-devel mailing list