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

RuntimeError: Could not get number of frames #15

Open
kokobirkinbag opened this issue Feb 20, 2024 · 0 comments
Open

RuntimeError: Could not get number of frames #15

kokobirkinbag opened this issue Feb 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kokobirkinbag
Copy link

Python 3.12.1 / MacOS Monterey 12.5.1
Everything works perfectly except for the modes that need specific frame positions or defined segments (i.e. Bloom, Classic, Jiggle, Overlap, Pulse, Repeat, Rise, and Water Bloom). Those sliders are greyed out/immovable. The following exceptions generate in Terminal when I add a video file:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tkinter/__init__.py", line 1962, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/customtkinter/windows/widgets/ctk_button.py", line 554, in _clicked
    self._command()
  File "/Users/****/Datamosher_Pro/./Datamosher Pro.py", line 149, in open_function
    position_frame.configure(to=vid.count_frames(), number_of_steps=vid.count_frames())
                                ^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/imageio/plugins/ffmpeg.py", line 385, in count_frames
    return cf(self._filename)[0]
           ^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/imageio_ffmpeg/_io.py", line 187, in count_frames_and_secs
    raise RuntimeError("Could not get number of frames")  # pragma: no cover
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Could not get number of frames

Thanks for building this awesome tool. I'm getting a lot out of the many other modes but any help with this would be appreciated.

@Akascape Akascape added the bug Something isn't working label Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants