Skip to content

HEVC decoder updates #6990

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

Draft
wants to merge 9 commits into
base: rpi-6.12.y
Choose a base branch
from
Draft

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Aug 6, 2025

This brings rpi-6.12.y into line with the next version of the patchset for upstream, and allows for testing the GStreamer MR at https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9247

We may be able to get away with just "Revert "media: hevc_dec: Drop the new image formats until we have Mes…" to get GStreamer working, and I might be tempted to do that rather than this slightly more invasive change. I'll talk to John next week.

6by9 and others added 9 commits August 6, 2025 17:55
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Upstream will take the multi-planar SAND format, but add back
in the downstream single planar variant for backwards compatibility

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
To avoid user complaints that /dev/video0 isn't their USB
webcam, add downstream patch that allows setting the preferred
video device number.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Decoder does not need OUTPUT or CAPTURE buffers mapped into memory. Set
the queue dma_attrs to indicate this.

Signed-off-by: John Cox <jc@kynesim.co.uk>
@hcfman
Copy link

hcfman commented Aug 11, 2025

We may be able to get away with just "Revert "media: hevc_dec: Drop the new image formats until we have Mes…" to get GStreamer working, and I might be tempted to do that rather than this slightly more invasive change. I'll talk to John next week.

I tested a checkout that was just this one commit reverted. The result was an images that were solid blocks of green at the end of a gstreamer pipeline.

And I tested this full pull request and at 1920/15 it pulled 175 frames then crashed. It was also able pull a couple of correct 4K frames.

At one stage I saw an error about calling a certain function, with I think a null, was an indication of a possible bug.

but it certainly translated several frames correctly through to the end of a gstreamer pipeline. So it might just be a some resources handling and edge cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants