From 32e3ff3e25724f2554b26cd6532b682ec2d96e07 Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Fri, 27 Jul 2018 17:29:53 -0700 Subject: [PATCH] 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 --- packager/app/muxer_flags.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packager/app/muxer_flags.cc b/packager/app/muxer_flags.cc index 301262b0ec..e55cde7f0b 100644 --- a/packager/app/muxer_flags.cc +++ b/packager/app/muxer_flags.cc @@ -9,10 +9,10 @@ #include "packager/app/muxer_flags.h" DEFINE_double(clear_lead, - 10.0f, + 12.0f, "Clear lead in seconds if encryption is enabled."); DEFINE_double(segment_duration, - 10.0f, + 6.0f, "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 segment. Actual segment " @@ -21,7 +21,7 @@ DEFINE_bool(segment_sap_aligned, true, "Force segments to begin with stream access points."); DEFINE_double(fragment_duration, - 10.0f, + 0, "Fragment duration in seconds. Should not be larger than " "the segment duration. Actual fragment durations may not be " "exactly as requested.");