KILOVIEW encoder device has an 'audio encoding engine' module. This engine could support one or more channels. Each channel can capture audio from different audio input device, then encode to different formats. For video encoding stream, it can bind to specified channel to realize combined stream of audio and video.
Return a JSON style result. The JSON format is:
{ /*OBJECT*/ | |||||
"Result": NUMBER | 200 means OK, other error code meanings are similar to HTTP Response. | ||||
"Status": "STRING" | Status message. Responsing result status of API executive, if there errors, it will describe reasons. | ||||
"Data": { /*OBJECT*/ | Result object | ||||
"ChannelConfigs": [ /*ARRAY*/ | Array, each item means one audio encoding channel configuration, formats as below: | ||||
{ /*OBJECT*/ | |||||
"ID": NUMBER | Channel ID | ||||
"Enable": INTEGER |
| ||||
"Device": "STRING" | Audio capture device name, format like: 'alsa:default'. Currently please neglect this value's function. | ||||
"Codec": "STRING" | Audio CODEC, currently support AAC(Low-Cost) and G711.
| ||||
"Sampling": INTEGER | Sampling rate. Valid for AAC, for G711 it always as 8KHz. | ||||
"Channels": INTEGER | Sound channel, value is 1 or 2. Valid for AAC, for G711 it always as 1. | ||||
"Bitrate": NUMBER | Encoding bitrate, unit is bps (e.g. 64000 means 64Kbps). Valid for AAC, for G.711 it always as 64000. | ||||
"AAC_Format": "STRING" | AAC Format.
| ||||
"G711_Format": "STRING" | G.711 Format.
| ||||
} | |||||
"ChannelStatus": [ /*ARRAY*/ | array, each item means one audio encoding channel status, formats as below: | ||||
{ /*OBJECT*/ | |||||
"ID": INTEGER | Channel ID | ||||
"Enable": INTEGER |
| ||||
"Codec": "STRING" | Audio CODEC, currently support AAC(Low-Cost) and G711.
| ||||
"Sampling": INTEGER | Sampling rate. Valid for AAC, for G711 it always as 8KHz. | ||||
"Channels": INTEGER | Sound channel, value is 1 or 2. Valid for AAC, for G711 it always as 1. | ||||
"Bitrate": NUMBER | Instant encoding bitrate. | ||||
"AAC_Format": "STRING" | AAC Format.
| ||||
"G711_Format": "STRING" | G.711 Format.
| ||||
} | |||||
] | |||||
] | |||||
} | |||||
} |
KILOVIEW Device HTTP API, v1.0
Copyright (c) 2016, KILOVIEW Electronics.