- 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
Create profile
Developing
POST
/projects/{projId}/encoding-profiles/{encodingType}
Create Encoding profile of a project#
request the project ID and transcoding type vod | live has to be provided . All the necessary data has to be provided in the request payload
POST
/projects/<project_id>/encoding-profiles/<encodingType>
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:
2c699add-7989-4460-992c-51829176f9ac
encodingType
stringÂ
required
Example:
vod
Body Params application/json
project_id
stringÂ
required
name
stringÂ
required
is_default
booleanÂ
optional
enable_per_title_encoding
booleanÂ
optional
thumbnail
objectÂ
optional
time
numberÂ
required
image_format
stringÂ
required
height
integerÂ
required
width
integerÂ
required
output_path
stringÂ
required
generate_mp4
booleanÂ
optional
crop
objectÂ
optional
x
integerÂ
required
y
integerÂ
required
out_w
integerÂ
required
out_h
integerÂ
required
image_overlay
objectÂ
optional
url
stringÂ
required
text_overlay
objectÂ
optional
text
stringÂ
required
trim
objectÂ
optional
start
integerÂ
required
end
integerÂ
required
encoding_presets
array [object {9}]Â
required
width
integerÂ
required
height
integerÂ
required
min_bitrate
integerÂ
optional
max_bitrate
integerÂ
optional
optimize_bitrate
booleanÂ
optional
bitrate
integerÂ
optional
video_codec
stringÂ
optional
audio_codec
stringÂ
optional
audio_rate
integerÂ
optional
Example
// {
// "project_id": "f32a0116-fe11-454c-8e6a-5ff4101882e5",
// "name": "Profile3",
// "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": 1920,
// "height": 1080,
// "min_bitrate": 1000,
// "max_bitrate": 5000,
// "optimize_bitrate": true,
// "bitrate": 3000,
// "video_codec": "h264",
// "audio_codec": "aac",
// "audio_rate": 128
// },
// {
// "width": 1080,
// "height": 720,
// "min_bitrate": 2000,
// "max_bitrate": 6000,
// "optimize_bitrate": true,
// "bitrate": 5000,
// "video_codec": "h265",
// "audio_codec": "aac",
// "audio_rate": 128
// }
// ]
// }
// 2nd example
{
"project_id": "2c699add-7989-4460-992c-51829176f9ac",
"name": "Profile3",
"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": 1920,
"height": 1080,
"min_bitrate": 1000,
"max_bitrate": 5000,
"optimize_bitrate": true,
"bitrate": 3000,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 1280,
"height": 720,
"min_bitrate": 1000,
"max_bitrate": 5000,
"optimize_bitrate": true,
"bitrate": 3000,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 854,
"height": 480,
"min_bitrate": 1000,
"max_bitrate": 1500,
"optimize_bitrate": true,
"bitrate": 1500,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 640,
"height": 360,
"min_bitrate": 1000,
"max_bitrate": 1000,
"optimize_bitrate": true,
"bitrate": 1000,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 426,
"height": 240,
"min_bitrate": 1000,
"max_bitrate": 1000,
"optimize_bitrate": true,
"bitrate": 1000,
"video_codec": "h264",
"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 POST 'http://localhost:8080/v1/projects/2c699add-7989-4460-992c-51829176f9ac/encoding-profiles/vod' \
--header 'Content-Type: application/json' \
--data-raw '// {
// "project_id": "f32a0116-fe11-454c-8e6a-5ff4101882e5",
// "name": "Profile3",
// "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": 1920,
// "height": 1080,
// "min_bitrate": 1000,
// "max_bitrate": 5000,
// "optimize_bitrate": true,
// "bitrate": 3000,
// "video_codec": "h264",
// "audio_codec": "aac",
// "audio_rate": 128
// },
// {
// "width": 1080,
// "height": 720,
// "min_bitrate": 2000,
// "max_bitrate": 6000,
// "optimize_bitrate": true,
// "bitrate": 5000,
// "video_codec": "h265",
// "audio_codec": "aac",
// "audio_rate": 128
// }
// ]
// }
// 2nd example
{
"project_id": "2c699add-7989-4460-992c-51829176f9ac",
"name": "Profile3",
"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": 1920,
"height": 1080,
"min_bitrate": 1000,
"max_bitrate": 5000,
"optimize_bitrate": true,
"bitrate": 3000,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 1280,
"height": 720,
"min_bitrate": 1000,
"max_bitrate": 5000,
"optimize_bitrate": true,
"bitrate": 3000,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 854,
"height": 480,
"min_bitrate": 1000,
"max_bitrate": 1500,
"optimize_bitrate": true,
"bitrate": 1500,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 640,
"height": 360,
"min_bitrate": 1000,
"max_bitrate": 1000,
"optimize_bitrate": true,
"bitrate": 1000,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
{
"width": 426,
"height": 240,
"min_bitrate": 1000,
"max_bitrate": 1000,
"optimize_bitrate": true,
"bitrate": 1000,
"video_codec": "h264",
"audio_codec": "aac",
"audio_rate": 128
},
]
}'
Responses
🟢200OK
application/json
Body
message
stringÂ
required
result
objectÂ
required
id
stringÂ
required
project_id
stringÂ
required
name
stringÂ
required
is_default
booleanÂ
required
enable_per_title_encoding
booleanÂ
required
thumbnail
objectÂ
required
generate_mp4
booleanÂ
required
crop
objectÂ
required
image_overlay
objectÂ
required
text_overlay
objectÂ
required
trim
objectÂ
required
created_at
stringÂ
required
created_by
stringÂ
required
encoding_presets
array [object {11}]Â
required
success
booleanÂ
required
Example
{"message":"encoding Created Successfully","result":{"id":"47f8da4f-a35b-463f-9343-10d29980d8b9","project_id":"8813d154-3e6a-457e-bcdb-283ede3fe365","name":"Profile3","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},"created_at":"2024-04-17T10:47:33.899513007Z","created_by":"04f131d0-b8d5-42cd-8e66-9495299e75cf","encoding_presets":[{"id":"dea7ffdb-41a3-4784-b295-57faf0ab4ed8","encoding_profile_id":"47f8da4f-a35b-463f-9343-10d29980d8b9","width":1920,"height":1080,"min_bitrate":1000,"max_bitrate":5000,"optimize_bitrate":true,"bitrate":3000,"video_codec":"h264","audio_codec":"aac","audio_rate":128},{"id":"1c8ed759-5009-4d6a-9713-f230da34e49b","encoding_profile_id":"47f8da4f-a35b-463f-9343-10d29980d8b9","width":1080,"height":720,"min_bitrate":2000,"max_bitrate":6000,"optimize_bitrate":true,"bitrate":5000,"video_codec":"h265","audio_codec":"aac","audio_rate":128}]},"success":true}