Skip to content

Program randomly freezes with cv2.destroy_all_windows() after recording. #2

@GabriellJacinto

Description

@GabriellJacinto

Not so sure what is causing this, I've seen some forums talking about that it is a problem with cv2 itself. Either way there are some options to fix this. I can either

  1. Use another library to handle the recording and video feedback
  2. Try to fix this by putting the recording feedback window inside the canvas of customtkinter (how it is originally supposed to be) instead of waiting for the v2 release.
  3. Hot fix: Create a function that stiches the frozen video back togheter, like a repair tool of a crash manager, because the audio and video recordings are saved before the crash. All I need is a reference to the last saved folder and then check if there is an audio file. If there is all I need to do is find the corresponding video and call ffmpeg to process it again

I will probably go with option 3 tbh it's always good to have a crash manager anyway. When I have time I will look into solution 2.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions