innovatorved/subtitle

When using a video filename with spaces, getting: "VTT File Not Found!"

Closed this issue · 4 comments

I've cloned the master branch and am running subtitle.py on an MP4 file, using the base model. I get:

Model base exists
file /path/to/file.mp4 data/7b8ad9cb-f715-4926-8fe1-53e81ad50cf8.wav.vtt /path/to/file_subtitled.mp4
An error occurred: An error occurred: VTT File Not Found!
ERROR:root:An error occurred: cannot unpack non-iterable NoneType object

I don't know what a VTT file is, and my MP4 certainly doesn't need it. Looking at the code, it seems that

generate_vtt_file(file, model_names[model])

returns a path, but - doesn't actually generate the VTT.

Share me the video file

@innovatorved : Unfortunately, I cannot. If you'd like, you can send me some executable you'd like to run on the video file... I'm using Devuan GNU/Linux.

For me it was that the filename had spaces in its name.

@innovatorved The output of this tool is very impressive. It really catches subleties and slang (Always Sunny in Philadelphia). Do you think it is possible to add translation to your tool? I have no clue about AI but I know python.

It already translate non english speech to english subtitles

For me it was that the filename had spaces in its name.

My actual filename also had spaces. Will try avoiding those.

It's too bad that the error messages are not verbose enough, we could have been told what filename the program was looking for...