Multi-channel h.264 hd multimedia system (12 pages)
Summary of Contents for Z3 Technology Z3-DM8107-SDI2-RPS
Page 1
Z3. Z3 Technology, LLC incorporates HDMI® technology. The terms of HDMI and HDMI High-Definition Multimedia Interface, and the HDMI Logo are trademarks or registered trademarks of HDMI Licensing LLC in the United States and other countries.
Page 2
Revision History Version Date Change Note Author 2.01.25 06/25/14 Original Document Added Section 7 on RTMP. Removed mention of SATA in Section 8. 2.01.25a 10/01/14 Added “-s” and removed unnecessary steps in Section 9.2. Modified note on Source Code in Section 5.2.3, added HDMI disclaimer 2.01.25b 10/09/14 and updated formatting...
Configure the Encoder for “Multiple Output from One Input” Mode ........38 Configure CH1 for RTMP Streaming ................. 39 Configure CH2 for RTMP Streaming ................. 40 Configure CH3 for RTMP Streaming ................. 41 ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 4
13.0 APPENDIX A: EXAMPLE OF SUCCESSFUL BOOT LOG ............61 14.0 APPENDIX B: CONFIGURING THE WOWZA SERVER FOR RTMP ..........72 15.0 APPENDIX C: TROUBLESHOOTING ................74 ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 5
Figure 32 Changing to “Encode 1 to 3 Ch” Mode..............38 Figure 33 Creating CH3 ....................38 Figure 34 3-Channel RTMP Encode – Channel 1 Settings ............39 ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
DOC-USR-0055-03 GENERAL DESCRIPTION The Z3-DM8107-SDI2-RPS is a development system that allows encode of HD video through SDI or HDMI input, and encode of SD video through a component input. It consists of a hardware package and software bundle designed to enable rapid development of multimedia applications. The hardware consists of one Z3-DM8107-MOD System on Module card and one Z3-DM8107-APP-21 board.
/ Audio In SDI In Ethernet 186 mm Figure 2 The Z3-DM8107-APP-21 Application Board A Linux-based SDK, additional design services, and support are available from Z3 Technology. Please contact Z3 at http://www.z3technology.com or e-mail at sales@z3technology.com. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8...
Details on how to set up your system to access the code you have built can be found in Section 10.0: “RUNNING THE CODE YOU BUILT ON THE BOARD”, on page 45. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
1 x BNC-BNC Cable 1 x HDMI Cable 1 x S-Video -> Video Cable 1 x Z3-DM8107-SDI2-RPS Documentation ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
# sudo yum install glibc.i686 Making the Directories and Running the Make Script The software provided will allow you to re-create the pre-installed software of the Z3-DM8107-SDI2-RPS starting from the included source code. On a PC running Linux, create a directory where the released materials are going to be located: # mkdir /home/z3/z3-dm810x Copy the released tar archive to that directory (note: the name may slightly vary).
The result should be something like the following. Note that actual filenames, dates, and times will differ. Figure 3 Sample Content of Images Directory after Successful Build ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Z3 sample application code and scripts The Z3 sample application code that comes with the Z3-DM8107-SDI2-RPS is run from the run.sh script in dvr-rdk/dvr_rdk/bin/ti810x. This code calls the z3_dvr_rdk_demo_mcfw_api.out binary, which initializes and runs the encoder. This binary is built from the dvr-rdk directory. The code for the binary resides in z3apps/rdk/rdk_demo.
The web-based interface uses the command line interface extensively. The menu-based sample application 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 ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 16
The top-level file for the menu-driven application is . The top-level files for the command demo.c line interfaces are demo_mcsenc.c demo_mcsdec.c ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
This section gives step-by-step instructions on taking the Z3-DM8107-SDI2-RPS and using it to stream 1080p or 1080i video to VLC running on your PC. In addition to the Z3-DM8107-SDI2-RPS, an HD source with HDMI output, an HDMI->SDI converter, and a PC are required.
(7) Connect the 5V power supply and turn on the switch. If all is configured properly, you should see the board booting up within the terminal window. After about a minute, you will see the RPS Main Menu: ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(8) To be able to communicate with the RPS, the PC that you are communicating from needs to have at least the same first two parts of the IP address. For example, if the RPS has an IP address of ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
“Encode Interlaced/Progressive” to “Encode Single CH No Scale.” Note that, in “Encode Single CH No Scale” mode, only CH1 can be used. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
If that occurs, just click “stop” first). The status should change from “IDLE” or “STOPPED” to “RUNNING”. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(15) Press “Enter.” (16) You should now see video streaming to VLC: Figure 9 Example of Z3 Video Streaming to VLC (UDP) ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(20) Click on “start” to start the RTP encoding session. At this point your settings should look like the following: Figure 10 Channel 1 Configuration Screen – RTP ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(22) In the “Open Media” box, type “rtsp://{DM8107-SDI2-RPS IP Address}/{name}.mp4”, where {DM8107-SDI2-RPS IP Address} is the IP address of the Z3-DM8107-SDI2-RPS, and {name} is “z3-1” for unicast streaming, and “z3-1m” for multicast streaming. For example, if the IP address of the Z3-DM8107-SD2I-RPS is the default value of 192.168.81.7 and unicast streaming is being done, the...
DOC-USR-0055-03 Changing the bit rate dynamically The Z3-DM8107-SDI2-RPS includes an “Update” button which allows you to change the bit rate without stopping and restarting the encoder. To use it, do the following steps: (24) In VLC, click on “Tools” and select “Codec Information”. This brings up a window with four tabs.
7.10 Adjusting the UDP TS Rate The Z3-DM8107-SDI2-RPS includes a parameter to adjust the TS rate independent of the video bit rate. This can be found just below “PCR PID” when “UDP” is selected as the output format.
(28) Once you select UDP, “TS RATE” should appear with the default value of 8000K. Change this to 1000K (see step 5 above). (29) Click on “start” to start encoding (see step 6 above). ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
B-frames improve the quality of the picture, but they also increase the latency by 1 frame time. To minimize latency, B-frames should be disabled (done by setting “Number of B-frames” to 1). ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Figure 18 Tuning for Various Use Cases 7.12 Running DHCP DHCP is also supported. When enabled, the Z3-DM8107-SDI2-RPS dynamically receives an IP address to use at startup. The IP address that is assigned can be seen either through the serial interface or through the ZFinder tool running on a PC.
(35) Now that DHCP is set in z3_test, save the configuration by clicking on the “Save” button: Click “Save” Figure 23 Saving a User Preset ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Figure 25 Address Change after DHCP Set (39) The second is to use the “ZFinder” utility on a Windows PC. To use ZFinder, make sure the Windows PC with ZFinder on it is connected to the same network which the Z3-DM8107-SDI2-RPS is connected to.
Figure 26 ZFinder with DM8107-SDI-RPS IP Address (41) Select the DM8107-SDI2-RPS and then click “Open Device.” A web browser will then open at the IP address of the Z3-DM8107-SDI2-RPS and you should see the Web GUI: New IP address Figure 27 Web GUI Using DHCP Address (42) You can go back to Static IP by unchecking “Use DHCP”...
The Z3-DM8107-SDI2-RPS also supports encode via HDMI or Composite In. The HDMI or Composite In can be used in parallel with the SDI In. A special cable, provided with the Z3-DM8107-SDI2-RPS, is needed for the Composite In. To encode with either HDMI or Composite In, perform the following steps: (43) In the GUI menu, click on the “CH2”...
If SDI encode is also being done at the same time, the IP address / port set for HDMI / Composite encode be different from the IP address used for SDI encode. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
STREAMING RTMP IN THREE DIFFERENT RESOLUTIONS This section shows how to use the Z3-DM8107-SDI2-RPS to take 1 video input and stream it over RTMP into 3 different resolutions (720p, D1, and CIF). The Wowza server is used as an example RTMP server to stream These instructions can also be used to determine how to stream the same input into multiple configurations.
PC with the Wowza server. (8) After you’re finished, your settings should look like the following: Figure 34 3-Channel RTMP Encode – Channel 1 Settings ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(11) Use the same RTMP format and Dest Address, replacing “720” with d1: Figure 35 3-Channel RTMP Encode – Channel 2 Settings ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(14) Use the same RTMP format and Dest Address, replacing “d1” with cif: Figure 36 3-Channel RTMP Encode – Channel 3 Settings ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(1) Use IP address of Wowza server + “:8088” (2) Select “Applications” (3) Select “live” (4) Select “Test Players” Figure 37 Getting to the Wowza Test Player ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Figure 38 Viewing DME-02 Content on Wowza (20) To view the other channels, simply change the stream name to “d1” or “cif”. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
This can be used to start a streaming encode session or to encode to a file on a connected USB drive. A separate manual for MCSENC is available upon request. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(1) Run the Web Interface (Steps (1)-(9) in Section 6). (2) Select “update device firmware” from the main screen: Click here Figure 39 Updating the Device Firmware from the Web Interface ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(5) Click “Upload and Update.” You should see a “FLASH Update now in progress” message. Once finished, it will go back to the main menu. (6) You should be able to now run using the updated image. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(here, 192.168.0.6 is the IP address of the PC, and 255.255.0.0 is the netmask): /home/z3/z3-dm810x/filesys/fs 192.168.0.6/255.255.0.0(no_root_squash,insecure,nohide,rw,async) (c) Start the NFS server # sudo service nfs-kernel-server restart ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
The value for tftp_root, when combined with the value of “server_args” in your /etc/xinetd.d/tftp file (see step (1b)), should point to the images link you set up in step (3). ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(k) You should then see a series of commands being pasted within u-boot. The very last line should say “Saving Environment to NAND…” Figure 43 Example of Successful u-boot Configuration ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
(6) From the u-boot prompt, type “boot” Z3-DM385# boot You should see the Z3-DM8107-SDI2-RPS boot the kernel obtained via TFTP, mount a file system using NFS, and then go straight to the serial menu. Appendix A shows an example of a successful boot.
11.0 USING THE PASSWORD FEATURE The Z3-DM8107-SDI2-RPS includes an optional password to prevent unauthorized users from accessing the Web GUI. The steps for using it are shown below: (1) In the System Setup tab, click on “go” next to “Set Password”: Click here Figure 44 Selecting “Set Password”...
Use “admin” for the user name and the value you had entered before for the password: (5) You should now be able to access the web GUI. Figure 46 Password Entry Screen ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Clicking this causes the Z3-DM8107-SDI2-RPS to extract a set of diagnostic logs that can be sent to Z3 Technology in the event of an issue to be reported. This file is saved on the PC which the GUI is being run from.
Always 1 in this release Codec The codec being used to encode audio for that channel Stream Status channel The channel number (1 or 2) ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Capture resolution for that input Capture frames per second for that input 12.4 The MPTS Tab *Note: Upcoming release- Combine multiple streams into 1 TS stream. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
# of ms to buffer. The higher the value, the smoother the encode, but also the higher the latency. Audio Enable True, False True -> Encode audio. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 57
If this is selected, you should type the path/name of the file in “Dest Address” (for example: /media/sda1/test.ts to write to a drive connected to USB1) ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 58
(see Section 7.10, “Adjusting the UDP TS Rate,” on page 28). stop Stop current encode session. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 59
“Follow input” = Generate encoder resolution based on capture resolution detected Note 2: GOP Sizes Supported: 10, 12, 15, 25, 30, 50, 60, 100, 120, 200, 240 frames ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
For example, as a 1080i, D1, and CIF stream. “Decoder” is not supported in this release. Stop All Stop encode on both channels. Start All Start encode on both channels. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
I2C: ready DRAM: 1 GiB NAND: setting chip delay to 15us HW ECC BCH8 Selected 256 MiB @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@ @@@@@@ @@@@@@@@@@@ ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 62
= 20971520 at 0x0 FB: Reserving 20971520 bytes SDRAM for VRAM setting z3_edma_mem_size to 10485760 Memory policy: ECC disabled, Data cache writeback ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 63
NET: Registered protocol family 16 omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting! omap_voltage_add_dev: VDD specified does not exist! OMAP GPIO hardware version 0.1 ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 64
Product: MUSB HDRC host driver usb usb1: Manufacturer: Linux 2.6.37 musb-hcd usb usb1: SerialNumber: musb-hdrc.0 hub 1-0:1.0: USB hub found ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 65
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 66
0:00, driver unknown davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 67
2000-01-01 00:00:00 UTC (946684800) CPSW phy found : id is : 0x1cc915 PHY 0:02 not found IP-Config: Complete: ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 68
Z3 Netra video decoders ver 0.6.0 successfully loaded, 1 devs. Starting telnet daemon. Starting web configurator NET: Registered protocol family 10 ** Point your browser to http://192.168.81.7 ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 69
Loaded file ../firmware/dvr_rdk_fw_m3video_1024M_256M.xem3 on slave procId 0. Started slave procId 0. After Ipc_loadcallback status [0x00000000] After Ipc_startcallback status [0x00000000] [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000 ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 70
| S - Start streaming | U - Update dynamic settings | T - Stop streaming | W - Write configuration to flash ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
Page 71
CONFIDENTIAL DOC-USR-0055-03 | X - eXit to prompt +==============================================================+ Enter option: ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8 ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702...
APPENDIX B: CONFIGURING THE WOWZA SERVER FOR RTMP In this section, configuring Wowza version 4.0.1 is described. To configure Wowza to work with the Z3-DM8107-SDI2-RPS RTMP streaming, the following steps are needed: (1) Log in to the Wowza Streaming Engine Manager Home page by typing http://localhost:8088, where “localhost”...
“Open” and “Client Restrictions” is set to “No client restrictions.” Then click “Save”: Figure 48 Wowza Security Settings The Wowza server is now configured to work with the Z3-DM8107-SDI2-RPS. ___________________________________________________________________________________________ Z3 Technology, LLC ♦ 100 N 8...
-Is the Ethernet cable plugged in to the Z3-DM8107-APP-21 board solidly (do you see the link light)? -Do the Z3-DM8107-SDI2-RPS IP address and the PC IP address have the same first 2 values (or, if netmask is set to 255.255.255.0, the same first 3 values)? -Do the Z3-DM8107-SDI2-RPS and the PC running VLC have the same netmask? (Default value is 255.255.0.0)
Page 75
Answers to more questions can be found on the FAQ at your customer support site. When contacting Z3 Support for additional support, please click the “download device logs” button in the GUI at the time the problem occurs and send the resulting .gz file to Z3 Technology. ___________________________________________________________________________________________ Z3 Technology, LLC ♦...
Need help?
Do you have a question about the Z3-DM8107-SDI2-RPS and is the answer not in the manual?
Questions and answers