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

macOS 系统下只能通过软件编码 #2837

Closed
2 tasks done
zh88782 opened this issue Jul 12, 2024 · 2 comments
Closed
2 tasks done

macOS 系统下只能通过软件编码 #2837

zh88782 opened this issue Jul 12, 2024 · 2 comments

Comments

@zh88782
Copy link

zh88782 commented Jul 12, 2024

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 latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

处理器E5 2666显卡580刷的570 ,windows下sunshine表现优秀没问题。苹果sonoma系统下使用sunshine,已经设置强制使用videotoolbox,结果会报错找不到videotoolbox,只能软件编码导致moonlight端低帧数,闪屏,画面不同步,几乎不能使用的状态。moonlight端在android windows ipad多个平台下测试效果都是上边的情况。

Expected Behavior

macOS系统下能允许通过videotoolbox编码

Additional Context

Error: [h264_videotoolbox @ 0x7fd45f708b00] Error: cannot create compression session: -12902
[2024:07:13:07:20:44]: Error: Could not open codec [h264_videotoolbox]: Generic error in an external library
[2024:07:13:07:20:44]: Info: SDR color coding [Rec. 601]
[2024:07:13:07:20:44]: Info: Color depth: 8-bit
[2024:07:13:07:20:44]: Info: Color range: [JPEG]
[2024:07:13:07:20:44]: Error: [h264_videotoolbox @ 0x7fd45f708480] Error: cannot create compression session: -12902
[2024:07:13:07:20:44]: Error: Could not open codec [h264_videotoolbox]: Generic error in an external library
[2024:07:13:07:20:44]: Info: Encoder [videotoolbox] failed
[2024:07:13:07:20:44]: Error: Couldn't find any working encoder matching [videotoolbox]
[2024:07:13:07:20:44]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:13:07:20:44]: Info: Trying encoder [software]
[2024:07:13:07:20:44]: Info: SDR color coding [Rec. 601]
[2024:07:13:07:20:44]: Info: Color depth: 8-bit
[2024:07:13:07:20:44]: Info: Color range: [JPEG]
[2024:07:13:07:20:44]: Info: [libx264 @ 0x7fd460808180] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024:07:13:07:20:44]: Info: [libx264 @ 0x7fd460808180] profile High, level 4.2, 4:2:0, 8-bit
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] frame I:1 Avg QP:51.00 size: 1312
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] mb I I16..4: 99.6% 0.4% 0.0%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] 8x8 transform intra:0.4%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] i16 v,h,dc,p: 94% 3% 3% 0%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 7% 10% 31% 31% 4% 4% 4% 4% 6%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] i8c dc,h,v,p: 100% 0% 0% 0%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] kb/s:629.76
[2024:07:13:07:20:45]: Info:
[2024:07:13:07:20:45]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:13:07:20:45]: Info:
[2024:07:13:07:20:45]: Info: Found H.264 encoder: libx264 [software]
[2024:07:13:07:20:45]: Error: Couldn't find any of the following libraries: [libavahi-common.3.dylib, libavahi-common.dylib]

Host Operating System

macOS

Operating System Version

sonoma

Architecture

64 bit

Sunshine commit or version

Version v0.23.1

Package

macOS - Homebrew

GPU Type

AMD

GPU Model

580刷的570570

GPU Driver/Mesa Version

AMD Radeon RX 570 8 GB

Capture Method

AVCaptureScreen (macOS)

Config

未找到该文件

Apps

No response

Relevant log output

'[qp] -- [1]
[channels] -- [2]
[upnp] -- [enabled]
[audio_sink] -- [BlackHole 2ch]
[vt_software] -- [forced]
[address_family] -- [both]
[encoder] -- [videotoolbox]
[native_pen_touch] -- [disabled]
[hevc_mode] -- [1]
[wan_encryption_mode] -- [0]
[vt_coder] -- [cabac]
[fec_percentage] -- [100]
[high_resolution_scrolling] -- [disabled]
[av1_mode] -- [1]
[locale] -- [zh]
[2024:07:13:07:20:44]: Info: Sunshine version: v0.23.1
[2024:07:13:07:20:44]: Info: Trying encoder [videotoolbox]
[2024:07:13:07:20:44]: Info: SDR color coding [Rec. 601]
[2024:07:13:07:20:44]: Info: Color depth: 8-bit
[2024:07:13:07:20:44]: Info: Color range: [JPEG]
[2024:07:13:07:20:44]: Error: [h264_videotoolbox @ 0x7fd45f708b00] Error: cannot create compression session: -12902
[2024:07:13:07:20:44]: Error: Could not open codec [h264_videotoolbox]: Generic error in an external library
[2024:07:13:07:20:44]: Info: SDR color coding [Rec. 601]
[2024:07:13:07:20:44]: Info: Color depth: 8-bit
[2024:07:13:07:20:44]: Info: Color range: [JPEG]
[2024:07:13:07:20:44]: Error: [h264_videotoolbox @ 0x7fd45f708480] Error: cannot create compression session: -12902
[2024:07:13:07:20:44]: Error: Could not open codec [h264_videotoolbox]: Generic error in an external library
[2024:07:13:07:20:44]: Info: Encoder [videotoolbox] failed
[2024:07:13:07:20:44]: Error: Couldn't find any working encoder matching [videotoolbox]
[2024:07:13:07:20:44]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:13:07:20:44]: Info: Trying encoder [software]
[2024:07:13:07:20:44]: Info: SDR color coding [Rec. 601]
[2024:07:13:07:20:44]: Info: Color depth: 8-bit
[2024:07:13:07:20:44]: Info: Color range: [JPEG]
[2024:07:13:07:20:44]: Info: [libx264 @ 0x7fd460808180] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024:07:13:07:20:44]: Info: [libx264 @ 0x7fd460808180] profile High, level 4.2, 4:2:0, 8-bit
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] frame I:1     Avg QP:51.00  size:  1312
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] mb I  I16..4: 99.6%  0.4%  0.0%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] 8x8 transform intra:0.4%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] i16 v,h,dc,p: 94%  3%  3%  0%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 10% 31% 31%  4%  4%  4%  4%  6%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] i8c dc,h,v,p: 100%  0%  0%  0%
[2024:07:13:07:20:45]: Info: [libx264 @ 0x7fd460808180] kb/s:629.76
[2024:07:13:07:20:45]: Info: 
[2024:07:13:07:20:45]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:13:07:20:45]: Info: 
[2024:07:13:07:20:45]: Info: Found H.264 encoder: libx264 [software]
[2024:07:13:07:20:45]: Error: Couldn't find any of the following libraries: [libavahi-common.3.dylib, libavahi-common.dylib]
[2024:07:13:07:20:45]: Info: Configuration UI available at [https://localhost:47990]
[2024:07:13:07:20:53]: Warning: Couldn't discover any IPv4 UPNP devices
@ReenigneArcher
Copy link
Member

Please use English.

@Hazer
Copy link
Member

Hazer commented Jul 14, 2024

Version v0.23.1 has issues on macOS, please use a pre-release version.

@ReenigneArcher ReenigneArcher closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
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

3 participants