javacv
javacv copied to clipboard
1.5.7 grabImage hanging 1min
hi @saudet
I'm grabbing images from a live streaming, But the data tracker shows the GAP between keyframes and also happens in other frames,
Any ideas why?
CODE: while ((frame = grabber.grabImage()) != null) { if (!frame.keyFrame) { logEvent("FrameTypeCount", "NonKeyFrame"); continue; } logEvent("FrameTypeCount", "KeyFrame"); }
KeyFrame Tracker:
NonKeyFrame Tracker:
early version 1.5.4 shows like this:
Please make sure that FFmpegLogCallback.set()
has been called and check for any warning messages.
Just Normal messages.
Tricky is this problem only happens in prod,In dev everything is just fine(both 1.5.4 and 1.5.7 , same os CentOS 7.6.1810).
And In prod we rollback our app to 1.5.4 the gap can dispear.
Sounds like something that might be related to garbage collection. Make sure it's not causing any signification latency.
Sounds like something that might be related to garbage collection. Make sure it's not causing any signification latency.
Metric system shows no fullgc or CPU usage or IO lag problems. -_-!
Can you try again with JavaCV 1.5.9?
Please try again with the snapshots: http://bytedeco.org/builds/