Moehammered / switch-remote-play

Let the switch remotely play PC games (similar to steam link or remote play)
GNU General Public License v3.0
301 stars 14 forks source link

Random clicks on macOS #59

Open Jakubikk opened 2 years ago

Jakubikk commented 2 years ago

when the switch is connected the software clicks randomly without any input whatsoever

console output:

Screen W,H: 2880 x 1800

Switch Remote Play Host \(^.^)/ (PC Application version - 0.8.1)

Ready to receive a connection from the switch...

waiting for connection to server...

Expected size of command payload: 64 bytes
24 + 16 + 2

Reading command...
received 64 bytes

closing connected socket

closing listener socket

Closed command socket

Start stream with last received config from switch...
FFMPEG Configuration: 
Vsync Mode: 2 (variable frame rate)
Target Framerate: 60 fps
Video Capture Size(x,y): 1024, 576
Stream Scale Size(x,y): 1280, 720
Target Stream Bitrate: 8192 kb/s

ffmpeg-arm -probesize 32 -hwaccel auto -y -f avfoundation -capture_cursor 1 -i 3:none -capture_raw_data 0 -framerate 60 -vsync vfr -video_size 1024x576 -vcodec h264 -vf scale=1280x720 -preset medium -crf 11 -tune zerolatency -pix_fmt yuv420p -x264-params nal-hrd=vbr -f mpegts tcp://(IP Address):20003 

Process - ffmpeg - with args (ffmpeg-arm -probesize 32 -hwaccel auto -y -f avfoundation -capture_cursor 1 -i 3:none -capture_raw_data 0 -framerate 60 -vsync vfr -video_size 1024x576 -vcodec h264 -vf scale=1280x720 -preset medium -crf 11 -tune zerolatency -pix_fmt yuv420p -x264-params nal-hrd=vbr -f mpegts tcp://(IP Address):20003 ) start with PID 20068
inner loop -- waiting for gamepad thread to shutdown...
waiting for connection to server...

    left click
  dragging left mouse button

  dragging left mouse button

  dragging left mouse button

  dragging left mouse button

  dragging left mouse button

  dragging left mouse button

  dragging left mouse button

  dragging left mouse button

    releasing left mouse
    left click
  dragging left mouse button

  dragging left mouse button

    releasing left mouse
    right click
  dragging right mouse button

    left click
    releasing left mouse
    releasing right mouse
    left click
    releasing left mouse
    left click
  dragging left mouse button

  dragging left mouse button

    releasing left mouse
    left click
    releasing left mouse
    right click
    left click
    releasing left mouse
    releasing right mouse
    left click
    releasing left mouse
    right click
    releasing right mouse
Received kill signal
closing connected socket

closing listener socket

inner loop -- making sure to kill stream...
inner loop -- terminating the FFMPEG process
Ready to receive a connection from the switch...

waiting for connection to server...
Moehammered commented 2 years ago

Hi. Sorry it's giving you grief.

The mac version was merely a proof of concept and does not receive any active updates or bug fixes. That said, please make sure you are using the correct version of the switch app. Newer versions of the switch app are not compatible with the Mac build of the program.

If it still doesn't work, I'm sorry but there's no plan at the moment to update or make any changes for the mac version. Hope it helps.