From 94bc750b3eedaf5b26c277cbe139a5fb824203d3 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 21 Aug 2024 13:21:15 +0200 Subject: [PATCH] Add OBS Script --- .config/obs/basic/scenes/ReplayBuffer.json | 2 +- windows11.bat | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.config/obs/basic/scenes/ReplayBuffer.json b/.config/obs/basic/scenes/ReplayBuffer.json index 4c65686..281c002 100644 --- a/.config/obs/basic/scenes/ReplayBuffer.json +++ b/.config/obs/basic/scenes/ReplayBuffer.json @@ -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}} \ No newline at end of file +{"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}} \ No newline at end of file diff --git a/windows11.bat b/windows11.bat index aed4822..0b9ce0c 100644 --- a/windows11.bat +++ b/windows11.bat @@ -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'" ^