13
CONFIDENTIAL
DOC-USR-0093-03
____________________________________________________________________________________
Z3 Technology, LLC
♦
100 N. 8th St. STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
6.1.3
z3
This directory contains the base code for rtp tx and rx, as well as the base code for audio capture
and output.
6.2
Z3 Application Overview
6.2.1
Application Names and Locations
For encode, there are two binaries in the sample code. The first is a menu-based demo (this is what
comes up in the serial terminal when the board is powered on). The second is a command line
interface that is more flexible and easier to use from a programming standpoint. The web-based
interface uses the command line interface extensively.
The menu-based demo binary can be found at:
/opt/dvr_rdk/ti816x/bin/z3_dvr_rdk_demo_mcfw_api.out
The command line interface binary can be found at:
/opt/dvr_rdk/ti816x/bin/mcfw_mcsenc
6.2.2
Application Options and Arguments
The menu-based demo 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 demo presents to the user a menu of demos. Most .ini
files are geared towards a specific demo. 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=HDMI1 dst=rtp://192.168.0.6:5004 audio=off
will start an encode from HDMI1 streaming to 192.168.0.6 at port 5004. 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
.