Browse code

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>

Steven Liu authored on 2016/09/28 19:12:38
Showing 1 changed files
... ...
@@ -426,7 +426,7 @@ specified.
426 426
 Set the segment filename. Unless @code{hls_flags single_file} is set,
427 427
 @var{filename} is used as a string format with the segment number:
428 428
 @example
429
-ffmpeg in.nut -hls_segment_filename 'file%03d.ts' out.m3u8
429
+ffmpeg -i in.nut -hls_segment_filename 'file%03d.ts' out.m3u8
430 430
 @end example
431 431
 This example will produce the playlist, @file{out.m3u8}, and segment files:
432 432
 @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:
435 435
 Use strftime on @var{filename} to expand the segment filename with localtime.
436 436
 The segment number (%d) is not available in this mode.
437 437
 @example
438
-ffmpeg in.nut -use_localtime 1 -hls_segment_filename 'file-%Y%m%d-%s.ts' out.m3u8
438
+ffmpeg -i in.nut -use_localtime 1 -hls_segment_filename 'file-%Y%m%d-%s.ts' out.m3u8
439 439
 @end example
440 440
 This example will produce the playlist, @file{out.m3u8}, and segment files:
441 441
 @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:
444 444
 Used together with -use_localtime, it will create up to one subdirectory which
445 445
 is expanded in @var{filename}.
446 446
 @example
447
-ffmpeg in.nut -use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename '%Y%m%d/file-%Y%m%d-%s.ts' out.m3u8
447
+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
448 448
 @end example
449 449
 This example will create a directory 201560215 (if it does not exist), and then
450 450
 produce the playlist, @file{out.m3u8}, and segment files: