decord
decord copied to clipboard
VideoReader hangs when going out of scope
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.
I compiled from source and the problem went away but it would still be good to get an explanation about why this happened,
conflicting c libs might cause the error, since deadlocks are too difficult to track I can only imagine something goes wrong in python call.
I have the same issue after compiling from source.
I met the same problem
Same, here