You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing the above script on a DJI MP4 video gives the following result:
OpenCV seq: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 500/500 [00:04<00:00, 115.35it/s]
imiter: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 500/500 [00:26<00:00, 18.53it/s]
imopen read: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 500/500 [00:26<00:00, 18.66it/s]
imopen iter: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 500/500 [00:26<00:00, 18.76it/s]
opencv time 4.339s
iio.iter time 26.980s
iio.open read time 26.798s
iio.open ter time 26.648s
Imageio.v3 is significantly slower than opencv in video reading.
My environment:
opencv-python 4.9.0.80
imageio 2.34.1
imageio-ffmpeg 0.4.9
av 12.0.0
Python 3.10.14
OS Ubuntu 22.04.4 LTS
Related issue
I found a similar issue reported: #1050
However, the previous issue is on imageio.v2. The current one is about imageio.v3. Also, seems that the slow reads problem in v2 is also still not solved.
The text was updated successfully, but these errors were encountered:
zzhuolun
changed the title
Video reading speed significantly slower than opencv::VideoCapture
Slow video reading of imageio.v3 compared to opencv
May 23, 2024
Test the video reading speed
I benchmarked the reading speed of .MP4 video between Imageio.v3 and opencv::VideoCapture. This is the python code to compare the speed:
Result
Testing the above script on a DJI MP4 video gives the following result:
Imageio.v3 is significantly slower than opencv in video reading.
My environment:
Related issue
I found a similar issue reported: #1050
However, the previous issue is on imageio.v2. The current one is about imageio.v3. Also, seems that the slow reads problem in v2 is also still not solved.
The text was updated successfully, but these errors were encountered: