change the IP to the specific unit IP in use. The following example changes several HD transcoder 5 parameters.
It will set the bitratemode to CBR, bitrate to 18, and pulldown32 to Disabled.
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/transcode?/hd?
index=5&bitratemode=CBR&bitrate=18&pulldown32=Disabled"
If successful, the following is an example of the return body:
"response": {
"code": "10",
"result": "success",
"message": ""
}
GET Examples:
Example 3: GET the full HD transcoder values for a specific transcoder
The following example assumes that the user has successfully logged onto the unit, received the session id
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use. The following example retrieves all of the HD transcoder settings
for transcoder 5.
The user must specify the index in the URI.
Note
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/transcode/hd?index=5"
If successful, the following is an example of the return body:
"transcode": {
"hd": {
"index": "5",
"vres": "HD Output",
"hres": "Full",
"bitratemode": "CBR",
"bitrate": "16.0",
"gop": "User GOP(MN)",
"usergop": "15 2",
"pulldown32": "Disabled"
}
}
Example 4: GET a specific HD transcode value for a specific transcoder
The following example assumes that the user has successfully logged onto the unit, received the session id
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use. The following example retrieves one specific parameter value
from the ASI tuning settings for ASI port 1.
The user must specify the port number in the URI followed by the URI argument the user wishes to retrieve.
This example retrieves the bitrate from transcoder 5.
Note
In GET URIs, only the index argument must contain a value for the transcoder, all other arguments do
not contain values.
Note
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/transcode/hd?index=5&bitrate"
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
247
API Definitions
Transcoding Configuration Commands