[FFmpeg-trac] #10504(ffmpeg:new): Regression: Unable to use dshow devices with gdigrab/ddagrab anymore

FFmpeg trac at avcodec.org
Thu Sep 14 05:49:54 EEST 2023


#10504: Regression: Unable to use dshow devices with gdigrab/ddagrab anymore
------------------------------------+----------------------------------
             Reporter:  Jaex        |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  ffmpeg
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+----------------------------------
Comment (by 0ky):

 Replying to [comment:6 elenril]:
 > Please test the attached patch.

 I've carried out the tests based on the provided ".patch" file. Here's a
 detailed rundown of the steps I took, along with my observations:

 1. Cloned the latest version of the repository:

    Commit 6434e440039910f12f7c08072b7db3c5e99c3025 (HEAD -> master,
 origin/master, origin/HEAD)

 2. Applied the patch "0001-fftools-ffmpeg-do-not-fail-on-AVERROR-EAGAIN-
 from-ch.patch".

 3. To set up a build environment that would compile immediately, I used
 the following flags:
 {{{
 ./configure --enable-cross-compile --arch=x86_64 --target-os=mingw32
 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --disable-
 everything --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-
 shared --enable-static --enable-indev=gdigrab --enable-indev=dshow
 --enable-filter=null --enable-encoder='wrapped_avframe,pcm_s16le'
 --enable-decoder=pcm_s16le --enable-muxer='null'
  }}}
 4. Once the compilation with the patch applied was completed, I ran FFmpeg
 using the following options:
 {{{
 .\ffmpeg.exe -f gdigrab -framerate 30 -offset_x 0 -offset_y 0 -video_size
 1920x1080 -draw_mouse 1 -i desktop -f dshow -i audio="virtual-audio-
 capturer" -loglevel debug -f null -
 }}}
 5. I can no longer observe "Conversion failed!" error message after
 hitting the "q" key to exit. Additionally, the exit code returned was "0".

 For the sake of comparison and to ensure a thorough test, I also compiled
 the latest version without applying the patch. When I ran FFmpeg with
 identical options as mentioned earlier, the "Conversion failed!" error
 message did appear right after I pressed the "q" key to exit, and the exit
 code returned was "-11".

 To give you a clearer picture, I've attached the log files for your
 review: ''ffmpeg-patched.log'' which represents the patched version, and
 ''ffmpeg-unpatched.log'' for the version without the patch.

 I hope this information helps. Let me know if you require any further
 details or tests to be conducted.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10504#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list