-
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
Upgrade to Ffmpeg 3.x will cause FfmpegFrameRecorder record physical memory OOM #607
Comments
Do you get the same behavior with Java SE or does this happen on Android
only?
|
Sorry to reply so late, I just tried this on android platform because which is my target platform, and I didn't try it on the SE yet! and I will try it later and tell you the result. |
I don't think it will solve your issue, but I got rid of the deprecated calls in the commit above. |
After upgrading from version 1.1 to version 1.3.1 get an |
Could you guys call |
@v4ekmarev Thanks! Not seeing anything wrong though. Could someone try the latest code from the master branch and let me know if the issue is still happening? |
I could try but I do not know how to build the library from source =) |
It's also possible to just use the source code as part of your project... |
Trying to build the project but I don't think I have all the prereqs on my machine. Seems like, for instance, flycapture isn't downloaded to the downloads dir during build. |
You don't need to build the presets, just JavaCV. |
Yes but the latest from your master branch depends on some SNAPSHOT artifacts that are not in Maven Central yet. So right now I am build OpenCV 3.2 in the presets, changing the JavaCV POM to use 3.2, and then building JavaCV. |
We can backport the changes to a release version of JavaCV, that's much easier. |
Ok I modified the POM as follows:
And it fails to compile due to missing symbols in PS3EyeFrameGrabber. Are there other modification I should make locally to test out the latest? |
Do you have any problems building https://github.com/bytedeco/javacv/tree/1.3.1 ? |
Yes same issue. I've even cleared out my local .m2 repo directory to make sure I don't have anything half-baked in there. Compile error is this:
|
Ah yes that's not available on Maven. You can erase that one. |
Since I'm using javacv-platform in my project, I'm not exactly sure how to build the chain
|
Like I said, don't do that. You don't need to do that... |
I've released JavaCV 1.3.2, which doesn't call deprecated functions anymore. If you still have issues with that, it's probably due to JavaCPP, not FFmpeg or JavaCV. Set the "org.bytedeco.javacpp.maxphysicalbytes" system property to "0" during initialization to get the old behavior back. |
I think I've fixed all the memory leaks occurring in |
I've been recently using Ffmpeg to encode captured preview video on android platform, and the project address is as below:
https://github.com/gordon-rawe/Record-Ffmpeg-Android.git
When I upgrade the javacv version to 1.2 or above which means using the dependency of 3.x above version ffmpeg, the Ffmpeg will cause physical memory OOM, I have got some clues, it's cause by the recordImage function, seems the memories allocated are not released inside it, maybe cause by the newer api, but I tries to change the recordImage function, try to use av_frame_free and av_xxx functions to free unused variables,it didn't work, did you experts tried on these new APIs as they are marked deprecated? expecting your reply^_^
The text was updated successfully, but these errors were encountered: