Encoding (H264) gst-launch-1.0 videotestsrc num-buffers=10000 ! x264enc ! fakesink Note: With VA-API decoding enabled, Intel Graphics GPU is busy, while CPU is less loaded than with avdec_h264. Now, decode video with vaapih264dec: gst-launch-1.0 filesrc location=jumanji.mp4 ! qtdemux ! h264parse ! \
Note: Intel Graphics Card remains in idle state (~0%) while CPU is almost loaded with work (70%). of default=noprint_wrappers=1 jumanji.mp4įirst, decode video with avdec_h264 (CPU-based plugin): gst-launch-1.0 filesrc location=jumanji.mp4 ! qtdemux \ show_entries stream=nb_frames,width,height \ Video’s resolution and frames count: ffprobe -v error -select_streams v:0 \ CPU Intel(R) Core(TM) i7-7700HQ 2.80GHzįor performance evaluation we are going to use Jumanji: The Next Level Final Trailer (2019) (check out “ Nvidia Gstreamer Plugins.VAAPI-accelerated pipelines Hardware specifications
In addition, there is a prepared docker container that allows you to build everything as discussed previously. Note: Here is a brief explanation of intel-gpu-top output. To check Intel Graphics card load use the next command: sudo intel_gpu_top Sudo make install Intel Graphics Card monitoring tool autogen.sh -disable-gtk-doc -prefix=/usr Git checkout $(gst-launch-1.0 -version | \ Otherwise, you can build it by yourself using the following commands. The safest way is to install Gstreamer’s VA-API plugin as official Ubuntu package: apt install gstreamer1.0-vaapi Unset LIBVA_DRIVERS_PATH Install gstreamer-vaapi To change this just edit the environmental variables export LIBVA_DRIVER_NAME=i965Įxport LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri Pay attention to requested driver ‘ i965‘ and driver location /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so. Note: Check that under line there is a list of supported Video Accelerated operations. Note: install vainfo utility with apt install vainfo With vainfo (diagnostic tool for VA-API) check that everything is loaded correctly without any warning or mistakes.
In order to list available video drivers type next: ls /usr/lib/x86_64-linux-gnu/dri | grep drv_video.so
But, to update driver execute next commands: add-apt-repository ppa:oibaf/graphics-drivers # card0 card1 renderD128 renderD129 Install Driversīy default Intel Graphics driver is already installed on Ubuntu as xserver-xorg-video-intel. In addition, you can list available devices in the following location: ls /dev/dri Note: install lspci with apt install pciutils Note: install lshw with apt-get install lshwĪlso you can use lspci utility to check same device and drivers. Make sure that VGA compatible device with Intel Drivers present. Use lshw utility to fetch important hardware information about Intel Graphics Card.
To check if VA-API plugins are already installed, use the following command: gst-inspect-1.0 vaapi RequirementsĬheck the official gstreamer requirements page for VA-API support. Note: In gst-video-analytics framework Intel Media SDK works slower (see: Common Issues Section) Guide Environment Setup In the following guide we are going to provide steps in order to install drivers, requirements and gstreamer package for VA-API support. So, if you are restricted to Intel Hardware, then Video Acceleration API is a great choice. To use framework the target platform must have Intel CPU and Intel Graphics Card. For example, gst-video-analytics framework (check out: “ Deep Learning Video Analytics Frameworks“) contains gstreamer plugins for video-analytics with OpenVino.
VAAPI Gstreamer plugins is an alternative to NVIDIA’s ones (recall: “ How to install NVIDIA Gstreamer Plugins on Ubuntu“) in order to enable hardware acceleration for video processing.