AnsweredAssumed Answered

Using FFMPEG with Radeon GPU

Question asked by cbitterfield on Feb 13, 2020

Does anyone have some examples of using and or configuring FFMPEG with a Radeon GPU and the ability to demonstrate it is working?

 

I am currently running Ubuntu 18.04 LTS with FFMPEG (Latest)   

ffmpeg version N-96728-ge007059 Copyright (c) 2000-2020 the FFmpeg developers

 

I have not been able to demonstrate a hardware acceleration. 

 

ffmpeg -vaapi_device /dev/dri/renderD128 -i '2007-01-29 10_41_45.mov' -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 5M "/data/test.mp4"

 

This is a headless unit:

vainfo
error: can't connect to X server!
error: failed to initialize display

 

[AVHWDeviceContext @ 0x561e9e7c3b80] libva: dlopen of /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so failed: /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so: undefined symbol: amdgpu_cs_query_reset_state2
[AVHWDeviceContext @ 0x561e9e7c3b80] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error
Error parsing global options: Input/output error

Outcomes