CONFIDENTIAL
DOC-USR-0055-03
___________________________________________________________________________________________
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 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://
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
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
.