LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
15.62k stars 749 forks source link

The mouse cursor always stay at the top left corner on macOS #2801

Open ximiTech opened 1 week ago

ximiTech commented 1 week ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

The mouse cursor cannot move, and it will stay at the top left corner, latest brew version on macOS. And the program is configed to be desktop mode. The encode and decode mode is set to be auto, I've checked issue history and found related issue happed on Linux platform, not found information for macOS.

Expected Behavior

The mouse function is ok, when encode and decode mode is set to be auto,

Additional Context

none

Host Operating System

macOS

Operating System Version

Sonoma 14.4

Architecture

64 bit

Sunshine commit or version

v2024.702.125729

Package

macOS - Homebrew

GPU Type

AMD

GPU Model

AMD 6900 xt

GPU Driver/Mesa Version

macOS driver

Capture Method

AVCaptureScreen (macOS)

Config

audio_sink = BlackHole 2ch

Apps

{
  "env": {},
  "apps": [
    {
      "name": "Desktop",
      "image-path": "desktop.png"
    },
    {
      "name": "Steam Big Picture",
      "cmd": "steam://open/bigpicture",
      "auto-detach": "true",
      "wait-all": "true",
      "image-path": "steam.png"
    }
  ]
}

Relevant log output

[audio_sink] -- [BlackHole 2ch]
[2024:07:05:03:18:47]: Info: Sunshine version: v2024.702.125729
[2024:07:05:03:18:47]: Warning: No gamepad input is available
[2024:07:05:03:18:47]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:05:03:18:47]: Info: Trying encoder [videotoolbox]
[2024:07:05:03:18:47]: Info: Detecting displays
[2024:07:05:03:18:47]: Info: Detected display: LG ULTRAGEAR+ (id: 459107888) connected: true
[2024:07:05:03:18:47]: Info: Detected display: DP1080P60 (id: 486579209) connected: true
[2024:07:05:03:18:47]: Info: Detected display: VP2785 SERIES (id: 417319958) connected: true
[2024:07:05:03:18:47]: Info: Configuring selected display (459107888) to stream
[2024:07:05:03:18:47]: Info: SDR color coding [Rec. 601]
[2024:07:05:03:18:47]: Info: Color depth: 8-bit
[2024:07:05:03:18:47]: Info: Color range: [JPEG]
[2024:07:05:03:18:48]: Warning: [h264_videotoolbox @ 0x7fd859836840] PrioritizeEncodingSpeedOverQuality property is not supported on this device. Ignoring.
[2024:07:05:03:18:48]: Info: [h264_videotoolbox @ 0x7fd859836840] This device does not support the AllowOpenGop option. Value ignored.
[2024:07:05:03:18:48]: Info: SDR color coding [Rec. 601]
[2024:07:05:03:18:48]: Info: Color depth: 8-bit
[2024:07:05:03:18:48]: Info: Color range: [JPEG]
[2024:07:05:03:18:48]: Warning: [hevc_videotoolbox @ 0x7fd859836800] PrioritizeEncodingSpeedOverQuality property is not supported on this device. Ignoring.
[2024:07:05:03:18:48]: Info: [hevc_videotoolbox @ 0x7fd859836800] This device does not support the AllowOpenGop option. Value ignored.
[2024:07:05:03:18:48]: Info: [hevc_videotoolbox @ 0x7fd859836800] This device does not support the qmin option. Value ignored.
[2024:07:05:03:18:48]: Info: [hevc_videotoolbox @ 0x7fd859836800] This device does not support the qmax option. Value ignored.
[2024:07:05:03:18:49]: Info: SDR color coding [Rec. 601]
[2024:07:05:03:18:49]: Info: Color depth: 8-bit
[2024:07:05:03:18:49]: Info: Color range: [JPEG]
[2024:07:05:03:18:49]: Error: Couldn't open [av1_videotoolbox]
[2024:07:05:03:18:49]: Info: Detecting displays
[2024:07:05:03:18:49]: Info: Detected display: LG ULTRAGEAR+ (id: 459107888) connected: true
[2024:07:05:03:18:49]: Info: Detected display: DP1080P60 (id: 486579209) connected: true
[2024:07:05:03:18:49]: Info: Detected display: VP2785 SERIES (id: 417319958) connected: true
[2024:07:05:03:18:49]: Info: Configuring selected display (459107888) to stream
[2024:07:05:03:18:49]: Info: SDR color coding [Rec. 709]
[2024:07:05:03:18:49]: Info: Color depth: 10-bit
[2024:07:05:03:18:49]: Info: Color range: [JPEG]
[2024:07:05:03:18:49]: Warning: [hevc_videotoolbox @ 0x7fd83a308f80] PrioritizeEncodingSpeedOverQuality property is not supported on this device. Ignoring.
[2024:07:05:03:18:49]: Info: [hevc_videotoolbox @ 0x7fd83a308f80] This device does not support the AllowOpenGop option. Value ignored.
[2024:07:05:03:18:49]: Info: [hevc_videotoolbox @ 0x7fd83a308f80] This device does not support the qmin option. Value ignored.
[2024:07:05:03:18:49]: Info: [hevc_videotoolbox @ 0x7fd83a308f80] This device does not support the qmax option. Value ignored.
[2024:07:05:03:18:50]: Info: 
[2024:07:05:03:18:50]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:05:03:18:50]: Info: 
[2024:07:05:03:18:50]: Info: Found H.264 encoder: h264_videotoolbox [videotoolbox]
[2024:07:05:03:18:50]: Info: Found HEVC encoder: hevc_videotoolbox [videotoolbox]
[2024:07:05:03:18:50]: Error: Couldn't find any of the following libraries: [libavahi-common.3.dylib, libavahi-common.dylib]
[2024:07:05:03:18:50]: Info: Configuration UI available at [https://localhost:47990]
[2024:07:05:03:21:14]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:05:03:21:14]: Info: Trying encoder [videotoolbox]
[2024:07:05:03:21:14]: Info: Detecting displays
[2024:07:05:03:21:14]: Info: Detected display: DP1080P60 (id: 486579209) connected: true
[2024:07:05:03:21:14]: Info: Configuring selected display (486579209) to stream
[2024:07:05:03:21:14]: Info: SDR color coding [Rec. 601]
[2024:07:05:03:21:14]: Info: Color depth: 8-bit
[2024:07:05:03:21:14]: Info: Color range: [JPEG]
[2024:07:05:03:21:14]: Warning: [h264_videotoolbox @ 0x7fd859a23cc0] PrioritizeEncodingSpeedOverQuality property is not supported on this device. Ignoring.
[2024:07:05:03:21:14]: Info: [h264_videotoolbox @ 0x7fd859a23cc0] This device does not support the AllowOpenGop option. Value ignored.
[2024:07:05:03:21:14]: Info: SDR color coding [Rec. 601]
[2024:07:05:03:21:14]: Info: Color depth: 8-bit
[2024:07:05:03:21:14]: Info: Color range: [JPEG]
[2024:07:05:03:21:15]: Warning: [hevc_videotoolbox @ 0x7fd859915b00] PrioritizeEncodingSpeedOverQuality property is not supported on this device. Ignoring.
[2024:07:05:03:21:15]: Info: [hevc_videotoolbox @ 0x7fd859915b00] This device does not support the AllowOpenGop option. Value ignored.
[2024:07:05:03:21:15]: Info: [hevc_videotoolbox @ 0x7fd859915b00] This device does not support the qmin option. Value ignored.
[2024:07:05:03:21:15]: Info: [hevc_videotoolbox @ 0x7fd859915b00] This device does not support the qmax option. Value ignored.
[2024:07:05:03:21:15]: Info: SDR color coding [Rec. 601]
[2024:07:05:03:21:15]: Info: Color depth: 8-bit
[2024:07:05:03:21:15]: Info: Color range: [JPEG]
[2024:07:05:03:21:15]: Error: Couldn't open [av1_videotoolbox]
[2024:07:05:03:21:15]: Info: Detecting displays
[2024:07:05:03:21:15]: Info: Detected display: DP1080P60 (id: 486579209) connected: true
[2024:07:05:03:21:15]: Info: Configuring selected display (486579209) to stream
[2024:07:05:03:21:15]: Info: SDR color coding [Rec. 709]
[2024:07:05:03:21:15]: Info: Color depth: 10-bit
[2024:07:05:03:21:15]: Info: Color range: [JPEG]
[2024:07:05:03:21:15]: Warning: [hevc_videotoolbox @ 0x7fd859917b40] PrioritizeEncodingSpeedOverQuality property is not supported on this device. Ignoring.
[2024:07:05:03:21:15]: Info: [hevc_videotoolbox @ 0x7fd859917b40] This device does not support the AllowOpenGop option. Value ignored.
[2024:07:05:03:21:15]: Info: [hevc_videotoolbox @ 0x7fd859917b40] This device does not support the qmin option. Value ignored.
[2024:07:05:03:21:15]: Info: [hevc_videotoolbox @ 0x7fd859917b40] This device does not support the qmax option. Value ignored.
[2024:07:05:03:21:16]: Info: 
[2024:07:05:03:21:16]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:05:03:21:16]: Info: 
[2024:07:05:03:21:16]: Info: Found H.264 encoder: h264_videotoolbox [videotoolbox]
[2024:07:05:03:21:16]: Info: Found HEVC encoder: hevc_videotoolbox [videotoolbox]
[2024:07:05:03:21:16]: Info: Executing [Desktop]
[2024:07:05:03:21:16]: Info: CLIENT CONNECTED
[2024:07:05:03:21:16]: Info: Detecting displays
[2024:07:05:03:21:16]: Info: Detected display: DP1080P60 (id: 486579209) connected: true
[2024:07:05:03:21:16]: Info: Configuring selected display (486579209) to stream
[2024:07:05:03:21:16]: Info: SDR color coding [Rec. 601]
[2024:07:05:03:21:16]: Info: Color depth: 8-bit
[2024:07:05:03:21:16]: Info: Color range: [MPEG]
[2024:07:05:03:21:16]: Warning: [hevc_videotoolbox @ 0x7fd83a308180] PrioritizeEncodingSpeedOverQuality property is not supported on this device. Ignoring.
[2024:07:05:03:21:16]: Info: [hevc_videotoolbox @ 0x7fd83a308180] This device does not support the AllowOpenGop option. Value ignored.
[2024:07:05:03:21:16]: Info: [hevc_videotoolbox @ 0x7fd83a308180] This device does not support the qmin option. Value ignored.
[2024:07:05:03:21:16]: Info: [hevc_videotoolbox @ 0x7fd83a308180] This device does not support the qmax option. Value ignored.
[2024:07:05:03:21:16]: Warning: audio_control_t::set_sink() unimplemented: BlackHole 2ch
[2024:07:05:03:21:16]: Error: Encoder did not produce IDR frame when requested!
[2024:07:05:03:21:16]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
Hazer commented 6 days ago

@ximiTech your config file is setting amdvce encoder that don't even exist in macOS, it's either software or videotoolbox.

Remove those settings and provide logs. Also a print of your VideoProc Converter hardware acceleration status.

ximiTech commented 6 days ago

@ximiTech your config file is setting amdvce encoder that don't even exist in macOS, it's either software or videotoolbox.

Remove those settings and provide logs. Also a print of your VideoProc Converter hardware acceleration status.

Sorry for the misleading infor, that piece is from Windows, I'm too lazy. I've edited the post above.. The "hackintosh" I'm using is configed to enable these: 2024-07-05 03 40 27

ChiangSam commented 1 day ago

I have encountered the same issue and am not sure if you have resolved it. Could you provide the solution if you have one?