jhj0517 / Whisper-WebUI

A Web UI for easy subtitle using whisper model.
Apache License 2.0
1.06k stars 161 forks source link

let "Input Folder Path" can handle videos #280

Open mario-huang opened 2 days ago

mario-huang commented 2 days ago

When use "Click to Upload", we can upload videos. But when use "Input Folder Path", it just ignores videos, can only handle audios. And it will not recursively process when a folder has multiple levels of subdirectories.

Also, It would be best if there were an option to save the output directly in the same folder as the original file, instead of always saving it in a fixed 'outputs' folder.

jhj0517 commented 1 day ago

Hi. Thanks for raising the issue. Video files were already enabled, but I was missing some extension.

I added some in #282, it should work fine now. Can you check?

Regarding outputs path, you can use --output_dir.

python app.py --output_dir "\Path\Your\Outputs"

This will allow you to use a custom output path.