decord icon indicating copy to clipboard operation
decord copied to clipboard

VideoReader Error

Open meocong opened this issue 3 years ago • 2 comments

Thanks for the great work, but I have one problem when read some videos like this one: https://drive.google.com/file/d/13vkGsQQWQKbvLgi23CuS4WQLWI0LxYxJ/view?usp=sharing

The error: [root]:[20983] [2021-04-16 14:58:10 +0700]-[INFO] vr = VideoReader(BytesIO(bytes_data)) [root]:[20983] [2021-04-16 14:58:10 +0700]-[INFO] File "<X>/envs/core/lib/python3.7/site-packages/decord/video_reader.py", line 52, in init [root]:[20983] [2021-04-16 14:58:10 +0700]-[INFO] ba, ctx.device_type, ctx.device_id, width, height, num_threads, 2, fault_tol) [root]:[20983] [2021-04-16 14:58:10 +0700]-[INFO] File "<X>/envs/core/lib/python3.7/site-packages/decord/_ffi/_ctypes/function.py", line 175, in call [root]:[20983] [2021-04-16 14:58:10 +0700]-[INFO] ctypes.byref(ret_val), ctypes.byref(ret_tcode))) [root]:[20983] [2021-04-16 14:58:10 +0700]-[INFO] File "<X>/envs/core/lib/python3.7/site-packages/decord/_ffi/base.py", line 78, in check_call [root]:[20983] [2021-04-16 14:58:10 +0700]-[INFO] raise DECORDError(err_str) [root]:[20983] [2021-04-16 14:58:10 +0700]-[INFO] decord._ffi.base.DECORDError: [14:58:10] /Users/runner/work/decord/decord/src/video/video_reader.cc:270: [BytesIO] Failed to measure duration/frame-count due to broken metadata.

I installed decord from Pypi, can you check it for me? @zhreshold. Thank you a lot!

meocong avatar Apr 16 '21 08:04 meocong

@yinweisu Can you take a time to check this video, thank you a lot!

meocong avatar Apr 20 '21 02:04 meocong

@yinweisu Can you take a time to check this video, thank you a lot!

Have you fixed the problem yet? I have the same problem.

Traceback (most recent call last): File "mike.py", line 34, in vr = VideoReader(f, ctx=cpu(0)) File "/root/.local/lib/python3.7/site-packages/decord-0.6.0-py3.7-linux-x86_64.egg/decord/video_reader.py", line 52, in init ba, ctx.device_type, ctx.device_id, width, height, num_threads, 2, fault_tol) File "/root/.local/lib/python3.7/site-packages/decord-0.6.0-py3.7-linux-x86_64.egg/decord/_ffi/_ctypes/function.py", line 175, in call ctypes.byref(ret_val), ctypes.byref(ret_tcode))) File "/root/.local/lib/python3.7/site-packages/decord-0.6.0-py3.7-linux-x86_64.egg/decord/_ffi/base.py", line 78, in check_call raise DECORDError(err_str) decord._ffi.base.DECORDError: [22:56:36] /workspace/3rd/decord/src/video/video_reader.cc:270: [BytesIO] Failed to measure duration/frame-count due to broken metadata.

zhuipiaochen avatar Jun 11 '22 15:06 zhuipiaochen