Skip to content
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

javacv 1.5 how to get pkt_pos #2122

Closed
asd6390708 opened this issue Nov 6, 2023 · 1 comment
Closed

javacv 1.5 how to get pkt_pos #2122

asd6390708 opened this issue Nov 6, 2023 · 1 comment
Labels

Comments

@asd6390708
Copy link

I can get pkt_pos value in javaCV 1.4.4, the code like below:

Frame videoFrame = grabber.grabImage(); AVFrame o = (AVFrame) videoFrame.opaque; long position = o.pkt_pos();

but when i upgrade to 1.5 version, o.pkt_pos() return -1
so how can i get pkt_pos, thanks~

@asd6390708
Copy link
Author

asd6390708 commented Nov 8, 2023

I solved this question by myself
you need set FFmpegFrameGrabber imageMode as RAW,and upgrade javaCV version to 1.5.5+ due to #1568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants