[FFmpeg-trac] #4027(avformat:new): Gdi capture window title, then I close the window, ffmpeg send don't automatically stop. Version 2.3 will stop the capture.
FFmpeg
trac at avcodec.org
Tue Oct 14 12:44:07 CEST 2014
#4027: Gdi capture window title, then I close the window, ffmpeg send don't
automatically stop. Version 2.3 will stop the capture.
----------------------------------+----------------------------------
Reporter: 0011411 | Type: defect
Status: new | Priority: normal
Component: avformat | Version: 2.4.2
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 1 |
----------------------------------+----------------------------------
I use the command is:ffmpeg.exe -f gdigrab -framerate 24 -i title="" -f
dshow -i audio=virtual-audio-capturer-sm -b 2000k -pix_fmt yuv420p -tune
zerolatency -preset ultrafast -acodec libmp3lame -ab 64k -async 1 -ar
22050 -f mpegts udp://234.6.8.135:9786?localaddr=127.0.0.1
----
I found the problem in the file ffmpeg-2.4.2\libavdevice\gdigrab.c,at
static int gdigrab_read_packet(AVFormatContext *s1, AVPacket *pkt);
This function calls in ffmpeg-2.4.2\libavformat
----
the dbgview is show error:
[gdigrab @ 02aa7d40] Failed to capture image (error 8)
title=screen_broadcast test: Input/output error
frame= 133 fps= 24 q=2.0 size= 661kB time=00:00:05.46 bitrate=
991.6kbits
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4027>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list