winlin

refine config

@@ -409,14 +409,10 @@ vhost play.srs.com { @@ -409,14 +409,10 @@ vhost play.srs.com {
409 # 1. full, to ensure stream start at zero, and ensure stream monotonically increasing. 409 # 1. full, to ensure stream start at zero, and ensure stream monotonically increasing.
410 # 2. zero, only ensure stream start at zero, ignore timestamp jitter. 410 # 2. zero, only ensure stream start at zero, ignore timestamp jitter.
411 # 3. off, disable the time jitter algorithm, like atc. 411 # 3. off, disable the time jitter algorithm, like atc.
  412 + # @remark for full, correct timestamp only when |delta| > 250ms.
  413 + # @remark disabled when atc is on.
412 # default: full 414 # default: full
413 time_jitter full; 415 time_jitter full;
414 - # whether use the interleaved/mixed algorithm to correct the timestamp.  
415 - # if on, always ensure the timestamp of audio+video is interleaved/mixed monotonically increase.  
416 - # if off, use time_jitter to correct the timestamp if required.  
417 - # default: off  
418 - mix_correct off;  
419 -  
420 # vhost for atc for hls/hds/rtmp backup. 416 # vhost for atc for hls/hds/rtmp backup.
421 # generally, atc default to off, server delivery rtmp stream to client(flash) timestamp from 0. 417 # generally, atc default to off, server delivery rtmp stream to client(flash) timestamp from 0.
422 # when atc is on, server delivery rtmp stream by absolute time. 418 # when atc is on, server delivery rtmp stream by absolute time.
@@ -428,8 +424,16 @@ vhost play.srs.com { @@ -428,8 +424,16 @@ vhost play.srs.com {
428 # @see http://www.adobe.com/cn/devnet/adobe-media-server/articles/varnish-sample-for-failover.html 424 # @see http://www.adobe.com/cn/devnet/adobe-media-server/articles/varnish-sample-for-failover.html
429 # @see http://www.baidu.com/#wd=hds%20hls%20atc 425 # @see http://www.baidu.com/#wd=hds%20hls%20atc
430 # 426 #
  427 + # @remark when atc is on, auto off the time_jitter
431 # default: off 428 # default: off
432 atc off; 429 atc off;
  430 + # whether use the interleaved/mixed algorithm to correct the timestamp.
  431 + # if on, always ensure the timestamp of audio+video is interleaved/mixed monotonically increase.
  432 + # if off, use time_jitter to correct the timestamp if required.
  433 + # @remark to use mix_correct, atc should on(or time_jitter should off).
  434 + # default: off
  435 + mix_correct off;
  436 +
433 # whether enable the auto atc, 437 # whether enable the auto atc,
434 # if enabled, detect the bravo_atc="true" in onMetaData packet, 438 # if enabled, detect the bravo_atc="true" in onMetaData packet,
435 # set atc to on if matched. 439 # set atc to on if matched.
@@ -464,9 +468,21 @@ vhost play.srs.com { @@ -464,9 +468,21 @@ vhost play.srs.com {
464 # vhost for time jitter 468 # vhost for time jitter
465 vhost jitter.srs.com { 469 vhost jitter.srs.com {
466 # @see play.srs.com 470 # @see play.srs.com
  471 + # to use time_jitter full, the default config.
467 play { 472 play {
468 - time_jitter full;  
469 - mix_correct off; 473 + }
  474 + # to use mix_correct.
  475 + play {
  476 + time_jitter off;
  477 + mix_correct on;
  478 + }
  479 + play {
  480 + atc on;
  481 + mix_correct on;
  482 + }
  483 + # to use atc
  484 + play {
  485 + atc on;
470 } 486 }
471 } 487 }
472 488