[FFmpeg-user] Cant find proper code for using complex filter and overlay with VAAPI

KoreanFanOfficial koreanfanofficial at gmail.com
Fri Jun 5 22:19:40 EEST 2020


Hello. I got working code:
---->ffmpeg -y -f x11grab -video_size 1920x1080 -framerate 30 -i :0.0+0,0 \
-f pulse -ac 2 -i default -i logo.png -i screenlogo.png -filter_complex \
"[0:v]scale=1280:-1,setpts=PTS-STARTPTS[bg]; \
[2:v]scale=162:-1,setpts=PTS-STARTPTS[bg2]; \
[3:v]scale=120:-1,setpts=PTS-STARTPTS[bg3]; \
[bg][bg2]overlay=0:H-h[bg4]; \
[bg4][bg3]overlay=W-w:0[v]" \
-map "[v]" -map 1:a -c:v libx264 -g 60 -preset ultrafast \
-b:v 3M -maxrate 3M -pix_fmt yuv420p -c:a aac -b:a 128k -ar 44100 \
-f flv record_libx264.flv<----
But i need VAAPI for doing the same. I try many variation of code, search
solution in the internet, try different linux os and ffmpeg versions, but
no success. Always i got error:
 ---->Impossible to convert between the formats supported by the filter
'Parsed_format_' and the filter 'auto_scaler_' Error reinitializing
filters! Failed to inject frame into filter network: Function not
implemented<---- I have rx560 video card.
---->ffmpeg -hwaccels
ffmpeg version n4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.1.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp
--enable-gnutls --enable-gpl --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug
--enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb
--enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora
--enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec
--enable-nvenc --enable-omx --enable-shared --enable-version3
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Hardware acceleration methods:
vdpau
cuda
vaapi
qsv
drm
qsv
cuvid<----

---->vainfo
vainfo: VA-API version: 1.7 (libva 2.7.1)
vainfo: Driver version: Mesa Gallium driver 20.0.7 for Radeon RX 560 Series
(POLARIS11, DRM 3.36.0, 5.6.15-1-MANJARO, LLVM 10.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc<----
How i can fix this problem?


More information about the ffmpeg-user mailing list