m1guelpf / yt-whisper

Using OpenAI's Whisper to automatically generate YouTube subtitles
MIT License
1.36k stars 138 forks source link

How to run on local files? #25

Open Erik262 opened 1 year ago

Erik262 commented 1 year ago

Hi, nice project!! Do you know how to run this on local .mp4 files? Is there a command I could use? Nothing was mentioned in your readme.

Thanks in advance! :)

rhorer commented 1 year ago

Yes, I would like to be able to run this on local files as well.

sloganking commented 1 year ago

I may implement this in a pull request soon. I have a PoC working on my machine. I just haven't cleaned it up. A question for those here. Would you prefer to just replace the URL passed with a file directory, and the script will just figure out which one it is? Or do you want to have separate flags for passing a URL or a directory?

I vote for it just figuring it out.

Erik262 commented 1 year ago

Same here. Vote for figuring out.

msjsc001 commented 1 year ago

It would be nice to be able to translate via local paths