Update a encoding profile
Developing
PUT
/projects/{projId}/encoding-profiles/{encodingType}/{profileId}
Update a Encoding profile of a project
PUT
/projects/<project_id>/encoding-profiles/<encodingType>/<profile_id>
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.vidinfra.com/v1/projects/f32a0116-fe11-454c-8e6a-5ff4101882e5/encoding-profiles/vod/2c337aa2-5a5d-41c7-99c7-2a1218c3c46f' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "2c337aa2-5a5d-41c7-99c7-2a1218c3c46f",
"project_id" : "f32a0116-fe11-454c-8e6a-5ff4101882e5",
"name": "Profile3 new",
"is_default": true,
"enable_per_title_encoding": false,
"thumbnail": {
"time" : 0.1 ,
"image_format" : "jpg" ,
"height" :270,
"width" : 270,
"output_path" : ".jpg"
},
"generate_mp4": true,
"crop": {
"x": 10,
"y": 20,
"out_w": 100,
"out_h": 200
},
"image_overlay": {
"url": "http://example.com/overlay.jpg"
},
"text_overlay": {
"text": "Raka"
},
"trim": {
"start": 10,
"end": 20
},
"encoding_presets": [
{
"width": 2048,
"height": 1920,
"min_bitrate": 2000,
"max_bitrate": 4000,
"optimize_bitrate": true,
"bitrate": 0,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 1080,
"height": 7200,
"min_bitrate": 2000,
"max_bitrate": 6000,
"optimize_bitrate": true,
"bitrate": 0,
"video_codec": "h265",
"audio_codec": "aac",
"audio_rate": 128
}
]
}'
Response Response Example
{"message":"Encoding Updated Successfully","result":{"thumbnail":{"height":270,"image_format":"jpg","output_path":".jpg","time":0.1,"width":270},"crop":{"out_h":200,"out_w":100,"x":10,"y":20},"image_overlay":{"url":"http://example.com/overlay.jpg"},"text_overlay":{"text":"Raka"},"trim":{"end":20,"start":10},"created_at":"2024-04-17T16:47:34+06:00","encoding_presets":[{"video_codec":"h264","audio_codec":"aac","width":2048,"height":1920,"min_bitrate":2000,"max_bitrate":4000,"bitrate":0,"audio_rate":128,"id":"1ca339db-d3a3-44ce-be97-7f377ef09a47","encoding_profile_id":"47f8da4f-a35b-463f-9343-10d29980d8b9","optimize_bitrate":true},{"video_codec":"h265","audio_codec":"aac","width":1080,"height":7200,"min_bitrate":2000,"max_bitrate":6000,"bitrate":0,"audio_rate":128,"id":"c4d6f99d-6bb3-4883-bd7d-76f8eeafd94d","encoding_profile_id":"47f8da4f-a35b-463f-9343-10d29980d8b9","optimize_bitrate":true}],"name":"Profile3 new","id":"47f8da4f-a35b-463f-9343-10d29980d8b9","project_id":"8813d154-3e6a-457e-bcdb-283ede3fe365","created_by":"04f131d0-b8d5-42cd-8e66-9495299e75cf","is_default":true,"enable_per_title_encoding":false,"generate_mp4":true},"success":true}
Request
Path Params
projId
stringÂ
required
Example:
f32a0116-fe11-454c-8e6a-5ff4101882e5
encodingType
stringÂ
required
Example:
vod
profileId
stringÂ
required
Example:
2c337aa2-5a5d-41c7-99c7-2a1218c3c46f
Body Params application/json
Responses
Modified at 2025-06-19 04:59:01