Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not capture the desktop on mac? #92

Open
Azson opened this issue Dec 1, 2020 · 2 comments
Open

can not capture the desktop on mac? #92

Azson opened this issue Dec 1, 2020 · 2 comments

Comments

@Azson
Copy link

Azson commented Dec 1, 2020

I run the order on mac:
./ga-server-periodic config/server.desktop.conf
and run the android client.
I can control my mouse in mac by the android client.But I can not get any video data on android client. The same problem happened in mac client. But there seemed every thing is ok in server's log:

# [34333] 1606804260.169132 # include: config/common/server-common.conf
# [34333] 1606804260.169450 # include: config/common/controller.conf
# [34333] 1606804260.169490 # include: config/common/video-x264.conf
# [34333] 1606804260.169523 # include: config/common/video-x264-param.conf
# [34333] 1606804260.169578 # include: config/common/audio-lame.conf
# [34333] 1606804260.169642 # RTSP[config]: using 'udp' for RTP flows.
# [34333] 1606804260.169654 # RTSP[config]: controller port = 8555
# [34333] 1606804260.169660 # RTSP[config]: controller via 'udp' protocol.
# [34333] 1606804260.169720 # RTSP[config]: video-encoder = libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
# [34333] 1606804260.169732 # RTSP[config]: audio-encoder = libmp3lame (libmp3lame MP3 (MPEG audio layer 3))
# [34333] 1606804260.169766 # RTSP[config]: video specific option: b = 3000000
# [34333] 1606804260.169774 # RTSP[config]: video specific option: g = 48
# [34333] 1606804260.169780 # RTSP[config]: video specific option: intra-refresh = 1
# [34333] 1606804260.169785 # RTSP[config]: video specific option: me_method = dia
# [34333] 1606804260.169794 # RTSP[config]: video specific option: me_range = 16
# [34333] 1606804260.169799 # RTSP[config]: video specific option: preset = faster
# [34333] 1606804260.169804 # RTSP[config]: video specific option: profile = main
# [34333] 1606804260.169809 # RTSP[config]: video specific option: refs = 1
# [34333] 1606804260.169815 # RTSP[config]: video specific option: slices = 4
# [34333] 1606804260.169820 # RTSP[config]: video specific option: threads = 4
# [34333] 1606804260.169825 # RTSP[config]: video specific option: tune = zerolatency
# [34333] 1606804260.169833 *** Crop disabled.
# [34333] 1606804260.173968 sink server: live555-rtsp-server registered
# [34333] 1606804260.173991 key-blocking initialized: 0+0 keys blocked.
# [34333] 1606804260.174026 sdl_replayer: sizeof(sdlmsg) = 64
# [34333] 1606804260.259226 sdl replayer: Replay using CGPostEvent(), screen-size=2880x1800
# [34333] 1606804260.305356 dpipe: 'video-0' initialized, 8 frames, framesize = 16384120
# [34333] 1606804260.363378 video-source: video-0 initialized max-curr-out = (2560x1600)-(2880x1800)-(2880x1800)
# [34333] 1606804260.364508 Frame converter created: from (2880,1800)[26] -> (2880,1800)[0]
# [34333] 1606804260.364546 dpipe: 'filter-0' initialized, 8 frames, framesize = 16384120
# [34333] 1606804260.455240 video encoder: video source #0 from 'filter-0' (2880x1800).
# [34333] 1606804260.456059 vencoder-init: option b = 3000000
# [34333] 1606804260.456080 vencoder-init: option g = 48
# [34333] 1606804260.456088 vencoder-init: option intra-refresh = 1
# [34333] 1606804260.456095 vencoder-init: option me_method = dia
# [34333] 1606804260.456109 vencoder-init: option me_range = 16
# [34333] 1606804260.456115 vencoder-init: option preset = faster
# [34333] 1606804260.456119 vencoder-init: option profile = main
# [34333] 1606804260.456124 vencoder-init: option refs = 1
# [34333] 1606804260.456128 vencoder-init: option slices = 4
# [34333] 1606804260.456132 vencoder-init: option threads = 4
# [34333] 1606804260.456136 vencoder-init: option tune = zerolatency
[libx264 @ 0x7fb0aa00ae00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fb0aa00ae00] profile Main, level 5.0, 4:2:0, 8-bit
[libx264 @ 0x7fb0aa00ae00] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=dia subme=4 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=48 keyint_min=4 scenecut=40 intra_refresh=1 rc=abr mbtree=0 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
# [34333] 1606804260.458588 video encoder: initialized.
# [34333] 1606804260.459569 audio encoder: encoder_size=4608, frame_size=1152, dstlines[0] = 2304
# [34333] 1606804260.459666 audio encoder: on-the-fly audio format conversion enabled.
# [34333] 1606804260.459676 audio encoder: convert from 2ch(3)@44100Hz (s16) to 2ch(3)@44100Hz (s16p).
# [34333] 1606804260.459683 audio encoder: initialized.
# [34333] 1606804260.459753 video encoder: ffmpeg-video-encoder registered
# [34333] 1606804260.459765 audio encoder: ffmpeg-audio-encoder registered
# [34333] 1606804260.459775 video source thread started: tid=19459
# [34333] 1606804260.459794 controller socket: socket address [0.0.0.0:8555]
# [34333] 1606804260.459780 RGB2YUV filter[19203]: pipe#0 from 'video-0' to 'filter-0' (output-resolution=2880x1800)
# [34333] 1606804260.459847 controller server started: tid=19715.
# [34333] 1606804260.459969 encoder: packet queue initialized (3x3145728 bytes)
# [34333] 1606804260.459993 qos-measurement: initialized.
# [34333] 1606804260.460034 (Use port 80 for optional RTSP-over-HTTP tunneling.)
# [34333] 1606804262.057725 video encdoer: all started (1)
# [34333] 1606804262.057897 encoder client registered: total 1 clients.
# [34333] 1606804262.057976 encoder: pktqueue #0 callback registered (0x11052c850)
# [34333] 1606804262.057943 audio source: invalid argument (frames=0, channels=0, bitspersample=0)
# [34333] 1606804262.058009 audio encoder: cannot initialize audio source buffer.
# [34333] 1606804262.057886 video encoding started: tid=11779 2880x1800@24fps, nalbuf_size=62308000, pic_in_size=7776000.
# [34333] 1606804262.058095 video encoder: h.264/found sps@4(25); pps@33(4)
# [34333] 1606804262.058132 GAMediaSubsession: video/H264 SPS=0x70000589b110(25); PPS=0x70000589b010(4); profile_level_id=4d4032
# [34333] 1606804262.058206 qos: add sink#1 for H.264, rtpsink=0x7fb0a8f05b10
# [34333] 1606804262.058320 encoder client unregistered: 0 clients left.
# [34333] 1606804262.058339 encoder: no more clients, quitting ...
# [34333] 1606804263.060247 viedo encoder: image source timed out.
# [34333] 1606804263.060346 video encoder: thread terminated (tid=11779).
# [34333] 1606804263.060448 video encdoer: all stopped (1)
[libx264 @ 0x7fb0aa00ae00] final ratefactor: 34.31
# [34333] 1606804263.062687 video encoder: deinitialized.
# [34333] 1606804263.062920 audio encoder: deinitialized.
# [34333] 1606804263.062962 encoder: pktqueue #1 callback registered (0x11052c400)
# [34333] 1606804263.063089 qos: add sink#1 for MPEG1or2, rtpsink=0x7fb0a8c17610
# [34333] 1606804263.158171 video encoder: video source #0 from 'filter-0' (2880x1800).
# [34333] 1606804263.158505 vencoder-init: option b = 3000000
# [34333] 1606804263.158538 vencoder-init: option g = 48
# [34333] 1606804263.158555 vencoder-init: option intra-refresh = 1
# [34333] 1606804263.158570 vencoder-init: option me_method = dia
# [34333] 1606804263.158584 vencoder-init: option me_range = 16
# [34333] 1606804263.158598 vencoder-init: option preset = faster
# [34333] 1606804263.158612 vencoder-init: option profile = main
# [34333] 1606804263.158626 vencoder-init: option refs = 1
# [34333] 1606804263.158639 vencoder-init: option slices = 4
# [34333] 1606804263.158654 vencoder-init: option threads = 4
# [34333] 1606804263.158668 vencoder-init: option tune = zerolatency
[libx264 @ 0x7fb0a9835200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fb0a9835200] profile Main, level 5.0, 4:2:0, 8-bit
[libx264 @ 0x7fb0a9835200] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=dia subme=4 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=48 keyint_min=4 scenecut=40 intra_refresh=1 rc=abr mbtree=0 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
# [34333] 1606804263.162794 video encoder: initialized.
# [34333] 1606804263.164407 audio encoder: encoder_size=4608, frame_size=1152, dstlines[0] = 2304
# [34333] 1606804263.164530 audio encoder: on-the-fly audio format conversion enabled.
# [34333] 1606804263.164543 audio encoder: convert from 2ch(3)@44100Hz (s16) to 2ch(3)@44100Hz (s16p).
# [34333] 1606804263.164555 audio encoder: initialized.
# [34333] 1606804263.164586 video encdoer: all started (1)
# [34333] 1606804263.164618 encoder client registered: total 1 clients.
# [34333] 1606804263.164638 encoder: pktqueue #0 callback registered (0x11052c850)
# [34333] 1606804263.164650 audio source: invalid argument (frames=0, channels=0, bitspersample=0)
# [34333] 1606804263.164698 audio encoder: cannot initialize audio source buffer.
# [34333] 1606804263.164676 video encoding started: tid=18951 2880x1800@24fps, nalbuf_size=62308000, pic_in_size=7776000.
# [34333] 1606804263.164782 video encoder: h.264/found sps@4(25); pps@33(4)
# [34333] 1606804263.164802 GAMediaSubsession: video/H264 SPS=0x70000589b230(25); PPS=0x70000589b130(4); profile_level_id=4d4032
# [34333] 1606804263.164837 qos: add sink#1 for H.264, rtpsink=0x7fb0a8d2d320
# [34333] 1606804263.219772 first video frame written (pts=0)
# [34333] 1606804263.303732 encoder: pktqueue #1 callback registered (0x11052c400)
# [34333] 1606804263.303923 qos: add sink#2 for MPEG1or2, rtpsink=0x7fb0a8c17650
# [34333] 1606804297.095372 qos: invalid packet loss count detected (16777215)
# [34333] 1606804297.096732 H264-report: 218KB sent; pkt-loss=0/684,0.00%; bitrate=58Kbps; rtt=2066 (31.525ms); jitter=1210 (freq=90000Hz)
# [34333] 1606804327.116551 H264-report: 247KB sent; pkt-loss=0/771,0.00%; bitrate=66Kbps; rtt=1856 (28.320ms); jitter=1629 (freq=90000Hz)
# [34333] 1606804357.142465 H264-report: 211KB sent; pkt-loss=0/660,0.00%; bitrate=56Kbps; rtt=648 (9.888ms); jitter=896 (freq=90000Hz)
@miaojingyuan
Copy link

I have the same problem,do you have resolved it?

@Azson
Copy link
Author

Azson commented Jan 30, 2021

I have the same problem,do you have resolved it?

I tried to find the code that capture desktop. In result, I find that there is no code implementation in the mac environment, but there are related implementation codes in the linux and win32 environment. So I finally make environment under linux server and mac (and android) client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants