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

OBS Software x264 encoder tune zerolatancy #2985

Closed
12 tasks
Grimonja opened this issue Feb 4, 2024 · 4 comments · Fixed by bluenviron/mediacommon#120
Closed
12 tasks

OBS Software x264 encoder tune zerolatancy #2985

Grimonja opened this issue Feb 4, 2024 · 4 comments · Fixed by bluenviron/mediacommon#120

Comments

@Grimonja
Copy link

Grimonja commented Feb 4, 2024

Which version are you using?

v1.5.0

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • [x ] Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

Describe the issue

Trying to stream to mediamtx with OBS x264 tune: zerolatancy results in

unable to decode AVCC: NALU count (22) exceeds maximum allowed (21)

Describe how to replicate the issue

Streaming with following settings:
https://dl.dropboxusercontent.com/scl/fi//cmmd3mdoqb0x5ztesadd3/obs64_QdhsH1t9JS.png?rlkey=3k7ycz4fjvca3edxnk7t64dsu

Did you attach the server logs?

no

Did you attach a network dump?

no

@Grimonja
Copy link
Author

Grimonja commented Feb 4, 2024

After some further testing this only happens if streaming at resolutions higher than 1080p
So streaming at 1440p with tune: zerolatency will cause this

@isometriq
Copy link
Contributor

isometriq commented Mar 2, 2024

There are constants in bluenviron/mediacommon to set arbitrary restrictions. In that case the H264 slicing limits, resolution and bitrate I think.
https://github.com/bluenviron/mediacommon/blob/main/pkg/codecs/h264/h264.go

Is there a chance to allow configuration entries (mediamtx.yml) to override these?
Or are these constants for some reason (some spec or protocol limitation) ?

@aler9
Copy link
Member

aler9 commented Apr 26, 2024

Thanks for reporting the issue, this is fixed by bluenviron/mediacommon#120

Copy link
Contributor

github-actions bot commented Nov 1, 2024

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants