One of the unique and powerful features of our API is the ability to generate more than one output format in a single API request. To accomplish this you can simply duplicate the <format> parameters for each output type that you require. You can generate an unlimited number of outputs per API request. This is a simple and efficient way to generate multiple outputs in different bitrates, video formats, thumbnails, or mobile presets. Below is an example of the XML you would send to generate one MP4 file and 5 thumbnails:
<?xml version="1.0"?>
<query>
<action>AddMedia</action>
<userid>XYZZ</userid>
<userkey/>84728947239847290347234</userkey>
<source>ftp://user:password@server/path/file.avi</source>
<notify>mailto:your@yourdomain.com</notify>
<format>
<output>mp4</output>
<destination>ftp://user:password@server/path/file.mp4</destination>
<size>420x0</size>
<bitrate>800k</bitrate>
<audio_bitrate>96k</audio_bitrate>
<audio_channels_number>2</audio_channels_number>
<keep_aspect_ratio>yes</keep_aspect_ratio>
<video_codec>libx264</video_codec>
<profile>main</profile>
<audio_codec>libfaac</audio_codec>
<two_pass>no</two_pass>
<turbo>yes</turbo>
<cbr>no</cbr>
<deinterlacing>yes</deinterlacing>
<keyframe>300</keyframe>
<audio_volume>100</audio_volume>
<rotate>def</rotate>
<file_extension>mp4</file_extension>
<hint>no</hint>
</format>
<format>
<output>thumbnail</output>
<time>10</time>
<video_codec>mjpeg</video_codec>
<width>160</width>
<height>120</height>
<keep_aspect_ratio>yes</keep_aspect_ratio>
<destination>ftp://user:password@server/path/thumbnail1.jpg</destination>
<file_extension>jpg</file_extension>
<rotate>def</rotate>
</format>
<format>
<output>thumbnail</output>
<time>20</time>
<video_codec>mjpeg</video_codec>
<width>160</width>
<height>120</height>
<keep_aspect_ratio>yes</keep_aspect_ratio>
<destination>ftp://user:password@server/path/thumbnail2.jpg</destination>
<file_extension>jpg</file_extension>
<rotate>def</rotate>
</format>
<format>
<output>thumbnail</output>
<time>30</time>
<video_codec>mjpeg</video_codec>
<width>160</width>
<height>120</height>
<keep_aspect_ratio>yes</keep_aspect_ratio>
<destination>ftp://user:password@server/path/thumbnail3.jpg</destination>
<file_extension>jpg</file_extension>
<rotate>def</rotate>
</format>
<format>
<output>thumbnail</output>
<time>40</time>
<video_codec>mjpeg</video_codec>
<width>160</width>
<height>120</height>
<keep_aspect_ratio>yes</keep_aspect_ratio>
<destination>ftp://user:password@server/path/thumbnail4.jpg</destination>
<file_extension>jpg</file_extension>
<rotate>def</rotate>
</format>
<format>
<output>thumbnail</output>
<time>50</time>
<video_codec>mjpeg</video_codec>
<width>160</width>
<height>120</height>
<keep_aspect_ratio>yes</keep_aspect_ratio>
<destination>ftp://user:password@server/path/thumbnail5.jpg</destination>
<file_extension>jpg</file_extension>
<rotate>def</rotate>
</format>
</query>