How to save video when using OpenCV [closed]
I am trying to do the following: I get video from my android phone camera and do some changes on it using OpenCV. What I need to do then is to save this video. As I understand one can't do it using only OpenCV. So, my question is, if there is any possibility to do this? I need the video in h264 format
Thank you in advance.
Hmm since you are doing this on android there isn't a wrapper available for the moment for the VideoWriter class... However, you could use something called JNI calls to corresponding C++ functionality which is present for openCV.
@StevenPuttemans Thank you. But could I somehow use android.media.MediaCodec for theese Purposes? Just passing it frames from camera and adding them to video?
jenia, if you find something nice, please come back with it, many people here would like to see that solved ;)
@jenia, I don't have that much experience with android, but like @berak said, please do post the solution once you found one! Many people request answers to the same problem :)