GstCameraPlugin: sim-friendly H.264 streaming defaults for better FPS - #173
Open
vdoom wants to merge 1 commit into
Open
GstCameraPlugin: sim-friendly H.264 streaming defaults for better FPS#173vdoom wants to merge 1 commit into
vdoom wants to merge 1 commit into
Conversation
vdoom
commented
Jul 20, 2026
- rtph264pay config-interval=1: repeat SPS/PPS every second so receivers can join mid-stream (previously a decoder attaching after stream start never got the headers and could not decode).
- x264enc speed-preset ultrafast (was medium) with bitrate 2500 kbps: medium ate most of a CPU core at 720p on embedded boards, dragging the lockstep sim real-time factor (and thus the effective camera FPS) down.
- appsrc caps framerate 5 -> 30: downstream elements pace/buffer by the declared rate, so it must not be below the camera sensor update rate.
- rtph264pay config-interval=1: repeat SPS/PPS every second so receivers can join mid-stream (previously a decoder attaching after stream start never got the headers and could not decode). - x264enc speed-preset ultrafast (was medium) with bitrate 2500 kbps: medium ate most of a CPU core at 720p on embedded boards, dragging the lockstep sim real-time factor (and thus the effective camera FPS) down. - appsrc caps framerate 5 -> 30: downstream elements pace/buffer by the declared rate, so it must not be below the camera sensor update rate. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JPFsqm5WXmeC8ruMZauQL7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.