fcwu / desktop-mirror

A utility to stream screen and audio between Windows, Ubuntu or XBMC
Apache License 2.0
130 stars 20 forks source link

ffmpeg is dead, StreamServer stop #4

Open max918 opened 9 years ago

max918 commented 9 years ago

i tried with version "0.8-26-g0b3410b" on 2 different PC it's does not have any ERROR alert after pressing "Streaming" i sure the client is already receiver the jsonrpc (my client is Kobi raspberry pi )

following is the log from dm.log

2015-02-13 02:29:02,410 DEBUG Arguments: Namespace(append=False, log_dir=u'F:\TEMP', log_filename=u'F:\TEMP\desktop-mirror.log', log_level=20, log_level_str='info', osd=False, zsync_file=None) 2015-02-13 02:29:02,410 DEBUG Extra Arguments: [] 2015-02-13 02:29:02,424 INFO AvahiService started 2015-02-13 02:29:02,424 INFO StreamReceiver started 2015-02-13 02:29:02,617 INFO Loading config from share\default_win7.ini 2015-02-13 02:29:03,234 INFO Registered service: 2015-02-13 02:29:03,234 INFO name = Desktop-PC 2015-02-13 02:29:03,234 INFO regtype = _desktop-mirror._tcp. 2015-02-13 02:29:03,236 INFO domain = local. 2015-02-13 02:29:03,490 DEBUG Service added Desktop-PC._desktop-mirror._tcp.local.; resolving 2015-02-13 02:29:03,490 DEBUG Resolved service: Desktop-PC._desktop-mirror._tcp.local.; Desktop-PC.local.; 47767 2015-02-13 02:29:03,493 DEBUG Queryed service:: fullname=Desktop-PC, IP=192.168.137.2 2015-02-13 02:29:03,493 DEBUG Service added Desktop-PC._desktop-mirror._tcp.local.; resolving 2015-02-13 02:29:03,493 DEBUG Resolved service: Desktop-PC._desktop-mirror._tcp.local.; Desktop-PC.local.; 47767 2015-02-13 02:29:03,496 DEBUG Queryed service:: fullname=Desktop-PC, IP=169.254.78.202 2015-02-13 02:29:04,494 DEBUG UI event avahi: None 2015-02-13 02:29:08,410 INFO OnTargetKey: 1 2015-02-13 02:29:09,742 INFO OnTargetKey: 19 2015-02-13 02:29:09,878 INFO OnTargetKey: 192 2015-02-13 02:29:10,134 INFO OnTargetKey: 192. 2015-02-13 02:29:10,375 INFO OnTargetKey: 192.1 2015-02-13 02:29:10,494 INFO OnTargetKey: 192.16 2015-02-13 02:29:10,822 INFO OnTargetKey: 192.168 2015-02-13 02:29:11,086 INFO OnTargetKey: 192.168. 2015-02-13 02:29:11,295 INFO OnTargetKey: 192.168.0 2015-02-13 02:29:11,438 INFO OnTargetKey: 192.168.0. 2015-02-13 02:29:11,694 INFO OnTargetKey: 192.168.0.0 2015-02-13 02:29:12,526 INFO OnTargetKey: 192.168.0. 2015-02-13 02:29:12,638 INFO OnTargetKey: 192.168.0.1 2015-02-13 02:29:12,871 INFO OnTargetKey: 192.168.0.14 2015-02-13 02:29:13,134 INFO OnTargetKey: 192.168.0.140 2015-02-13 02:29:13,647 INFO OnTargetKey: 192.168.0.140: 2015-02-13 02:29:13,918 INFO OnTargetKey: 192.168.0.140:8 2015-02-13 02:29:14,062 INFO OnTargetKey: 192.168.0.140:80 2015-02-13 02:29:14,190 INFO OnTargetKey: 192.168.0.140:808 2015-02-13 02:29:14,302 INFO OnTargetKey: 192.168.0.140:8080 2015-02-13 02:29:32,244 INFO StreamServer start: {'video_input': u'-f dshow -r 25 -rtbufsize 100000000 -i audio="virtual-audio-capturer":video="screen-capture-recorder" -vf crop={w}:{h}:{x}:{y}', 'service': '_xbmc-web._tcp', 'h': u'1080', 'audio_output': u'', 'audio_input': u'', 'w': u'1920', 'ip': u'192.168.0.140', 'y': u'0', 'x': u'0', 'video_output': u'-qmin 2 -qmax 10'} 2015-02-13 02:29:32,244 INFO StreamServer Start 2015-02-13 02:29:32,246 DEBUG UI event server: 1 2015-02-13 02:29:32,246 INFO ffmpeg start: avconv -f dshow -r 25 -rtbufsize 100000000 -i audio=virtual-audio-capturer:video=screen-capture-recorder -vf crop=1920:1080:0:0 -qmin 2 -qmax 10 -f flv tcp://0.0.0.0:47768?listen 2015-02-13 02:29:34,601 DEBUG ffmpeg: ffmpeg version N-56575-g21f6ff3 Copyright (c) 2000-2013 the FFmpeg developers 2015-02-13 02:29:34,601 DEBUG ffmpeg: built on Sep 22 2013 18:05:27 with gcc 4.7.3 (GCC) 2015-02-13 02:29:34,601 DEBUG ffmpeg: configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib 2015-02-13 02:29:34,713 DEBUG ffmpeg: libavutil 52. 46.100 / 52. 46.100 2015-02-13 02:29:34,713 DEBUG ffmpeg: libavcodec 55. 33.100 / 55. 33.100 2015-02-13 02:29:34,713 DEBUG ffmpeg: libavformat 55. 18.102 / 55. 18.102 2015-02-13 02:29:34,713 DEBUG ffmpeg: libavdevice 55. 3.100 / 55. 3.100 2015-02-13 02:29:34,713 DEBUG ffmpeg: libavfilter 3. 87.100 / 3. 87.100 2015-02-13 02:29:34,713 DEBUG ffmpeg: libswscale 2. 5.100 / 2. 5.100 2015-02-13 02:29:34,713 DEBUG ffmpeg: libswresample 0. 17.103 / 0. 17.103 2015-02-13 02:29:34,713 DEBUG ffmpeg: libpostproc 52. 3.100 / 52. 3.100 2015-02-13 02:29:35,276 DEBUG ffmpeg: Guessed Channel Layout for Input Stream #0.1 : stereo 2015-02-13 02:29:35,276 DEBUG ffmpeg: Input #0, dshow, from 'audio=virtual-audio-capturer:video=screen-capture-recorder': 2015-02-13 02:29:35,276 DEBUG ffmpeg: Duration: N/A, start: 208.019000, bitrate: 1536 kb/s 2015-02-13 02:29:35,276 DEBUG ffmpeg: Stream #0:0: Video: rawvideo, bgr24, 1920x1080, 25 tbr, 10000k tbn, 25 tbc 2015-02-13 02:29:35,276 DEBUG ffmpeg: Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s 2015-02-13 02:29:35,276 DEBUG UI event server: 2 2015-02-13 02:29:35,388 DEBUG ffmpeg: [dshow @ 005cdfa0] real-time buffer 62% full! frame dropped! 2015-02-13 02:29:35,390 INFO url = http://192.168.0.140:8080/jsonrpc 2015-02-13 02:29:35,391 INFO json = {"params": {"item": {"file": "tcp://192.168.0.222:47768"}}, "jsonrpc": "2.0", "method": "Player.Open", "id": 1} 2015-02-13 02:29:35,503 DEBUG ffmpeg: Last message repeated 2 times 2015-02-13 02:29:35,503 DEBUG ffmpeg: [dshow @ 005cdfa0] real-time buffer 74% full! frame dropped! 2015-02-13 02:29:35,503 DEBUG ffmpeg: [dshow @ 005cdfa0] real-time buffer 87% full! frame dropped! 2015-02-13 02:29:35,533 DEBUG ffmpeg: Last message repeated 2 times 2015-02-13 02:29:35,533 DEBUG ffmpeg: [dshow @ 005cdfa0] real-time buffer 99% full! frame dropped! 2015-02-13 02:29:35,697 DEBUG ffmpeg: Last message repeated 14 times 2015-02-13 02:29:35,697 DEBUG ffmpeg: [dshow @ 005cdfa0] real-time buffer 112% full! frame dropped! 2015-02-13 02:29:36,359 DEBUG ffmpeg: Last message repeated 82 times 2015-02-13 02:29:36,359 DEBUG ffmpeg: [flv @ 005cf9a0] FLV does not support sample rate 48000, choose from (44100, 22050, 11025) 2015-02-13 02:29:36,359 DEBUG ffmpeg: Output #0, flv, to 'tcp://0.0.0.0:47768?listen': 2015-02-13 02:29:36,359 DEBUG ffmpeg: Metadata: 2015-02-13 02:29:36,359 DEBUG ffmpeg: encoder : Lavf55.18.102 2015-02-13 02:29:36,359 DEBUG ffmpeg: Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080, q=2-10, 200 kb/s, 1k tbn, 25 tbc 2015-02-13 02:29:36,359 DEBUG ffmpeg: Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 48000 Hz, stereo, s16p 2015-02-13 02:29:36,359 DEBUG ffmpeg: Stream mapping: 2015-02-13 02:29:36,359 DEBUG ffmpeg: Stream #0:0 -> #0:0 (rawvideo -> flv) 2015-02-13 02:29:36,359 DEBUG ffmpeg: Stream #0:1 -> #0:1 (pcm_s16le -> libmp3lame) 2015-02-13 02:29:36,359 DEBUG ffmpeg: Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input 2015-02-13 02:29:36,362 DEBUG ffmpeg: [dshow @ 005cdfa0] real-time buffer 112% full! frame dropped! 2015-02-13 02:29:36,375 INFO result: {"id":1,"jsonrpc":"2.0","result":"OK"} 2015-02-13 02:29:36,375 DEBUG { "jsonrpc": "2.0", "id": 1, "result": "OK" } 2015-02-13 02:29:36,862 INFO ffmpeg is dead 2015-02-13 02:29:36,862 DEBUG UI event server: 3 2015-02-13 02:29:36,862 INFO StreamServer stop 2015-02-13 02:29:36,862 DEBUG UI event server: 0 2015-02-13 02:30:14,739 INFO StreamServer stop 2015-02-13 02:30:14,739 DEBUG UI event server: 3 2015-02-13 02:30:14,740 DEBUG UI event server: 0 2015-02-13 02:31:15,980 INFO Saving config to C:\Users\Max\AppData\Roaming\desktop-mirror\ui.ini 2015-02-13 02:31:15,982 DEBUG Quit UiAdvanced 2015-02-13 02:31:15,987 DEBUG Stopping thread - AvahiService 2015-02-13 02:31:15,990 WARNING (-65563, 'unknown') 2015-02-13 02:31:15,990 INFO AvahiService stoped 2015-02-13 02:31:15,990 DEBUG Stopping thread - StreamReceiver 2015-02-13 02:31:15,990 WARNING [Errno 9] Bad file descriptor 2015-02-13 02:31:15,990 INFO StreamReceiver stoped

arunrajiah commented 8 years ago

Receiving similar issue on Windows 7 and Windows 10 with Kodi. Below is the log

2015-12-16 02:25:06,622 DEBUG Arguments: Namespace(append=False, logdir=u'C:\Users\ARUN2~1\AppData\Local\Temp', logfilename=u'C:\Users\ARUN2~1\AppData\Local\Temp\desktop-mirror.log', log_level=20, log_level_str='info', osd=False, zsync_file=None) 2015-12-16 02:25:06,624 DEBUG Extra Arguments: [] 2015-12-16 02:25:06,627 INFO AvahiService started 2015-12-16 02:25:06,627 INFO StreamReceiver started 2015-12-16 02:25:06,690 INFO Loading config from share\default_win7.ini 2015-12-16 02:25:07,387 INFO Registered service: 2015-12-16 02:25:07,387 INFO name = ArunRajiah 2015-12-16 02:25:07,388 INFO regtype = _desktop-mirror._tcp. 2015-12-16 02:25:07,388 INFO domain = local. 2015-12-16 02:25:07,637 DEBUG Service added ArunRajiah._desktop-mirror._tcp.local.; resolving 2015-12-16 02:25:07,638 DEBUG Resolved service: ArunRajiah._desktop-mirror._tcp.local.; ArunRajiah.local.; 47767 2015-12-16 02:25:07,642 DEBUG Queryed service:: fullname=ArunRajiah, IP=192.168.149.1 2015-12-16 02:25:07,642 DEBUG Service added ArunRajiah._desktop-mirror._tcp.local.; resolving 2015-12-16 02:25:07,645 DEBUG Resolved service: ArunRajiah._desktop-mirror._tcp.local.; ArunRajiah.local.; 47767 2015-12-16 02:25:07,650 DEBUG Queryed service:: fullname=ArunRajiah, IP=192.168.126.1 2015-12-16 02:25:07,651 DEBUG Service added ArunRajiah._desktop-mirror._tcp.local.; resolving 2015-12-16 02:25:07,654 DEBUG Resolved service: ArunRajiah._desktop-mirror._tcp.local.; ArunRajiah.local.; 47767 2015-12-16 02:25:07,657 DEBUG Queryed service:: fullname=ArunRajiah, IP=192.168.1.2 2015-12-16 02:25:08,655 DEBUG UI event avahi: None 2015-12-16 02:26:40,296 INFO OnTargetKey: 1 2015-12-16 02:26:40,707 INFO OnTargetKey: 19 2015-12-16 02:26:41,071 INFO OnTargetKey: 192 2015-12-16 02:26:41,770 INFO OnTargetKey: 192. 2015-12-16 02:26:42,619 INFO OnTargetKey: 192.1 2015-12-16 02:26:42,957 INFO OnTargetKey: 192.16 2015-12-16 02:26:43,239 INFO OnTargetKey: 192.168 2015-12-16 02:26:44,816 INFO OnTargetKey: 192.168. 2015-12-16 02:26:45,545 INFO OnTargetKey: 192.168.1 2015-12-16 02:26:46,076 INFO OnTargetKey: 192.168.1. 2015-12-16 02:26:46,660 INFO OnTargetKey: 192.168.1.4 2015-12-16 02:26:48,809 INFO StreamServer start: {'video_input': u'-f dshow -r 25 -rtbufsize 100000000 -i audio="virtual-audio-capturer":video="screen-capture-recorder" -vf crop={w}:{h}:{x}:{y}', 'service': 'auto', 'h': u'768', 'audio_output': u'', 'audio_input': u'', 'w': u'1366', 'ip': u'192.168.1.4', 'y': u'0', 'x': u'0', 'video_output': u'-qmin 2 -qmax 10'} 2015-12-16 02:26:48,809 INFO StreamServer Start 2015-12-16 02:26:48,812 DEBUG UI event server: 1 2015-12-16 02:26:48,813 INFO ffmpeg start: avconv -f dshow -r 25 -rtbufsize 100000000 -i audio=virtual-audio-capturer:video=screen-capture-recorder -vf crop=1366:768:0:0 -qmin 2 -qmax 10 -f flv tcp://0.0.0.0:47768?listen 2015-12-16 02:26:49,224 DEBUG ffmpeg: ffmpeg version N-56575-g21f6ff3 Copyright (c) 2000-2013 the FFmpeg developers 2015-12-16 02:26:49,224 DEBUG ffmpeg: built on Sep 22 2013 18:05:27 with gcc 4.7.3 (GCC) 2015-12-16 02:26:49,224 DEBUG ffmpeg: configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib 2015-12-16 02:26:49,224 DEBUG ffmpeg: libavutil 52. 46.100 / 52. 46.100 2015-12-16 02:26:49,224 DEBUG ffmpeg: libavcodec 55. 33.100 / 55. 33.100 2015-12-16 02:26:49,226 DEBUG ffmpeg: libavformat 55. 18.102 / 55. 18.102 2015-12-16 02:26:49,226 DEBUG ffmpeg: libavdevice 55. 3.100 / 55. 3.100 2015-12-16 02:26:49,226 DEBUG ffmpeg: libavfilter 3. 87.100 / 3. 87.100 2015-12-16 02:26:49,226 DEBUG ffmpeg: libswscale 2. 5.100 / 2. 5.100 2015-12-16 02:26:49,226 DEBUG ffmpeg: libswresample 0. 17.103 / 0. 17.103 2015-12-16 02:26:49,226 DEBUG ffmpeg: libpostproc 52. 3.100 / 52. 3.100 2015-12-16 02:26:49,647 DEBUG ffmpeg: Guessed Channel Layout for Input Stream #0.1 : stereo 2015-12-16 02:26:49,647 DEBUG ffmpeg: Input #0, dshow, from 'audio=virtual-audio-capturer:video=screen-capture-recorder': 2015-12-16 02:26:49,647 DEBUG ffmpeg: Duration: N/A, start: 101880.511000, bitrate: 1411 kb/s 2015-12-16 02:26:49,648 DEBUG ffmpeg: Stream #0:0: Video: rawvideo, bgr24, 1366x768, 25 tbr, 10000k tbn, 25 tbc 2015-12-16 02:26:49,648 DEBUG UI event server: 2 2015-12-16 02:26:49,648 DEBUG ffmpeg: Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s 2015-12-16 02:26:49,700 INFO url = http://192.168.1.4:8089/jsonrpc 2015-12-16 02:26:49,700 INFO json = {"params": {"item": {"file": "tcp://192.168.1.2:47768"}}, "jsonrpc": "2.0", "method": "Player.Open", "id": 1} 2015-12-16 02:26:50,052 DEBUG ffmpeg: [dshow @ 0254bc60] real-time buffer 63% full! frame dropped! 2015-12-16 02:26:50,052 DEBUG ffmpeg: [dshow @ 0254bc60] real-time buffer 69% full! frame dropped! 2015-12-16 02:26:50,069 DEBUG ffmpeg: [dshow @ 0254bc60] real-time buffer 75% full! frame dropped! 2015-12-16 02:26:50,104 DEBUG ffmpeg: Last message repeated 1 times 2015-12-16 02:26:50,104 DEBUG ffmpeg: [dshow @ 0254bc60] real-time buffer 81% full! frame dropped! 2015-12-16 02:26:50,269 DEBUG ffmpeg: Last message repeated 7 times 2015-12-16 02:26:50,269 DEBUG ffmpeg: [dshow @ 0254bc60] real-time buffer 88% full! frame dropped! 2015-12-16 02:26:50,303 DEBUG ffmpeg: Last message repeated 5 times 2015-12-16 02:26:50,303 DEBUG ffmpeg: [dshow @ 0254bc60] real-time buffer 94% full! frame dropped! 2015-12-16 02:26:50,470 DEBUG ffmpeg: Last message repeated 14 times 2015-12-16 02:26:50,470 DEBUG ffmpeg: [dshow @ 0254bc60] real-time buffer 100% full! frame dropped! 2015-12-16 02:26:50,953 WARNING <class 'urllib2.URLError'> advanced.py 137 2015-12-16 02:26:50,956 INFO url = http://192.168.1.4:47768/jsonrpc 2015-12-16 02:26:50,956 INFO json = {"params": {"item": {"file": "tcp://192.168.1.2:47768"}}, "jsonrpc": "2.0", "method": "Player.Open", "id": 1} 2015-12-16 02:26:52,184 WARNING <class 'urllib2.URLError'> advanced.py 137