ArrowLuo / CLIP4Clip

An official implementation for "CLIP4Clip: An Empirical Study of CLIP for End to End Video Clip Retrieval"
https://arxiv.org/abs/2104.08860
MIT License
880 stars 124 forks source link

cap.set(cv2.CAP_PROP_POS_FRAMES, sec_base + ind) gets some h264 warning message #15

Closed cheetah003 closed 3 years ago

cheetah003 commented 3 years ago

Hi, When I run Clip4Clip code to exact video frames, this code in rawvideo_utils.py:cap.set(cv2.CAP_PROP_POS_FRAMES, sec_base + ind),print some warning message like: [h264 @ 0x56543b236ac0] illegal short term buffer state detected [h264 @ 0x5654397996c0] Missing reference picture, default is 0 [h264 @ 0x5654397996c0] decode_slice_header error

[h264 @ 0x56543aefc800] Invalid NAL unit size (30588 > 15033). [h264 @ 0x56543aefc800] Error splitting the input into NAL units.

Did you met this before? Not sure whether this have effect on frames that we extracted...

ArrowLuo commented 3 years ago

Hi @cheetah003, I have not such warnings. You can do a unit test on the frame extraction to eliminate the problem. Is something wrong with the raw video or the running environment?

cheetah003 commented 3 years ago

Hi @ArrowLuo , I have test on the msrvtt video, and find no warnings. Maybe there is something wrong with the raw video that I used. Thanks~