-
Notifications
You must be signed in to change notification settings - Fork 386
Make best effort to get a PTS #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In summary "The pts of a frame is the pts of the first packet needed to decode it." |
oh, we can just us get_buffer2 instead. :p |
The tutorial stores the pts in a global variable, I stored the packet pts and dts in AVCodecContext.opaque instead. |
I just wish we had some definitive proof that this wouldn't blow up in our face, you know? |
I notice you pulled in from stuff from my dranger branch, I'm still not sure if going that way is correct. I've only briefly tested it using that frame_seek_example.py example on various footage with timecode burnt in and it occasionally wasn't correct, but we're as guess_correct was. (could be just my example code) but anyways Its really easy to revert back to best_guess if its a problem. |
I just wanted to merge the huge tangle of branches that was developing. It was, perhaps, a little hasty, but I wanted to do it before it got crazy out of hand (by having them all diverge so much from each other that there would be lots of resistance to merge them). It will be very easy to revert back, so I'll leave it for the time being (because I do want to go in that direction, and the machinery you put in place is nice to have anyways). |
I think the thing to do is not revert it, but to put it in there as yet another way to get a |
I think I've sorted this out. My conclusion is that Dranger's tutorial is dangerously out of date. AVFrame.pkt_pts is copied from the packet for us automatically, and seems to be exactly what we need. D'oh! |
Yup. I'm going to go with that. Simple and clean. =] |
Should we put in the effort to capture PTSes earlier in the decoding process so that we are more likely to have them at all?
See the dranger.com tutorial.
The text was updated successfully, but these errors were encountered: