Add vaapi support
At a basic level, adding support for additional environment variables to be specified would be helpful. For example, I had the following added to my copy of the prime-run
script:
GST_PLUGIN_FEATURE_RANK="vaapijpegdec:PRIMARY+2,vaapimpeg2dec:PRIMARY+2,vaapih264dec:PRIMARY+2,vaapivc1dec:PRIMARY+2,vaapivp8dec:PRIMARY+2,vaapivp9dec:PRIMARY+2,vaapih265dec:PRIMARY+2,vaapioverlay:PRIMARY+2,vaapipostproc:PRIMARY+2,vaapidecodebin:PRIMARY+2,vaapisink:PRIMARY+2,vaapimpeg2enc:PRIMARY+2,vaapih264enc:PRIMARY+2,vaapijpegenc:PRIMARY+2,vaapivp8enc:PRIMARY+2,vaapih265enc:PRIMARY+2,nvmpegvideodec:MAX,nvmpeg2videodec:MAX,nvmpeg4videodec:MAX,nvh264sldec:MAX,nvh264dec:MAX,nvjpegdec:MAX,nvh265sldec:MAX,nvh265dec:MAX,nvvp8dec:MAX,nvvp9dec:MAX,nvh264enc:MAX,nvh265enc:MAX"
LIBVA_DRIVER_NAME="nvidia"
VDPAU_DRIVER="nvidia"
This allows me to configure hardware {en,de}coding to utilize the NVIDIA GPU rather than the Intel iGPU whenever I ran a program on it.