Set default --segment_duration to 6 seconds

This is recommended by Apple and other content providers:
https://apple.co/2uTTAc4

- Set default --clear_lead to 12 seconds, i.e. about 2 segments.
- Set default --fragment_duration to 0 so fragment (sub-segment) is not
  generated by default.

Change-Id: Ie6ec3ab6f0ce973547989c663a92b637a2fdc47c
This commit is contained in:
KongQun Yang 2018-07-27 17:29:53 -07:00
parent bd98436241
commit 32e3ff3e25
1 changed files with 3 additions and 3 deletions

View File

@ -9,10 +9,10 @@
#include "packager/app/muxer_flags.h" #include "packager/app/muxer_flags.h"
DEFINE_double(clear_lead, DEFINE_double(clear_lead,
10.0f, 12.0f,
"Clear lead in seconds if encryption is enabled."); "Clear lead in seconds if encryption is enabled.");
DEFINE_double(segment_duration, DEFINE_double(segment_duration,
10.0f, 6.0f,
"Segment duration in seconds. If single_segment is specified, " "Segment duration in seconds. If single_segment is specified, "
"this parameter sets the duration of a subsegment; otherwise, " "this parameter sets the duration of a subsegment; otherwise, "
"this parameter sets the duration of a segment. Actual segment " "this parameter sets the duration of a segment. Actual segment "
@ -21,7 +21,7 @@ DEFINE_bool(segment_sap_aligned,
true, true,
"Force segments to begin with stream access points."); "Force segments to begin with stream access points.");
DEFINE_double(fragment_duration, DEFINE_double(fragment_duration,
10.0f, 0,
"Fragment duration in seconds. Should not be larger than " "Fragment duration in seconds. Should not be larger than "
"the segment duration. Actual fragment durations may not be " "the segment duration. Actual fragment durations may not be "
"exactly as requested."); "exactly as requested.");