obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.15k stars 7.96k forks source link

obs preview and streaming exists color difference on macos because force use SRGB color space #10278

Open debugly opened 8 months ago

debugly commented 8 months ago

Operating System Info

macOS 14

Other OS

No response

OBS Studio Version

30.0.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

no need any log

OBS Studio Crash Log URL

No response

Expected Behavior

preview same as streaming color.

Current Behavior

prview color is wrong

Steps to Reproduce

open obs app.

Anything else we should know?

three years ago, obs fixed a QT bug:

UI: Disable QT's implicit colourspace conversion on macOS

Fixes issues as described in https://bugreports.qt.io/browse/QTBUG-47660
and halves CPU usage of OBS' UI by about 40-50%.

but now using qt6, the bug already fixed by qt, so obs should restore the window color space.

RytoEX commented 7 months ago

Per the Issue Template:

Bug reports without a log file will get closed without further notice.

Please provide a log file to avoid this Issue being closed.

debugly commented 7 months ago

log:

09:18:15.181: [macOS] Permission for audio device access granted.
09:18:15.184: [macOS] Permission for video device access granted.
09:18:15.189: [macOS] Permission for accessibility denied.
09:18:15.193: [macOS] Permission for screen capture granted.
09:18:15.194: CPU Name: Apple M1
09:18:15.194: Physical Cores: 8, Logical Cores: 8
09:18:15.194: Physical Memory: 16384MB Total
09:18:15.194: OS Name: macOS
09:18:15.194: OS Version: Version 14.3.1 (Build 23D60)
09:18:15.194: Rosetta translation used: false
09:18:15.194: Kernel Version: 23.3.0
09:18:15.195: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
09:18:15.195: Current Date/Time: 2024-03-18, 09:18:15
09:18:15.195: Browser Hardware Acceleration: true
09:18:15.195: Qt Version: 6.5.3 (runtime), 6.5.3 (compiled)
09:18:15.195: Portable mode: false
09:18:15.341: OBS 30.0.2 (mac)
09:18:15.341: ---------------------------------
09:18:15.343: ---------------------------------
09:18:15.343: audio settings reset:
09:18:15.343:   samples per sec: 48000
09:18:15.343:   speakers:        2
09:18:15.343:   max buffering:   960 milliseconds
09:18:15.343:   buffering type:  dynamically increasing
09:18:15.348: ---------------------------------
09:18:15.348: Initializing OpenGL...
09:18:15.387: Loading up OpenGL on adapter Apple Apple M1
09:18:15.387: OpenGL loaded successfully, version 4.1 Metal - 88, shading language 4.10
09:18:15.572: ---------------------------------
09:18:15.572: video settings reset:
09:18:15.572:   base resolution:   1920x1080
09:18:15.572:   output resolution: 1920x1080
09:18:15.572:   downscale filter:  Area
09:18:15.572:   fps:               30/1
09:18:15.572:   format:            NV12
09:18:15.572:   YUV mode:          Rec. 709/Full
09:18:15.572: NV12 texture support not available
09:18:15.572: P010 texture support not available
09:18:15.574: Audio monitoring device:
09:18:15.574:   name: 默认
09:18:15.574:   id: default
09:18:15.574: ---------------------------------
09:18:15.588: No AJA devices found, skipping loading AJA UI plugin
09:18:15.588: Failed to initialize module 'aja-output-ui'
09:18:15.597: No AJA devices found, skipping loading AJA plugin
09:18:15.597: Failed to initialize module 'aja'
09:18:15.604: Failed to load 'en-US' text for module: 'decklink-captions'
09:18:15.607: Failed to load 'en-US' text for module: 'decklink-output-ui'
09:18:15.611: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
09:18:15.611: Failed to initialize module 'decklink'
09:18:15.829: [obs-browser]: Version 2.22.2
09:18:15.830: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.61.26+g3630089+chromium-103.0.5060.134 (compiled)
09:18:15.883: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.3.4 | RPC Version: 1)
09:18:15.883: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.5.3 | Qt version (run-time): 6.5.3
09:18:15.883: [obs-websocket] [obs_module_load] Linked ASIO Version: 102800
09:18:15.887: [obs-websocket] [obs_module_load] Module loaded.
09:18:15.907: [vlc-video]: VLC 3.0.20 Vetinari found, VLC video source enabled
09:18:15.907: ---------------------------------
09:18:15.907:   Loaded Modules:
09:18:15.907:     vlc-video
09:18:15.907:     text-freetype2
09:18:15.907:     rtmp-services
09:18:15.907:     obs-x264
09:18:15.907:     obs-websocket
09:18:15.907:     obs-webrtc
09:18:15.907:     obs-vst
09:18:15.907:     obs-transitions
09:18:15.907:     obs-outputs
09:18:15.907:     obs-filters
09:18:15.907:     obs-ffmpeg
09:18:15.907:     obs-browser
09:18:15.907:     mac-virtualcam
09:18:15.907:     mac-videotoolbox
09:18:15.907:     mac-syphon
09:18:15.907:     mac-capture
09:18:15.907:     mac-avcapture
09:18:15.907:     image-source
09:18:15.907:     frontend-tools
09:18:15.907:     decklink-output-ui
09:18:15.907:     decklink-captions
09:18:15.907:     coreaudio-encoder
09:18:15.907: ---------------------------------
09:18:15.907: [VideoToolbox encoder]: Added VideoToolbox encoders
09:18:15.908: QWidget::setTabOrder: 'first' and 'second' must be in the same window
09:18:15.908: ==== Startup complete ===============================================
09:18:15.945: All scene data cleared
09:18:15.945: ------------------------------------------------
09:18:16.058: coreaudio: Device '外置麦克风' [48000 Hz] initialized
09:18:16.059: [Loaded global audio device]: '麦克风/Aux'
09:18:16.103: coreaudio: Device 'iMac麦克风' [48000 Hz] initialized
09:18:16.125: 视频采集设备: Selected device 'SH-Camera'
09:18:16.127: 视频采集设备: Using preset 1920x1080
09:18:16.138: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: 音频输入采集)
09:18:16.138: 
09:18:16.315: Switched to scene '场景'
09:18:16.315: ------------------------------------------------
09:18:16.315: Loaded scenes:
09:18:16.315: - scene '场景':
09:18:16.317:     - source: '音频输入采集' (coreaudio_input_capture)
09:18:16.317:     - source: '视频采集设备' (av_capture_input_v2)
09:18:16.317:     - source: 'Image' (image_source)
09:18:16.317: ------------------------------------------------
09:18:16.443: Populating font family aliases took 93 ms. Replace uses of missing font family "MS Shell Dlg" with one that exists to avoid this cost. 
09:18:16.720: [mac-virtualcam] mac-camera-extension: Replacement requested. Existing version: 30.0.2 (7160081382), new version: 30.0.2 (7160081382). Replacing...
09:18:17.224: [mac-virtualcam] macOS Camera Extension activated successfully.