Skip to content

Stryfe-Delivery/OBSloggerForVOD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OBSloggerForVOD

log timestamps of scenes to cut to ease VOD editing. when streaming and saving vods for youtube it's helpful to be able to cut out ads, raids, etc. which are often associated with scene changes. Changing the scene creates a timestamped event and you can easily trim down just to the main scenes you want.

to install:
save file to C:\ProgramFiles\obs-studio\data\obs-plugins\frontend-tools\scripts (or appropriate path)
to run:
Open OBS
Go to Tools > Scripts
Click + to add a new Lua script and select the file from this repo
to view:
open directory hard coded in file (change as needed)

Since Lua in OBS cannot directly capture keyboard events, you need an external tool (like AutoHotkey) to listen for the Escape key and log it to the same file.
Install AutoHotkey from here.
Create a new AutoHotkey script with the ahk file

Notes:
The AutoHotkey script only works on Windows, but scene logger should work on Mac/Linux
You will need to run both scripts (OBS Lua script and AutoHotkey) simultaneously during your stream to capture both scene transitions and key presses.
if AHK doesnt run, the LUA will still run fine it just wont capture those keypress events
The log file will be appended with each event, so you can review it later to track what happened during the stream.
For video editing, it is best to start with the last event and trim towards the start of the video to keep things in sync

Example output
2023-11-15 14:30:25 - Streaming started
2023-11-15 14:30:32 (Relative: 00:00:07) - Scene changed to: Game Scene
2023-11-15 14:30:45 (Relative: 00:00:20) - Escape key pressed
2023-11-15 14:31:10 (Relative: 00:00:45) - Scene changed to: Intermission
2023-11-15 14:35:22 (Relative: 00:04:57) - Streaming stopped

About

log timestamps of scenes to cut to ease VOD editing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published