dmlc / dmlc/decord

Error while feeding the filter graph

Open
#183 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

Sometimes, some of the last frame in `vr` is not accessible, even though `vr` object is able to be created.

```
with open(vid_path, 'rb') as f:
vr = VideoReader(f, ctx=cpu(0))
n_frames = len(vr)
print('video frames:', n_frames)
```

Fortunately, it seem only happen a few time, and only happen in last few frames.
```
vr[n_frames - X]
```

```
[12:19:04] /github/workspace/src/video/ffmpeg/threaded_decoder.cc:292:
[12:19:04] /github/workspace/src/video/ffmpeg/filter_graph.cc:100:
Check failed: av_buffersrc_add_frame_flags(buffersrc_ctx_, frame, AV_BUFFERSRC_FLAG_KEEP_REF) >= 0 (-22 vs. 0)
Error while feeding the filter graph
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.