22 December 2009

MPEG-2 output

Format NameDescriptionAllowed ValuesDefault Values
output(required) – output format. Specify format of encoded file.flv, fl9, wmv, 3gp, mp4, m4v, ipod, iphone, appletv, psp, zune, mp3, wma, mpeg2, thumbnail*, image , mpeg2 *. 
video_codecVideo codec.flv: flv, libx264, vp6 **fl9: libx264wmv, zune: wmv2, msmpeg43gp: h263, libx264m4v: mpeg4mp4, ipod, iphone, appletv, psp: mpeg4, libx264mpeg2: mpeg2videomp3, wma: noneflv: flvfl9: libx264wmv, zune: wmv23gp: h263mp4, m4v, ipod, iphone, appletv, psp: mpeg4mpeg2: mpeg2video* - see Thumbnail Features - see Image Converting Features* - just experimental feature, please use with case, feedback is welcome
audio_sample_rateAudio sampling frequency (Hz).All: any non-zero integer.3gp: 8000flv, mp3: 11025, 22050, 44100wmv, wma, zune: 11025, 22050, 32000, 44100, 48000 mpeg2: 44100, 48000All: none3gp: 8000flv, mp3, zune, mpeg2: 44100
audio_codecAudio codec.mp3: libmp3lameflv: libmp3lame, libfaacfl9, mp4, m4v, ipod, iphone, appletv, psp: libfaacwmv, wma, zune: wmav2, libmp3lame3gp: libamr_nbmpeg2: pcm_s16be, pcm_s16leflv, mp3: libmp3lamefl9, mp4, m4v, ipod, iphone, appletv, psp: libfaacwmv, zune: wmav23gp: libamr_nbmpeg2: pcm_s16be

Using Rackspace Cloud Files as a source or a destination

 

To specify your source file are to be taken from or result files to be put to Rackspace Cloud Files folder, you should specify your source or destination URLs in two different ways:

 

  1. virtual URL http://RS_USER:[email protected]/your_folder/file.ext

  2. Real URL if you were authenticated yourself recently like this:

 

https://storage4.clouddrive.com/v1/MossoCloudFS_cea19775-aa94-4d78-8da9-1a7b4bbbd548/your_folder/file.ext?auth-token=c2633419-7b79-3d58-8417-d63666dddfd5

 

Image Converting Features

<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required-->
    <userkey><<key>></userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <!-- Format fields -->
        <output>image</output>
        <image_format>jpg</image_format>
        <resize_method>resize</resize_method>
        <size>560x420</size>
        <keep_aspect_ratio>yes</keep_aspect_ratio>
        <quality>75</quality>
        <sharpen_radius>1</sharpen_radius>
        <sharpen_sigma>0.5</sharpen_sigma>
        <!-- Destination fields -->
        <destination>[DestFile]</destination>
    </format>
</query>
{
    "query": {
        "userid": "<<id>>",
        "userkey": "<<key>>",
        "action": "[Action]",
        "format": {
            "output": "image",
            "image_format": "jpg",
            "resize_method": "resize",
            "size": "560x420",
            "keep_aspect_ratio": "yes",
            "quality": "75",
            "sharpen_radius": "1",
            "sharpen_sigma": "0.5",
            "destination": "[DestFile]"
        }
    }
}

With the following specific parameters:

 

Format NameDescriptionAllowed ValuesDefault Values
image_format[required] – Format of resulting image.jpg, png, gifjpg
size[required] – Size of resulting image.WxH or Wx or xH, where W and H are positive integersnone
resize_methodHow the original picture will be inscribed to new sizeresize, crop, combineresize
keep_aspect_ratioWhether to keep width to height ratio of original pictureyes, noyes
qualityJPEG qualityjpg: 1-100 All: none80
sharpen_radiusSharpen radius (use 0 in most cases)Integer: 0-10none
sharpen_sigmaSharpen amount (best are 0.5-1.0)Float: 0.2-100.5