Disable Encoding Preset with REST API

Hi everyone,

First I’m sorry for my bad english.

In Transcoder, I’m try to disable 720p Encoding Preset with Rest API, in response it seems successful but in transcode.xml file nothing change. Where I could have wrong?

Response Body: {

“success”: true,

“message”: “Saved”,

“data”: null

}

My Request URL: http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/1063-TEST_TEST/transcoder/templates/Transcode

My Request Body: {

“streamNameGroups”: [{

“name”: “all”,

“serverName”: “defaultServer”,

“description”: “”,

“saveFieldList”: [],

“version”: “1”,

“streamName”: “${SourceStreamName}_all”,

“Members”: [{

“wowzaVideoOnly”: false,

“encodeName”: “1080p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “1080p”,

“saveFieldList”: [],

“version”: “1”

}, {

“wowzaVideoOnly”: false,

“encodeName”: “480p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “480p”,

“saveFieldList”: [],

“version”: “1”

}, {

“wowzaVideoOnly”: false,

“encodeName”: “360p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “360p”,

“saveFieldList”: [],

“version”: “1”

}, {

“wowzaVideoOnly”: false,

“encodeName”: “240p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “240p”,

“saveFieldList”: [],

“version”: “1”

}, {

“wowzaVideoOnly”: false,

“encodeName”: “160p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “160p”,

“saveFieldList”: [],

“version”: “1”

}]

}, {

“name”: “all”,

“serverName”: “defaultServer”,

“description”: “”,

“saveFieldList”: [],

“version”: “1”,

“streamName”: “${SourceStreamName}_all”,

“Members”: [{

“wowzaVideoOnly”: false,

“encodeName”: “1080p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “1080p”,

“saveFieldList”: [],

“version”: “1”

}, {

“wowzaVideoOnly”: false,

“encodeName”: “480p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “480p”,

“saveFieldList”: [],

“version”: “1”

}, {

“wowzaVideoOnly”: false,

“encodeName”: “360p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “360p”,

“saveFieldList”: [],

“version”: “1”

}, {

“wowzaVideoOnly”: false,

“encodeName”: “240p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “240p”,

“saveFieldList”: [],

“version”: “1”

}, {

“wowzaVideoOnly”: false,

“encodeName”: “160p”,

“wowzaAudioOnly”: false,

“serverName”: “defaultServer”,

“memberName”: “160p”,

“saveFieldList”: [],

“version”: “1”

}]

}],

“deinterlace”: false,

“implementation”: “default”,

“overlays”: [{

“overlayName”: “WowzaLogo”,

“imagePath”: “C:\IpCamera\Logo.png”,

“serverName”: “defaultServer”,

“description”: “”,

“index”: 0,

“align”: “left,top”,

“version”: “1”,

“enable”: false,

“x”: 4,

“width”: “250”,

“y”: 4,

“saveFieldList”: [],

“checkForUpdates”: false,

“opacity”: 100,

“height”: “250”

}],

“name”: “Transcode_1080”,

“serverName”: “defaultServer”,

“description”: “Transcode Generated For User Applciation: 1063-TEST_TEST”,

“saveFieldList”: [],

“encodes”: [{

“followSource”: false,

“implementation”: “default”,

“gpuid”: -1,

“profile”: “baseline”,

“serverName”: “defaultServer”,

“description”: “”,

“audioCodec”: “AAC”,

“version”: “1”,

“streamName”: “mp4:${SourceStreamName}_1080p”,

“Overlays”: [{

“overlayName”: “WowzaLogo”,

“imagePath”: “C:\IpCamera\Logo.png”,

“serverName”: “defaultServer”,

“description”: “”,

“index”: 0,

“align”: “left,top”,

“version”: “1”,

“enable”: false,

“x”: 4,

“width”: “250”,

“name”: “WowzaLogo”,

“y”: 4,

“saveFieldList”: [],

“checkForUpdates”: false,

“opacity”: 100,

“height”: “250”

}],

“audioBitrate”: “64000”,

“videoBitrate”: “150000”,

“enable”: true,

“name”: “1080p”,

“width”: 1280,

“interval”: 60,

“fitMode”: “fit-height”,

“saveFieldList”: [],

“crop”: “0,0,0,0”,

“videoCodec”: “H.264”,

“height”: 1080,

“sourceRectangle”: “”

}, {

“followSource”: false,

“implementation”: “default”,

“gpuid”: -1,

“profile”: “baseline”,

“serverName”: “defaultServer”,

“description”: “”,

“audioCodec”: “AAC”,

“version”: “1”,

“streamName”: “mp4:${SourceStreamName}_720p”,

“Overlays”: [{

“overlayName”: “WowzaLogo”,

“imagePath”: “C:\IpCamera\Logo.png”,

“serverName”: “defaultServer”,

“description”: “”,

“index”: 0,

“align”: “left,top”,

“version”: “1”,

“enable”: false,

“x”: 4,

“width”: “250”,

“name”: “WowzaLogo”,

“y”: 4,

“saveFieldList”: [],

“checkForUpdates”: false,

“opacity”: 100,

“height”: “250”

}],

“audioBitrate”: “64000”,

“videoBitrate”: “150000”,

“enable”: false,

“name”: “720p”,

“width”: 1280,

“interval”: 60,

“fitMode”: “fit-height”,

“saveFieldList”: [],

“crop”: “0,0,0,0”,

“videoCodec”: “H.264”,

“height”: 720,

“sourceRectangle”: “”

}, {

“followSource”: false,

“implementation”: “default”,

“gpuid”: -1,

“profile”: “baseline”,

“serverName”: “defaultServer”,

“description”: “”,

“audioCodec”: “AAC”,

“version”: “1”,

“streamName”: “mp4:${SourceStreamName}_480p”,

“Overlays”: [{

“overlayName”: “WowzaLogo”,

“imagePath”: “C:\IpCamera\Logo.png”,

“serverName”: “defaultServer”,

“description”: “”,

“index”: 0,

“align”: “left,top”,

“version”: “1”,

“enable”: false,

“x”: 4,

“width”: “250”,

“name”: “WowzaLogo”,

“y”: 4,

“saveFieldList”: [],

“checkForUpdates”: false,

“opacity”: 100,

“height”: “250”

}],

“audioBitrate”: “64000”,

“videoBitrate”: “150000”,

“enable”: true,

“name”: “480p”,

“width”: 720,

“interval”: 60,

“fitMode”: “fit-height”,

“saveFieldList”: [],

“crop”: “0,0,0,0”,

“videoCodec”: “H.264”,

“height”: 480,

“sourceRectangle”: “”

}, {

“followSource”: false,

“implementation”: “default”,

“gpuid”: -1,

“profile”: “baseline”,

“serverName”: “defaultServer”,

“description”: “”,

“audioCodec”: “AAC”,

“version”: “1”,

“streamName”: “mp4:${SourceStreamName}_360p”,

“Overlays”: [{

“overlayName”: “WowzaLogo”,

“imagePath”: “C:\IpCamera\Logo.png”,

“serverName”: “defaultServer”,

“description”: “”,

“index”: 0,

“align”: “left,top”,

“version”: “1”,

“enable”: false,

“x”: 4,

“width”: “250”,

“name”: “WowzaLogo”,

“y”: 4,

“saveFieldList”: [],

“checkForUpdates”: false,

“opacity”: 100,

“height”: “250”

}],

“audioBitrate”: “64000”,

“videoBitrate”: “150000”,

“enable”: true,

“name”: “360p”,

“width”: 640,

“interval”: 60,

“fitMode”: “fit-height”,

“saveFieldList”: [],

“crop”: “0,0,0,0”,

“videoCodec”: “H.264”,

“height”: 360,

“sourceRectangle”: “”

}, {

“followSource”: false,

“implementation”: “default”,

“gpuid”: -1,

“profile”: “baseline”,

“serverName”: “defaultServer”,

“description”: “”,

“audioCodec”: “AAC”,

“version”: “1”,

“streamName”: “mp4:${SourceStreamName}_240p”,

“Overlays”: [{

“overlayName”: “WowzaLogo”,

“imagePath”: “C:\IpCamera\Logo.png”,

“serverName”: “defaultServer”,

“description”: “”,

“index”: 0,

“align”: “left,top”,

“version”: “1”,

“enable”: false,

“x”: 4,

“width”: “250”,

“name”: “WowzaLogo”,

“y”: 4,

“saveFieldList”: [],

“checkForUpdates”: false,

“opacity”: 100,

“height”: “250”

}],

“audioBitrate”: “64000”,

“videoBitrate”: “150000”,

“enable”: true,

“name”: “240p”,

“width”: 360,

“interval”: 60,

“fitMode”: “fit-height”,

“saveFieldList”: [],

“crop”: “0,0,0,0”,

“videoCodec”: “H.264”,

“height”: 240,

“sourceRectangle”: “”

}, {

“followSource”: false,

“implementation”: “default”,

“gpuid”: -1,

“profile”: “baseline”,

“serverName”: “defaultServer”,

“description”: “”,

“audioCodec”: “AAC”,

“version”: “1”,

“streamName”: “mp4:${SourceStreamName}_160p”,

“Overlays”: [{

“overlayName”: “WowzaLogo”,

“imagePath”: “C:\IpCamera\Logo.png”,

“serverName”: “defaultServer”,

“description”: “”,

“index”: 0,

“align”: “left,top”,

“version”: “1”,

“enable”: false,

“x”: 4,

“width”: “250”,

“name”: “WowzaLogo”,

“y”: 4,

“saveFieldList”: [],

“checkForUpdates”: false,

“opacity”: 100,

“height”: “250”

}],

“audioBitrate”: “64000”,

“videoBitrate”: “150000”,

“enable”: true,

“name”: “160p”,

“width”: 360,

“interval”: 60,

“fitMode”: “fit-height”,

“saveFieldList”: [],

“crop”: “0,0,0,0”,

“videoCodec”: “H.264”,

“height”: 160,

“sourceRectangle”: “”

}],

“version”: “1”

}

I’m try another way to Disable 720p Encode like below, again Rest API return success:true but nothing change, 720p encode still Enabled.

Request URL (PUT)

http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/1063-TEST_TEST/transcoder/templates/transcode/encodes/720p

Request Body:

{“followSource”:false,“implementation”:“default”,“gpuid”:-1,“profile”:“baseline”,“serverName”:“defaultServer”,“description”:"",“audioCodec”:“AAC”,“version”:“1”,“streamName”:“mp4:${SourceStreamName}_720p”,“Overlays”:[{“overlayName”:“WowzaLogo”,“imagePath”:“C:\IpCamera\Logo.png”,“serverName”:“defaultServer”,“description”:"",“index”:0,“align”:“left,top”,“version”:“1”,“enable”:false,“x”:4,“width”:“250”,“name”:“WowzaLogo”,“y”:4,“saveFieldList”:[],“checkForUpdates”:false,“opacity”:100,“height”:“250”}],“audioBitrate”:“64000”,“videoBitrate”:“150000”,“enable”:false,“name”:“720p”,“width”:1280,“interval”:60,“fitMode”:“fit-height”,“saveFieldList”:[],“crop”:“0,0,0,0”,“videoCodec”:“H.264”,“height”:720,“sourceRectangle”:""}

Response Body

{

“success”: true,

“message”: “Saved”,

“data”: null

}

Hi,

There was a previously known issue where the transcoder template endpoints were not updating correctly. Do please ensure that you have the latest available update installed on your Wowza server.

Michelle