tfaehse / DashcamCleaner

Censor identifiable information in videos, in particular dashcam recordings in Germany.
GNU Affero General Public License v3.0
134 stars 27 forks source link

Application ends before censoring all the video #10

Open marco1539 opened 2 years ago

marco1539 commented 2 years ago

Hello, I'm trying to censor gopro videos. The app starts without problem, but it ends at around 3% with the message that the process has been completed successfully. The .mkv output file is correctly censored, but it does not contain the entire length of the input file.

Do you have any idea of what I can do? Thank you for any help you can provide.

Screenshot (47)

tfaehse commented 2 years ago

Hi @marco1539! Sorry for the late reply.

Theoretically, the loop to go through the whole video is incredibly simple - a CV2 video capture that stops when grabbing the next frame doesn't return True: https://github.com/tfaehse/DashcamCleaner/blob/8eaf3cd9d53d316166455305eb7fcc3ed82a4b0d/dashcamcleaner/src/blurrer.py#L163

This should only happen when the end of a video is reached, but maybe the file is damaged? Does it happen with all files?