I have transcribed a video using transformers library. Now I have a temporary .txt file for video transcription. I am using pysrt for creating a .srt file for subtitles. I have created a .srt file successfully using following code.
for syncing video with the .srt file. My question is that when my audio file is longer than 25 seconds, I am not able to sync it with the whole video. Is there any external library or code that I can use or any information about how can I sync the resulting .srt file with the input video?
Hi everyone.
I have transcribed a video using transformers library. Now I have a temporary .txt file for video transcription. I am using pysrt for creating a .srt file for subtitles. I have created a .srt file successfully using following code.
and I am saving the resulting file using following line.
srt_file.save("video.srt", encoding="utf-8")
but I am not sure how to synchronize the video with the start and end time. I know that I can play with following two lines
for syncing video with the .srt file. My question is that when my audio file is longer than 25 seconds, I am not able to sync it with the whole video. Is there any external library or code that I can use or any information about how can I sync the resulting .srt file with the input video?
Thanks in advance.