Skip to content
Snippets Groups Projects
Commit 1a79b8f8 authored by Zhengxu's avatar Zhengxu Committed by Mark Thompson
Browse files

ffmpeg: Add an option "qsv_device" to choose proper node for QSV child device (vaapi or dxva2)


Reason: For some cases, such as 2 or more graphics cards existing, the
default command line may fail because ffmpeg does not open the correct
device node:
    ffmpeg -hwaccel qsv -c:v h264_qsv -i test.264 -c:v h264_qsv out.264
Let user choose the proper one by running like below:
    ffmpeg -hwaccel qsv -qsv_device /dev/dri/renderD128 -c:v h264_qsv \
-i test.264 -c:v h264_qsv out.264

Signed-off-by: default avatarChaoX A Liu <chaox.a.liu@gmail.com>
Signed-off-by: default avatarHuang, Zhengxu <zhengxu.maxwell@gmail.com>
Signed-off-by: default avatarAndrew, Zhang <huazh407@gmail.com>
Signed-off-by: default avatarMark Thompson <sw@jkqxz.net>
parent f55da220
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment