Questions tagged [vaapi]

The cross-platform VA API enables and provides access to hardware-accelerated video processing, using hardware graphics processing units (GPU) to accelerate video processing.

The VA API interface offers end-user software, such as VLC media player or GStreamer, access to available video acceleration hardware, such a PureVideo or Unified Video Decoder and make use of it.

VA API video decode/encode interface is platform and window system independent but is today primarily targeted at Direct Rendering Infrastructure (DRI) in X Window System on Unix-like operating systems (including GNU/Linux, FreeBSD, Solaris), and Android, however it can potentially also be used with direct framebuffer and graphics sub-systems for video output. Accelerated processing includes support for video decoding, video encoding, subpicture blending, and rendering.

The VA API specification was originally designed by Intel for its GMA (Graphics Media Accelerator) series of GPU hardware with the specific purpose of some day fully replacing the XvMC standard as the default Unix multi-platform equivalent of Microsoft Windows DirectX Video Acceleration (DxVA) API, but today the API is no longer limited to only GPUs nor to Intel specific hardware. Other hardware and manufacturers can freely use this open standard API for hardware accelerated video processing with their own hardware without paying a royalty fee.

Video Acceleration API (Wikipedia article)

60 questions
0
votes
1 answer

FFmpeg av_hwdevice_ctx_create returns ENOMEM

I am trying to perform h264 video encoding on a GPU using the ffmpeg's vaapi library. I have been following this example from ffmpeg Github repo. It fails for me here: AVBufferRef* vaapi_encoder; int err = av_hwdevice_ctx_create(&vaapi_encoder,…
lnogueir
  • 1,859
  • 2
  • 10
  • 21
0
votes
0 answers

Missing vaapih265enc for gstreamer-vaapi plugin using libgstvaapi.so

In my Ubuntu 20.04 machine I have installed gstreamer following the official docs at https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c Then I have installed the following: $ sudo apt install va-driver-all…
gbriones.gdl
  • 516
  • 7
  • 23
0
votes
0 answers

How to convert yuv V210 to h264 lossless with gst-launch-1.0 on Ubunut 18.04

Is it possible to create an H264 video with profile Hi444PP from YUV v210 encoded video using gst-launch?( I'm trying to use vaapih264enc )
0
votes
0 answers

Can I use vaapi within node.js by using ffmpeg-fluent?

My goal is to capture the screen from an electron app but I'd like to do that by using ffmpeg's h264_vaapi encoder. By using ffmpeg-fluent I have the option to set the codec but when I try to use the vaapi encoder it won't grab anything. By using…
DavidK
  • 111
  • 7
0
votes
1 answer

Why are there vaapi filters that exist in libavfilter but do not exist in my compiled version of ffmpeg?

I've compiled the most recent snapshot of ffmpeg with vaapi enabled $ ffmpeg -hwaccesls ffmpeg version N-98129-g0b182ff Copyright (c) 2000-2020 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609 configuration:…
John Allard
  • 3,564
  • 5
  • 23
  • 42
0
votes
1 answer

error: XDG_RUNTIME_DIR not set in the environment

I ran pipeline of GStreamer to get data from rtsp server. Then I got error: error: XDG_RUNTIME_DIR not set in the environment. I have add some config into visudo as: sudo visudo Defaults env_keep += "DISPLAY XAUTHORITY" Defaults env_keep +=…
Frederick Steven
  • 90
  • 1
  • 1
  • 11
0
votes
0 answers

FFMPEG converting HEVC to VP9 large file size

I'm trying to convert HEVC videos to VP9 so they can be played in a web browser while keeping file size roughly the same. I am struggling to create a video with similar quality/file size. Here's the stream info for one of the HEVC videos the video…
Tom B
  • 2,735
  • 2
  • 24
  • 30
0
votes
0 answers

FFmpeg INTEL QuickSync VAAPI FAILURE [unknown libva error]

I have problems with FFmpeg and Intel QuickSync. If I start my ffmpeg command from shell it works correctly. But if I want to start the same ffmpeg command from an cronjob I get Failure with quicksync My command is: /bin/ffmpeg -vsync passthrough…
0
votes
0 answers

Image is not being reconstructed at the receiver end using gstreamer vaapih264 decoding

I am sending an encoded H264 stream using gstreamer and decoding it on an Intel hardware. My sender is actually an application and its pipeline elements look something like this: caps2 = gst_caps_new_simple("video/x-raw", "format",…
0
votes
0 answers

ffmpeg vaapi and drawtext

Simple question like hell: Is it possible to use hardware accelerated transcoding with ffmpeg, Intel CPU and VAAPI using text overlay with drawtext? My current working command without drawtext is: ffmpeg -vaapi_device /dev/dri/card0 -hwaccel vaapi…
Viktor Joras
  • 721
  • 9
  • 16
0
votes
1 answer

VAAPI Compatibility issue with "Intel Corporation 3rd Gen Core processor Graphics Controller"

i am getting below error while running vainfo libva info: VA-API version 0.99.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found…
danishansari
  • 634
  • 5
  • 21
0
votes
1 answer

Error building libpthreads-stubs-0.3 on Windows

I am trying to compile libpthreads-stubs-0.3 (for vaapi) on a Windows machine which has MinGW and MSys environment. I have installed mingw32-pthreads-w32 dev package(version 2.9.1-1) in MinGW. Now when i try to compile libpthreads-stubs-0.3 (there…
Pawan
  • 1,614
  • 3
  • 18
  • 32
-1
votes
1 answer

Docker run cannot find existing file?

I am trying to run this command to test if the gpu is being recognized docker run --rm --device /dev/dri:/dev/dri jrottenberg/ffmpeg:5.1.2-vaapi2004 -hwaccel vaapi -hwaccel_output_format vaapi -i…
dexonter
  • 1
  • 1
-1
votes
1 answer

ffmpeg fbdev and pix_fmt cpu usage

I am new to video processing and recently started working on capturing camera content from rtsp h265 15fps 800x448 2000kbps and projecting it to /dev/fb0 device. I use ffmpeg 4.4.2 on ubuntu 22.04 with intel elkhartlake Gen11,connected to display…
1 2 3
4