Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h264, h265: raise MaxNALUSize #30

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/codecs/h264/h264.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package h264

const (
// MaxNALUSize is the maximum size of a NALU.
// with a 250 Mbps H264 video, the maximum NALU size is 2.2MB
MaxNALUSize = 3 * 1024 * 1024
// With a 50 Mbps 2160p60 H264 video, the maximum NALU size does not seem to exceed 4 MiB.
MaxNALUSize = 4 * 1024 * 1024

// MaxNALUsPerAccessUnit is the maximum number of NALUs per access unit.
MaxNALUsPerAccessUnit = 20
Expand Down
4 changes: 2 additions & 2 deletions pkg/codecs/h265/h265.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package h265

const (
// MaxNALUSize is the maximum size of a NALU.
// with a 250 Mbps H265 video, the maximum NALU size is 2.2MB
MaxNALUSize = 3 * 1024 * 1024
// With a 50 Mbps 2160p60 H265 video, the maximum NALU size does not seem to exceed 4 MiB.
MaxNALUSize = 4 * 1024 * 1024

// MaxNALUsPerAccessUnit is the maximum number of NALUs per access unit.
MaxNALUsPerAccessUnit = 20
Expand Down
Loading