hche11 / VGGSound

VGGSound: A Large-scale Audio-Visual Dataset
http://www.robots.ox.ac.uk/~vgg/data/vggsound/
Other
285 stars 31 forks source link

corrupted video? #18

Open xwhjy opened 1 year ago

xwhjy commented 1 year ago

Hi,

Thank you for releasing VGGSound! I've downloaded the dataset via the link here. It contains 199,176 videos. However, when I use skvideo.io.vread to load the video into array, video l6q7shFb8zs_000041 and EktPRpYX9KI_000038 report this error:

Traceback (most recent call last):
  File "/home/anaconda3/envs/myenv/lib/python3.8/site-packages/skvideo/io/ffmpeg.py", line 271, in _read_frame_data
    assert len(arr) == framesize
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "debug.py", line 194, in <module>
    check_corrupted_video()
  File "debug.py", line 173, in check_corrupted_video
    videodata = skvideo.io.vread(video)
  File "/home/anaconda3/envs/myenv/lib/python3.8/site-packages/skvideo/io/io.py", line 148, in vread
    for idx, frame in enumerate(reader.nextFrame()):
  File "/home/anaconda3/envs/myenv/lib/python3.8/site-packages/skvideo/io/ffmpeg.py", line 297, in nextFrame
    yield self._readFrame()
  File "/home/anaconda3/envs/myenv/lib/python3.8/site-packages/skvideo/io/ffmpeg.py", line 281, in _readFrame
    s = self._read_frame_data()
  File "/home/anaconda3/envs/myenv/lib/python3.8/site-packages/skvideo/io/ffmpeg.py", line 275, in _read_frame_data
    raise RuntimeError("%s" % (err1,))
RuntimeError

Does this mean these two videos are corrupted? Thank you for your time and effort. Really looking forward to your reply!