- Documentation
- API Reference
- Projects
- importer.vidinfra.com
- Auth
- User Registration
- User Login
- Verify-email
- Forgot Password
- Forgot Password Verify OTP
- Forgot Password Set
- Resend OTP
- Logout
- Set Password
- Check Account exists
- Update Password
- Google Oauth Redirect
- Google Oauth Callback
- api-access-check
- New Auth token using Refresh token
- Github Oauth Redirect
- Google Oauth Callback Copy
- Get User Sessions
- Delete User Sessions
- User
- Organization
- Organization's invitations
- Audits
- Members
- API Keys
- Folders
- Videos
- Video Metas
- Video Captions
- Video Chapter
- Uploads
- Tags
- Players
- Webhook Endpoints
- Advertisements
- Webhook Event Logs
- Analytics Direct Api
- geo-distribution
- Project Views
- avg video watch
- Total watch Time
- Project Avg Watch per Unique user
- Total Player Error
- project popularity-analysis
- Project Collection Insights
- Collection Views
- Collection avg Watch time
- Collection Avg Watch per unique user
- Collection Geo Distribution
- Get all Users
- User media views
- User Avg video watch
- user Player log
- user sessions
- Get all Video
- video Player error
- Video View
- video Geo Distribution
- video Avg watch
- copy
- Streams
- Stream Metas
- Usages
- Encoding profile
- Project Matrics
- Access Control
- Analytics
- Project Get geo-distribution
- project views
- Project avg video watch
- Project Total Watch
- Project Avg Watch per Unique user
- Project All Player Errors
- Project Popularity Analysis
- Project Collections insights
- Collection Geo Distribution
- Collection avg watch time
- Collection avg watch per unique User
- Collection Player error
- Video Geo Distribution
- Video views
- Video Avg Watch
- Video Player Log
- User
- User Avg Video Watch
- User Total Watch
- User player error log
- Plan
- Upload Tokens
- subscribe
- Transaction
- Invoice
- vimeo video importer
- test
- transcoding service
- transcoding service v2
- Welcome to vidinfraGET
- health checkGET
- Regions ListGET
- keyPOST
- Untitled EndpointGET
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
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
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
id
stringÂ
required
project_id
stringÂ
required
name
stringÂ
required
is_default
booleanÂ
required
enable_per_title_encoding
booleanÂ
required
thumbnail
objectÂ
required
time
numberÂ
required
image_format
stringÂ
required
height
integerÂ
required
width
integerÂ
required
output_path
stringÂ
required
generate_mp4
booleanÂ
required
crop
objectÂ
required
x
integerÂ
required
y
integerÂ
required
out_w
integerÂ
required
out_h
integerÂ
required
image_overlay
objectÂ
required
url
stringÂ
required
text_overlay
objectÂ
required
text
stringÂ
required
trim
objectÂ
required
start
integerÂ
required
end
integerÂ
required
encoding_presets
array [object {9}]Â
required
width
integerÂ
required
height
integerÂ
required
min_bitrate
integerÂ
required
max_bitrate
integerÂ
required
optimize_bitrate
booleanÂ
required
bitrate
integerÂ
required
video_codec
stringÂ
required
audio_codec
stringÂ
required
audio_rate
integerÂ
required
Example
{
"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
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:8080/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
}
]
}'
Responses
🟢200OK final 1
application/json
Body
message
stringÂ
required
result
objectÂ
required
thumbnail
objectÂ
required
crop
objectÂ
required
image_overlay
objectÂ
required
text_overlay
objectÂ
required
trim
objectÂ
required
created_at
stringÂ
required
encoding_presets
array [object {11}]Â
required
name
stringÂ
required
id
stringÂ
required
project_id
stringÂ
required
created_by
stringÂ
required
is_default
booleanÂ
required
enable_per_title_encoding
booleanÂ
required
generate_mp4
booleanÂ
required
success
booleanÂ
required
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}