abdeladim-s / subsai

🎞️ Subtitles generation tool (Web-UI + CLI + Python package) powered by OpenAI's Whisper and its variants 🎞️
https://abdeladim-s.github.io/subsai/
GNU General Public License v3.0
1.25k stars 104 forks source link

200MB Limit #74

Open MidnightKittenCat opened 11 months ago

MidnightKittenCat commented 11 months ago

"File must be 200.0MB or smaller." when inputting a file over 200mb, I was hopping it can be transcribed/merged without showing the video if >200mb as I would assume thats the main issue, that the library being used can only shows videos <200mb, if this is the case can we still have it so we can download the translated/transcribed video at the end without the preview?

MidnightKittenCat commented 11 months ago

Using "subsai-webui --server.maxUploadSize 5000" seems to bypass this limit allowing for 5gb and up if you change it, giving it a go now to see if this works.

edit: process killed

abdeladim-s commented 11 months ago

@MidnightKittenCat, I tried to catch the error if the file size exceeds the size limit, and it is working fine on my side with a 300 MB file, it can be transcribed without any errors. You can try the last commit.

But I would highly suggest to not use large media files with the webui, as streamlit is limited, use the command line interface for large media files instead.

MidnightKittenCat commented 11 months ago

@MidnightKittenCat, I tried to catch the error if the file size exceeds the size limit, and it is working fine on my side with a 300 MB file, it can be transcribed without any errors. You can try the last commit.

But I would highly suggest to not use large media files with the webui, as streamlit is limited, use the command line interface for large media files instead.

Is the issue with the fact its trying to display the video? If so wouldn’t we just be able to disable it?

and would you be able to give a brief example of how to translate using faster-whisper, with auto detect language to en using the command line or python? Thanks!

I tried using a 700mb file which failed to convert before getting process killed. Perhaps try something close to it?

Edit: I see the new commit disables the preview if its too big, great! I’ll give it another go when I’m home to see if that fixes it, but until then try translating a 700mb or 1gb file.

abdeladim-s commented 11 months ago

No, if you tried the latest update and didn't work then I don't think the issue is related to the video because the video preview is disabled now if the size exceeds the limit. Could you please share the file you are using with me, I will give it a try on my end.

The command line is easy to use, you can find how to use it on the Readme page.

MidnightKittenCat commented 11 months ago

No, if you tried the latest update and didn't work then I don't think the issue is related to the video because the video preview is disabled now if the size exceeds the limit. Could you please share the file you are using with me, I will give it a try on my end.

The command line is easy to use, you can find how to use it on the Readme page.

https://privnote.com/GBV341jj#EVzSe0krY

priv noted for obvious reasons. The link is inside it, the privnote will self destruct after being read.

MidnightKittenCat commented 11 months ago

If you have any issues with downloading it, let me know and I’ll directly upload it.

abdeladim-s commented 11 months ago

No, if you tried the latest update and didn't work then I don't think the issue is related to the video because the video preview is disabled now if the size exceeds the limit. Could you please share the file you are using with me, I will give it a try on my end. The command line is easy to use, you can find how to use it on the Readme page.

https://privnote.com/GBV341jj#EVzSe0krY

priv noted for obvious reasons. The link is inside it, the privnote will self destruct after being read.

Yeah I understand, I couldn't download the file. but no problem, I tried with a movie, almost 900 MB, it worked without any issues. So, you may need to investigate more on your end.

Also if you are using a language other than English (Japanese in your case) you will need to use the large model, 'casue it is the only one which is Multilingual.

MidnightKittenCat commented 11 months ago

image

Seems to translate, but also it just spams "I'm sorry."

abdeladim-s commented 11 months ago

@MidnightKittenCat, this seems like a model issue, Please try different models and different parameters.