extremq / gptsubtitler

Automatically subtitle any video spoken in any language to a language of your choice using AI.
MIT License
45 stars 4 forks source link

Does not work at all #1

Open dexter101010 opened 1 year ago

dexter101010 commented 1 year ago

I've installed and tried to generate a subtitle for a movie that have audio in english and want subtitle in romanian but it only do this :

[2023-06-16 21:49:07,634] {model.py:130} INFO - Transcribing ...

And i've waited a lot but nothing happend

extremq commented 1 year ago

How long is the video?

dexter101010 commented 1 year ago

How long is the video?

1hour and 46 minutes. But i've waited like 3 hours or so and still the same message.

dexter101010 commented 1 year ago

It seems that it's working but not what i expected . I put a smaller video and did the command to translate in romanian from english but it generate english subtitle instead of romanian :

Captioning audio. [2023-06-16 22:46:25,851] {model.py:130} INFO - Transcribing ... [2023-06-16 22:50:28,637] {model.py:133} INFO - Inference time: 242.786 s Finished captioning. Generating SRT file. Total lines: 17 Couldn't load tokenizer.

M2M100Tokenizer requires the SentencePiece library but it was not found in your environment. Checkout the instructions on the installation page of its repo: https://github.com/google/sentencepiece#installation and follow the ones that match your environment. Please note that you may need to restart your runtime after installation.

Couldn't generate SRT file. 'NoneType' object has no attribute 'src_lang' Creating video with subtitles. Video with subtitles created.