Opened 19 months ago

Last modified 18 months ago

#10060 new defect

accelerated decoding not working on Raspberry Pi with newer kernels

Reported by: Jeremy Herbison Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords: h264 v4l2m2m
Cc: erahhal Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
As of kernel 5.15.61+, HW accelerated decoding of H.264 via the h264_v4l2m2m option no longer returns frames (software decoding works fine) There is a patch at https://github.com/jc-kynesim/rpi-ffmpeg/commits/test/4.3.4/rpi_main but it doesn't target the latest versions, and the author appears to be AWOL after having promised to submit it upstream.

This issue was identified on the Frigate project, as running Frigate on a Raspberry Pi 4 is quite a common use case. I've confirmed the patched 4.3.4 version resolves the issue, but a proper fix requires this to be merged upstream.

https://github.com/blakeblackshear/frigate/issues/3780

Change History (6)

comment:1 by Carl Eugen Hoyos, 19 months ago

Component: undeterminedavcodec
Keywords: h264 added; H.264 Raspberry Pi Pi4 Docker Frigate Container hwaccel removed
Priority: importantnormal

comment:2 by Carl Eugen Hoyos, 19 months ago

Keywords: v4l2m2m added

comment:3 by HackneyB, 19 months ago

Also experiencing this issue.

comment:4 by erahhal, 19 months ago

Cc: erahhal added

comment:5 by gollam, 18 months ago

I am also experiencing this issue.

comment:6 by Mattijs, 18 months ago

Just updated the kernel to 5.15.76-v8+ and also experience this with ffmpeg 4.3.5 on a Raspberry PI 4

Note: See TracTickets for help on using tickets.