Live Transcoding Profiles/FiltersCreate Transcoding Profile

Create Transcoding Profile

add stream profiles setting

curl -X POST "https://api.5centscdn.com/v2/streams/settings/profiles/new" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "_METHOD": "PUT",
  "name": "My 720p Profile",
  "filemode": "hd",
  "f": "mp4",
  "cv": "libx264",
  "sv": "720p",
  "svvalue": "1280x720",
  "deinterlace": "0",
  "bvvalue": 2500,
  "fps": 30,
  "preset": "veryfast",
  "vprofile": "main",
  "vlevel": "4.0",
  "bframe": "3",
  "gop": 2,
  "tune": "disabled",
  "ca": "aac",
  "aca": 2,
  "bavalue": "128",
  "ara": "44100"
}'
{
  "result": "success",
  "message": "Transcoding Settings, New Profile Created",
  "profileid": 129699
}
POST
/streams/settings/profiles/new
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
_METHODstring
Required

HTTP method override for this request. This endpoint accepts POST, but set this to PUT to perform an update operation.

namestring
Required

Name of the transcoding profile.

filemodestring

Stream quality tier. Allowed values: sd, hd, uhd.

fstring

Container format for the output stream. Allowed value: mp4.

cvstring

Video codec for encoding. libx264 means H.264, libx265 means H.265. Allowed values: libx264, libx265.

svstring

Output resolution preset. Use as_defined to specify a custom resolution via svvalue. Allowed values: 2160p, 1440p, 1080p, 720p, 576p, 480p, 360p, 240p, 144p, as_defined.

svvaluestring

Custom resolution in WIDTHxHEIGHT format. Required when sv is set to as_defined. Width range is 256–7680, height range is 144–4320, both values must be divisible by 2.

deinterlacestring

Enable or disable deinterlacing. 1 means enabled, 0 means disabled.

bvvalueinteger

Video bitrate in kbps.

Format: int32
fpsinteger

Frames per second for the output stream. 0 means As Source. Allowed values: 0, 24, 25, 30, 48, 50, 60.

Format: int32
presetstring

Encoding speed preset. Faster presets reduce CPU usage but may lower quality. Allowed values: superfast, veryfast, faster, fast.

vprofilestring

Video encoding profile. libx264 supports baseline, main, high. libx265 supports main only. Allowed values: baseline, main, high.

vlevelstring

H.264/H.265 encoding level. Allowed values: 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2.

bframestring

Number of consecutive B-frames used in encoding. Higher values improve compression but increase latency.

gopinteger

Group of Pictures (keyframe) interval in seconds. Allowed values: 2, 4, 6, 8, 10, 12.

Format: int32
tunestring

Encoding tune to optimize for a specific use case. zerolatency reduces encoding delay, fastdecode optimizes for fast decoding, disabled applies no tuning. libx264 supports disabled, zerolatency, fastdecode. libx265 supports disabled, fastdecode. Allowed values: disabled, zerolatency, fastdecode.

castring

Audio codec for encoding. Allowed value: aac.

acainteger

Audio channel configuration. 0 means As Source, 1 means Mono, 2 means Stereo.

Format: int32
bavaluestring

Audio bitrate in kbps. Min 32 max 320.

arastring

Audio sample rate in Hz. Allowed values: 16000, 22050, 32000, 44100, 48000.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Body

application/json
_METHODstring
Required

HTTP method override for this request. This endpoint accepts POST, but set this to PUT to perform an update operation.

Example:
PUT
namestring
Required

Name of the transcoding profile.

Example:
My 720p Profile
filemodestring

Stream quality tier. Allowed values: sd, hd, uhd.

Example:
hd
fstring

Container format for the output stream. Allowed value: mp4.

Example:
mp4
cvstring

Video codec for encoding. libx264 means H.264, libx265 means H.265. Allowed values: libx264, libx265.

Example:
libx264
svstring

Output resolution preset. Use as_defined to specify a custom resolution via svvalue. Allowed values: 2160p, 1440p, 1080p, 720p, 576p, 480p, 360p, 240p, 144p, as_defined.

Example:
720p
svvaluestring

Custom resolution in WIDTHxHEIGHT format. Required when sv is set to as_defined. Width range is 256–7680, height range is 144–4320, both values must be divisible by 2.

Example:
1280x720
deinterlacestring

Enable or disable deinterlacing. 1 means enabled, 0 means disabled.

Example:
0
bvvalueinteger

Video bitrate in kbps.

Example:
2500
fpsinteger

Frames per second for the output stream. 0 means As Source. Allowed values: 0, 24, 25, 30, 48, 50, 60.

Example:
30
presetstring

Encoding speed preset. Faster presets reduce CPU usage but may lower quality. Allowed values: superfast, veryfast, faster, fast.

Example:
veryfast
vprofilestring

Video encoding profile. libx264 supports baseline, main, high. libx265 supports main only. Allowed values: baseline, main, high.

Example:
main
vlevelstring

H.264/H.265 encoding level. Allowed values: 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2.

Example:
4.0
bframestring

Number of consecutive B-frames used in encoding. Higher values improve compression but increase latency.

Example:
3
gopinteger

Group of Pictures (keyframe) interval in seconds. Allowed values: 2, 4, 6, 8, 10, 12.

Example:
2
tunestring

Encoding tune to optimize for a specific use case. zerolatency reduces encoding delay, fastdecode optimizes for fast decoding, disabled applies no tuning. libx264 supports disabled, zerolatency, fastdecode. libx265 supports disabled, fastdecode. Allowed values: disabled, zerolatency, fastdecode.

Example:
disabled
castring

Audio codec for encoding. Allowed value: aac.

Example:
aac
acainteger

Audio channel configuration. 0 means As Source, 1 means Mono, 2 means Stereo.

Example:
2
bavaluestring

Audio bitrate in kbps. Min 32 max 320.

Example:
128
arastring

Audio sample rate in Hz. Allowed values: 16000, 22050, 32000, 44100, 48000.

Example:
44100

Responses

resultstring

Status of the API response.

messagestring

Human-readable message describing the result.

profileidinteger

The ID of the newly created transcoding profile.