Open Rom888 opened 3 years ago
Sorry, VAAPI is not supported. Supporting the Raspberry Pi decoder hardware was easy because it behaves like a normal software codec that renders an RGB image into RAM. But with VAAPI we have to use a different API in FFmpeg to get an RGB image and the most efficient way to render the image would be to skip that conversion step and instead use a special libva function to let the GPU copy the image into an OpenGL texture.
@s09bQ5 thanks for reply, Do you think there is any other way to switch on hardware decoding for Intel Graphics Controllers with USDX on Ubuntu 20.04 focal?
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
The only way is to sit down, make oneself familiar with the FFmpeg API for hardware acceleration, and change the source code of USDX to use it.
I tried to enable VAAPI (hardware-accelerated codec) on my ubuntu 20.04 focal because MPV can use it on my PC. This was added to config.ini as @cRaZy-bisCuiT suggested:
I think I need to build ffmpeg with --enable-vaapi option. Where should I put it before building USDX?
At the moment I have this error in the Error.log:
@andy5995