Opened 6 years ago

Last modified 5 years ago

#7808 new defect

overlay_qsv fails to create qsvvpp

Reported by: robijn Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: qsv
Cc: joris@robijn.net Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

"C:\Program Files\ffmpeg-4.1.1-win64-static\bin\ffmpeg.exe" -hwaccel qsv -init_hw_device qsv=hw -filter_hw_device hw -i "video1.ts" -i "watermark.png" -filter_complex "[0:v] format=nv12, hwupload=extra_hw_frames=80 [video]; [1:v] format=nv12, hwupload=extra_hw_frames=80 [watermark]; [video][watermark] overlay_qsv" -c:v h264_qsv -c:a aac test.mp4

results in:
Stream mapping:

Stream #0:0 (h264) -> format (graph 0)
Stream #1:0 (png) -> format (graph 0)
overlay_qsv (graph 0) -> Stream #0:0 (h264_qsv)
Stream #0:1 -> #0:1 (aac (native) -> aac (native))

Press [q] to stop, ? for help
[Parsed_overlay_qsv_4 @ 00000000061aa380] Failed to create a qsvvpp, ret = -15.
[Parsed_overlay_qsv_4 @ 00000000061aa380] Failed to configure output pad on Parsed_overlay_qsv_4
Error reinitializing filters!
Failed to inject frame into filter network: Error number -15 occurred
Error while processing the decoded data for stream #1:0
[aac @ 00000000063abb80] Qavg: 324.098
[aac @ 00000000063abb80] 2 frames left in the queue on closing
Conversion failed!

4.1.1 Zeranoe build
Windows 10 64-bit, i7-4770. I do manage do encode with QSV on this machine.

I have no idea what a qsvvpp is, or how I can make sure it can create an qsvvpp.
In general I have to say all hw accel stuff is rather complicated. Every codec does things differently, and ffmpeg cannot automatically arrange the hardware upload/download for the user.

Change History (4)

comment:1 by Carl Eugen Hoyos, 6 years ago

Keywords: qsv added; overlay_qsv removed
Version: 4.1unspecified

Please test current FFmpeg git head and provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

comment:2 by robijn, 6 years ago

Cc: joris@robijn.net added

Now with latest Zeranoe nightly build. Same result.

C:\Users\rubytech>"C:\Program Files\ffmpeg-20190323-5252d59-win64-static\bin\ffmpeg" -hwaccel qsv -init_hw_device qsv=hw -filter_hw_device hw -i "vide
o1.ts" -i "watermark.png" -filter_complex "[0:v] format=nv12, hwupload=extra_hw_frames=80 [video]; [1:v] format=nv12, hwupload=extra_hw_frames=80 [wat
ermark]; [video][watermark] overlay_qsv" -c:v h264_qsv -c:a aac test.mp4
ffmpeg version N-93447-g5252d594a1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --e
nable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus -
-enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --ena
ble-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enabl
e-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.105 / 58. 47.105
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, mpegts, from 'video1.ts':
  Duration: 00:00:10.08, start: 1.400000, bitrate: 9199 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 t
bc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 187 kb/s
Input #1, png_pipe, from 'watermark.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 1280x720 [SAR 3780:3780 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
File 'test.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 (h264) -> format (graph 0)
  Stream #1:0 (png) -> format (graph 0)
  overlay_qsv (graph 0) -> Stream #0:0 (h264_qsv)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_overlay_qsv_4 @ 00000000062b22c0] Failed to create a qsvvpp, ret = -15.
[Parsed_overlay_qsv_4 @ 00000000062b22c0] Failed to configure output pad on Parsed_overlay_qsv_4
Error reinitializing filters!
Failed to inject frame into filter network: Error number -15 occurred
Error while processing the decoded data for stream #1:0
[aac @ 00000000063027c0] Qavg: 12376.441
[aac @ 00000000063027c0] 2 frames left in the queue on closing
Conversion failed!

comment:3 by robijn, 6 years ago

Version: unspecifiedgit-master

comment:4 by Zhong,Li, 5 years ago

What is the Intel CPU/GPU version you are using?
Does no qsv vpp pipeline work (e:g qsv decoding + qsv encoding)?

Note: See TracTickets for help on using tickets.