[FFmpeg-trac] #10205(undetermined:new): Problem with ddagrab

FFmpeg trac at avcodec.org
Mon Feb 20 17:11:26 EET 2023


#10205: Problem with ddagrab
-------------------------------------+-------------------------------------
             Reporter:  Michael      |                     Type:  defect
  Koch                               |
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I'm testing the ddagrab filter with this command line:

 ffmpeg -f lavfi -i ddagrab -c:v h264_nvenc -cq 18 -v 40 -t 10 -y out.mp4

 FFmpeg exits with this error message:
 OpenEncodeSessionEx failed: no encode device (1): (no details)

 My notebook has Nvidia Geforce RTX 2060 with the latest studio driver,
 updated today. Windows 10 Home, Version 22H2, OS build 19045.2604. DirectX
 version 12.

 This command works without problems:
 ffmpeg -f gdigrab -i desktop -c:v h264_nvenc -t 10 -y out.mp4

 This is the console output with error message at the end:

 C:\Users\astro\Desktop\test_333>ffmpeg -f lavfi -i ddagrab -c:v h264_nvenc
 -cq 18 -v 40 -t 10 -y out.mp4
 ffmpeg version 2023-02-19-git-2aec86695a-full_build-www.gyan.dev Copyright
 (c) 2000-2023 the FFmpeg developers
   built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 w32threads --disable-autodetect --enable-fontconfig --enable-iconv
 --enable-gnutls --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-sdl2 --enable-libaribb24 --enable-libdav1d
 --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e
 --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl
 --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-
 libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-
 liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-
 amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec
 --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --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-libilbc --enable-
 libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex
 --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
 --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-
 chromaprint
   libavutil      58.  3.100 / 58.  3.100
   libavcodec     60.  4.100 / 60.  4.100
   libavformat    60.  4.100 / 60.  4.100
   libavdevice    60.  2.100 / 60.  2.100
   libavfilter     9.  4.100 /  9.  4.100
   libswscale      7.  2.100 /  7.  2.100
   libswresample   4. 11.100 /  4. 11.100
   libpostproc    57.  2.100 / 57.  2.100
 [Parsed_ddagrab_0 @ 00000202d2348c00] Created internal hw_device_ctx
 [Parsed_ddagrab_0 @ 00000202d2348c00] Opened dxgi output 0 with dimensions
 1920x1080
 [Parsed_ddagrab_0 @ 00000202d2348c00] Updated pointer shape texture
 [Parsed_ddagrab_0 @ 00000202d2348c00] Probed 8 bit RGB frame format
 Input #0, lavfi, from 'ddagrab':
   Duration: N/A, start: 0.000068, bitrate: N/A
   Stream #0:0: Video: wrapped_avframe, 1 reference frame, d3d11, 1920x1080
 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1000k tbn
 Stream mapping:
   Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_nvenc))
 Press [q] to stop, [?] for help
 [graph 0 input from stream 0:0 @ 00000202d23b4c00] w:1920 h:1080
 pixfmt:d3d11 tb:1/1000000 fr:30/1 sar:1/1
 [h264_nvenc @ 00000202d234fb40] Using input frames context (format d3d11)
 with h264_nvenc encoder.
 [h264_nvenc @ 00000202d234fb40] Loaded Nvenc version 12.0
 [h264_nvenc @ 00000202d234fb40] Nvenc initialized successfully
 [h264_nvenc @ 00000202d234fb40] OpenEncodeSessionEx failed: no encode
 device (1): (no details)
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10205>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list