Update a specific Preset
PUT /presets/ID
Authorization Header
- Bearer token: OAuth 2.0 API access token.
Parameters
- format : json or xml. This will override Request Accept header.
- human : true or false. Causes the response to be in a structured, more human-readable form. This is useful when calling the API through curl or from a browser.
- show_null: true or false. If set to "true", the response will contain also keys that are not set to a value.
- expand_all: true or false. Recursively look up referenced objects (here: codec id) and embed the respective json as a nested object directly into the response.
Example
PUT /presets/ID
curl -X PUT -H "Authorization: Bearer um9VmyJKTPGFqpkL_THjGE5rkXqfURDYqQ8MTBVidG3PtwkfABIdx6s_z9WlFl4_j" -H "application/json" -d '{ \
"preset": { \
"name": "PERSONAL-FLV-FLV-H264-AAC", \
"description": "My own Flash Video Preset with H.264 Baseline/AAC LC for Flash Player SD", \
"target_format": { \
"extension": "flv", \
"container": "flv", \
"vcodec": { \
"codec": { id: "525ce63284aed52635e85d05" }, \
"profile": "Baseline", \
"passes": 1, \
"caps": { \
"interlaced": "false", \
"max_key_distance": 5, \
"max_width": 640, \
"max_height": 480, \
"max_framerate": 30, \
"max_bitrate": 4000, \
"max_ref_frames": 1, \
"max_buffersize": 384 \
} \
}, \
"acodec": { \
"codec": { id: "525ce63284aed52635e85d06" }, \
"profile": "LC", \
"passes": 1, \
"caps": { \
"max_bitdepth": 16, \
"max_channels": 2, \
"max_samplingrate": 48000, \
"max_bitrate": 160 \
} \
} \
}, \
"settings": { \
"subtitle_policy": "ignore", \
"video": { \
"deinterlace": "auto", \
"crop": "off", \
"resize_policy": "keep", \
"padding_policy": "no_pad", \
"aspect_ratio_policy": "keep" \
}, \
"audio": { \
"resample_policy": "shrink_to_fit" \
}, \
"thumbnails": [ { \
"name": "thumbnails_small", \
"format": "jpg", \
"interval_or_count": "10s", \
"max_width": 85, \
"max_height": 64, \
"resize_policy": "keep", \
"padding_policy": "no_pad" \
}, { \
"name": "thumbnails_big", \
"format": "jpg", \
"interval_or_count": "30", \
"max_width": 320, "max_height": 240, \
"resize_policy": "shrink_to_fit", \
"padding_policy": "no_pad" \
}] \
} \
} \
}' "https://api.xvid.com/v1/presets/5475f75ce4b084a392305dcb?human=true&show_null=true"
Valid Fields:
Same than for POST /presets. Fields not included in the request will not be updated. If you want to delete/reset a field, set it to "null" specifically.
Overview
Content Tools