JNoDuq / videobench

VMAF PSNR Bitrate Analyzer
233 stars 45 forks source link

Issue with JPG2000 files #5

Open wabiloo opened 5 years ago

wabiloo commented 5 years ago

Hi,

When trying to work with a JPEG2000 bitstream (in my case, wrapped in an MXF container), I get the following error:



Traceback (most recent call last):
  File "/Users/fabre.lambeau/Bitmovin/Tools/videobench/videobench.py", line 169, in <module>
    ref_obj = manage_ref_file(ref_file)
  File "/Users/fabre.lambeau/Bitmovin/Tools/videobench/videobench.py", line 32, in manage_ref_file
    ref_obj.avg_frame_rate = round((float(num)/float(den)),0)
ZeroDivisionError: float division by zero```

I can provide you with such a file if you don't have one
JNoDuq commented 5 years ago

Hi, send me a sample file, please.

JNoDuq commented 5 years ago

I have add a log level option for try to understand when a video file does not go through the process