SubtleSync
Seamlessly Sync Your Subtitles with SubtleSync
Created on 20th October 2024
•
SubtleSync
Seamlessly Sync Your Subtitles with SubtleSync
The problem SubtleSync solves
The project solves the annoyance of having subtitles that are out of sync with the video. Downloaded subtitles often have a slight offset, meaning they appear either too early or too late compared to the spoken dialogue in the video. This can be distracting and make it difficult to follow the conversation.
The script tackles this problem by automatically adjusting the timestamps in the subtitle file. By providing the observed offset (positive for late subtitles, negative for early), the script synchronizes the subtitle timings with the video, resulting in a more enjoyable viewing experience.
Challenges we ran into
Our major challenge was to calculate the offset for any arbitraty input videos. We finally solved this issue by writing a script that synchronizes two subtitle files(one is the user input with offset and the other downloaded from the video through assemblyai library) by reading both, parsing timestamps, comparing and adjusting timestamps in the second file to match the first, and writing the adjusted lines into a new file. This helps fix subtitle timing issues.
Tracks Applied (2)
