From dbd9d73eaf98101ea65fd8dc4a0f4e010b31dced Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 26 Apr 2024 19:34:56 +0200 Subject: [PATCH] h264: support 4K videos encoded with tune=zerolatency (https://github.com/bluenviron/mediamtx/issues/2985) --- pkg/codecs/h264/h264.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/codecs/h264/h264.go b/pkg/codecs/h264/h264.go index c3352c0..aea9593 100644 --- a/pkg/codecs/h264/h264.go +++ b/pkg/codecs/h264/h264.go @@ -7,5 +7,6 @@ const ( MaxAccessUnitSize = 8 * 1024 * 1024 // MaxNALUsPerAccessUnit is the maximum number of NALUs per access unit. - MaxNALUsPerAccessUnit = 21 + // with x264, tune=zerolatency and 4K resolution, NALU count is lower than 25. + MaxNALUsPerAccessUnit = 25 )