Skip to content

Commit

Permalink
Change SIT "peak_rate" to 128 Mbps for HEVC
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdr428 committed Jun 3, 2023
1 parent 6db8dbb commit 206fffc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tsMuxer/tsMuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
Expand Down

1 comment on commit 206fffc

@oniiz86
Copy link

@oniiz86 oniiz86 commented on 206fffc Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcdr428 Thanks for the update, I was just curious why this revision did not receive a w64 build, is it because this is so minor an update, a 64-bit version was not warranted?

Please sign in to comment.