Sample MP4 Template

Below is a template to create a basic mp4 output.

<?xml version="1.0"?>
<query>
  <userid>[UserID]</userid>
  <userkey>[UserKey]</userkey>
  <action>AddMedia</action>
  <source>[SOURCE URL]</source>
    <format> 
        <output>mp4</output> 
        <size>320x240</size> 
        <bitrate>256k</bitrate> 
        <audio_bitrate>64k</audio_bitrate> 
        <audio_channels_number>2</audio_channels_number> 
        <keep_aspect_ratio>yes</keep_aspect_ratio> 
        <video_codec>mpeg4</video_codec> 
        <profile>main</profile> 
        <VCodecParameters>no</VCodecParameters> 
        <audio_codec>libfaac</audio_codec> 
        <two_pass>no</two_pass> 
        <cbr>no</cbr> 
        <deinterlacing>no</deinterlacing> 
        <keyframe>300</keyframe> 
        <audio_volume>100</audio_volume> 
        <file_extension>mp4</file_extension> 
        <hint>no</hint> 
    </format>
</query>
{
  "query": {
    "userid": "[UserID]",
    "userkey": "[UserKey]",
    "action": "AddMedia",
    "source": "[SOURCE URL]",
    "format": {
      "output": "mp4",
      "size": "320x240",
      "bitrate": "256k",
      "audio_bitrate": "64k",
      "audio_channels_number": "2",
      "keep_aspect_ratio": "yes",
      "video_codec": "mpeg4",
      "profile": "main",
      "VCodecParameters": "no",
      "audio_codec": "libfaac",
      "two_pass": "no",
      "cbr": "no",
      "deinterlacing": "no",
      "keyframe": "300",
      "audio_volume": "100",
      "file_extension": "mp4",
      "hint": "no"
    }
  }
}