Update Profile
Update an existing profile. Settings provided in body parameters will only be updated in the existing profile.
- Type: stringprofile
_id requiredProfile id of the profile which need to be updated.
- Type: stringprofile
_id requiredProfile id of the profile which needs to be deleted.
- Type: objectanimated
_gif Create an animated GIF from a video.
- Type: booleanaudio
_only This flag allows Gumlet to transcode and deliver audio-only in the specified format. In this case,This flag allows Gumlet to transcode and deliver audio-only in the specified format. In this case, video transformation and thumbnails/animated GIFs would not be created. Default:
false - Type: objectcrop
This transformation can be used to crop the video by defining a rectangular area within the dimensions of the output video.
- Type: booleanenable
_drm Enable DRM encryption for transcoded videos. Gumlet supports Widevine and Fairplay DRMs.
- Type: string enumformat
Transcode and deliver the asset in the requested format. The options can be one of
ABR(HLS + DASH) andMP4.values- A
B R - M
P4
- Type: booleangenerate
_chapters Whether Gumlet should generate chapters.
- Type: booleangenerate
_description Whether Gumlet should generate descriptions.
- Type: objectgenerate
_subtitles - Type: stringheight
Resize video with the given height. Can be an absolute value in pixels or a percentage value with the
%suffix. Specified values greater than the original asset height will be ignored. Only applicable when specifiedformatisMP4. - Type: objectimage
_overlay Image overlay can be used to brand a video or add a visual label in the form of an image.
- Type: booleanmp4
_access Creates
mp4version for download purpose in case ofMPEG-DASHorHLSdelivery format. Default:false
- application/json
- application/json
import Gumlet from '@gumlet/nodejs-sdk';
const client = new Gumlet({
apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});
const videoProfile = await client.videoProfiles.update('profileId', {
profile_id: '',
format: 'ABR',
});
console.log(videoProfile);
{
"profile_id": "61921fb10822a81d955d1730",
"name": "Gumlet-Profile-2",
"transformations": {
"resolution": "240p,360p",
"format": "hls",
"audio_codec": [
"aac"
],
"video_codec": [
"libx264"
],
"thumbnail": [
"auto"
],
"thumbnail_format": "png",
"mp4_access": false,
"per_title_encoding": true
},
"created_at": 1636966321742,
"updated_at": 1636975593082
}
