• U. Artie Eoff's avatar
    lavfi: add hwdevice flag to hwupload/hwmap · 9bf1848a
    U. Artie Eoff authored
    This fixes a regression introduced by:
    
      commit 3f63685c
       and
      commit 632c3499
    
    ...where command-lines like:
    
    ffmpeg -v verbose -hwaccel qsv \
      -init_hw_device qsv=qsv,child_device=/dev/dri/renderD128 \
      -hwaccel_output_format qsv -f rawvideo -pix_fmt yuv420p \
      -s:v 352x288 -r:v 25 -i input.yuv \
      -vf 'format=nv12,hwupload=extra_hw_frames=120' \
      -an -c:v h264_qsv -y output.h264
    
    ffmpeg -v verbose -hwaccel qsv \
      -init_hw_device qsv=qsv,child_device=/dev/dri/renderD128 \
      -hwaccel_output_format qsv -f rawvideo -pix_fmt nv12 \
      -s:v 352x288 -r:v 25 -i input.yuv \
      -vf 'format=nv12|qsv,hwupload=extra_hw_frames=16,vpp_qsv=procamp=1:saturation=1.0,hwdownload,format=nv12' \
      -pix_fmt nv12 -f rawvideo -fps_mode passthrough -an -y output.yuv
    
    ...produced errors like:
    
    [hwupload @ 0x55b6171d0dc0] A hardware device reference is required to upload frames to.
    [Parsed_hwupload_1 @ 0x55b6172053c0] Query format failed for 'Parsed_hwupload_1': Invalid argument
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Signed-off-by: 's avatarU. Artie Eoff <ullysses.a.eoff@intel.com>
    Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
    9bf1848a
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...