imageio: run get_reader sequentially for thousands time, get IOError: Could not load meta information

In situation where video_files contains full valid paths to 1500 .avi files, I run this simple script

for j,i in enumerate(self.video_files):
	imageio.get_reader(i,'ffmpeg');
	print(j, " done");
print("all done");

I run four times, first crashes at 362 done second crashes at 1073 done third succeeds at all done fourth crashes at 473 done

Error message:

Traceback (most recent call last): File “test.py”, line 69, in init imageio.get_reader(i,‘ffmpeg’); File “/mydir/anaconda3/envs/cntk-py27/lib/python2.7/site-packages/imageio/core/functions.py”, line 129, in get_reader return format.get_reader(request) File “/mydir/anaconda3/envs/cntk-py27/lib/python2.7/site-packages/imageio/core/format.py”, line 169, in get_reader return self.Reader(self, request) File “/mydir/anaconda3/envs/cntk-py27/lib/python2.7/site-packages/imageio/core/format.py”, line 218, in init self._open(**self.request.kwargs.copy()) File “/mydir/anaconda3/envs/cntk-py27/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py”, line 327, in _open self._load_infos() File “/mydir/anaconda3/envs/cntk-py27/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py”, line 480, in _load_infos raise IOError(fmt % err2) IOError: Could not load meta information === stderr === ffmpeg version 3.3.3-static http://johnvansickle.com/ffmpeg/ Copyright © 2000-2017 the FFmpeg developers built with gcc 6.4.0 (Debian 6.4.0-2) 20170724 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libxvid libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (8 by maintainers)

Commits related to this issue

Most upvoted comments

lol nevermind fixed it. recently I installed an antivirus called Iobit Malware Fighter it blocked or will try to ask your first to allow the process but even after you allowed it, it still blocked you. so I uninstalled it. anyway thanks for the quick reply 😃