diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2017-10-13 12:24:51 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2017-10-27 19:52:48 +0200 |
commit | 0e702124ee149593168cbbb7b30376249a64ae66 (patch) | |
tree | 3fbecb916d4bb8633e03db6773e3a0a2e7f307e7 | |
parent | 9dc79b2943d99f256a3279f09580b27a95fb9aa8 (diff) | |
download | ffmpeg-streaming-0e702124ee149593168cbbb7b30376249a64ae66.zip ffmpeg-streaming-0e702124ee149593168cbbb7b30376249a64ae66.tar.gz |
doc: Provide better examples for hls and segment muxing
Some encoders do not output further IDRs if not requested to.
-rw-r--r-- | doc/muxers.texi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi index 62cd8d0..8c34322 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -163,8 +163,11 @@ filename specifies the playlist filename; the segment filenames receive the same basename as the playlist, a sequential number and a .ts extension. +Make sure to require a closed GOP when encoding and to set the GOP +size to fit your segment time constraint. + @example -avconv -i in.nut out.m3u8 +avconv -i in.mkv -c:v h264 -flags +cgop -g 30 -hls_time 1 out.m3u8 @end example @table @option @@ -625,8 +628,11 @@ Prepend @var{prefix} to each entry. Useful to generate absolute paths. Wrap around segment index once it reaches @var{limit}. @end table +Make sure to require a closed GOP when encoding and to set the GOP +size to fit your segment time constraint. + @example -avconv -i in.mkv -c copy -map 0 -f segment -list out.list out%03d.nut +avconv -i in.mkv -c hevc -flags +cgop -g 60 -map 0 -f segment -list out.list out%03d.nut @end example @c man end MUXERS |