Seeking to a frame by selectively loading av.Packets #1377
Unanswered
Michael-Equi
asked this question in
1. Help
Replies: 1 comment
-
What is It seems like the codec extradata is in the beginning of the stream. That would explain why starting from packet 0 works. I think this implies that codec_context.global_header = False. You need to somehow get the correct extradata to your new codec. Either from the stream in the input container created by the library or manually from the beginning of the stream since it seems to be there. Why not use the codec in the input container that the library created? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am trying to setup a data pipeline that requires H264 seeking over a special file format that retrieves only the bytes corresponding to a specific frame. I am able to retrieve the bytes corresponding to keyframes but it seems that that is not enough to perform decoding. When I start from the first frame and decode everything works fine but I cannot start from a random keyframe. I added some code the outlines what I am doing along with the error that is thrown when I try to read a random keyframe. I believe the issue is related to the codec parameters not being set correctly. Is there an interface that allows me to manually set these parameters? Alternatively, is. there a better way to accomplish this?
Error:
Beta Was this translation helpful? Give feedback.
All reactions