extract subtitle *text* at selected timestamp and include it in posts #5

Open
opened 2023-08-31 20:11:33 -04:00 by xenofem · 1 comment
Owner

things to consider:

  • how to get ffmpeg to give us subtitles that started before the current timestamp but are still onscreen now
  • make sure that the subtitles are already ass or srt
  • strip out xml tags?
things to consider: - how to get ffmpeg to give us subtitles that started *before* the current timestamp but are still onscreen now - make sure that the subtitles are already ass or srt - strip out xml tags?
Author
Owner

ok yeah i don't think ffmpeg is gonna be cooperative, what we should probably do is just extract the whole subtitle track as an srt, and then use the srtlib crate to parse it, and just iterate through to find every subtitle that starts before our timestamp and ends after our timestamp.

ok yeah i don't think ffmpeg is gonna be cooperative, what we should probably do is just extract the whole subtitle track as an srt, and then use the `srtlib` crate to parse it, and just iterate through to find every subtitle that starts before our timestamp and ends after our timestamp.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: xenofem/screencap-bot#5
No description provided.