[FFmpeg-devel] [RFC 0/6] Add V4L2 request API hwaccels
jonas at kwiboo.se
Tue Apr 9 00:57:52 EEST 2019
On 2019-04-08 22:41, Mark Thompson wrote:
> On 08/04/2019 21:09, Jonas Karlman wrote:
>> This is a request for comments on a new hwaccel using the V4L2 request API
>> that was created in collaboration with Jernej Skrabec.
>> The V4L2 ctrls needed for statless decoding is not yet stable and reside in
>> private kernel headers. This patchset adds a copy of the kernel private headers
>> needed for the hwaccel to compile.
> When is the interface likely to become stable?
The V4L2 request API should already be considered stable and is part of linux uapi since v4.20.
Hwaccels make use of a function v4l2_timeval_to_ns that was added in v5.0, configure should check for this function.
The format ctrls needed for stateless decoding is however not stable and only MPEG-2 ctrls has been added
in a non-public kernel header at , it will hopefully be promoted to linux/videodev2.h uapi header in 2-4 linux versions.
H264 and HEVC ctrls is currently in review on linux-media mailing list and is even further away.
> I don't think including kernel headers here is a good idea. Please just check for appropriate headers - if the user is capable of building this then they can also install the headers for their kernel.
Sorry for not being more clear in my cover letter, the headers is not intended to be added to ffmpeg and was only added to patchset in order to be able to build working hwaccels.
The format ctrls has intentionally been put in non-public kernel headers that wont be installed into userspace since the ctrls currently is considered unstable.
My hope is to get early feedback on current code and to re-submit hwaccels once format ctrls have been promoted to public kernel uapi headers.
> If I wanted to buy a single Allwinner SBC to test this on, what should I get?
The Pine H64 "Model B" at  could be a good candidate.
The MPEG-2 hwaccel should also works on Rockchip RK3399 SBCs with rockchip vpu patchset at .
Support for Rockchip RK3288 SBCs requires additional patches at  and .
> - Mark
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel