decord
decord copied to clipboard
Segmentation fault (core dumped)
Hi, I have built decord with 'Nvidia Codecs'. When I was trying to decode a video file, an 'Segmentation fault' error occurred in the middle of decoding. Here is my test code:
videoPath="/data/Record/2022-01-20/badmp4/142_20220902200000.mp4"
try:
vr = VideoReader(videoPath, ctx=gpu(0))
#with open(videoPath, 'rb') as f:
# vr = VideoReader(f, ctx=gpu(0))
print("frame count:",len(vr))
for i in range(len(vr)):
if i % 5 != 0:
continue
frame = vr[i]
except Exception as e:
print(e)
print("err")
del vr
The decoding process was aborted by an exception, but no exception was caught:
root@xxx:# python mytest.py
[NULL @ 0x55b657a50920] too many layer_id_included_flags
[NULL @ 0x55b657a50920] missing picture in access unit
frame count: 45016
[NULL @ 0x55b657a50920] too many layer_id_included_flags
[NULL @ 0x55b657a50920] too many layer_id_included_flags
Segmentation fault (core dumped)
@zhreshold Could you please help me to fix the bug, if necessary I can send the corrupted video to you!