decord icon indicating copy to clipboard operation
decord copied to clipboard

VideoReader hangs when going out of scope

Open DinoMan opened this issue 3 years ago • 6 comments

I have just started trying this library for loading videos and it has all the features I am looking for. Unfortunately, when I run a simple script to read some video the script doesn't exit and hangs. Here is the minimal example I run:

import decord
vr = decord.VideoReader('example_vid.mp4', width=128, height=128)
vid = vr.get_batch(range(50, 125))

I have checked and it seems to hang on the del function on the _CAPI_VideoReaderFree(self._handle) call.

DinoMan avatar May 18 '21 17:05 DinoMan

I compiled from source and the problem went away but it would still be good to get an explanation about why this happened,

DinoMan avatar May 26 '21 20:05 DinoMan

conflicting c libs might cause the error, since deadlocks are too difficult to track I can only imagine something goes wrong in python call.

zhreshold avatar Jun 14 '21 21:06 zhreshold

I have the same issue after compiling from source.

dmenig avatar Aug 25 '23 09:08 dmenig

I met the same problem

MarStarck avatar Nov 11 '23 03:11 MarStarck

Same, here

KimbingNg avatar Apr 30 '24 08:04 KimbingNg