diff options
author | Stefano Sabatini | 2012-09-01 18:01:51 +0200 |
---|---|---|
committer | Stefano Sabatini | 2012-09-11 01:24:54 +0200 |
commit | 00d516454c77a77d11c97099cba069030d82a7cb (patch) | |
tree | fbcfddad9e307c9ada22e03d55884dd76fe55510 /doc/muxers.texi | |
parent | 7b62d3415e8e44618cb97775567d453295c4f4d9 (diff) |
lavf/segment: add segment_list_flags option
Allow to specify options affecting the segment list generation.
In particular: add +live and +cache flags.
For a full discussion read trac ticket #1642:
http://ffmpeg.org/trac/ffmpeg/ticket/1642
Also add live M3U8 generation example.
Diffstat (limited to 'doc/muxers.texi')
-rw-r--r-- | doc/muxers.texi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi index 24ffc7c8ee..83c21dba67 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -479,6 +479,24 @@ extension. @item segment_list @var{name} Generate also a listfile named @var{name}. If not specified no listfile is generated. +@item segment_list_flags @var{flags} +Set flags affecting the segment list generation. + +It currently supports the following flags: +@table @var +@item cache +Allow caching (only affects M3U8 list files). + +@item live +Allow live-friendly file generation. + +This currently only affects M3U8 lists. In particular, write a fake +EXT-X-TARGETDURATION duration field at the top of the file, based on +the specified @var{segment_time}. +@end table + +Default value is @code{cache}. + @item segment_list_size @var{size} Overwrite the listfile once it reaches @var{size} entries. If 0 the listfile is never overwritten. Default value is 0. @@ -584,6 +602,14 @@ and @code{libfaac} encoders: @example ffmpeg -i in.mkv -map 0 -codec:v libx264 -codec:a libfaac -f ssegment -segment_list out.list out%03d.ts @end example + +@item +Segment the input file, and create an M3U8 live playlist (can be used +as live HLS source): +@example +ffmpeg -re -i in.mkv -codec copy -map 0 -f segment -segment_list playlist.m3u8 \ +-segment_list_flags +live -segment_time 10 out%03d.mkv +@end example @end itemize @section mp3 |