Skip to content
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

Deprecated Package #16

Open
haseeb-heaven opened this issue Jan 16, 2025 · 4 comments
Open

Deprecated Package #16

haseeb-heaven opened this issue Jan 16, 2025 · 4 comments

Comments

@haseeb-heaven
Copy link

here are the logs.

python main.py
Paste the link to the video you want to translate: https://www.youtube.com/watch?v=Z3YsBZljWOo
What lanuage do you wish to translate your video to? Supported languages are --> en (English)/de (German)/fr (French)/pl (Polish)/es (Spanish)/it (Italian) ur
Installing the video...
!!ERROR!! HTTP Error 403: Forbidden
Getting the transcript...
Traceback (most recent call last):
  File "/Users/haseeb-mir/Documents/Code/Python/YouTranslate/main.py", line 11, in <module>
    extract_audio("videos/Original_Video", "audios/sample.mp3") # Extract the audio to use it as a sample for voice cloning
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/haseeb-mir/Documents/Code/Python/YouTranslate/modules/helperFunctions.py", line 108, in extract_audio
    video_clip = VideoFileClip(input_file)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/haseeb-mir/Library/Python/3.11/lib/python/site-packages/moviepy/video/io/VideoFileClip.py", line 88, in __init__
    self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/haseeb-mir/Library/Python/3.11/lib/python/site-packages/moviepy/video/io/ffmpeg_reader.py", line 35, in __init__
    infos = ffmpeg_parse_infos(filename, print_infos, check_duration,
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/haseeb-mir/Library/Python/3.11/lib/python/site-packages/moviepy/video/io/ffmpeg_reader.py", line 270, in ffmpeg_parse_infos
    raise IOError(("MoviePy error: the file %s could not be found!\n"
OSError: MoviePy error: the file videos/Original_Video could not be found!
Please check that you entered the correct path.
@AdiKsOnDev
Copy link
Owner

AdiKsOnDev commented Jan 19, 2025

Hi! Apologies for a timely response. There might be a several issues:

  • Maybe the video you are trying to install went private (unlikely, because currently it is public)
  • Or you made too many calls to YouTube's API (Used the script too many times)
  • Or perhaps the video link you are pasting has an unnecessary space before or after it.

Please get back to me in case you are still facing that problem after double-checking above hypotheses :)
Also do tell me if that happens with all videos you tried to clone.

UPD: I noticed you entered "ur" as a language of choice, currently that's not an option and you should stick with the proposed languages.

@haseeb-heaven
Copy link
Author

Hi! Apologies for a timely response. There might be a several issues:

  • Maybe the video you are trying to install went private (unlikely, because currently it is public)
  • Or you made too many calls to YouTube's API (Used the script too many times)
  • Or perhaps the video link you are pasting has an unnecessary space before or after it.

Please get back to me in case you are still facing that problem after double-checking above hypotheses :) Also do tell me if that happens with all videos you tried to clone.

UPD: I noticed you entered "ur" as a language of choice, currently that's not an option and you should stick with the proposed languages.

The error is video is not downloading because your package is not valid now you should use this package.

yt-dlp==2025.1.15

And ur is available in the Google translate and other packages as well

@haseeb-heaven
Copy link
Author

Check similar project i build but with updated python packages its working for all languages even "Urdu".

youtube-translator

@AdiKsOnDev
Copy link
Owner

AdiKsOnDev commented Jan 19, 2025

Interesting, probably the package got deprecated :/
What's funny is that it still works on my machine xD
I'll double check and make a PR for that, thank you for the observance

@AdiKsOnDev AdiKsOnDev changed the title !!ERROR!! HTTP Error 403: Forbidden Deprecated Package Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants