How to drop/skip some frames and decode without decoding the drop frames? #961
Unanswered
PythonImageDeveloper
asked this question in
1. Help
Replies: 1 comment 2 replies
-
I'm interested in this too (left a message in gitter too) My goal is similar:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a python script that can read bytes of a long video. I want to skip some frames in each second. for example the fps of the video is 24 and I want to drop those frames that are not multiplication by 3 if the frame numbers are like this list [1,2,3,4, ...,24] , and I expect this list [3,6,9,12,15,...,24]
the problem is that, if I skip the frames before decoding in pyav, the returned frames are corrupted (when I saved them I see some noises in the saved frames) and also it gave me an error. here is my python code:
` stream_options = [{'codec': 'h264'}]
container = av.open(video_path, stream_options=stream_options)
it gave me an error as below:
co located POCs unavailable reference picture missing during reorder reference picture missing during reorder Missing reference picture, default is 65636
Is there any way to drop frames before decoding in pyav? decoding all frames takes a long time.
Beta Was this translation helpful? Give feedback.
All reactions