forked from FFmpeg/FFmpeg
doc/muxers: fix hlsenc options examples error
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Reviewed-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Lou Logan <lou@lrcd.com>
This commit is contained in:
parent
a68f1ae6b1
commit
95f2dcafe1
1 changed files with 3 additions and 3 deletions
|
@ -426,7 +426,7 @@ specified.
|
||||||
Set the segment filename. Unless @code{hls_flags single_file} is set,
|
Set the segment filename. Unless @code{hls_flags single_file} is set,
|
||||||
@var{filename} is used as a string format with the segment number:
|
@var{filename} is used as a string format with the segment number:
|
||||||
@example
|
@example
|
||||||
ffmpeg in.nut -hls_segment_filename 'file%03d.ts' out.m3u8
|
ffmpeg -i in.nut -hls_segment_filename 'file%03d.ts' out.m3u8
|
||||||
@end example
|
@end example
|
||||||
This example will produce the playlist, @file{out.m3u8}, and segment files:
|
This example will produce the playlist, @file{out.m3u8}, and segment files:
|
||||||
@file{file000.ts}, @file{file001.ts}, @file{file002.ts}, etc.
|
@file{file000.ts}, @file{file001.ts}, @file{file002.ts}, etc.
|
||||||
|
@ -435,7 +435,7 @@ This example will produce the playlist, @file{out.m3u8}, and segment files:
|
||||||
Use strftime on @var{filename} to expand the segment filename with localtime.
|
Use strftime on @var{filename} to expand the segment filename with localtime.
|
||||||
The segment number (%d) is not available in this mode.
|
The segment number (%d) is not available in this mode.
|
||||||
@example
|
@example
|
||||||
ffmpeg in.nut -use_localtime 1 -hls_segment_filename 'file-%Y%m%d-%s.ts' out.m3u8
|
ffmpeg -i in.nut -use_localtime 1 -hls_segment_filename 'file-%Y%m%d-%s.ts' out.m3u8
|
||||||
@end example
|
@end example
|
||||||
This example will produce the playlist, @file{out.m3u8}, and segment files:
|
This example will produce the playlist, @file{out.m3u8}, and segment files:
|
||||||
@file{file-20160215-1455569023.ts}, @file{file-20160215-1455569024.ts}, etc.
|
@file{file-20160215-1455569023.ts}, @file{file-20160215-1455569024.ts}, etc.
|
||||||
|
@ -444,7 +444,7 @@ This example will produce the playlist, @file{out.m3u8}, and segment files:
|
||||||
Used together with -use_localtime, it will create up to one subdirectory which
|
Used together with -use_localtime, it will create up to one subdirectory which
|
||||||
is expanded in @var{filename}.
|
is expanded in @var{filename}.
|
||||||
@example
|
@example
|
||||||
ffmpeg in.nut -use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename '%Y%m%d/file-%Y%m%d-%s.ts' out.m3u8
|
ffmpeg -i in.nut -use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename '%Y%m%d/file-%Y%m%d-%s.ts' out.m3u8
|
||||||
@end example
|
@end example
|
||||||
This example will create a directory 201560215 (if it does not exist), and then
|
This example will create a directory 201560215 (if it does not exist), and then
|
||||||
produce the playlist, @file{out.m3u8}, and segment files:
|
produce the playlist, @file{out.m3u8}, and segment files:
|
||||||
|
|
Loading…
Add table
Reference in a new issue