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

Can't play any video #6

Open
RedDragonTix opened this issue Nov 4, 2023 · 0 comments
Open

Can't play any video #6

RedDragonTix opened this issue Nov 4, 2023 · 0 comments

Comments

@RedDragonTix
Copy link

when I try to play a local file I get this:

FPS is 0.0
Traceback (most recent call last):
  File "/home/demax/virtualpython/Colored-ASCII-Video-main/bapple.py", line 145, in <module>
    frame_time = 1 / fps
                 ~~^~~~~
'/home/demax/Video/Playing Minecraft #24 [No Commentary] [531M1gy_Hr0].mp4': No such file or directory
ZeroDivisionError: float division by zero

not even with youtube:

Traceback (most recent call last):
  File "/home/demax/virtualpython/venv/lib/python3.11/site-packages/pytube/__main__.py", line 341, in title
    self._title = self.vid_info['videoDetails']['title']
                  ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'videoDetails'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/demax/virtualpython/Colored-ASCII-Video-main/bapple.py", line 66, in <module>
    path = downloadVid.download_video(video_url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/demax/virtualpython/Colored-ASCII-Video-main/downloadVid.py", line 28, in download_video
    filename = multi_replace_regex(yt.title, replacements) + ".mp4"
                                   ^^^^^^^^
  File "/home/demax/virtualpython/venv/lib/python3.11/site-packages/pytube/__main__.py", line 346, in title
    raise exceptions.PytubeError(
pytube.exceptions.PytubeError: Exception while accessing title of https://youtube.com/watch?v=2xPvB1qKke4. Please file a bug report at https://github.com/pytube/pytube
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

1 participant