[FFmpeg-devel] [PATCH] doc/muxers: add hls_segment_size option document

Steven Liu lingjiujianke at gmail.com
Wed Sep 14 02:16:32 EEST 2016

and make an sample introduce how to use hls_segment_size.

Signed-off-by: LiuQi <liuqi at gosun.com>
 doc/muxers.texi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/muxers.texi b/doc/muxers.texi
index ccf8ea1..9b1f717 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -410,6 +410,17 @@ ffmpeg in.nut -hls_segment_filename 'file%03d.ts'
 This example will produce the playlist, @file{out.m3u8}, and segment files:
 @file{file000.ts}, @file{file001.ts}, @file{file002.ts}, etc.

+ at item hls_segment_size @var{max_seg_size}
+Set the segments maximum size. Useful to reduce segment files numbers,
+some segment files in one file, and keep playlist segments as normal,
+Support hls m3u8 @code{#EXT-X-BYTERANGE} in @code{#EXT-X-VERSION:4},
+ at var{max_seg_size} is used in bytes format:
+ at example
+ffmpeg in.nut -hls_segment_size 2000000 out.m3u8
+ at end example
+every segment files size is 2000000 bytes, and one segment file have some
segments info
+in @file{out.m3u8}.
 @item use_localtime
 Use strftime on @var{filename} to expand the segment filename with
 The segment number (%d) is not available in this mode.
2.7.4 (Apple Git-66)

More information about the ffmpeg-devel mailing list