#11664: ffmpeg can't allocate memory when using any vulkan hwaccel
--------------------------------------+----------------------------------
             Reporter:  illy          |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  undetermined  |                  Version:  7.1
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 Hardware used: Amd 5500U APU
 Version: ffmpeg 7.1.1

 Summary of the bug:
 trying to use the vulkan mp4 codec, it fails with error
 {{{
 Device creation failed: -12.
 Failed to set value 'vulkan=vk:0' for option 'init_hw_device': Cannot
 allocate memory
 Error parsing global options: Cannot allocate memory
 }}}

 How to reproduce:
 {{{
 ffmpeg -init_hw_device "vulkan=vk:0" -hwaccel vulkan
 -hwaccel_output_format vulkan -i VID_XXXX.mp4 -crf 42 VID_XXXX-smaller.mp4
 }}}

 output:
 {{{
 ffmpeg version 7.1.1 Copyright (c) 2000-2025 the FFmpeg developers
   built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
   configuration: --prefix=/home/linuxbrew/.linuxbrew/Cellar/ffmpeg/7.1.1_3
 --enable-shared --enable-pthreads --enable-version3 --cc=gcc-11 --host-
 cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl
 --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d
 --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus
 --enable-librav1e --enable-librist --enable-librubberband --enable-
 libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-
 libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf
 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-
 libfontconfig --enable-libfreetype --enable-frei0r --enable-libass
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg
 --disable-libjack --disable-indev=jack
   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
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument 'debug'.
 Reading option '-init_hw_device' ... matched as option 'init_hw_device'
 (initialise hardware device) with argument 'vulkan=vk:0'.
 Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
 accelerated decoding) with argument 'vulkan'.
 Reading option '-hwaccel_output_format' ... matched as option
 'hwaccel_output_format' (select output format used with HW accelerated
 decoding) with argument 'vulkan'.
 Reading option '-i' ... matched as input url with argument
 'VID_20250710_170316-FASTER.mp4'.
 Reading option '-crf' ... matched as AVOption 'crf' with argument '42'.
 Reading option 'VID_20250710_170316-FASTERERER.mp4' ... matched as output
 url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument debug.
 Applying option init_hw_device (initialise hardware device) with argument
 vulkan=vk:0.
 Device creation failed: -12.
 Failed to set value 'vulkan=vk:0' for option 'init_hw_device': Cannot
 allocate memory
 Error parsing global options: Cannot allocate memory
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11664>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to