Quantcast
Viewing all articles
Browse latest Browse all 4873

Graphics programming • Re: Decoding H265 on Raspberry Pi 5 via V4L2

The HEVC decoder follows the stateless decoder API - https://www.kernel.org/doc/html/latest/ ... coder.html

Yes you need to have decoded the bitstream headers and provide the relevant controls via the media request API.
Thank you, the stateless decoder API was what I needed.

I was then stuck for a few days with a dequeued Capture Buffer with the flag V4L2_BUF_FLAG_ERROR=1, but no other feedback. Using trial and error to interpret the documentation of the V4L2 hevc control parameters, I managed to get frames decoding. I was so happy, I did a little dance!
Slightly more struggle after that to properly interpret the SAND 128 Column pixel format from the docs, but not too much trouble.

And now I've integrated Raspberry Pi 5's 4K 60 H265 decoding into my project, very pleased! Will mark as solved.

Statistics: Posted by jaween — Thu Jan 09, 2025 2:34 am



Viewing all articles
Browse latest Browse all 4873

Trending Articles