Add OBS Script

This commit is contained in:
Mylloon 2024-08-21 13:21:15 +02:00
parent 1b593679c8
commit 94bc750b3e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 8 additions and 1 deletions

View file

@ -1 +1 @@
{"DesktopAudioDevice1":{"prev_ver":503447555,"name":"Audio du bureau","uuid":"bd19a8ef-aee4-4725-92b0-8a1d2ab917a1","id":"wasapi_output_capture","versioned_id":"wasapi_output_capture","settings":{"device_id":"default"},"mixers":251,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},"AuxAudioDevice1":{"prev_ver":503447555,"name":"Mic/Aux","uuid":"b72a6bee-252d-4ab5-833e-46bbc4864f76","id":"wasapi_input_capture","versioned_id":"wasapi_input_capture","settings":{"device_id":"default"},"mixers":253,"sync":0,"flags":2,"volume":1.4125375747680664,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{},"filters":[{"prev_ver":503447555,"name":"Suppression du bruit","uuid":"68ca1b8c-53f8-45aa-9dbb-31e8c1a2063b","id":"noise_suppress_filter","versioned_id":"noise_suppress_filter_v2","settings":{"method":"speex"},"mixers":255,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}]},"current_scene":"Scène","current_program_scene":"Scène","scene_order":[{"name":"Scène"}],"name":"ReplayBuffer","sources":[{"prev_ver":503447555,"name":"Capture d'écran","uuid":"62ecad8b-28d0-48f4-a0ef-b6952f9c1de7","id":"monitor_capture","versioned_id":"monitor_capture","settings":{"monitor_id":"\\\\?\\DISPLAY#AOC2590#5&243f34f&2&UID155906#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}"},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},{"prev_ver":503447555,"name":"Scène","uuid":"0b53bf55-6a71-4b86-960a-f2df1c2e0c3d","id":"scene","versioned_id":"scene","settings":{"id_counter":1,"custom_size":false,"items":[{"name":"Capture d'écran","source_uuid":"62ecad8b-28d0-48f4-a0ef-b6952f9c1de7","visible":true,"locked":false,"rot":0.0,"pos":{"x":0.0,"y":0.0},"scale":{"x":1.0,"y":1.0},"align":5,"bounds_type":0,"bounds_align":0,"bounds_crop":false,"bounds":{"x":0.0,"y":0.0},"crop_left":0,"crop_top":0,"crop_right":0,"crop_bottom":0,"id":1,"group_item_backup":false,"scale_filter":"disable","blend_method":"default","blend_type":"normal","show_transition":{"duration":0},"hide_transition":{"duration":0},"private_settings":{}}]},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"OBSBasic.SelectScene":[],"libobs.show_scene_item.1":[],"libobs.hide_scene_item.1":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}],"groups":[],"quick_transitions":[{"name":"Coupure","duration":300,"hotkeys":[],"id":1,"fade_to_black":false},{"name":"Fondu","duration":300,"hotkeys":[],"id":2,"fade_to_black":false},{"name":"Fondu","duration":300,"hotkeys":[],"id":3,"fade_to_black":true}],"transitions":[],"saved_projectors":[],"current_transition":"Fondu","transition_duration":300,"preview_locked":false,"scaling_enabled":false,"scaling_level":0,"scaling_off_x":0.0,"scaling_off_y":0.0,"virtual-camera":{"type2":3},"modules":{"scripts-tool":[],"output-timer":{"streamTimerHours":0,"streamTimerMinutes":0,"streamTimerSeconds":30,"recordTimerHours":0,"recordTimerMinutes":0,"recordTimerSeconds":30,"autoStartStreamTimer":false,"autoStartRecordTimer":false,"pauseRecordTimer":true},"auto-scene-switcher":{"interval":300,"non_matching_scene":"","switch_if_not_matching":false,"active":false,"switches":[]},"captions":{"source":"","enabled":false,"lang_id":1036,"provider":"mssapi"}},"resolution":{"x":1920,"y":1080}}
{"DesktopAudioDevice1":{"prev_ver":503447555,"name":"Audio du bureau","uuid":"bd19a8ef-aee4-4725-92b0-8a1d2ab917a1","id":"wasapi_output_capture","versioned_id":"wasapi_output_capture","settings":{"device_id":"default"},"mixers":251,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},"AuxAudioDevice1":{"prev_ver":503447555,"name":"Mic/Aux","uuid":"b72a6bee-252d-4ab5-833e-46bbc4864f76","id":"wasapi_input_capture","versioned_id":"wasapi_input_capture","settings":{"device_id":"default"},"mixers":253,"sync":0,"flags":2,"volume":1.4125375747680664,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"libobs.mute":[],"libobs.unmute":[],"libobs.push-to-mute":[],"libobs.push-to-talk":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{},"filters":[{"prev_ver":503447555,"name":"Suppression du bruit","uuid":"68ca1b8c-53f8-45aa-9dbb-31e8c1a2063b","id":"noise_suppress_filter","versioned_id":"noise_suppress_filter_v2","settings":{"method":"speex"},"mixers":255,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}]},"current_scene":"Scène","current_program_scene":"Scène","scene_order":[{"name":"Scène"}],"name":"ReplayBuffer","sources":[{"prev_ver":503447555,"name":"Capture d'écran","uuid":"62ecad8b-28d0-48f4-a0ef-b6952f9c1de7","id":"monitor_capture","versioned_id":"monitor_capture","settings":{"monitor_id":"\\\\?\\DISPLAY#AOC2590#5&243f34f&2&UID155906#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}"},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}},{"prev_ver":503447555,"name":"Scène","uuid":"0b53bf55-6a71-4b86-960a-f2df1c2e0c3d","id":"scene","versioned_id":"scene","settings":{"id_counter":1,"custom_size":false,"items":[{"name":"Capture d'écran","source_uuid":"62ecad8b-28d0-48f4-a0ef-b6952f9c1de7","visible":true,"locked":false,"rot":0.0,"pos":{"x":0.0,"y":0.0},"scale":{"x":1.0,"y":1.0},"align":5,"bounds_type":0,"bounds_align":0,"bounds_crop":false,"bounds":{"x":0.0,"y":0.0},"crop_left":0,"crop_top":0,"crop_right":0,"crop_bottom":0,"id":1,"group_item_backup":false,"scale_filter":"disable","blend_method":"default","blend_type":"normal","show_transition":{"duration":0},"hide_transition":{"duration":0},"private_settings":{}}]},"mixers":0,"sync":0,"flags":0,"volume":1.0,"balance":0.5,"enabled":true,"muted":false,"push-to-mute":false,"push-to-mute-delay":0,"push-to-talk":false,"push-to-talk-delay":0,"hotkeys":{"OBSBasic.SelectScene":[],"libobs.show_scene_item.1":[],"libobs.hide_scene_item.1":[]},"deinterlace_mode":0,"deinterlace_field_order":0,"monitoring_type":0,"private_settings":{}}],"groups":[],"quick_transitions":[{"name":"Coupure","duration":300,"hotkeys":[],"id":1,"fade_to_black":false},{"name":"Fondu","duration":300,"hotkeys":[],"id":2,"fade_to_black":false},{"name":"Fondu","duration":300,"hotkeys":[],"id":3,"fade_to_black":true}],"transitions":[],"saved_projectors":[],"current_transition":"Fondu","transition_duration":300,"preview_locked":false,"scaling_enabled":false,"scaling_level":0,"scaling_off_x":0.0,"scaling_off_y":0.0,"virtual-camera":{"type2":3},"modules":{"scripts-tool":[{"path":"C:/Program Files/obs-studio/config/OBSReplayFolders.lua","settings":{}}],"output-timer":{"streamTimerHours":0,"streamTimerMinutes":0,"streamTimerSeconds":30,"recordTimerHours":0,"recordTimerMinutes":0,"recordTimerSeconds":30,"autoStartStreamTimer":false,"autoStartRecordTimer":false,"pauseRecordTimer":true},"auto-scene-switcher":{"interval":300,"non_matching_scene":"","switch_if_not_matching":false,"active":false,"switches":[]},"captions":{"source":"","enabled":false,"lang_id":1036,"provider":"mssapi"}},"resolution":{"x":1920,"y":1080}}

View file

@ -373,6 +373,13 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/Re
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/recordEncoder.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\recordEncoder.json'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
:: OBS Scripts
PowerShell -Command "" ^
"$archive = '%TEMP%\obs-replay-folders.zip';" ^
"Invoke-WebRequest -Uri https://github.com/Mylloon/obs-replay-folders/releases/latest/download/obs-replay-folders.zip -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\obs-studio\config' -Force;" ^
"Remove-Item -Force $archive"
:: Setup the autostart of shadowplay
SCHTASKS /Create /RU "%USERNAME%" /SC ONLOGON /TN "OBS Shadowplay" ^
/TR "'%LOCALAPPDATA%\start_obs_as_shadowplay.bat'" ^