setAudioEngChannel.lua
[INDEX]

ABSTRACT

Set the audio encoding parameters of specified audio encoding engine channel

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.

ARGUMENTS

HTTP Arguments submit: POST

Test this API over HTTP - (URL):

ID
INTEGER (MUST)

Audio channel ID of the audio encoding engine. This ID is got by getAudioEngChannel.lua.

Test value:

Enable
INTEGER

0

Disable this channel

1

Enable this channel

Test value:

Device

"..."Audio capture device name, format like 'alsa:default'. Please ignore the effect of this value currently.

Test value:

Codec

Audio CODEC, currently support AAC(Low-Cost) and G711.

AAC

AAC(Low-Coast)

G711

G.711

Test value:

Sampling
INTEGER

Sampling rate. Valid for AAC, for G711 it always be 8KHz.

Test value:

Channels
INTEGER

Sound channel, value is 1 or 2. Valid for AAC, for G711 it always be 1.

Test value:

Bitrate
INTEGER

Encoding bitrate, unit is bps (e.g. 64000 means 64Kbps). Valid for AAC, for G.711 it always be 64000.

Test value:

AAC_Format

AAC Format.

RAW

RAW AAC format

ADTS

With ADTS header

For Transport Streaming(TS) application, *MUST* specify AAC format with ADTS header.

Test value:

G711_Format

G.711 Format.

ULAW

G.711 uLaw

ALAW

G.711 aLaw

Test value:

RETURNS

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.

}

OTHER NOTES

Device HTTP API, v1.0