How to save video when using OpenCV [closed]

asked 2014-04-03 07:00:31 -0500

jenia gravatar image

updated 2014-04-03 07:39:55 -0500

berak gravatar image

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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-20 04:51:27.121564


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 gravatar imageStevenPuttemans ( 2014-04-03 07:47:31 -0500 )edit

@StevenPuttemans Thank you. But could I somehow use for theese Purposes? Just passing it frames from camera and adding them to video?

jenia gravatar imagejenia ( 2014-04-03 07:58:35 -0500 )edit

jenia, if you find something nice, please come back with it, many people here would like to see that solved ;)

berak gravatar imageberak ( 2014-04-03 08:22:59 -0500 )edit

@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 :)

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-04 02:22:36 -0500 )edit