Open Mdaughter opened 3 years ago
Hi, I don't have very specific solutions but a few general observations that are always useful:
If in doubt, there's a new Dockerfile in this repo that has been provided by levan92. You can try to use that as a baseline and install torch from within that.
I see the same issue with ctx=cpu(0)
, so I doubt if it's anything to do with the GPU
I also meet this problem. when I just
from decord import VideoReader
from decord import cpu, gpu
vr = VideoReader(video, ctx=gpu(0))
all is ok, the len(vr)
can be read,in my case,len(vr)
=811.
however,when I do
frames = vr.get_batch([1, 3, 5, 7, 9])
this error coming
DECORDError: [01:55:24] /mnt/zxf/decord_gpu/decord/src/video/nvcodec/cuda_threaded_decoder.cc:270: Check failed: run_.load()
I have the same issue on one of my videos-- CPU only.
I then tried vr.next()
and got a more specific error message:
/github/workspace/src/video/ffmpeg/threaded_decoder.cc:292: [12:57:23] /github/workspace/src/video/ffmpeg
/threaded_decoder.cc:218: Check failed: avcodec_send_packet(dec_ctx_.get(), pkt.get()) >= 0 (-22 vs. 0)
Thread worker: Error sending packet.
I am facing a similar bug where the first N frames will be okay, but anything after frame N will result in those errors (sending packets and run_.load(). Did any one figure this out?
I am not sure if it's related to this issue regarding corrupt frames or pertaining to videos coming from specific cameras.
I am facing a similar bug where the first N frames will be okay, but anything after frame N will result in those errors
I'm having this exact issue too when decoding on the CPU. It's not related to corrupt files because the problem doesn't occur if I install decord from source and use it on the GPU.
I've run into this issue as well (on cpu) -- does anyone have a fix?
I also met the same problem.
It stil exists now, not fixed. Hope to see more solutions
Setting num_threads=1
in VideoReader
resolves the issue for me.
Setting
num_threads=1
inVideoReader
resolves the issue for me.
Thanks! it's work for me
does anyone solve it?
I run the code in docker container and its image is pytorch/pytorch:1.7.1-cuda11.0-cudnn8-devel. I follow the example and build successfully, but something wrong happen
The error pops out like:
Env:ffmpeg 4.3.2,cuda 11.0,RTX 2080 Ti,Ubuntu 18.04