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

[FEATURE] Low Latency transcoding pipeline options for RTMP #822

Open
mpisat opened this issue Dec 11, 2024 · 0 comments
Open

[FEATURE] Low Latency transcoding pipeline options for RTMP #822

mpisat opened this issue Dec 11, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mpisat
Copy link

mpisat commented Dec 11, 2024

Is your feature request related to a problem? Please describe.
When I publish track-composite to RTMP, there is this extra 1 second (or more) latency that can be avoided.

Describe the solution you'd like
Optimize buffers in gstreamer pipeline? But most importantly, -tune zerolatency preset for x264enc which makes all the difference

Describe alternatives you've considered
You could leave everything as is (HLS, mp4 recording etc) and just modify live video (RTMP, SRT maybe?)

Additional context
-tune zerolatency ensures low latency is preferred over encoding quality for x264, and vaapi (QSV) and nvenc also has similar options.

main...mpisat:egress:main
I reduced buffers agressively and added VAAPI support but I'm not planning to send a PR with this code as it is more of a draft and not handling these options exclusively for RTMP (and applies to all, which is not what I suggested above)

@mpisat mpisat added enhancement New feature or request help wanted Extra attention is needed labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant