decord icon indicating copy to clipboard operation
decord copied to clipboard

Silence Error Messages

Open lancylot2004 opened this issue 2 years ago • 0 comments

Not a bug report, but a request for a bit of help...

Is there a way to disable to disable (error) messages from underlying programmes?

I'm doing the following to check whether a video is corrupt, millions of times:

try:
    vr = VideoReader(path)
    # video is fine...?
except Exception:
    # video is not fine...?

But the error messages, such as ffmpeg's moov atom not found is obstructing my output. Is there any way to disable them?

lancylot2004 avatar Jul 28 '23 06:07 lancylot2004