On Fri, Jan 15, 2021 at 02:27:44PM +0100, Moritz Barsnick wrote:
> On Wed, Jan 06, 2021 at 23:35:31 +0800, [email protected] wrote:
> > From: Limin Wang <[email protected]>
> >
> > Signed-off-by: Limin Wang <[email protected]>
> > ---
> > doc/muxers.texi | 4 ++--
> > libavformat/hlsenc.c | 18 +++++++++---------
> > 2 files changed, 11 insertions(+), 11 deletions(-)
> >
> > diff --git a/doc/muxers.texi b/doc/muxers.texi
> > index 8e12aca..044c16b 100644
> > --- a/doc/muxers.texi
> > +++ b/doc/muxers.texi
> > @@ -609,13 +609,13 @@ segmentation.
> > This muxer supports the following options:
> >
> > @table @option
> > -@item hls_init_time @var{seconds}
> > +@item hls_init_time @var{duration}
> > Set the initial target segment length in seconds. Default value is @var{0}.
> > Segment will be cut on the next key frame after this time has passed on
> > the first m3u8 list.
> > After the initial playlist is filled @command{ffmpeg} will cut segments
> > at duration equal to @code{hls_time}
>
> AV_OPT_TYPE_DURATION is not strictly seconds. It can use other
> syntaxes. You could refer to the appropriate section:
>
> > see @ref{time duration syntax,,the Time duration section in the
> > ffmpeg-utils(1) manual,ffmpeg-utils}.
OK, will add the section for reference if have update.
>
>
> > Set the target segment length in seconds. Default value is 2.
>
> Ditto.
will fix it.
>
> > - {"hls_time", "set segment length in seconds",
> > OFFSET(time), AV_OPT_TYPE_FLOAT, {.dbl = 2}, 0, FLT_MAX, E},
> > - {"hls_init_time", "set segment length in seconds at init list",
> > OFFSET(init_time), AV_OPT_TYPE_FLOAT, {.dbl = 0}, 0, FLT_MAX, E},
> > + {"hls_time", "set segment length in seconds",
> > OFFSET(time), AV_OPT_TYPE_DURATION, {.i64 = 2000000}, 0, INT64_MAX,
> > E},
> > + {"hls_init_time", "set segment length in seconds at init list",
> > OFFSET(init_time), AV_OPT_TYPE_DURATION, {.i64 = 0}, 0,
> > INT64_MAX, E},
>
> Ditto, just "set segment length".
will fix it.
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-devel mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".
--
Thanks,
Limin Wang
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".