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

Image is dissorted on Macbook M1 #1147

Closed
3 tasks done
JuniorJPDJ opened this issue Apr 7, 2023 · 4 comments
Closed
3 tasks done

Image is dissorted on Macbook M1 #1147

JuniorJPDJ opened this issue Apr 7, 2023 · 4 comments
Labels

Comments

@JuniorJPDJ
Copy link

JuniorJPDJ commented Apr 7, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

image

other resolutions change dissorction, the screenshot is from 1080p
720p works good, 4k works good, 2k works good, some customs resolutions are having similar effects to 1080p, some are making image completely broken

eg. 2256x1504 provided me image like that:

image

Additional Context

I also tried different source displays - internal macbook display and virtual display provided by BetterDummy app

Host Operating System

macOS

Operating System Version

12.6.4

Architecture

arm

Sunshine commit or version

0.19, v0.19.1.290c9b3

Package

macOS - Portfile

GPU Type

Apple

GPU Model

Apple M1

GPU Driver/Mesa Version

macOS builtin

Config

output_name = 1
sunshine_name = Tenesysbook
controller = disabled
keyboard = disabled
mouse = disabled
resolutions = [
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    3860x2160,
    3840x1600,
    2250x1500,
    2256x1504
]

Relevant log output

$ sunshine ~/sunshine.conf
[resolutions] -- [[
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    3860x2160,
    3840x1600,
    2250x1500,
    2256x1504
]]
[mouse] -- [disabled]
[controller] -- [disabled]
[keyboard] -- [disabled]
[sunshine_name] -- [Tenesysbook]
[output_name] -- [1]
[2023:04:07:04:01:30]: Info: Sunshine version: 0.19.1
[2023:04:07:04:01:30]: Info: system_tray() is not yet implemented for this platform.
[2023:04:07:04:01:30]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:04:07:04:01:30]: Info: Trying encoder [videotoolbox]
[2023:04:07:04:01:30]: Info: SDR color coding [Rec. 601]
[2023:04:07:04:01:30]: Info: Color range: [JPEG]
[2023:04:07:04:01:31]: Info: SDR color coding [Rec. 601]
[2023:04:07:04:01:31]: Info: Color range: [JPEG]
[2023:04:07:04:01:31]: Info: SDR color coding [Rec. 601]
[2023:04:07:04:01:31]: Info: Color range: [JPEG]
[2023:04:07:04:01:32]: Info: SDR color coding [Rec. 601]
[2023:04:07:04:01:32]: Info: Color range: [JPEG]
[2023:04:07:04:01:32]: Info: SDR color coding [Rec. 601]
[2023:04:07:04:01:32]: Info: Color range: [JPEG]
[2023:04:07:04:01:32]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:01:32]: Info: Color range: [JPEG]
[2023:04:07:04:01:32]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:01:32]: Info: Color range: [JPEG]
[2023:04:07:04:01:32]: Info: SDR color coding [Rec. 601]
[2023:04:07:04:01:32]: Info: Color range: [JPEG]
[2023:04:07:04:01:32]: Info: SDR color coding [Rec. 601]
[2023:04:07:04:01:32]: Info: Color range: [JPEG]
[2023:04:07:04:01:32]: Warning: videotoolbox: h264: replacing nalu prefix data
[2023:04:07:04:01:32]: Info:
[2023:04:07:04:01:32]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:04:07:04:01:32]: Info:
[2023:04:07:04:01:32]: Info: Found encoder videotoolbox: [h264_videotoolbox, hevc_videotoolbox]
[2023:04:07:04:01:32]: Info: Configuration UI available at [https://localhost:47990]
dbus[68632]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
[2023:04:07:04:01:32]: Error: Failed to create client: Memory exhausted
[2023:04:07:04:01:36]: Info: Executing [Desktop]
[2023:04:07:04:01:36]: Info: 192.168.255.103: Ping Timeout
[2023:04:07:04:01:36]: Info: CLIENT CONNECTED
[2023:04:07:04:01:36]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:01:36]: Info: Color range: [MPEG]
[2023:04:07:04:01:36]: Warning: audio_control_t::set_sink() unimplemented:
[2023:04:07:04:01:36]: Error: opening microphone '' failed. Please set a valid input source in the Sunshine config.
[2023:04:07:04:01:36]: Error: Available inputs:
[2023:04:07:04:01:36]: Error:   MacBook Pro Microphone
[2023:04:07:04:01:36]: Error: Couldn't create audio input
[2023:04:07:04:01:41]: Info: CLIENT DISCONNECTED
[2023:04:07:04:01:51]: Info: CLIENT CONNECTED
[2023:04:07:04:01:52]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:01:52]: Info: Color range: [MPEG]
[2023:04:07:04:01:52]: Warning: audio_control_t::set_sink() unimplemented:
[2023:04:07:04:01:52]: Error: opening microphone '' failed. Please set a valid input source in the Sunshine config.
[2023:04:07:04:01:52]: Error: Available inputs:
[2023:04:07:04:01:52]: Error:   MacBook Pro Microphone
[2023:04:07:04:01:52]: Error: Couldn't create audio input
[2023:04:07:04:01:56]: Info: CLIENT DISCONNECTED
[2023:04:07:04:02:02]: Info: Executing [Desktop]
[2023:04:07:04:02:03]: Info: CLIENT CONNECTED
[2023:04:07:04:02:03]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:02:03]: Info: Color range: [MPEG]
[2023:04:07:04:02:03]: Warning: audio_control_t::set_sink() unimplemented:
[2023:04:07:04:02:03]: Error: opening microphone '' failed. Please set a valid input source in the Sunshine config.
[2023:04:07:04:02:03]: Error: Available inputs:
[2023:04:07:04:02:03]: Error:   MacBook Pro Microphone
[2023:04:07:04:02:03]: Error: Couldn't create audio input
[2023:04:07:04:02:12]: Info: CLIENT DISCONNECTED
[2023:04:07:04:02:23]: Info: CLIENT CONNECTED
[2023:04:07:04:02:23]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:02:23]: Info: Color range: [MPEG]
[2023:04:07:04:02:23]: Warning: audio_control_t::set_sink() unimplemented:
[2023:04:07:04:02:23]: Error: opening microphone '' failed. Please set a valid input source in the Sunshine config.
[2023:04:07:04:02:23]: Error: Available inputs:
[2023:04:07:04:02:23]: Error:   MacBook Pro Microphone
[2023:04:07:04:02:23]: Error: Couldn't create audio input
[2023:04:07:04:02:29]: Info: CLIENT DISCONNECTED
[2023:04:07:04:02:38]: Info: 192.168.255.103: Ping Timeout
[2023:04:07:04:02:38]: Info: CLIENT CONNECTED
[2023:04:07:04:02:38]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:02:38]: Info: Color range: [MPEG]
[2023:04:07:04:02:38]: Warning: audio_control_t::set_sink() unimplemented:
[2023:04:07:04:02:38]: Error: opening microphone '' failed. Please set a valid input source in the Sunshine config.
[2023:04:07:04:02:38]: Error: Available inputs:
[2023:04:07:04:02:38]: Error:   MacBook Pro Microphone
[2023:04:07:04:02:38]: Error: Couldn't create audio input
[2023:04:07:04:02:41]: Info: CLIENT DISCONNECTED
[2023:04:07:04:03:01]: Info: CLIENT CONNECTED
[2023:04:07:04:03:01]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:03:01]: Info: Color range: [MPEG]
[2023:04:07:04:03:02]: Warning: audio_control_t::set_sink() unimplemented:
[2023:04:07:04:03:02]: Error: opening microphone '' failed. Please set a valid input source in the Sunshine config.
[2023:04:07:04:03:02]: Error: Available inputs:
[2023:04:07:04:03:02]: Error:   MacBook Pro Microphone
[2023:04:07:04:03:02]: Error: Couldn't create audio input
[2023:04:07:04:03:07]: Info: CLIENT DISCONNECTED
[2023:04:07:04:03:17]: Info: CLIENT CONNECTED
[2023:04:07:04:03:17]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:03:17]: Info: Color range: [MPEG]
[2023:04:07:04:03:18]: Warning: audio_control_t::set_sink() unimplemented:
[2023:04:07:04:03:18]: Error: opening microphone '' failed. Please set a valid input source in the Sunshine config.
[2023:04:07:04:03:18]: Error: Available inputs:
[2023:04:07:04:03:18]: Error:   MacBook Pro Microphone
[2023:04:07:04:03:18]: Error: Couldn't create audio input
[2023:04:07:04:03:21]: Info: CLIENT DISCONNECTED
[2023:04:07:04:03:27]: Info: CLIENT CONNECTED
[2023:04:07:04:03:27]: Info: SDR color coding [Rec. 709]
[2023:04:07:04:03:27]: Info: Color range: [MPEG]
[2023:04:07:04:03:27]: Warning: audio_control_t::set_sink() unimplemented:
[2023:04:07:04:03:27]: Error: opening microphone '' failed. Please set a valid input source in the Sunshine config.
[2023:04:07:04:03:27]: Error: Available inputs:
[2023:04:07:04:03:27]: Error:   MacBook Pro Microphone
[2023:04:07:04:03:27]: Error: Couldn't create audio input
[2023:04:07:04:03:32]: Info: CLIENT DISCONNECTED
^C[2023:04:07:04:03:41]: Info: Interrupt handler called
@Nonary Nonary added bug Something isn't working os:macOS OS is macOS labels Apr 8, 2023
@Nonary
Copy link
Collaborator

Nonary commented Apr 11, 2023

Just in case people are not aware, if you use 16:10 resolutions on the client this won't happen.

@notch1p
Copy link

notch1p commented May 13, 2023

also encountered this problem on my mbp 14'(m1 pro). after doing some experiments I solved it:

  • the aspect ratio of the client and the host should be the same
  • in my case change the host's aspect ratio to 16: 9 and set resolution to 720p/1080p/2k/4k/anything 16:9 in moonlight works well
  • I use tools like Better Display to change host's resolution

@LizardByte-bot
Copy link
Member

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

@LizardByte-bot
Copy link
Member

This issue was closed because it has been stalled for 10 days with no activity.

@LizardByte-bot LizardByte-bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@ReenigneArcher ReenigneArcher removed the bug Something isn't working label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants