aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChristian Suloway <csuloway@row44.com>2014-12-05 21:20:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2014-12-06 02:28:23 +0100
commit1c639fa6e02ed122dc41c318acb875f8d76537c5 (patch)
tree64ed755930c2e99d7df802f0cb4e613af9afa711 /doc
parentce800d4695b71f707db93bf97db02dd2b6ff0243 (diff)
downloadffmpeg-1c639fa6e02ed122dc41c318acb875f8d76537c5.tar.gz
avformat/hlsenc: added segment filename option
This option allows segment filenames to be specified. Unless -hls_flags single_file is set the filename is used as a string format with the segment number. Example: ffmpeg -f lavfi -i testsrc -c:v h264 -map 0 -hls_segment_filename bar%03d.ts foo.m3u8 Signed-off-by: Christian Suloway <csuloway@globaleagleent.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc')
-rw-r--r--doc/muxers.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi
index c6ba6045b8..34e827cde7 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -254,6 +254,15 @@ and it is not to be confused with the segment filename sequence number
which can be cyclic, for example if the @option{wrap} option is
specified.
+@item hls_segment_filename @var{filename}
+Set the segment filename. Unless hls_flags single_file is set @var{filename}
+is used as a string format with the segment number:
+@example
+ffmpeg in.nut -hls_segment_filename 'file%03d.ts' out.m3u8
+@end example
+This example will produce the playlist, @file{out.m3u8}, and segment files:
+@file{file000.ts}, @file{file001.ts}, @file{file002.ts}, etc.
+
@item hls_flags single_file
If this flag is set, the muxer will store all segments in a single MPEG-TS
file, and will use byte ranges in the playlist. HLS playlists generated with