Hello,
I'm trying to encode a 4K video with ffmpeg. The QSV encoder will not
initialize.

I've tried searching online, but all I can find is that my syntax might
be incorrect. I have tried to read the ffmpeg wiki, but it doesn't
explain what to use nor how to use it. The provided examples in the wiki
fail with the exact same errors as below.

Any ideas?
Thanks!


% ffprobe tmp.mp4
<snip reason=Duplicate version info.">
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf62.3.100
  Duration: 00:03:15.79, start: 0.000000, bitrate: 36078 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661),
yuvj420p(pc, bt709, progressive), 3840x2160, 35970 kb/s, 30 fps, 30 tbr,
90k tbn (default) Metadata: handler_name    : VideoHandle
      vendor_id       : [0][0][0][0]
    Side data:
      displaymatrix: rotation of -180.00 degrees 


% ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -i tmp.mp4 -c:v
vp9_qsv -b:v 2M -preset veryslow vp9_qsv.webm ffmpeg version 8.0 Copyright (c) 
2000-2025 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14+deb12u1)
  configuration: --prefix=/usr/local --enable-gpl --enable-version3 
--enable-nonfree --enable-gray --enable-doc --enable-alsa --enable-chromaprint 
--enable-frei0r --enable-gmp --enable-ladspa --enable-lcms2 --enable-libaom 
--enable-libaribb24 --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d 
--enable-libdavs2 --enable-libdvdnav --enable-libdvdread --enable-libflite 
--enable-libfontconfig --enable-libfreetype --enable-libharfbuzz 
--enable-libglslang --enable-libgme --enable-libgsm --enable-libilbc 
--enable-libjack --enable-libjxl --enable-libkvazaar --enable-libmodplug 
--enable-libmp3lame --enable-liboapv --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg 
--enable-libopenmpt --enable-libopus --enable-libqrencode --enable-librabbitmq 
--enable-librav1e --enable-librist --enable-librsvg --enable-librubberband 
--enable-librtmp --enable-libshine --enable-libsnappy --enable-
 libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 
--enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libuavs3d 
--enable-libv4l2 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis 
--enable-libvpx --enable-libvvenc --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxeve --enable-libxevd --enable-libxavs 
--enable-libxavs2 --enable-libxvid --enable-libxml2 --enable-libzimg 
--enable-libzmq --enable-libzvbi --enable-lv2 --enable-lzma --enable-libmysofa 
--enable-openal --enable-opencl --enable-opengl --enable-openssl 
--enable-pocketsphinx --enable-sndio --enable-sdl2 --enable-vapoursynth 
--enable-libvpl --enable-v4l2-m2m --disable-stripping --cpu=native 
--target-os=linux --enable-shared
  libavutil      60.  8.100 / 60.  8.100
  libavcodec     62. 11.100 / 62. 11.100
  libavformat    62.  3.100 / 62.  3.100
  libavdevice    62.  1.100 / 62.  1.100
  libavfilter    11.  4.100 / 11.  4.100
  libswscale      9.  1.100 /  9.  1.100
  libswresample   6.  1.100 /  6.  1.100
[QSV @ 0x55c48ea44440] No supported child device type is enabled
Device creation failed: -38.
Failed to set value 'qsv=hw' for option 'init_hw_device': Function not 
implemented
Error parsing global options: Function not implemented
_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to