Merge pull request #336 from nextdayvideo/fix-record-interval-keyframe

For video streams, wait for a video keyframe before rotating the file.
This commit is contained in:
Sergey Dryabzhinsky 2022-02-10 18:28:59 +03:00 committed by GitHub
commit 9102003adf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1103,7 +1103,7 @@ ngx_rtmp_record_node_avd(ngx_rtmp_session_t *s, ngx_rtmp_record_rec_ctx_t *rctx,
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
next = rctx->last;