Opened 16 months ago

Last modified 16 months ago

#11605 new defect

"h264_qsv" unsupported with old hardware

Reported by: VotwianGamingVN Owned by:
Priority: critical Component: avcodec
Version: 7.1 Keywords: h264_qsv
Cc: VotwianGamingVN, MasterQuestionable Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

Summary of the bug: h264_qsv codecs do not work even though the hardware supports them.
How to reproduce:

% C:\Users\Admin>ffmpeg -i C:\Video\C.mp4 -c:v h264_qsv -global_quality 10 -look_ahead 1 C:\Video\exp.mp4
ffmpeg version 7.1.1-full_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
  built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-lcms2 --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-liblc3 --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      59. 39.100 / 59. 39.100
  libavcodec     61. 19.101 / 61. 19.101
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample   5.  3.100 /  5.  3.100
  libpostproc    58.  3.100 / 58.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Video\C.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf60.3.100
  Duration: 00:04:15.64, start: 0.000000, bitrate: 2121 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 1989 kb/s, 30 fps, 30 tbr, 90k tbn (default)
      Metadata:
        handler_name    : VideoHandler
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp, 123 kb/s (default)
      Metadata:
        handler_name    : SoundHandler
        vendor_id       : [0][0][0][0]
File 'C:\Video\exp.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (opus (native) -> aac (native))
Press [q] to stop, [?] for help
[h264_qsv @ 0000012992d4f800] Error creating a MFX session: -9.
[h264_qsv @ 0000012992d4f800] The current mfx implementation is not supported, try next mfx implementation.
[h264_qsv @ 0000012992d4f800] Error creating a MFX session: -9.
[vost#0:0/h264_qsv @ 0000012990dfc480] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0000012992d4fdc0] Error sending frames to consumers: Unknown error occurred
[vf#0:0 @ 0000012992d4fdc0] Task finished with error code: -1313558101 (Unknown error occurred)
[vf#0:0 @ 0000012992d4fdc0] Terminating thread with return code -1313558101 (Unknown error occurred)
[vost#0:0/h264_qsv @ 0000012990dfc480] Could not open encoder before EOF
[vost#0:0/h264_qsv @ 0000012990dfc480] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_qsv @ 0000012990dfc480] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 0000012990df9ac0] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A
[aac @ 0000012990e6e880] Qavg: 1717.345
Conversion failed!

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (2)

comment:1 by VotwianGamingVN, 16 months ago

Priority: normalcritical

comment:2 by MasterQuestionable, 16 months ago

Cc: MasterQuestionable added
Component: undeterminedavcodec
Summary: h264_qsv codecs not working even though hardware supports them (Intel HD Graphics 2500)"h264_qsv" unsupported with old hardware

͏    Probably driver issue.
͏    "The current MFX implementation is not supported, try next MFX implementation."

͏    Maybe current FFmpeg expected certain minimum driver version:
͏    That no more applicable to the specific hardware.

Note: See TracTickets for help on using tickets.