[FFmpeg-devel] [PATCH] lavf/segment: add initial_offset option

Michael Niedermayer michaelni at gmx.at
Sat Jul 6 14:31:31 CEST 2013


On Sat, Jul 06, 2013 at 12:16:08PM +0200, Stefano Sabatini wrote:
> Should address trac ticket #2224.
> ---
>  doc/muxers.texi       |  4 ++++
>  libavformat/segment.c | 14 +++++++++-----
>  2 files changed, 13 insertions(+), 5 deletions(-)

if thats whats needed to fix the issue, then sure ok

[...]
> @@ -793,6 +796,7 @@ static const AVOption options[] = {
>      { "individual_header_trailer", "write header/trailer to each segment", OFFSET(individual_header_trailer), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, E },
>      { "write_header_trailer", "write a header to the first segment and a trailer to the last one", OFFSET(write_header_trailer), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, E },
>      { "reset_timestamps", "reset timestamps at the begin of each segment", OFFSET(reset_timestamps), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, E },
> +    { "initial_offset", "set initial offset in seconds", OFFSET(initial_offset), AV_OPT_TYPE_DURATION, {.i64 = 0}, -INT64_MAX, INT64_MAX, E },

is it really intended to be in seconds ?

also if fixing the issue requires a offset > 0 then this maybe should
becoe default at some point in the future

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130706/e0dd9ff0/attachment.asc>


More information about the ffmpeg-devel mailing list