Having issues with VideoReader for certain videos (cannot create buffer source)
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for the awesome package.
I'm having issues with the VideoReader function. Namely, I downloaded the following using yt-dlp: [YouTube video](https://www.youtube.com/watch?v=jJzILuaFu-0) 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)
[](https://localhost:8080/#) in ()
1 videopath = 'data/jJzILuaFu-0.mp4_trimmed.mp4'
2
----> 3 vr = VideoReader(videopath)
[/usr/local/lib/python3.10/dist-packages/decord/video_reader.py](https://localhost:8080/#) 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](https://localhost:8080/#) 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`
https://github.com/dmlc/decord/assets/32596643/b501bf75-29b2-4313-b1b3-678eb64bdd98
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.