Update Encoding Profile
Edit an existing transcoding profile.
curl -X POST "https://api.5centscdn.com/v2/transcoding/profiles/7" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"name": "Updated Profile",
"cv": "libx264",
"ca": "aac",
"f": "mp4",
"filemode": "single",
"fps": "30",
"gop": "60",
"preset": "veryfast",
"vlevel": "4.1",
"vprofile": "high",
"vpass": "1",
"tune": "film",
"bv": "1",
"bvvalue": "4000",
"ba": "1",
"bavalue": "128",
"sv": "720p",
"svvalue": "1920x800",
"crfv": "24",
"ara": "48000",
"aca": "2",
"bframe": "2",
"tm": "interval",
"tv": "0:01:30",
"upscale": "N",
"sourcevideo": "Y",
"sourceaudio": "Y",
"hlsUnifiedSegments": false,
"hlsfMP4Segments": false,
"outdir": "output/hd",
"filters": [
"1"
],
"profiles": [],
"_METHOD": "DELETE"
}'
import requests
import json
url = "https://api.5centscdn.com/v2/transcoding/profiles/7"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
data = {
"name": "Updated Profile",
"cv": "libx264",
"ca": "aac",
"f": "mp4",
"filemode": "single",
"fps": "30",
"gop": "60",
"preset": "veryfast",
"vlevel": "4.1",
"vprofile": "high",
"vpass": "1",
"tune": "film",
"bv": "1",
"bvvalue": "4000",
"ba": "1",
"bavalue": "128",
"sv": "720p",
"svvalue": "1920x800",
"crfv": "24",
"ara": "48000",
"aca": "2",
"bframe": "2",
"tm": "interval",
"tv": "0:01:30",
"upscale": "N",
"sourcevideo": "Y",
"sourceaudio": "Y",
"hlsUnifiedSegments": false,
"hlsfMP4Segments": false,
"outdir": "output/hd",
"filters": [
"1"
],
"profiles": [],
"_METHOD": "DELETE"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/transcoding/profiles/7", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"name": "Updated Profile",
"cv": "libx264",
"ca": "aac",
"f": "mp4",
"filemode": "single",
"fps": "30",
"gop": "60",
"preset": "veryfast",
"vlevel": "4.1",
"vprofile": "high",
"vpass": "1",
"tune": "film",
"bv": "1",
"bvvalue": "4000",
"ba": "1",
"bavalue": "128",
"sv": "720p",
"svvalue": "1920x800",
"crfv": "24",
"ara": "48000",
"aca": "2",
"bframe": "2",
"tm": "interval",
"tv": "0:01:30",
"upscale": "N",
"sourcevideo": "Y",
"sourceaudio": "Y",
"hlsUnifiedSegments": false,
"hlsfMP4Segments": false,
"outdir": "output/hd",
"filters": [
"1"
],
"profiles": [],
"_METHOD": "DELETE"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"name": "Updated Profile",
"cv": "libx264",
"ca": "aac",
"f": "mp4",
"filemode": "single",
"fps": "30",
"gop": "60",
"preset": "veryfast",
"vlevel": "4.1",
"vprofile": "high",
"vpass": "1",
"tune": "film",
"bv": "1",
"bvvalue": "4000",
"ba": "1",
"bavalue": "128",
"sv": "720p",
"svvalue": "1920x800",
"crfv": "24",
"ara": "48000",
"aca": "2",
"bframe": "2",
"tm": "interval",
"tv": "0:01:30",
"upscale": "N",
"sourcevideo": "Y",
"sourceaudio": "Y",
"hlsUnifiedSegments": false,
"hlsfMP4Segments": false,
"outdir": "output/hd",
"filters": [
"1"
],
"profiles": [],
"_METHOD": "DELETE"
}`)
req, err := http.NewRequest("POST", "https://api.5centscdn.com/v2/transcoding/profiles/7", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.5centscdn.com/v2/transcoding/profiles/7')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
request.body = '{
"name": "Updated Profile",
"cv": "libx264",
"ca": "aac",
"f": "mp4",
"filemode": "single",
"fps": "30",
"gop": "60",
"preset": "veryfast",
"vlevel": "4.1",
"vprofile": "high",
"vpass": "1",
"tune": "film",
"bv": "1",
"bvvalue": "4000",
"ba": "1",
"bavalue": "128",
"sv": "720p",
"svvalue": "1920x800",
"crfv": "24",
"ara": "48000",
"aca": "2",
"bframe": "2",
"tm": "interval",
"tv": "0:01:30",
"upscale": "N",
"sourcevideo": "Y",
"sourceaudio": "Y",
"hlsUnifiedSegments": false,
"hlsfMP4Segments": false,
"outdir": "output/hd",
"filters": [
"1"
],
"profiles": [],
"_METHOD": "DELETE"
}'
response = http.request(request)
puts response.body
{
"result": "success",
"message": "Transcoding Settings Updated"
}
/transcoding/profiles/{profileid}Target server for requests. Edit to use your own host.
API key (sent in header)
ID of the Transcode Profile (fs_transcodeprofiles.id).
The media type of the request body
Profile display name used throughout the encoding UI. Cannot be empty or whitespace only.
FFmpeg codec identifier for video encoding. libx264 = H.264/AVC. libx265 = H.265/HEVC. libvpx-vp9 = VP9.
Audio codec determined by container format (f). mp4/hls/hlsaes use aac; webm uses opus.
Output container format. Selecting this auto-populates codec defaults.
Output file organization. single = one output file per profile. combined = multi-bitrate HLS manifest bundle.
Target output frame rate as string. 0 copies the source frame rate.
Group of Pictures size (frames between keyframes). Smaller values improve seeking accuracy. Typical range 24–300.
Encoding speed preset. Slower presets produce smaller files at the cost of encoding time.
Codec encoding level constraining maximum resolution, frame rate, and bitrate. Valid values depend on cv and vprofile.
Codec-specific encoding profile. H.264 (libx264): baseline, main, high. H.265 (libx265): main, main10. VP9 (libvpx-vp9): profile0, profile2. Available values are constrained by cv.
Number of encoding passes. 1 = faster single-pass. 2 = two-pass for more accurate bitrate targeting.
H.264 encoding tune preset; only applicable when cv=libx264. disabled = no tune applied.
Video bitrate mode. 0 = As Source (copies source bitrate). 1 = As Defined (use bvvalue to set target kbps).
Target video bitrate in kilobits per second, sent as a string. Required when bv=1.
Audio bitrate mode. 0 = As Source (copies source bitrate). 1 = As Defined (use bavalue to set target kbps). Forced to 1 when f=webm.
Target audio bitrate in kilobits per second, sent as a string. Required when ba=1.
Output resolution. Use as_defined to specify custom dimensions via svvalue. Use 0 to preserve source resolution.
Custom output dimensions as a single WIDTHxHEIGHT string. Only used when sv=as_defined. Both dimensions must be divisible by 2.
Constant Rate Factor for quality-based encoding. Lower value = better quality. Range 0–51; typical H.264 range is 18–28.
Audio sample rate in Hz. 0 preserves the source sample rate.
Audio output channel count. 0 = As Source. 1 = Mono. 2 = Stereo.
Number of consecutive B-frames. Higher values improve compression efficiency.
Thumbnail generation mode. interval = generate thumbnails at periodic intervals. fixed = generate thumbnail at exact time tv. disabled = no thumbnails.
Thumbnail time value in HH:MM:SS format. Required when tm=interval or tm=fixed.
Whether to allow upscaling when the target resolution exceeds the source resolution. Y = allow upscaling. N = skip if source is lower resolution.
Whether to include the video stream in the output. N = creates audio-only output.
Whether to include the audio stream in the output. N = creates video-only output.
Enables MPEG-TS segment format for HLS output. Defaults to false.
Enables fragmented MP4 format for HLS output; improves seeking. Mutually exclusive with hlsUnifiedSegments.
Output directory path relative to the storage root. Empty string stores in root. Characters < > : \ | ? * are not allowed.
Array of filter IDs to apply as video overlays during encoding.
Sub-profiles.
Signal DELETE to the backend when deleting.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Path Parameters
Body
Profile display name used throughout the encoding UI. Cannot be empty or whitespace only.
Updated ProfileFFmpeg codec identifier for video encoding. libx264 = H.264/AVC. libx265 = H.265/HEVC. libvpx-vp9 = VP9.
libx264libx265libvpx-vp9Audio codec determined by container format (f). mp4/hls/hlsaes use aac; webm uses opus.
aacopusOutput container format. Selecting this auto-populates codec defaults.
mp4webmhlshlsaesOutput file organization. single = one output file per profile. combined = multi-bitrate HLS manifest bundle.
singlecombinedTarget output frame rate as string. 0 copies the source frame rate.
0242530485060Group of Pictures size (frames between keyframes). Smaller values improve seeking accuracy. Typical range 24–300.
60Encoding speed preset. Slower presets produce smaller files at the cost of encoding time.
ultrafastsuperfastveryfastfasterfastmediumslowslowerveryslowCodec encoding level constraining maximum resolution, frame rate, and bitrate. Valid values depend on cv and vprofile.
3.03.13.24.04.14.25.05.15.26.06.16.2Codec-specific encoding profile. H.264 (libx264): baseline, main, high. H.265 (libx265): main, main10. VP9 (libvpx-vp9): profile0, profile2. Available values are constrained by cv.
highNumber of encoding passes. 1 = faster single-pass. 2 = two-pass for more accurate bitrate targeting.
12H.264 encoding tune preset; only applicable when cv=libx264. disabled = no tune applied.
disabledfilmanimationgrainstillimagefastdecodeVideo bitrate mode. 0 = As Source (copies source bitrate). 1 = As Defined (use bvvalue to set target kbps).
01Target video bitrate in kilobits per second, sent as a string. Required when bv=1.
4000Audio bitrate mode. 0 = As Source (copies source bitrate). 1 = As Defined (use bavalue to set target kbps). Forced to 1 when f=webm.
01Target audio bitrate in kilobits per second, sent as a string. Required when ba=1.
128Output resolution. Use as_defined to specify custom dimensions via svvalue. Use 0 to preserve source resolution.
2160p1440p1080p720p576p480p360p240p144p0as_definedCustom output dimensions as a single WIDTHxHEIGHT string. Only used when sv=as_defined. Both dimensions must be divisible by 2.
1920x800Constant Rate Factor for quality-based encoding. Lower value = better quality. Range 0–51; typical H.264 range is 18–28.
24Number of consecutive B-frames. Higher values improve compression efficiency.
01234Thumbnail generation mode. interval = generate thumbnails at periodic intervals. fixed = generate thumbnail at exact time tv. disabled = no thumbnails.
intervalfixeddisabledThumbnail time value in HH:MM:SS format. Required when tm=interval or tm=fixed.
0:01:30Whether to allow upscaling when the target resolution exceeds the source resolution. Y = allow upscaling. N = skip if source is lower resolution.
YNWhether to include the video stream in the output. N = creates audio-only output.
YNWhether to include the audio stream in the output. N = creates video-only output.
YNEnables MPEG-TS segment format for HLS output. Defaults to false.
falseEnables fragmented MP4 format for HLS output; improves seeking. Mutually exclusive with hlsUnifiedSegments.
falseOutput directory path relative to the storage root. Empty string stores in root. Characters \< \> : \ | ? * are not allowed.
output/hdResponses
API response status.
Human-readable result or error message.