24 December 2010
about 14 years ago by Encoding.com Product Team
Multiple source (combine several video files to one file)
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<source>[SourceFile]</source>
<source>[SourceFile1]</source>
<!-- if multiple SourceFile added, they will be concatenated -->
...
<source>[SourceFileN]</source>
<format>
<!-- Format fields -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"source": [
"[SourceFile]",
"[SourceFile1]",
"[SourceFileN]"
],
"format": {}
}
}
SourceFile1..SourceFileN – you can specify several source files as well. All of them will be combined to one file (in sequential order) during the encoding process. You can use different source URLs (HTTP, FTP, S3, CloudFiles) with different media properties (format, frame size, bitrate, codec, etc.) Read more
Multiple destination for each format (task)
Destination fields
There can by multiple elements within each .
...
GetStatus action
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<!-- if multiple SourceFile added, they will be concatenated -->
<!-- ... -->
<source>[SourceFileN]</source>
<format>
<!-- Format fields -->
<destination>[URL]</destination>
<destination>[URL_2]</destination>
...
<destination>[URL_N]</destination>
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"source": "[SourceFileN]",
"format": {
"destination": [
"[URL]",
"[URL_2]",
"[URL_N]"
]
}
}
}
...
Encoding Result XML format
<?xml version="1.0"?>
<response>
<format>
<id>[ID]</id>
<status>[Status]</status>
<!-- ... -->
<destination>[URL]</destination>
<destination_status>[Saved|Error (ErrorDescription)]</destination_status>
<destination>[URL_2]</destination>
<destination_status>[Saved|Error (ErrorDescription)]</destination_status>
<!-- ... -->
<destination>[URL_N]</destination>
<destination_status>[Saved|Error (ErrorDescription)]</destination_status>
</format>
</response>
{
"response": {
"format": {
"id": "[ID]",
"status": "[Status]",
"destination": [
"[URL]",
"[URL_2]",
"[URL_N]"
],
"destination_status": [
"[Saved|Error (ErrorDescription)]",
"[Saved|Error (ErrorDescription)]",
"[Saved|Error (ErrorDescription)]"
]
}
}
}