[FFmpeg-cvslog] hls: add start_number option
Luca Barbato
git at videolan.org
Sun Dec 9 13:42:39 CET 2012
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sat Dec 8 05:32:00 2012 +0100| [5fbceb2c6339c9d0a370c0e5bf6dc229812865eb] | committer: Luca Barbato
hls: add start_number option
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5fbceb2c6339c9d0a370c0e5bf6dc229812865eb
---
doc/muxers.texi | 1 +
libavformat/hlsenc.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/doc/muxers.texi b/doc/muxers.texi
index 570041d..a2a9ce4 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -109,6 +109,7 @@ avconv -i in.nut out.m3u8
@item -hls_time segment length in seconds
@item -hls_list_size maximum number of playlist entries
@item -hls_wrap number after which index wraps
+ at item -start_number first number in the sequence
@end table
@anchor{image2}
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 88f47e0..1003b85 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -295,6 +295,7 @@ static int hls_write_trailer(struct AVFormatContext *s)
#define OFFSET(x) offsetof(HLSContext, x)
#define E AV_OPT_FLAG_ENCODING_PARAM
static const AVOption options[] = {
+ { "start_number", "first number in the sequence", OFFSET(number), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, E},
{"hls_time", "segment length in seconds", OFFSET(time), AV_OPT_TYPE_FLOAT, {.dbl = 2}, 0, FLT_MAX, E},
{"hls_list_size", "maximum number of playlist entries", OFFSET(size), AV_OPT_TYPE_INT, {.i64 = 5}, 0, INT_MAX, E},
{"hls_wrap", "number after which the index wraps", OFFSET(wrap), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, E},
More information about the ffmpeg-cvslog
mailing list