You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having issues with the VideoReader function. Namely, I downloaded the following using yt-dlp: YouTube video which was saved as an mp4 video path attached below. I then tried the following code.
Thanks for the awesome package.
I'm having issues with the VideoReader function. Namely, I downloaded the following using yt-dlp: YouTube video which was saved as an mp4 video path attached below. I then tried the following code.
videopath = 'data/jJzILuaFu-0.mp4_trimmed.mp4' vr = VideoReader(videopath)
But got the following error below. I was wondering if I could get some advice on what to do here.
Uploading jJzILuaFu-0.mp4_trimmed.mp4…
`DECORDError Traceback (most recent call last)
in <cell line: 3>()
1 videopath = 'data/jJzILuaFu-0.mp4_trimmed.mp4'
2
----> 3 vr = VideoReader(videopath)
/usr/local/lib/python3.10/dist-packages/decord/video_reader.py in init(self, uri, ctx, width, height, num_threads, fault_tol)
52 ba, ctx.device_type, ctx.device_id, width, height, num_threads, 2, fault_tol)
53 else:
---> 54 self._handle = _CAPI_VideoReaderGetVideoReader(
55 uri, ctx.device_type, ctx.device_id, width, height, num_threads, 0, fault_tol)
56 if self._handle is None:
/usr/local/lib/python3.10/dist-packages/decord/_ffi/_ctypes/function.py in call(self, *args)
171 ret_val = DECORDValue()
172 ret_tcode = ctypes.c_int()
--> 173 check_call(_LIB.DECORDFuncCall(
174 self.handle, values, tcodes, ctypes.c_int(num_args),
175 ctypes.byref(ret_val), ctypes.byref(ret_tcode)))
78 raise DECORDError(err_str)
79
80
DECORDError: [15:02:47] /github/workspace/src/video/ffmpeg/filter_graph.cc:61: Check failed: avfilter_graph_create_filter(&buffersrc_ctx_, buffersrc, "in", args, _null, filter_graph.get()) >= 0 (-22 vs. 0) Cannot create buffer source`
jJzILuaFu-0.mp4_trimmed.mp4
The text was updated successfully, but these errors were encountered: