Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4845

Camera board • Re: HW Encoder V4l2 add support for intra refresh

$
0
0
I think that after
1) declaring the required structs / enums (copy paste, slight changes due to different apis)
https://github.com/OpenHD/linux/blob/29 ... rs.h#L1002
and
2) copy paste the Rpivid code (same, slight changes due to different apis)

I am successfully getting and setting the mmal_parameter_intra_refresh struct.

Still haven't been able to work out the nifty bits regarding if it is actually doing what it should (do you need to define mb rows or similar)

If someone can help me work those things out, I am happy to clean things up and create a pull.
The option I am after is 'only' being able to set (any type of intra refresh and the corresponding nifty bits) such that the following can be achieved:
Set V4L2_CID_MPEG_VIDEO_INTRA_REFRESH_PERIOD to an arbitrary value (for example 5)
such that each frame has 1/5 intra stuff and 4/5 non intra stuff
(Usefully for live streaming)
Where the intra stuff lies (lines, random, ... ) I don't really care as long as the data is refreshed partialy each frame and i can configure how many frames it should take until the full refresh is done.

I think that would also fit into the V4l2 definitions.

Statistics: Posted by Consti10^100 — Thu Jan 25, 2024 12:03 pm



Viewing all articles
Browse latest Browse all 4845

Trending Articles