title: error:CODEC_ID_MPEG1VIDEO can't be resolved to a variable javacv
body: <p>i'm trying to create video from list of images in android  i'm using this code:
  package com.example.videotest;</p>
  
  <pre><code>import static com.googlecode.javacv.cpp.avcodec.AV_CODEC_ID_MPEG4;
  import static com.googlecode.javacv.cpp.avutil.AV_PIX_FMT_YUV420P;
  import static com.googlecode.javacv.cpp.opencv_highgui.cvLoadImage;
  
  import java.util.ArrayList;
  
  import android.app.Activity;
  import android.graphics.Bitmap;
  import android.graphics.Bitmap.Config;
  import android.graphics.Canvas;
  import android.graphics.drawable.BitmapDrawable;
  import android.graphics.drawable.Drawable;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  
  import com.googlecode.javacv.FFmpegFrameRecorder;
  import com.googlecode.javacv.FrameRecorder.Exception;
  import com.googlecode.javacv.cpp.opencv_core;
  
  public class MainActivity extends Activity implements OnClickListener {
  
      Button start;
      ArrayList&lt;Bitmap&gt;images=new ArrayList&lt;Bitmap&gt;();
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          start=(Button)findViewById(R.id.start);
          start.setOnClickListener(this);
  
      }
  
      public void videoRecorder() throws Exception
      {
  
  
          opencv_core.IplImage img = cvLoadImage("/sdcard/Pictures/Boat.jpg");
          FFmpegFrameRecorder recorder = new FFmpegFrameRecorder("/sdcard/DCIM/test4.mp4",200,150);
  
              try {
                  recorder.setVideoCodec(CODEC_ID_MPEG4);
  
                 recorder.setFrameRate(30);
                 recorder.setPixelFormat(PIX_FMT_YUV420P);
                 recorder.start();
  
                 for (int i=0;i&lt;100;i++)
                 {
                    recorder.record(img);
                 }
                 recorder.stop();
              }
              catch (Exception e){
                 e.printStackTrace();
              }
      }
  
      @Override
      public void onClick(View v) {
          // TODO Auto-generated method stub
          if(v.getId()==R.id.start)
          {
              try {
                  videoRecorder();
              } catch (Exception e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
          }
  
  
      }
  
  
  
  }
  </code></pre>
  
  <p>but i'm getting CODEC_ID_MPEG1VIDEO can't be resolved to a variable </p>
  
  <p>is there something i should import ??  also if i want to use bitmaps images instead of loading from sdcard how can i do this in javacv?</p>