Repository navigation
media: bcm2835-codec: Limit video callbacks - #4646
Merged
pelwell merged 1 commit intoOct 22, 2021
Merged
Conversation
Limit the number of allowed video callbacks. This helps with limiting the size of the coded input FIFO which in turn helps to control latency. Choose -5 as the magic number as it translates to DPB+5 buffers which has been proven to be a good number in the past. Ideally coded buffers would not be returned to the user until they had been decoded into the DPB or been discarded as bad, but that grade of control is unavailable to us. Signed-off-by: John Cox <jc@kynesim.co.uk>
Contributor
Author
|
The helps with (but on its own does not solve) some of my issues with ffmpeg on the command line + hwaccel. As stated above I picked -5 as its a number Dom has used in the past that seemed to work. Ideally -1 or -2 would be better but those have stalled for Dom in the past so don't do that. |
Collaborator
|
I used this setting for kodi with mmal acceleration as otherwise the latency between enqueued and dequeued buffers can grow to several seconds and media players generally don't expect that behaviour. |
Contributor
|
I see no issues with that, although it'd be useful to check it against GStreamer. Give me a mo to do that. |
Contributor
|
All good in GStreamer (1.18.4 anyway), so I'm good with it. |
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Oct 25, 2021
kernel: ARM: dts: vc4-kms-v3d: Always disable firmware HDMI See: raspberrypi/linux#4652 kernel: media: bcm2835-codec: Limit video callbacks See: raspberrypi/linux#4646 kernel: staging/bcm2835-camera: Add support for H264_MIN_QP, H264_MAX_QP, MPEG_VIDEO_FORCE_KEY_FRAME See: raspberrypi/linux#4647 kernel: bcm2835-isp: Colorspace fixes See: raspberrypi/linux#4643 kernel: Unicam Media Controller support See: raspberrypi/linux#4641 kernel: config: Enable FSFS_FS_SECURITY See: raspberrypi/linux#4637 kernel: gpio: bcm-virt: Fix the get() method See: raspberrypi/linux#4638 firmware: userland: Reduce debug_sym error messages See: https://forums.raspberrypi.com/viewtopic.php?f=98&t=322238 firmware: arm_dt: Increase maximum line length to 98 See: raspberrypi/linux#4638
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Oct 25, 2021
kernel: ARM: dts: vc4-kms-v3d: Always disable firmware HDMI See: raspberrypi/linux#4652 kernel: media: bcm2835-codec: Limit video callbacks See: raspberrypi/linux#4646 kernel: staging/bcm2835-camera: Add support for H264_MIN_QP, H264_MAX_QP, MPEG_VIDEO_FORCE_KEY_FRAME See: raspberrypi/linux#4647 kernel: bcm2835-isp: Colorspace fixes See: raspberrypi/linux#4643 kernel: Unicam Media Controller support See: raspberrypi/linux#4641 kernel: config: Enable FSFS_FS_SECURITY See: raspberrypi/linux#4637 kernel: gpio: bcm-virt: Fix the get() method See: raspberrypi/linux#4638 firmware: userland: Reduce debug_sym error messages See: https://forums.raspberrypi.com/viewtopic.php?f=98&t=322238 firmware: arm_dt: Increase maximum line length to 98 See: raspberrypi/linux#4638
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.
Limit the number of allowed video callbacks. This helps with limiting
the size of the coded input FIFO which in turn helps to control latency.
Choose -5 as the magic number as it translates to DPB+5 buffers which
has been proven to be a good number in the past.
Ideally coded buffers would not be returned to the user until they
had been decoded into the DPB or been discarded as bad, but that grade
of control is unavailable to us.
Signed-off-by: John Cox jc@kynesim.co.uk