gxalpha / obs-mac-backgroundremoval

Background removal plugin using macOS' system APIs
GNU General Public License v2.0
76 stars 5 forks source link

29.0.2 #1

Open In2013 opened 1 year ago

In2013 commented 1 year ago

This version of OBS can't find the plug-in after installation, it doesn't seem to take effect, macos apple chip

gxalpha commented 1 year ago

Hello, could you please send an OBS log?

In OBS Studio, click the Help menu → Log Files → Upload Current Log File

  1. Click the Copy URL button
  2. Paste the link here
In2013 commented 1 year ago
18:08:09.464: [macOS] Permission for audio device access granted.
18:08:09.466: [macOS] Permission for video device access granted.
18:08:09.469: [macOS] Permission for accessibility granted.
18:08:09.473: [macOS] Permission for screen capture granted.
18:08:09.473: CPU Name: Apple M1
18:08:09.473: Physical Cores: 8, Logical Cores: 8
18:08:09.473: Physical Memory: 16384MB Total
18:08:09.473: OS Name: macOS
18:08:09.473: OS Version: Version 13.2 (Build 22D49)
18:08:09.473: Rosetta translation used: false
18:08:09.473: Kernel Version: 22.3.0
18:08:09.475: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:08:09.476: Current Date/Time: 2023-04-19, 18:08:09
18:08:09.476: Browser Hardware Acceleration: true
18:08:09.476: Qt Version: 6.4.1 (runtime), 6.4.1 (compiled)
18:08:09.476: Portable mode: false
18:08:09.761: OBS 29.0.2 (mac)
18:08:09.761: ---------------------------------
18:08:09.763: ---------------------------------
18:08:09.763: audio settings reset:
18:08:09.763:   samples per sec: 48000
18:08:09.763:   speakers:        2
18:08:09.763:   max buffering:   960 milliseconds
18:08:09.763:   buffering type:  dynamically increasing
18:08:09.766: ---------------------------------
18:08:09.766: Initializing OpenGL...
18:08:09.813: Loading up OpenGL on adapter Apple Apple M1
18:08:09.813: OpenGL loaded successfully, version 4.1 Metal - 83, shading language 4.10
18:08:09.965: ---------------------------------
18:08:09.965: video settings reset:
18:08:09.965:   base resolution:   1920x1080
18:08:09.965:   output resolution: 1920x1080
18:08:09.965:   downscale filter:  Bicubic
18:08:09.965:   fps:               30/1
18:08:09.965:   format:            NV12
18:08:09.965:   YUV mode:          Rec. 709/Partial
18:08:09.965: NV12 texture support not available
18:08:09.965: P010 texture support not available
18:08:09.965: Audio monitoring device:
18:08:09.965:   name: 默认
18:08:09.965:   id: default
18:08:09.965: ---------------------------------
18:08:09.973: No AJA devices found, skipping loading AJA UI plugin
18:08:09.973: Failed to initialize module 'aja-output-ui'
18:08:09.981: No AJA devices found, skipping loading AJA plugin
18:08:09.981: Failed to initialize module 'aja'
18:08:09.983: Failed to load 'en-US' text for module: 'decklink-captions'
18:08:09.985: Failed to load 'en-US' text for module: 'decklink-output-ui'
18:08:09.988: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
18:08:09.989: Failed to initialize module 'decklink'
18:08:11.319: [VideoToolbox encoder]: Adding VideoToolbox encoders
18:08:11.375: [obs-browser]: Version 2.19.0
18:08:11.375: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.61.23+g2fe5a76+chromium-103.0.5060.134 (compiled)
18:08:11.398: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.1.0 | RPC Version: 1)
18:08:11.398: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.4.1 | Qt version (run-time): 6.4.1
18:08:11.398: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
18:08:11.404: [obs-websocket] [obs_module_load] Module loaded.
18:08:11.413: os_dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib->/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib): dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib, 0x0101): tried: '/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib' (no such file), '/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib' (no such file)
18:08:11.413: 
18:08:11.413: [vlc-video]: Couldn't find VLC installation, VLC video source disabled
18:08:11.414: Failed to load 'zh-CN' text for module: '3d-effect'
18:08:11.414: [3D Effect] loaded version 0.0.2
18:08:11.417: [Move Transition] loaded version 2.8.2
18:08:11.428: Failed to load 'zh-CN' text for module: 'obs-backgroundremoval'
18:08:11.428: [obs-backgroundremoval] plugin loaded successfully (version 0.5.14)
18:08:11.428: ---------------------------------
18:08:11.428:   Loaded Modules:
18:08:11.428:     obs-backgroundremoval
18:08:11.428:     move-transition
18:08:11.428:     3d-effect
18:08:11.428:     vlc-video
18:08:11.428:     text-freetype2
18:08:11.428:     rtmp-services
18:08:11.428:     obs-x264
18:08:11.428:     obs-websocket
18:08:11.428:     obs-vst
18:08:11.428:     obs-transitions
18:08:11.428:     obs-outputs
18:08:11.428:     obs-filters
18:08:11.428:     obs-ffmpeg
18:08:11.428:     obs-browser
18:08:11.428:     mac-virtualcam
18:08:11.428:     mac-videotoolbox
18:08:11.428:     mac-syphon
18:08:11.428:     mac-capture
18:08:11.428:     mac-avcapture
18:08:11.428:     image-source
18:08:11.428:     frontend-tools
18:08:11.428:     decklink-output-ui
18:08:11.428:     decklink-captions
18:08:11.428:     coreaudio-encoder
18:08:11.428: ---------------------------------
18:08:11.429: ==== Startup complete ===============================================
18:08:11.582: All scene data cleared
18:08:11.582: ------------------------------------------------
18:08:11.627: [obs-scripting]: Loaded lua script: lower-thirds_hotkeys.lua
18:08:11.887: coreaudio: Device 'iShotAudioPlugin' [48000 Hz] initialized
18:08:11.887: [Loaded global audio device]: '麦克风/Aux'
18:08:12.199: 视频采集设备: Selected device 'FaceTime HD Camera'
18:08:12.199: 视频采集设备: Could not load frame rate
18:08:12.214: [obs-backgroundremoval] Destroy scalers.
18:08:12.285: adding 106 milliseconds of audio buffering, total audio buffering is now 106 milliseconds (source: macOS 屏幕捕获 Chrome)
18:08:12.285: 
18:08:12.824: [obs-backgroundremoval] Model models/mediapipe.onnx input 0: name input_1:0 shape (4 dim) 1 x 96 x 160 x 3
18:08:12.824: [obs-backgroundremoval] Model models/mediapipe.onnx output 0: name segment:0 shape (4 dim) 1 x 96 x 160 x 2
18:08:12.824: [obs-backgroundremoval] Allocated 46080 sized float-array for input 0
18:08:12.824: [obs-backgroundremoval] Allocated 30720 sized float-array for output 0
18:08:13.230: Switched to scene '场景 3'
18:08:13.230: ------------------------------------------------
18:08:13.230: Loaded scenes:
18:08:13.230: - scene '大画面小头像':
18:08:13.230:     - source: 'macOS 屏幕捕获 Chrome' (screen_capture)
18:08:13.230:         - filter: '3D Effect' (3d_effect_filter)
18:08:13.230:     - source: '视频采集设备' (av_capture_input_v2)
18:08:13.230:         - filter: '应用 LUT' (clut_filter)
18:08:13.230:         - filter: '色值' (color_key_filter_v2)
18:08:13.230:         - filter: 'Background Removal' (background_removal)
18:08:13.230:     - source: '浏览器' (browser_source)
18:08:13.230: - scene '小画面大头像':
18:08:13.230:     - source: '视频采集设备' (av_capture_input_v2)
18:08:13.230:         - filter: '应用 LUT' (clut_filter)
18:08:13.230:         - filter: '色值' (color_key_filter_v2)
18:08:13.230:         - filter: 'Background Removal' (background_removal)
18:08:13.230:     - source: 'macOS 屏幕捕获 Chrome' (screen_capture)
18:08:13.230:         - filter: '3D Effect' (3d_effect_filter)
18:08:13.230: - scene '场景 2':
18:08:13.230:     - source: '浏览器' (browser_source)
18:08:13.230: - scene '场景 3':
18:08:13.230:     - source: 'macOS 屏幕捕获 Chrome' (screen_capture)
18:08:13.230:         - filter: '3D Effect' (3d_effect_filter)
18:08:13.230:     - source: 'macOS 屏幕采集 键盘' (screen_capture)
18:08:13.230:     - source: 'macOS 屏幕采集 Iterm' (screen_capture)
18:08:13.230:     - source: '文本 (FreeType 2)' (text_ft2_source_v2)
18:08:13.230: ------------------------------------------------
18:08:13.914: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:08:13.945: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:08:30.136: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:08:56.723: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:08:56.724: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:08:56.747: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:09:06.676: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:09:06.687: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:09:22.642: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:09:22.672: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:09:33.644: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:09:33.703: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:10:27.802: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:10:27.817: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:10:28.902: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:10:28.913: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:10:30.371: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:10:31.652: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:12:07.230: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:12:07.271: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:12:07.337: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:12:07.349: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:12:09.648: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:12:09.656: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:12:10.554: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:12:10.577: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
18:12:17.871: hotkeys-cocoa: Using layout 'com.apple.keylayout.ABC'
18:12:17.889: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
onehundredfeet commented 1 year ago

It's not in the plugin directory. Where does it copy it to?

lordgrenville commented 1 year ago

I also had this issue, and solved it. Apparently the plugins directory doesn't exist. I created it (mkdir ~/Library/Application\ Support/obs-studio/plugins), and then reran the installer and restarted OBS and the filter was there.

gxalpha commented 1 year ago

Hmm, interesting. I will have to look into that. Thanks!

forcedmeme commented 1 year ago

I had the same issue (not appearing in the plugins directory), so I checked in /Library on my root drive and it had installed there, not ~/Library. I manually moved the file to the folder in ~/Library/Application support... and it worked as expected after that. FWIW, other plug-ins seem to be installing to my root instead of home folder, too. I have no idea why.