mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-01 20:03:44 +02:00
For video streams, wait for a video keyframe before rotating the file (record_interval).
Fixes https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/335
This commit is contained in:
parent
8e344d7994
commit
e8ff79dfb9
|
@ -1103,7 +1103,7 @@ ngx_rtmp_record_node_avd(ngx_rtmp_session_t *s, ngx_rtmp_record_rec_ctx_t *rctx,
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rracf->interval != NGX_CONF_UNSET_MSEC)
|
if (brkframe && rracf->interval != NGX_CONF_UNSET_MSEC)
|
||||||
{
|
{
|
||||||
// record interval should work if set, manual mode or not
|
// record interval should work if set, manual mode or not
|
||||||
next = rctx->last;
|
next = rctx->last;
|
||||||
|
|
Loading…
Reference in a new issue