auto-subtitle icon indicating copy to clipboard operation
auto-subtitle copied to clipboard

Incorrect srt file format

Open adrienlaveau opened this issue 10 months ago • 1 comments

Hello community, Thanks for this great tool. I used it and it seems to work pretty well for the moment. Still I had an issue when trying to overlay the *.srt file over my video using windows media player or camtasia. I get an error message saying the srt file is not a compatible one. image

And indeed when comparing the output with a compatible file, the time stamp are not in the correct format. The 2 issues I see :

  1. time stamp uses "." instead of ","
  2. time stamp is missing leading zeros
    • 0:00:00,000 --> 0:00:23,780 --> incorrect
    • 00:00:00**.000 --> 00:00:23.**780 --> correct

Am I correct ? If yes, how should I solve this ?

note : I used the following command auto_subtitle KT_GoM_LicenseManagement_XTEs_Features.mp4 -o base/ --task translate --srt_only TRUE --language de --model base

Thank you

adrienlaveau avatar Aug 31 '23 07:08 adrienlaveau