Bug 2188741

Summary: rk3399 unable to see a profile with vainfo
Product: [Fedora] Fedora Reporter: jessegodfroy
Component: libva-v4l2-requestAssignee: Nicolas Chauvet (kwizart) <kwizart>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: dominik, kwizart
Target Milestone: ---   
Target Release: ---   
Hardware: arm   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-04 13:48:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jessegodfroy 2023-04-21 23:15:24 UTC
I have a pinebook pro with an rk3399.  I have set environment variables
LIBVA_V4L2_REQUEST_VIDEO_PATH=/dev/v4l/by-path/platform-ff660000.video-codec-video-index0
LIBVA_DRIVER_NAME=v4l2_request

when I run vainfo there are no acceleration profiles displayed.  

I have configured manjaro with these same environment variables and I consistently see h.264 accleration profiles for the rkvdec of the rk3399. 

I'm not sure if this is v4l2-request, ffmpeg, or a kernel issue in fedora. 


Reproducible: Always

Steps to Reproduce:
1. set environment variables
2. run vainfo
3. see no profiles exist
Actual Results:  
no acceleration profiles

Expected Results:  
able to see h.264 acceleration profiles for rkvdec

Comment 1 Nicolas Chauvet (kwizart) 2023-04-22 08:26:03 UTC
libva-v4l2-request is unmaintained upstream so unless someone is taking over the maintenance, this package will likely be dropped.

It used to work before all v4l2-request codec api was merged upstream and was not adapted. So earlier kernel worked fine.
It's still possible that majaro uses downstream patches, I will take a look. But instead, you should use the native v4l2-request API when possible (mpv works, but unlikely for most browsers).

Comment 2 jessegodfroy 2023-04-22 12:23:22 UTC
Thanks.  I dug into this a bit further and the manjaro pkgbuild also has errors on an up-to-date install. So, while I get profiles on vainfo, it probably doesn't work.

Comment 3 Nicolas Chauvet (kwizart) 2023-09-04 13:48:07 UTC
To me, this is the same issue as 2171594 (FTBFS) as this package doesn't work with upstreamed in-kernel support yet...

*** This bug has been marked as a duplicate of bug 2171594 ***