-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How to get Frame Type( I、P、B)by JavaCV #1729
Comments
It's not currently copied, but it shouldn't be too hard to fetch that information around this line: |
I’m not very familiar with its code.... It seems that I should add an attribute like pictType in Frame Class? and then assign picture.pict_type() to it? |
Sounds reasonable, yes. |
OK, I will have a try |
I am adding pictType to Frame class. And adding pkt_dts, pts to it at the same time. which I think it might be useful. |
That file shouldn't get compiled, you can ignore it. I don't think we should expose dts and pts. AFAIK that's only useful for packets, not frames, right? In any case, a reference to the original AVFrame is in Frame.opaque, so you could access it that way in your code without modifying JavaCV, if that's OK with you? |
Yes. Frame.opaque is a good way to access the unused attributes. |
…l to `av_frame_copy_props()` (issue #1729)
Ah, yes, you're right, those fields are not getting set in that |
Hi,saudet. |
…l to `av_frame_copy_props()` (issue bytedeco#1729)
Frame frame=ffmpegGrameGrabber.grabFrame(false,true,true,false,false);
But all frame.opaque.pict_type()==AV_PICTURE_TYPE_NONE
The text was updated successfully, but these errors were encountered: