---
title: "Comment by Bishal Paul on \"Catch Black Frames and Frozen Video Before You Upload: ffmpeg blackdetect + freezedetect in 90 Lines of Python\" | Hashnode"
description: "The freezedetect quirk is a good catch. A freeze that runs to the last frame never gets an end line, so closing the span at the file duration is the right fix."
url: "https://hashnode.com/posts/catch-black-frames-and-frozen-video-before-you-upload-ffmpeg-blackdetect-freezedetect-in-90-lines-of-python/6b0b7eeb141ee22688824865/comment/6b0be500d554d34b994e8a02"
---

[Discussion](https://hashnode.com/posts/catch-black-frames-and-frozen-video-before-you-upload-ffmpeg-blackdetect-freezedetect-in-90-lines-of-python/6b0b7eeb141ee22688824865)

Comment [Catch Black Frames and Frozen Video Before You Upload: ffmpeg blackdetect + freezedetect in 90 Lines of Python](https://hashnode.com/posts/catch-black-frames-and-frozen-video-before-you-upload-ffmpeg-blackdetect-freezedetect-in-90-lines-of-python/6b0b7eeb141ee22688824865)

[Bishal Paul](https://hashnode.com/@bishal-paul)

[3d ago](https://hashnode.com/posts/catch-black-frames-and-frozen-video-before-you-upload-ffmpeg-blackdetect-freezedetect-in-90-lines-of-python/6b0b7eeb141ee22688824865/comment/6b0be500d554d34b994e8a02)

The freezedetect quirk is a good catch. A freeze that runs to the last frame never gets an end line, so closing the span at the file duration is the right fix. I'd have assumed a clean log meant a clean video. The idea of generating deliberately broken test clips instead of hunting for real ones is also what makes the script trustworthy in CI.

[Jaden Vo](https://hashnode.com/@jadenvo259)

[2d ago](https://hashnode.com/posts/catch-black-frames-and-frozen-video-before-you-upload-ffmpeg-blackdetect-freezedetect-in-90-lines-of-python/6b0b7eeb141ee22688824865/comment/6b0be500d554d34b994e8a02#reply-6b0d6d152194ff0bb785a0a8)

Thanks, the frozen ending one bit me first, the log looked totally clean. Glad the broken test clips idea made sense.
