From 9de704371a7969b8f1fbb630ab21842dc0ec9460 Mon Sep 17 00:00:00 2001 From: igorshevach Date: Sun, 14 Jul 2024 10:44:50 +0300 Subject: [PATCH] test: set DEFAULT_PES_HEADER_FREQ to 8 instead of 16 to minimize pes unit duration (~used to be 107 ms) --- nginx-rtmp-kmp-module/src/ngx_rtmp_kmp_track.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx-rtmp-kmp-module/src/ngx_rtmp_kmp_track.c b/nginx-rtmp-kmp-module/src/ngx_rtmp_kmp_track.c index 79bb25de..39a251fe 100644 --- a/nginx-rtmp-kmp-module/src/ngx_rtmp_kmp_track.c +++ b/nginx-rtmp-kmp-module/src/ngx_rtmp_kmp_track.c @@ -248,6 +248,12 @@ ngx_rtmp_kmp_track_sync_audio(ngx_kmp_out_track_t *track, } else { ctx->audio_base_dts = frame->f.dts; ctx->audio_samples = 0; + + //TODO: use only in debug builds! + ngx_log_error(NGX_LOG_INFO, &track->log, 0, + "ngx_rtmp_kmp_track_sync_audio: " + "reset audio_base_dts frame_dts %L est_dts %L margin %L", + frame->f.dts, est_dts, margin); } /* TODO: identify short frames (960) from extra data */