beautypg.com

Epiphan Pearl Mini Live Video Production System User Manual

Page 397

background image

Pearl Mini User Guide

Controlling Pearl Mini using

HTTP/HTTPS commands

For recorders, add 'm' before the recorder number (i.e. channelm1 for recorder 1), for example:

http://<

address

>/admin/channelm<

N

>/

get_params.cgi

?

key

Sample Set configuration settings:

http://<

address

>/admin/channel<

N

>/

set_params.cgi

?key=

value

or

https://<

address

>/admin/channel<

N

>/

set_params.cgi

?key=

value

For recorders, add 'm' before the recorder number (i.e. channelm1 for recorder 1), for example:

http://<

address

>/admin/channelm<

N

>/

set_params.cgi

?

key

Where <

address

> is the IP address of the Pearl Mini, channel<

N

> is the channel number (i.e.

channel2

for

channel number two), and channelm<

N

> is for recorders (i.e.

channelm2

for recorder two),

key

is the

configuration key for the item being checked or changed (see

Configuration keys for third party APIs

), and

value

is the value to set for the configuration item.

The following examples show how to use wget to exercise some of the supported HTTP/HTTPS commands.
You can substitute

https

for

http

in the urls.

For values with spaces, encode space as %20. i.e.: set_params.cgi?framesize=640%20x%20480

The examples assume a system IP address of 192.30.23.45 and admin password is pass123.

To get the type of stream being published and frame size for channel 1:

wget --http-user=admin --http-passwd=pass123 http://192.30.23.45/admin/channel1/get_
params.cgi?publish_type&framesize

To set the publish stream type to RTMP Push (6) and at the title “System Stream” for channel 2:

wget --http-user=admin --http-passwd=pass123 http://192.30.23.45/admin/channel2/set_
params.cgi?publish_type=6&title=System%20Stream

386