How should I format my XML for Encoding.com?

Taken from our API documentation, our sample XML serves as a starting point for API Integration with Encoding.com

<?xml version="1.0"?> 
<query> 
    <!-- Main fields --> 
    <userid>[UserID]</userid> 
    <userkey>[UserKey]</userkey> 
    <action>[Action]</action> 
    <mediaid>[MediaID]</mediaid> 
    <source>[SourceFile]</source> 
    <source>[SourceFile1]</source> <!-- if multiple SourceFile added, they will be concatenated -->  
    <!-- ... -->
    <source>[SourceFileN]</source> 
    <notify>[NotifyURL]</notify> 
    <instant>[yes|no]</instant> 
    <format> 
        <!-- Format fields --> 
        <noise_reduction>luma_spatial:chroma_spatial:luma_temp</noise_reduction> 
        <output>[Output format]</output> 
        <video_codec>[Video Codec]</video_codec> 
        <audio_codec>[Audio Codec]</audio_codec> 
        <bitrate>[Video bitrate]</bitrate> 
        <audio_bitrate>[Audio bitrate]</audio_bitrate> 
        <audio_sample_rate>[Audio quality]</audio_sample_rate> 
        <audio_volume>[Volume]</audio_volume>        
        <size>[Size]</size> 
        <crop_left>[Crop Left]</crop_left> 
        <crop_top>[Crop Top]</crop_top> 
        <crop_right>[Crop Right]</crop_right> 
        <crop_bottom>[Crop Bottom]</crop_bottom> 
        <keep_aspect_ratio>[yes/no]</keep_aspect_ratio> 
        <set_aspect_ratio>[ASPECT_RATIO]</set_aspect_ratio> 
        <add_meta>[yes/no]</add_meta> 
        <hint>[yes/no]</hint> 
        <rc_init_occupancy>[RC Occupancy]</rc_init_occupancy> 
        <minrate>[Min Rate]</minrate> 
        <maxrate>[Max Rate]</maxrate> 
        <bufsize>[RC Buffer Size]</bufsize> 
        <keyframe>[Keyframe Period (GOP)]</keyframe> 
        <start>[Start From]</start> 
        <duration>[Result Duration]</duration> 
        <output>mpeg2</output> 
        <keyframe>[12|15|25|30]</keyframe>  
        <bframes>[2|0]</bframes> 
        <gop>[cgop|sgop]</gop>  
        <output>[PRESET_NAME]</output> 
        <!-- Metadata fields (OPTIONAL) -->
        <metadata>  
            <title>[Title]</title>  
            <copyright>[Copyright]</copyright>  
            <author>[Author]</author>  
            <description>[Description]</description>  
            <album>[Album]</album>
        </metadata>  
        <!-- Destination fields -->  
        <destination>[DestFile]</destination>  
        <destination>[DestFile2]</destination>  
        <!-- ... -->
        <destination>[DestFileN]</destination> 
        <!-- Logo fields (OPTIONAL) -->  
        <logo>  
            <logo_source>[LogoURL]</logo_source>  
            <logo_x>[LogoLeft]</logo_x>  
            <logo_y>[LogoTop]</logo_y>  
            <logo_mode>[LogoMode]</logo_mode>  
            <logo_threshold>[LogoTreshold]</logo_threshold>  
            <logo_transparent>[LogoTransparent]</logo_transparent>  
        </logo>  
        <!-- Video codec parameters (OPTIONAL, while only for libx264 video codec) -->  
        <video_codec_parameters>
            <!-- To see the example for parameters please follow this link -->
        </video_codec_parameters>  
        <!-- Profile & Level (OPTIONAL, while only for libx264 video codec) -->  
        <profile>[high/main/baseline]</profile> 
        <level>[11/30/51]</level> <!--drop the decimal, example 3.0 is 30-->  
        <!-- Turbo Encoding switch (OPTIONAL) -->  
        <turbo>[yes/no]</turbo> <!-- Video rotation (OPTIONAL) --> 
        <rotate>def|0|90|270</rotate>  
    </format>  
</query>
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading...

edchelp