-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keeps returning the exact same error no matter if it has subtitles or not #357
Comments
duplicate of #303 |
I was having the same issue, ended up making a similar program, may not work in your case though since it also adds the subtitles to the video. It's more barebones than this repo but it works https://github.com/tikene/video-caption-and-translate - I'll delete this if linking other repos isnt allowed. Btw you do need an OpenAI api key but it's pretty cheap to use |
@tikene Worth noting that this solution does not retrieve YouTubes original transcript, but uses OpenAI Whisper model to transcribe the video. Whisper isn't really great at transcribing noisy audio, so be aware that transcript quality probably isn't as good as YouTubes original transcripts. Also, using the OpenAI API to do that will probably be more expensive than paying for a proxy tbh. |
Absolutely correct, my implementation requires an OpenAI api key and costs around 2 cents per 2 minutes of video. My use case is mostly for translating videos which don't have manually added captions already, which it does do pretty well (better than youtube's auto translation feature anyways thats for sure) so I think these projects are complimented nicely. If a video already has proper translated captions (manually added), then its definitely better and cheaper to use yours |
DO NOT DELETE THIS! Please take the time to fill this out properly. I am not able to help you if I do not know what you are executing and what error messages you are getting. If you are having problems with a specific video make sure to include the video id.
To Reproduce
Steps to reproduce the behavior:
enter in any URL to the API which i am making and uses the library:
yt
What code / cli command are you executing?
I am running
Error extracting transcript: \nCould not retrieve a transcript for the video https://www.youtube.com/watch?v=BUmTEFDSTrQ! This is most likely caused by:\n\nSubtitles are disabled for this video\n\nIf you are sure that the described cause is not responsible for this error and that a transcript should be retrievable, please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues. Please add which version of youtube_transcript_api you are using and provide the information needed to replicate the error. Also make sure that there are no open issues which already describe your problem!
The text was updated successfully, but these errors were encountered: