title: How to stream mpeg-4 stream from AXIS(IP camera) camera instead of mjpeg - Axis Media Control
body: <p>I would like to stream in mp4 format but the problem is that I cannot set right parameters to make it running. </p>
  
  <p>When I want to stream MJPEG I use: </p>
  
  <pre><code>AMC.MediaURL = "http://" + camera.IP + ":" + camera.HTTPPort + "/axis-cgi/mjpg/video.cgi"; 
  AMC.MediaUsername = "root"; 
  AMC.MediaPassword = "1"; 
  AMC.MediaType = "mjpeg"; 
  AMC.Play();
  </code></pre>
  
  <p>and it streams just fine, BUT when I change it to: </p>
  
  <pre><code>AMC.MediaURL = "http://" + camera.IP + ":" + camera.HTTPPort + "/axis-cgi/mpeg-4/video.cgi"; 
  AMC.MediaUsername = "root"; 
  AMC.MediaPassword = "1"; 
  AMC.MediaType = "mpeg-4";          
  AMC.Play();
  </code></pre>
  
  <p>video is never played. How to set right parameters to run mp4 stream. I looked in documentation for samples, hints etc. there are no samples or hints at all.</p>
  
  <p>Mpeg-4 works fine in the web browser so this is not camera fault.</p>