-
Notifications
You must be signed in to change notification settings - Fork 5.2k
media: bcm2835-codec: Increase video callbacks limit #4658
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
Conversation
The previous commit limited callbacks to DPB+5. This has been found insufficient for kodi and ffmpeg decoding h.264. Increase to DPB+6 Fixes: f814bfc Signed-off-by: Dom Cobley <[email protected]>
See discussion here It is possibly 7 may be needed, but lets wait and see. Ping @jc-kynesim @6by9 |
@popcornmix I'm getting the same issue as before when I apply https://patch-diff.githubusercontent.com/raw/raspberrypi/linux/pull/4658.patch to Top of tree rpi-5.15.y. Trying a rebuild with |
No luck even with it set to 7. FYI vc-log gives me this:
Removing the |
@satmandu what does vcgencmd version report? |
Ah I have the default ubuntu firmware...
|
With the newest firmware...
I get this from vc-log:
And still the same breakage with no video to display.
|
@6by9 does a colourspace change cause a format change event? If so I'm going to guess that that is a ffmpeg without proper support for that. |
Yes it does as it is part of the V4L2 format. |
If I need to be trying this with an ffmpeg binary built from raspi-os 64-bit that's fine too... If someone can point me to the dsc file so I can rebuild that for ubuntu... |
I'm not sure this will even have been fixed in Raspberry Pi OS, but I haven't seen issues. https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/v4l2_context.c#L195 does not follow the specification given in https://www.kernel.org/doc/html/latest/userspace-api/media/v4l/dev-decoder.html#dynamic-resolution-change.
If neither of those is done (actually the codec doesn't support V4L2_DEC_CMD_START at present), then decode will be stopped waiting for it to happen. |
No longer needed as "media: bcm2835-codec: Limit video callbacks" has been reverted. |
The previous commit limited callbacks to DPB+5.
This has been found insufficient for kodi and ffmpeg
decoding h.264. Increase to DPB+6
Fixes: f814bfc
Signed-off-by: Dom Cobley [email protected]