CONFIDENTIAL
DOC-USR-0030-12
___________________________________________________________________________________________
Z3 Technology, LLC
♦
100 N 8
th
ST, STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
16
6.2.2
Application Options and Arguments
The menu-based sample application uses an .ini file. This .ini file is built in the script run.sh and
stored in /tmp/encode.ini.
Once called with the .ini file, the menu-based sample application presents to the user a menu of
options. Most .ini files are geared towards a specific sample application. The easiest way to get a
valid .ini file is to run the script with the settings you want and then copy the generated .ini out of
/tmp and save it.
The command line interface for the encoder is set up by running:
# source /opt/mcsenc/mcsenc.sh
This will present you with an "=" prompt. You can then enter commands to encode. For example:
= encode instance=1 source=SDI1 dst=rtp://
audio=off
This will start encode from SDI1 streaming to 192.168.0.6 at port 5004 scaled to 1280x720. You
can find an example of using this in a script at:
$PRJROOT/dvr-rdk/runz3demo.sh
The command line interface for the decoder is set up by running:
# source /opt/mcsdec/mcsdec.sh
This will present you with an "=" prompt. You can then enter commands to decode. For example:
= decode instance=1 source=rtp://192.168.0.6:5004 audio=on aport=hdmi
This will start decode from RTP from port 192.168.0.6 at port 5004 sending audio to HDMI.
6.2.3
Application Source Code
Application source code is available under a separate license agreement. For customers that have
licensed it, the application source code can be found mainly in:
z3apps/rdk/rdk_demo
The top-level file for the menu-driven application is
demo.c
. The top-level files for the command
line interfaces are
demo_mcsenc.c
and
demo_mcsdec.c
.