Datamosher-Pro icon indicating copy to clipboard operation
Datamosher-Pro copied to clipboard

RuntimeError: Could not get number of frames

Open kokobirkinbag opened this issue 1 year ago • 0 comments

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.

kokobirkinbag avatar Feb 20 '24 19:02 kokobirkinbag