ffmpeg/fftools
Haihao Xiang 6803d8b440 ffmpeg_hw: make hardware selection for filters more user friendly
When a device is derived from a source device, there are at least 2
devices, and usually the derived device is the expected device, so let's
pick the last device if user doesn't specify the filter device with
filter_hw_device option

After applying this patch, the command below can work:

$> ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device
qsv=hw@va -f lavfi -i yuvtestsrc  -vf
format=nv12,hwupload=extra_hw_frames=64 -c:v h264_qsv -y out.h264

Reviewed-by: Soft Works <softworkz@hotmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2021-09-12 13:33:50 -03:00
..
cmdutils.c fftools/cmdutils: Use %c, not %s to write a single char 2021-09-05 11:55:01 +02:00
cmdutils.h fftools: Remove remnants of resample_opts 2021-09-03 16:08:19 +02:00
ffmpeg_filter.c ffmpeg: let AVFilterGraph parse the filter_threads option 2021-09-04 10:35:07 -03:00
ffmpeg_hw.c ffmpeg_hw: make hardware selection for filters more user friendly 2021-09-12 13:33:50 -03:00
ffmpeg_opt.c ffmpeg: let AVFilterGraph parse the filter_threads option 2021-09-04 10:35:07 -03:00
ffmpeg_videotoolbox.c ffmpeg_videotoolbox: skip memory copy if hwaccel_output_format match 2021-06-10 19:54:03 +08:00
ffmpeg.c Revert "ffmpeg: force 128k default audio bitrate if nothing is specified and there is no specific default" 2021-09-05 11:55:01 +02:00
ffmpeg.h ffmpeg: let AVFilterGraph parse the filter_threads option 2021-09-04 10:35:07 -03:00
ffplay.c fftools: Don't set default swscale flags in ffmpeg/ffprobe/ffplay 2021-08-05 22:23:49 +08:00
ffprobe.c avcodec: add a Film Grain codec property flag 2021-08-24 10:00:06 -03:00
Makefile qsvdec: add support for HW_DEVICE_CTX method 2021-08-11 13:45:36 -03:00