v4l2: Support for Raspberry Pi4 H265/HEVC Decoding
Hello,
I am running into issues trying to get the recent GStreamer H265/HEVC Stateless decoder to work on my Raspberry Pi4.
Using the latest rpi-6.0.y
branch and this repo, I am to compile and install all binaries to my Pi4.
However, when the v4l2slh265dec plugin is registered an error msg appears:
0:00:01.767247029 2492 0x557ef2de00 INFO v4l2codecs plugin.c:59:register_video_decoder:<v4l2decoder0> Registering rpivid-proc as H265 Decoder
0:00:01.767695641 2492 0x557ef2de00 WARN v4l2codecs-h265dec gstv4l2codech265dec.c:1663:gst_v4l2_codec_h265_dec_register: Not registering H265 decoder since it produces no supported format
The Pi4's H265/HEVC decoder seems to be using these formats:
v4l2-ctl -d 19 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar
[0]: 'NC12' (Y/CbCr 4:2:0 (128b cols))
[1]: 'NC30' (10-bit Y/CbCr 4:2:0 (128b cols))
[0]: V4L2_PIX_FMT_NV12_COL128 (8-bit)
[1]: V4L2_PIX_FMT_NV12_10_COL128 (10-bit)
Hopefully this is just a simple patch and wiring up the respective formats for GStreamer? Please help.
The code for the Pi4's HW H264/HEVC decoder is here.