From 206fffcd4ce9dfa080d47ee6005e3620089f6b43 Mon Sep 17 00:00:00 2001 From: jcdr428 Date: Sat, 3 Jun 2023 08:37:19 +0100 Subject: [PATCH] Change SIT "peak_rate" to 128 Mbps for HEVC --- tsMuxer/tsMuxer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tsMuxer/tsMuxer.cpp b/tsMuxer/tsMuxer.cpp index 605ae893..f2087120 100644 --- a/tsMuxer/tsMuxer.cpp +++ b/tsMuxer/tsMuxer.cpp @@ -51,9 +51,9 @@ uint8_t DefaultSitTableOne[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; -uint8_t SitTableHEVC[] = {0x47, 0x40, 0x1f, 0x10, 0x00, 0x7f, 0xf0, 0x19, 0xff, 0xff, 0xc1, - 0x00, 0x00, 0xf0, 0x0a, 0x63, 0x08, 0xc4, 0x28, 0x74, 0xff, 0xff, - 0xff, 0xff, 0xff, 0x00, 0x01, 0x80, 0x00, 0x46, 0xc1, 0xdb, 0xf3}; +// for v3 Blu-ray, change "peak_rate" and CRC to 128 mbps +uint8_t SitTableHEVC[] = {0xc4, 0xe1, 0x06, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x00, 0x01, 0x80, 0x00, 0x24, 0xc4, 0xba, 0xf0}; TSMuxer::TSMuxer(MuxerManager* owner) : AbstractMuxer(owner) { @@ -298,7 +298,7 @@ void TSMuxer::intAddStream(const std::string& streamName, const std::string& cod { StreamType stream_type = StreamType::VIDEO_H265; // Change "peak_rate" to 109 mbps + change descriptor CRC32 - memcpy(DefaultSitTableOne, SitTableHEVC, 33); + memcpy(&DefaultSitTableOne[17], SitTableHEVC, 16); // For non-bluray, second Dolby Vision track must be stream_type 06 = private data if (!m_bluRayMode && tsStreamIndex == 0x1015 && (V3_flags & BL_TRACK)) stream_type = StreamType::PRIVATE_DATA;