Skip to content

Add tool to generate video subtitles - #37

Merged
m3d merged 5 commits into
masterfrom
feature/subtitles
Aug 27, 2026
Merged

Add tool to generate video subtitles#37
m3d merged 5 commits into
masterfrom
feature/subtitles

Conversation

@m3d

@m3d m3d commented Aug 7, 2026

Copy link
Copy Markdown
Member

AI generated (to be reviewed) code for "machine status subtitles" ... original motivation of multi-log (robotika/osgar#1083) ... as platform is Pat, but video is from Matty M03

Edit: I forgot to add link to the example video with subtitles :)
https://www.youtube.com/watch?v=mkee_2f4eGo

note, that it is expected to fail because I do not plan to add real data into git yet
Comment thread subtitles/README.md
Comment thread subtitles/README.md
Comment thread subtitles/subtitles.py
Comment thread subtitles/subtitles.py Outdated
Comment thread subtitles/subtitles.py Outdated
Comment thread subtitles/subtitles.py
if log_end_time == 0.0:
log_end_time = last_dt.total_seconds()

# If the last event timestamp is greater than log_end_time, adjust log_end_time

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what?! or is it after offset correction?

Comment thread subtitles/subtitles.py Outdated

try:
process_log_to_subtitles(args.logfile, args.output_srt, args.offset)
except Exception as e:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this try/except? Only the trace will be lost :(

Comment thread subtitles/test_subtitles.py Outdated
Comment thread subtitles/test_subtitles.py Outdated
@m3d
m3d merged commit feed65d into master Aug 27, 2026
2 checks passed
@m3d
m3d deleted the feature/subtitles branch August 27, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant