diff options
author | Zhengxu <zhengxu.maxwell@gmail.com> | 2017-01-05 14:48:06 +0800 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-01-11 20:21:09 +0000 |
commit | 1a79b8f8d2b5d26c60c237d6e585873238e46914 (patch) | |
tree | 59a1daa4903c2684326db6f0f226bd232fdad44c /ffmpeg.h | |
parent | f55da2200dbf98311969e0f345edbc82177d4836 (diff) |
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: ChaoX A Liu <chaox.a.liu@gmail.com>
Signed-off-by: Huang, Zhengxu <zhengxu.maxwell@gmail.com>
Signed-off-by: Andrew, Zhang <huazh407@gmail.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'ffmpeg.h')
-rw-r--r-- | ffmpeg.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -602,6 +602,9 @@ extern const OptionDef options[]; extern const HWAccel hwaccels[]; extern int hwaccel_lax_profile_check; extern AVBufferRef *hw_device_ctx; +#if CONFIG_QSV +extern char *qsv_device; +#endif void term_init(void); |