-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get -hwaccel qsv command to work. #322
Comments
Will note from intel's drivers documentation. On 22.04 I installed these parts:
I have not had any luck installing this on 24.04. Also clinfo does not work. Would normally work like:
On 24.04, it does not output anything. |
Hi @SKAntoniou , could you have a quick check by using kernel 6.9 https://kernel.ubuntu.com/mainline/v6.9/? This maybe a kernel issue: |
Updated to kernel 6.9.1, very slightly better results. So Command one doesn't stall. It has more error messages, but better than stalling.
Result now shortened:
Command two just has more error messages added to the original ones.
Results shortened:
|
Hi @SKAntoniou ,You can compile and re-install libmfx(https://github.com/intel/vpl-gpu-rt) to intel-onevpl-24.2.3, which works for me with kernel 6.9.0. |
@feiwan1 Hi, I tried compiling libmfx on Ubuntu 24.04 with a 6.9.0 kernel using the instructions on your link, but it didn't work. Is there any chance you could give me more information on how to compile it specifically to intel-onevpl-24.2.3? I couldn't figure that bit out. Thanks. |
Hi @SKAntoniou, my steps are: Then run a transcode cmdline with My log is in attachment. |
I ran into the same error on Ubuntu 24.04. I found that I didn't need the 6.9 kernel. I got av1_qsv to work by using 6.8, installing
It would be nice if |
libmfx-gen1.2 is the VPL runtime package in Ubuntu 24.04. $ dpkg -l | grep libmfx-gen1.2 |
Hey, thanks for all the help on this issue. Sadly, I still can't work out what is happening. First off, I have been using 24.04 server to test these things but have just now installed a 24.04 desktop VM to see if that was the problem but they are both come with the same errors. Second: Both -init_hw_device vaapi=va:/dev/dri/renderD128 & -hwaccel qsv methods do not work for me on 24.04. The vaapi method definitely works on 22.04 so very weird that is also broken on 24.04. Various errors depending on if I use the libmfx-gen1.2 or compile vpl-gpu-rt myself. Tried both with updating the kernel but they give the same result. libmfx-gen1.2 will give same errors as stated earlier. vpl-gpu-rt compile errors are below: Compile myself using commands provided in this thread. The failed to set value at the end comes from "-qsv_device ${DEVICE:-/dev/dri/renderD128}" but if that is ommitted, the error will still occur but just without the end line.
One note is that during the first make command, there are a bunch of warnings or errors that are stated in terminal. I don't know C++ but they do reference a hevc header file which is what my test file I am using is initally encoded as. I will list them all below just incase that helps. This doesn't stop the compiler and am still able to make install after so couldn't tell how serious these errors are.
I don't really know what to try and to be honest don't understand how this is not working when you have been able to get it working on your end. For future reference, will probably only be using ubuntu server version as it is easier to manage and test on. |
Seems you mixed vaapi & qsv hardware acceleration. Please use -init_hw_device qsv[=:[,key=value,...]] to create qsv device when using -hwaccel qsv. |
Please run |
This should not be the cause of your error. |
Sorry, I wrote that poorly. I ran the commands correctly, but I was just stating the methods using their options in ffmpeg to be specific. To be clear, I ran them separately, but both methods do not work for me on 24.04.
The vainfo results look mostly correct but don't have the vpl-inspect command. By any chance, do you know what package that is included in or how to manually install it? The following part is the vainfo result so you can verify that the output is correct (removed the rest of the profiles to keep it short). The start shows an error but in intel's documentation on their site, they run
|
You may ignore the error message at the beginning.
vainfo was built against libva 2.12.0 which supports VA-API 1.12, however your current VA-API version is 1.20. So I presumed your VA-API based applications (including FFmpeg) were built against libva 2.12.0, then you upgraded libva to libva 2.20.0. Could you rebuild vainfo, FFmpeg etc against libva 2.20.0 ?
Could you provide your command line using vaapi and the error message ? |
vpl-inspect output:
vainfo was the same
gives these errors
If I add -b:v 1M or any bitrate option, the error stays the same. |
So there isn't any VPL implementation in your environment. Could you check whether you have installed the corresponding packages ?
You created vaapi device, but used av1_qsv encoder. Could you use av1_vaapi encoder instead ?
|
Hey, so I am trying to use ffmpeg with QSV on 24.04 Ubuntu LTS, 6.8 Kernel. I am going to run through all the errors and cases I encountered. Most of this is just a ffmpeg log, but I thought it would be best to include it all in case I missed anything. Let me know if you need anything.
The ffmpeg commands that work:
This will work without issue. I just want to see if the QSV method will increase performance.
The ffmpeg command that doesn't work:
I want to test if this increases performance, but I can't get this to work. This is what is referenced in the Intel Media Delivery optimisation documentation.
Standard Media Driver Package packages installed:
These errors are the same if intel-media-va-driver-non-free is installed instead.
Command ran - Most basic of command - If I add just -b:v, it remains the same issue:
Result:
This then stalls, and nothing happens.
If I do what it says midway through:
Same errors at the end.
This next part worked on 22.04 HWE with ffmpeg 6.1 package installed (with vaapi option used instead of qsv). This breaks on 24.04 for some reason and gives this error so this may be a 24.04 error.
Command Used - If I try to replicate https://github.com/intel/media-delivery/blob/master/doc/quality.rst#av1 commands then it breaks earlier.
Results:
The text was updated successfully, but these errors were encountered: