title: (Monte Media Library) Record screen im mp4 format
body: <p>Below is Monte Media Library. 
  <a href="http://www.randelshofer.ch/monte/" rel="nofollow">http://www.randelshofer.ch/monte/</a></p>
  
  <p>I am using MonteScreenRecorder jar for record screen.</p>
  
  <p>I am able to store video file in avi format but i want to store in mp4 format </p>
  
  <p>Here is code for avi</p>
  
  <pre><code>import java.awt.*;
  import org.junit.After;
  import org.junit.Before;
  import org.junit.Test;
  import org.monte.media.Format;
  import org.monte.media.math.Rational;
  import org.monte.screenrecorder.ScreenRecorder;
  import static org.monte.media.VideoFormatKeys.*;
  
  ...
  private ScreenRecorder screenRecorder;
  
  public void startRecording() throws Exception
  {
      GraphicsConfiguration gc = GraphicsEnvironment
          .getLocalGraphicsEnvironment()
          .getDefaultScreenDevice()
          .getDefaultConfiguration();
  
      this.screenRecorder = new ScreenRecorder(gc,
          new Format(MediaTypeKey, MediaType.FILE, MimeTypeKey, MIME_AVI),
          new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE,
              CompressorNameKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE,
              DepthKey, 24, FrameRateKey, Rational.valueOf(15),
              QualityKey, 1.0f,
              KeyFrameIntervalKey, 15 * 60),
          new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey, "black",
              FrameRateKey, Rational.valueOf(30)),
          null);
  
      this.screenRecorder.start();
  }
  
  public void stopRecording() throws Exception
  {
      this.screenRecorder.stop();
  }
  ...
  </code></pre>
  
  <p>What are the change is required let me know. </p>
  
  <p>Please Help</p>
  
  <p>Thank you</p>