22 December 2009
about 15 years ago by Encoding.com Product Team
MPEG-2 output
Format Name | Description | Allowed Values | Default 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_codec | Video codec. | flv: flv, libx264, vp6 **fl9: libx264wmv, zune: wmv2, msmpeg43gp: h263, libx264m4v: mpeg4mp4, ipod, iphone, appletv, psp: mpeg4, libx264mpeg2: mpeg2videomp3, wma: none | flv: 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_rate | Audio sampling frequency (Hz). | All: any non-zero integer.3gp: 8000flv, mp3: 11025, 22050, 44100wmv, wma, zune: 11025, 22050, 32000, 44100, 48000 mpeg2: 44100, 48000 | All: none3gp: 8000flv, mp3, zune, mpeg2: 44100 |
audio_codec | Audio codec. | mp3: libmp3lameflv: libmp3lame, libfaacfl9, mp4, m4v, ipod, iphone, appletv, psp: libfaacwmv, wma, zune: wmav2, libmp3lame3gp: libamr_nbmpeg2: pcm_s16be, pcm_s16le | flv, 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:
-
virtual URL http://RS_USER:[email protected]/your_folder/file.ext
-
Real URL if you were authenticated yourself recently like this:
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 Name | Description | Allowed Values | Default Values |
---|---|---|---|
image_format | [required] – Format of resulting image. | jpg, png, gif | jpg |
size | [required] – Size of resulting image. | WxH or Wx or xH, where W and H are positive integers | none |
resize_method | How the original picture will be inscribed to new size | resize, crop, combine | resize |
keep_aspect_ratio | Whether to keep width to height ratio of original picture | yes, no | yes |
quality | JPEG quality | jpg: 1-100 All: none | 80 |
sharpen_radius | Sharpen radius (use 0 in most cases) | Integer: 0-10 | none |
sharpen_sigma | Sharpen amount (best are 0.5-1.0) | Float: 0.2-10 | 0.5 |