-
Notifications
You must be signed in to change notification settings - Fork 174
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
fix OutOfMemory bug #15
base: master
Are you sure you want to change the base?
Conversation
how to use OpenCV in Android
no need anymore
-remove FfmpegFrameFilter
Sounds good, but please resolve the conflicts! Thanks |
Could you somehow make the changes optional, by leaving it up to the user to use either FFmpeg or OpenCV via a static boolean flag, for example? It would be nice to keep both code examples. |
My OutOfMemory problem comes from FFmpegFrameFilter, I don't know how to fix this bug if still using FFmpeg. |
That's fine, it might be a bug in JavaCV :) |
Another reason, I implement CvCameraPreview tend to use with OpenCV, so it should only depend on OpenCV library. FFmpeg is a quite big library. Keep my class independents on FFmpeg help me reduce my application size. |
That's fine, I would just like to keep the example code somewhere for others to reference, that's all! Maybe as a separate class or something. What do you think? |
I don't think my old code with FFmpeg is a good practice. |
Why not? Some people may simply want to record all the frames into a video file, in which case we would not need OpenCV, so it makes sense to do it with FFmpeg in that case. |
No, I mean my code with FFmpeg is not good enough to be an example because it still contains bugs. I don't want to expose the code contain bugs for everyone. |
Ah, I see what is wrong. We should move the call to |
Ok, I will try, test and get back to you soon. |
Any updates? Have you had some time to check it out? |
I've removed FfmpegFrameFilter out of my project order to tackle OutOfMemory problem