Open wayne931121 opened 6 months ago
Or more safe:
total_frames = int(framerate_output.strip().strip(','))
I'll have to test this on Linux, but if you want to do a pull request
On Thu, Jul 18, 2024, 3:32 PM Mykhailo @.***> wrote:
Or more safe:
total_frames = int(framerate_output.strip().strip(','))
— Reply to this email directly, view it on GitHub https://github.com/nadermx/backgroundremover/issues/143#issuecomment-2237379989, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYACXB7TVLOQ5YD5XYNI5LZNAJ6FAVCNFSM6AAAAABHACRYNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXGM3TSOJYHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Good Job.
So I just change utilities.py line 92
to https://stackoverflow.com/questions/25359288/how-to-know-total-number-of-frame-in-a-file-with-cv2-in-python
The error is:
The total frames is 9222, so you can use
or use OpenCV to get frames.
System Windows11