I have some problems writing a video on android device. I'm trying to
use FFmpegFrameRecorder in the following manner:
recorder = new FFmpegFrameRecorder("/sdcard/download/test.mp4",
imageWidth, imageHeight);
recorder.setCodecID(CV_FOURCC('M','P','4','2'));
...
recorder.start();
But I have some issues with the codecs. I have a warning saying "Codec
Not found". If I skip the setCodecID() part, I have another warning
"Could not open codec".
Do you have some examples of video writing on android devices?
Thank you
Ljupce
Here's a thread with the info you need:
http://groups.google.com/group/javacv/browse_thread/thread/f3175b3c56470e0a/6d3766be5116172a#msg_9fcaf34c79bbe9b8
It worked by setting the following properties:
recorder.setCodecID(CODEC_ID_MPEG4);
recorder.setFormat("mp4");
recorder.setPixelFormat(PIX_FMT_YUV420P);
Ljupce
On 13 déc, 09:43, Samuel Audet <samuel.au...@gmail.com> wrote:
> Hello,
>
> Here's a thread with the info you need:http://groups.google.com/group/javacv/browse_thread/thread/f3175b3c56...