mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine logger for hls_dts_directly
This commit is contained in:
parent
b4870a6d6f
commit
1c227f4f8a
2 changed files with 10 additions and 7 deletions
|
@ -146,7 +146,7 @@ For previous versions, please read:
|
||||||
## V3 changes
|
## V3 changes
|
||||||
|
|
||||||
* v3.0, 2019-12-05, Fix [#1506][bug #1501], support directly turn FLV timestamp to TS DTS. 3.0.68
|
* v3.0, 2019-12-05, Fix [#1506][bug #1501], support directly turn FLV timestamp to TS DTS. 3.0.68
|
||||||
* <strong>v3.0, 2019-11-30, [3.0 alpha2(3.0.67)][r3.0a3] released. 110864 lines.</strong>
|
* <strong>v3.0, 2019-11-30, [3.0 alpha3(3.0.67)][r3.0a3] released. 110864 lines.</strong>
|
||||||
* v3.0, 2019-12-01, Fix [#1501][bug #1501], use request coworker for origin cluster. 3.0.67
|
* v3.0, 2019-12-01, Fix [#1501][bug #1501], use request coworker for origin cluster. 3.0.67
|
||||||
* <strong>v3.0, 2019-11-30, [3.0 alpha2(3.0.66)][r3.0a2] released. 110831 lines.</strong>
|
* <strong>v3.0, 2019-11-30, [3.0 alpha2(3.0.66)][r3.0a2] released. 110831 lines.</strong>
|
||||||
* v3.0, 2019-11-30, Fix [#1501][bug #1501], use request coworker for origin cluster. 3.0.66
|
* v3.0, 2019-11-30, Fix [#1501][bug #1501], use request coworker for origin cluster. 3.0.66
|
||||||
|
@ -654,7 +654,7 @@ For previous versions, please read:
|
||||||
|
|
||||||
## Releases
|
## Releases
|
||||||
|
|
||||||
* 2019-11-30, [Release v3.0-a2][r3.0a3], 3.0 alpha2, 3.0.67, 110864 lines.
|
* 2019-11-30, [Release v3.0-a3][r3.0a3], 3.0 alpha3, 3.0.67, 110864 lines.
|
||||||
* 2019-11-30, [Release v3.0-a2][r3.0a2], 3.0 alpha2, 3.0.66, 110831 lines.
|
* 2019-11-30, [Release v3.0-a2][r3.0a2], 3.0 alpha2, 3.0.66, 110831 lines.
|
||||||
* 2019-10-07, [Release v3.0-a1][r3.0a1], 3.0 alpha1, 3.0.60, 107962 lines.
|
* 2019-10-07, [Release v3.0-a1][r3.0a1], 3.0 alpha1, 3.0.60, 107962 lines.
|
||||||
* 2019-10-04, [Release v3.0-a0][r3.0a0], 3.0 alpha0, 3.0.56, 107946 lines.
|
* 2019-10-04, [Release v3.0-a0][r3.0a0], 3.0 alpha0, 3.0.56, 107946 lines.
|
||||||
|
|
|
@ -910,9 +910,13 @@ srs_error_t SrsHlsController::on_publish(SrsRequest* req)
|
||||||
if ((err = muxer->segment_open()) != srs_success) {
|
if ((err = muxer->segment_open()) != srs_success) {
|
||||||
return srs_error_wrap(err, "hls: segment open");
|
return srs_error_wrap(err, "hls: segment open");
|
||||||
}
|
}
|
||||||
srs_trace("hls: win=%dms, frag=%dms, prefix=%s, path=%s, m3u8=%s, ts=%s, aof=%.2f, floor=%d, clean=%d, waitk=%d, dispose=%dms",
|
|
||||||
srsu2msi(hls_window), srsu2msi(hls_fragment), entry_prefix.c_str(), path.c_str(), m3u8_file.c_str(),
|
// This config item is used in SrsHls, we just log its value here.
|
||||||
ts_file.c_str(), hls_aof_ratio, ts_floor, cleanup, wait_keyframe, srsu2msi(hls_dispose));
|
bool hls_dts_directly = _srs_config->get_vhost_hls_dts_directly(req->vhost);
|
||||||
|
|
||||||
|
srs_trace("hls: win=%dms, frag=%dms, prefix=%s, path=%s, m3u8=%s, ts=%s, aof=%.2f, floor=%d, clean=%d, waitk=%d, dispose=%dms, dts_directly=%d",
|
||||||
|
srsu2msi(hls_window), srsu2msi(hls_fragment), entry_prefix.c_str(), path.c_str(), m3u8_file.c_str(), ts_file.c_str(),
|
||||||
|
hls_aof_ratio, ts_floor, cleanup, wait_keyframe, srsu2msi(hls_dispose), hls_dts_directly);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
@ -1162,9 +1166,8 @@ srs_error_t SrsHls::on_publish()
|
||||||
return srs_error_wrap(err, "hls: on publish");
|
return srs_error_wrap(err, "hls: on publish");
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: FIXME: Support reload.
|
|
||||||
// TODO: FIXME: Support RAW API.
|
|
||||||
// If enabled, directly turn FLV timestamp to TS DTS.
|
// If enabled, directly turn FLV timestamp to TS DTS.
|
||||||
|
// @remark It'll be reloaded automatically, because the origin hub will republish while reloading.
|
||||||
hls_dts_directly = _srs_config->get_vhost_hls_dts_directly(req->vhost);
|
hls_dts_directly = _srs_config->get_vhost_hls_dts_directly(req->vhost);
|
||||||
|
|
||||||
// if enabled, open the muxer.
|
// if enabled, open the muxer.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue