Resource icon

Local Stream Marker v1.10

honganqi

New Member
I appear to have fixed it by editing two lines.
Line 23, by changing the default value of frame rate from 30 to 60.
Line 206, inside the get_framerate function, by just setting it to 60 rather than the previous code of
framerate = video_info.fps_num / video_info.fps_num
which, and I know very little of this, seems to always result in a value of 1, which would explain the massively large timestamps. I have also redownloaded the file attached in this thread just to make sure its the current code available, and it is. Perhaps something here can be changed to something better than a hardcoded value of 60 for it to work with the intended effect.
Hey, thanks for pointing out line 206. I was a dumdum and didn't realize I made a typo. That's supposed to be fps_num / fps_den (numerator divided by denominator). Fixed!
 

Leeiuum

New Member
Hi Honganqi and others. Thanks for making this script. Really helpful for me when editing my friend's videos.

I'd like to make a request - if possible of course. Me and my friend uses Streamdeck's (Elgato and Razer's competitive device) and notice that this script is strictly using keybinds. Is there a way to make this work with streamdecks?

This is more if a "if this is an easy implementation, please consider putting it in", but if not then we're perfectly fine with using keybinds. Just wanted to ask the question is all.

Thanks again :)

EDIT:
I looked at my Elgato software and there is a selection for "hotkey" under the "system" category. Should do the trick.

Kept my comment up in case anyone wanted to know as well. This seems a perfect run around.
 
Last edited:

honganqi

New Member
honganqi updated Local Stream Marker with a new update entry:

v1.8

Added
  • Added an "Marker end" function with its own hotkey. Thanks, EmKeii!
  • Added 3 new columns to the CSV file to accommodate the above: Stream End Mark Timestamp, Recording End Mark Timestamp, and Recording File End Mark Timestamp
  • Added the "CSV Filename" field to enable the use of custom filenames.
  • Added the ability to add dynamic date info to the custom filename with "Datetime Format". Add "[date]" to the custom filename to use this. e.g. "my-first-csv [date]"...

Read the rest of this update entry...
 

honganqi

New Member
v1.8 adds 3 new columns. If you're still going to use your CSV files from before v1.8, please note that the columns will not be aligned.

History of CSV columns
v1.8

Date TimeStream StartStream TimestampStream End Mark TimestampRecording Full PathRecording FilenameRecording TimestampRecording End Mark TimestampRecording Timestamp on FileRecording End Mark Timestamp on File

v1.7 - v1.4
Date TimeStream StartStream TimestampRecording Full PathRecording FilenameRecording TimestampRecording Timestamp on File

v1.3 and earlier
Date TimeStream StartStream TimestampRecording FilenameRecording Timestamp
 

BreakTheBoxTV

New Member
I swear this isn't an ad I just thought this was so cool I had to share something I found that makes your already wonderful tool even more useful: http://markerbox.pro/download
You can use Markerbox to import the values of the CSV file directly onto your Premiere timeline, no manual input needed! It will create all the markers for you just using a copy/paste of the timestamp column.
Check out the video here for a demo: https://www.facebook.com/watch/?v=2736821603202223

Also I wanted to ask if there could be a way to add more hotkeys with different titles associated with them? So Hotkey 1 marks it as "Highlight" and Hotkey 2 marks that row as "Raid"? You could use Markerbox to import different colored markers this way.
 

shookieTea

New Member
I'm having an issue where setting a marker creates a new csv file each time, rather than adding an entry. Here are my settings I'm using. This worked until an OBS restart, though I'm not certain what exactly caused the issue to appear. Note that the file seems to say v1.7, but the description does state v1.8. I can provide more information if needed, I'm unsure what could be causing this or what I'd need to provide.

It happens if I move [date] back to the end of the custom file name, as well.

1708042041186.png

1708042132896.png
 

shookieTea

New Member
I'm having an issue where setting a marker creates a new csv file each time, rather than adding an entry. Here are my settings I'm using. This worked until an OBS restart, though I'm not certain what exactly caused the issue to appear. Note that the file seems to say v1.7, but the description does state v1.8. I can provide more information if needed, I'm unsure what could be causing this or what I'd need to provide.

It happens if I move [date] back to the end of the custom file name, as well.

View attachment 101785
View attachment 101786
Looks like my edit button disappeared...

Anyway, I discovered the issue. Since I have time in my file name, that changes every second. If I hit the marker button multiple times within a second, I'll get those markers in a single file. I can change my file to be named with only the date, however this shows another problem. If I'm streaming or recording and midnight rolls over, the next marker press will generate a new file. I'm specifically wanting these file names to match the file names of the recordings, so they're easy to locate and use.

Any chance of an update to the script?
 

honganqi

New Member
Looks like my edit button disappeared...

Anyway, I discovered the issue. Since I have time in my file name, that changes every second. If I hit the marker button multiple times within a second, I'll get those markers in a single file. I can change my file to be named with only the date, however this shows another problem. If I'm streaming or recording and midnight rolls over, the next marker press will generate a new file. I'm specifically wanting these file names to match the file names of the recordings, so they're easy to locate and use.

Any chance of an update to the script?
Hey sorry for the late reply. I noticed this and yeah this was not intended. The date/time at the beginning of the recording/streaming should be the one on the filename instead of it changing every second. I'll update the script and reply here again. Thanks for this.
 

honganqi

New Member
Credits to shookieTea suggesting fixes/changes for this update.

honganqi updated Local Stream Marker with a new update entry:

v1.9

Added
  • Added a "Show debug log" to display log entries in OBS > Scripts > Script Log
Fixed
  • If the CSV filename has the `[date]` shortcode to add date and/or time in the filename, it now uses the date/time at the beginning of the streaming or recording session (in that order of priority). This was the intention from the start. Thanks, shookieTea (OBS Forums)!

Read the rest of this update entry...
 

honganqi

New Member
I don't know of any way to update the writeup of the script so I'm putting the excerpt of this relatively major update here. TL;DR it's about using date/time in the custom filename.

  1. If you have the [date] shortcode to add #8 to your filename, the following settings will apply:
    1. If streaming or recording is not active, the timestamp when the first marker was made will be used for the filename.
    2. If streaming is active, the timestamp when the stream was started will be used for the filename. If there was a file created in #10.1, a new file will be created with this new filename with the new timestamp.
    3. If recording is active:
      1. If streaming, it will continue to use the existing file with the filename created with this new timestamp.
      2. If not streaming, it will create a new file with a filename similar to the case in #10.2.
 

honganqi

New Member
Apologies for the very late reply. I haven't checked this out yet. If the Lua implementation has access to the OBS Websocket, then theoretically it's very possible.
 
Top