From 97ff17a17db5ecac295327281738f044239cf322 Mon Sep 17 00:00:00 2001
From: Steven Liu <lingjiujianke@gmail.com>
Date: Wed, 14 Sep 2016 07:14:18 +0800
Subject: [PATCH] doc/muxers: add hls_segment_size option document

and make an sample introduce how to use hls_segment_size.

Signed-off-by: LiuQi <liuqi@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' out.m3u8
 This example will produce the playlist, @file{out.m3u8}, and segment files:
 @file{file000.ts}, @file{file001.ts}, @file{file002.ts}, etc.
 
+@item hls_segment_size @var{max_seg_size}
+Set the segments maximum size. Useful to reduce segment files numbers, packaging
+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},
+@var{max_seg_size} is used in bytes format:
+@example
+ffmpeg in.nut -hls_segment_size 2000000 out.m3u8
+@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 localtime.
 The segment number (%d) is not available in this mode.
-- 
2.7.4 (Apple Git-66)

