shaileshmulange / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

CODEC_ID_MPEG1VIDEO cannot be resolved to a variable #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello Samuel,

I'm new to android and I've been trying to stitch a sequence of images to a 
video. I tried to go with the FFmpegFrameRecorder and I had trouble with this 
code while trying it

opencv_core.IplImage img = cvLoadImage("/sdcard/folder/img1.jpg");
FFmpegFrameRecorder recorder = new 
FFmpegFrameRecorder("/sdcard/folder/test.mpeg",200,150);

try {
     recorder.setCodecID( CODEC_ID_MPEG1VIDEO);
     recorder.setFrameRate(30);
     recorder.setPixelFormat(  PIX_FMT_YUV420P);
     recorder.start();

     for (int i=0;i<100;i++)
     {
         recorder.record(img);
     }
     recorder.stop();
}
catch (Exception e){
     e.printStackTrace();
}

The problem: CODEC_ID_MPEG1VIDEO cannot be resolved to a variable

Am I missing something here? I did follow the instructions here 
http://code.google.com/p/javacv/#Quick_Start_for_OpenCV_and_FFmpeg

What version of the product are you using? On what operating system?
andriod 2.3, WinXp

Please provide any additional information below.
I would very much appreciate if you help me, thank you.

Original issue reported on code.google.com by greycell...@gmail.com on 6 Dec 2012 at 3:05

GoogleCodeExporter commented 9 years ago
It's here:
http://code.google.com/p/javacv/source/search?q=CODEC_ID_MPEG1VIDEO+http%3A%2F%2
Fjavacv.googlecode.com%2Fgit%2F
Please post your questions on the mailing list next time if possible, thank you!

Original comment by samuel.a...@gmail.com on 7 Dec 2012 at 1:43

GoogleCodeExporter commented 9 years ago
Hello Samuel,

I ran to the same problem. The link you posted to the solution is dead. Could 
you please repost? Thank you

Original comment by ktv5...@gmail.com on 13 Apr 2014 at 5:51