background image

 
 
 
 
 
 

User Instructions 

Video Infrastructure 1080p30 System 

High Definition Video Processor Module 

DM368 Rapid Prototyping System 

Model Name: 

Z3-DM368-VI-RPS 

 
 
 

 

 

 

 

 

DOC-USR-0011-04 

Manual Version 1.06.15a 

Software Version 1.06.15 

November 7, 2014

 

 

 

Before attempting to connect or operate this product, please read these instructions carefully and save the 

manual for future use. 

 

This document contains proprietary and confidential information of Z3 Technology, LLC ("Z3").  This document may 

not be used, reproduced, disclosed, or disseminated to anyone without the prior written approval of an authorized 

representative of 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.

Summary of Contents for Z3-DM368-VI-RPS

Page 1: ...s carefully and save the manual for future use This document contains proprietary and confidential information of Z3 Technology LLC Z3 This document may not be used reproduced disclosed or disseminated to anyone without the prior written approval of an authorized representative of Z3 Z3 Technology LLC incorporates HDMI technology The terms of HDMI and HDMI High Definition Multimedia Interface and ...

Page 2: ... 1 Corrected UDP MPEG 2 TS in Sections 7 7 and 7 8 Updated VLC version Section 7 7 Added Sections 7 8 7 10 on Using DHCP Dynamically Changing Bitrate and Framerate and Tuning for Latency Added Section 8 on Running the Decoder Added Section 9 on Writing to and Reading from File Added Section 10 on Writing and Reading JPEG files Corrected update image file name removed unnecessary TFTP NFS setup ste...

Page 3: ... and Running the Make Script 11 6 0 CODE OVERVIEW 13 7 0 RUNNING THE ENCODER 14 7 1 Set up the HD Source 14 7 2 Connect the Board 14 7 3 Set up the Terminal Window 15 7 4 Power on the board 15 7 5 Ensure your PC has a proper IP address 16 7 6 Run the Web Interface 16 7 7 Run VLC to View Stream 18 7 8 Streaming RTP 19 7 9 Using DHCP 20 7 10 Dynamically changing bit rate frame rate 21 7 11 Tuning fo...

Page 4: ...h ST STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 4 12 3 Other available u boot commands 37 13 0 SUMMARY OF OPTIONS 38 13 1 Options in Both the Encoder and Decoder 38 13 2 Encoder Options 38 13 3 Decoder Options 41 14 0 APPENDIX A Example of Successful Boot Log 42 15 0 APPENDIX B Updating using an SD card 45 16 0 APPENDIX C Troubleshooting 46 ...

Page 5: ...3 Video Streaming to VLC RTP 19 Figure 11 Using DHCP 20 Figure 12 Saving Use DHCP 20 Figure 13 Finding DHCP assigned IP Address in the Serial UI 21 Figure 14 Tuning for Latency 21 Figure 15 Connections for Decoding to SDI 22 Figure 16 Encoder Settings for Decoder Example 23 Figure 17 Changing to Decoder Mode 24 Figure 18 Settings for Decode Example 24 Figure 19 Connections for Encoding from Compon...

Page 6: ...ecessary components for the user to develop their own advanced multimedia graphics and DSP applications Measuring only 44 x 68mm the Z3 DM368 MOD is the most compact production ready DM368 based video encoder decoder system on module on the market The module supports high definition video input and analog audio input It also supports a micro SD card socket USB 2 0 Ethernet a real time clock and an...

Page 7: ...d has HD SDI HDMI DVI Component Composite and VGA inputs Ethernet ASI and SDI outputs and one L R pair of analog stereo audio inputs It also includes an SDI output for displaying video Figure 2 below shows an image of a Z3 DM368 APP 04 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...

Page 8: ...description of how to save to a file and play back that file can be found in Section 9 0 WRITING TO AND READING FROM A FILE on page 26 2 2 If you already have a system from Z3 and need to update the firmware You can update the firmware via SD Card by following the instructions in Section 12 0 RUNNING THE CODE YOU BUILT ON THE BOARD on page 32 2 3 If you are ready to start development Details on ho...

Page 9: ...______________________________ Z3 Technology LLC 100 N 8th ST STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 9 3 0 INCLUDED PARTS LIST 1 x Z3 DM368 MOD 01 1 Z3 DM368 APP 04 1 x 12V Power Supply 1 x DB 9 Serial Cable 1 x RCA to RCA Cable 3 x BNC to BNC Cables 1 x Z3 368 VI RPS Documentation ...

Page 10: ...eo output Ethernet USB 2 0 SD Card interfaces RS232 serial console port Low power consumption 4 1 Supported Encoder Resolutions SDI 1080p30 1080i30 1080i29 97 1080i25 720p60 720p59 94 720p50 576i25 480i30 and 480i29 97 HDMI 1080p30 1080i30 1080i29 97 1080i25 720p60 720p59 94 720p50 576p50 576i25 480p60 480i30 and 480i29 97 Component 1080p30 1080i30 1080i29 97 1080i25 720p60 720p59 94 720p50 576p50...

Page 11: ...stall some 32 bit libraries for the cross compiling toolchain You can determine whether your OS is 64 bit by using the uname p command A 64 bit OS will return x86_64 while a 32 bit OS will return i386 i586 or i686 For 64 bit Ubuntu you can get the necessary libraries by typing sudo apt get install ia32 libs For 64 bit Fedora you can type sudo yum install glibc i686 5 2 Making the Directories and R...

Page 12: ...uilding can take around 30 40 minutes You will also need to type in the sudo password a few times during the build The outcome of the build process should be newly created image files in the images directory You can confirm this by doing the following cd images ls alt Figure 3 shows a sample result Actual filenames dates and times will differ Figure 3 Sample Content of Images Directory after Succe...

Page 13: ...for building the codebase dvsdk The DM368 DVSDK from TI with changes for Z3 Technology hardware filesys The root file system for the DM368 target flash_utils The UBL and a tool to write it into the board s NAND flash kernels The kernel source tree with added support for the Z3 DM368 MOD sysapps Source code for the system applications placed in the basic root file system toolchain ARM compilers bin...

Page 14: ...the HD Source 1 Select an HD source with HDMI output and set it to output either 1080i or 1080p30 7 2 Connect the Board For these steps please refer to Figure 4 2 Connect the supplied DB9 serial cable to a PC and to the serial port of the Z3 DM368 VI RPS 3 Connect the HDMI source to HDMI In on the Z3 DM368 VI RPS with an HDMI cable 4 Connect the Ethernet of the board to either a PC or a hub the PC...

Page 15: ...ial port that is connected Baud Rate 115200 Data 8 bit Parity None Stop 1 bit Flow Control None 6 If you are running from Linux type sudo minicom s And then configure by doing the following Select Serial Port Setup Ensure the right serial device is specified typically dev ttyS0 Set option E Bps Par Bits to 115200 8N1 Press return Select Exit 7 4 Power on the board 7 Connect the 12V power supply an...

Page 16: ...st the same first 2 parts of the IP address For example if the RPS has an IP address of 192 168 0 65 your PC would need to have an address of 192 168 x y where x y is anything but 0 65 and not conflicting with your current network Note that the first 2 parts being the same are based on a value of netmask of 255 255 0 0 If netmask were 255 255 255 0 for example then the first 3 parts of the IP addr...

Page 17: ... to MPEG 2 TS Change Dest Address to the IP address of your PC typical value is 192 168 0 6 and change the value of Dest Port to 5004 11 Click Start Encoder The status should change to Started Note The encoder may have already started as it will automatically start in 30 seconds if a valid input is detected If that occurs click Stop Encoder first b Change Video Resolution to 1080i c Change Output ...

Page 18: ...8 1369 USA 1 402 323 0702 18 7 7 Run VLC to View Stream 12 Run VLC on your PC version used in testing at Z3 2 1 3 13 Select Media Open Network Stream In the box type udp 192 168 0 6 5004 where 192 168 0 6 is the IP address of your PC 14 Press Enter 15 You should now see video streaming to VLC Figure 9 Example of Z3 Video Streaming to VLC UDP Figure 8 VLC Open Network Screen ...

Page 19: ...e software release from Z3 To stream using RTP complete the following steps 16 Click on Stop Encoder to stop the current encoding session 17 Change Output Format from MPEG 2 TS to RTP see Figure 7 18 Confirm that Dest Port see Figure 7 is 5004 this will be important for the VLC configuration 19 Click on Start Encoder to start the RTP encoding session 20 Copy the file z3 dm368_5004 sdp received fro...

Page 20: ...e following steps 23 Click the Use DHCP check box in the Web GUI Once it is checked you will see that the values of Local IP Address Local Netmask and Default Gateway will gray out 24 Click on Save User Wait a couple seconds for the Saved all to User message to appear 25 Power off the Z3 DM368 VI RPS 26 Power on the Z3 DM368 VI RPS Wait about one minute for the ready LED to turn on 1 Click Save Us...

Page 21: ...d rate The video stream will then continue uninterrupted with the new parameter 7 11 Tuning for Latency For latency the key parameter to work with is Video Burst Size Video Burst Size defines the number of milliseconds of buffering the encoder has to work with The higher this value the more buffering it has to work with and the more time it has to smooth things out for challenging content However ...

Page 22: ...iting files 8 1 Connect the Decoder Board 1 Connect the Ethernet to a hub router connected to the streaming source 2 Connect the Serial and 12V power 3 Connect SDI Out of the Z3 DM368 VI RPS to an SDI monitor or to an SDI HDMI converter connected to an HDMI monitor 8 2 Set up the Decoder Board to work with the Encoder Board 4 If you are using another Z3 DM368 VI RPS as the encoding source you need...

Page 23: ...02 323 0702 23 8 3 Configure the Encoder 5 Go to the Encoder Z3 DM368 VI RPS Change the settings to match those in the figure below Here a multicast address is used You can also stream unicast to the Decoder by specifying the IP address of the decoding Z3 DM368 VI RPS Using multicast allows you to also open VLC and view the stream from there Figure 16 Encoder Settings for Decoder Example ...

Page 24: ...wer on the Decoder Z3 DM368 VI RPS 7 Follow steps 5 to 9 in Section 7 0 to bring up the GUI for the Decoder Z3 DM368 VI RPS 8 You should be at the System Setup Tab From here click on Operating Mode in the lower right corner and change to Decoder 9 Once you do this the menu changes to a Decoder menu Change the settings to match those shown below Figure 18 Settings for Decode Example Change mode her...

Page 25: ...A 1 402 323 0702 25 8 5 Start the Encoder and Decoder 10 If you haven t already go back to the Encoder board and click Start Encoder 11 Go to the Decoder board and click Start Decoder 12 You should begin to see the audio and video on the monitor 13 You can also view the content using VLC Open VLC as you did in the Encode instructions and use the address udp 225 1 2 3 5004 for the URL ...

Page 26: ...ribe how to record a stream to an mp4 file play it back do trick play while playing it back and play back the file on a PC Writing to and reading from a file is accessed via the serial interface The details on what steps to take are listed below Composite input is used in this example 1 First make sure the proper encode decode connections are made to the Z3 DM368 VI RPS as described in Section 7 0...

Page 27: ...sage Initializing multimedia system After about 15 seconds the file read write menu will appear 6 Type S and return until the correct resolution appears Important Notes Setting resolution to D1 automatically causes composite input to be selected Setting anything else causes component input to be selected The resolution needs to match exactly what is being output from the source if the source is ou...

Page 28: ...coming in at a different resolution from what was specified For example the input source is 1080 but an encoding resolution of 720p is specified If you get the message Waiting for SD Card or Stick you need to connect an SD card or USB drive to the Z3 DM368 VI RPS Once you do this after a couple of seconds encode will start 10 Make sure SDI output is connected see Figure 15 11 After encode finishes...

Page 29: ...02 323 0702 29 10 0 WRITING AND READING JPEG FILES Writing and reading JPEG files is an option in the File Read Write portion of the Z3 DM368 VI RPS The example applications can be run as follows 1 Bring up the File Read Write menu as described in steps 1 4 of Section 9 0 2 Type 17 and return The sample application will then take 100 JPEG pictures and finish Figure 21 Running JPEG Encode ...

Page 30: ... STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 30 3 To decode the JPEG files type 9 and return The JPEG files are shown in sequence as a slide show You can use the P key to show the previous picture and cause the slide show to run backwards and the N key to show the next picture and cause the slide show to run forward Figure 22 Running JPEG Decode ...

Page 31: ...he options in the GUI to exercise other features These include Encode from SDI Component Composite and VGA Adjust the Bit rate Adjust the Frame rate Adjust the GOP size Change the Video Profile used You can also store the configuration as the default or export the configuration to another file Besides using the web based GUI you can also use the serial menus More detailed system information such a...

Page 32: ...ilt in Section 5 0 and run them on the board 1 Updating the image file and 2 Setting up NFS TFTP to link to your development PC 12 1 Method 1 Updating the Image File 1 Run the Web Interface Steps 1 9 in Section 7 0 2 Select UPDATE from the top of the GUI 3 This brings you to the Software Updater screen Click Browse and browse to the directory z3 dm368 z3 dm368 VI RPS date images and select the ima...

Page 33: ...02 323 0702 33 4 Click Open 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 It is also possible to update the firmware using an SD card with the ZWriter tool Details can be found in Appendix B on page 45 Figure 24 Browsing for the Image File in the Updater ...

Page 34: ... in tftpd server_args s home c Start TFTP sudo etc init d xinetd start 2 Enable NFS on the Linux PC The target system will mount the root file system using NFS This like TFTP will also vary depending on the Linux setup you have As an example here is a set of steps that would be run from Ubuntu 10 x or later these are in gray to denote they can vary from system to system a Get NFS if it is not alre...

Page 35: ...iable script to match your own environment settings Go to the u boot directory in the release directory and edit the file uboot_envDM368 txt here emacs is used any text editor can be used cd home z3 z3 dm368 cd z3 dm368 VI RPS date cd u boot emacs uboot_envDM368 txt d In the editor you want to modify the values for nfsserver serverip gatewayip netmask ipaddr tftp_root and nfs_root as shown in the ...

Page 36: ... up the minicom Command Summary From here type T to bring up the Terminal Settings window From here set Newline tx delay ms option D to 100 and Character tx delay ms option F to 10 g Press return to save your terminal settings h The next step is to read in the u boot environment file you just modified If you are using minicom type ctl A and Z to bring up the Command Summary Then type Y for Paste f...

Page 37: ...nnected to your network 5 From the u boot prompt type boot DM365 EVM boot You should see the Z3 DM368 VI 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 If you are running into issues please see the Troubleshooting section in Appendix C 12 3 Other available u boot commands Besides booting f...

Page 38: ...DM368 VI RPS Default Gateway 192 168 X XX 192 168 0 1 Can generally leave as 192 168 0 1 Use DHCP Checkbox Yes No Yes Use DHCP to get IP address at boot up see Using DHCP on page 20 Load Factory Default Settings Button Load settings installed at the factory Load User Settings Load user settings previously saved Save User Settings Save current settings for later use 13 2 Encoder Options Parameter O...

Page 39: ...Main for D1 and Baseline for D1 Gop Size 15 30 60 120 240 I frame frequency A GOP size of 15 for example would mean 1 I frame every 15 frames Video Burst Size 150 2000ms 300 of ms to buffer The higher the value the smoother the encode but also the higher the latency Video Codec H 264 MPEG 2 The codec to use for video encoding Frame Decimation None 1 2 1 3 1 4 Used to reduce the frame rate For exam...

Page 40: ... to TS Bitrate 0 20Mbps 12Mbps Only appears for MPEG 2 TS and MPEG 2 TS RTP output Formats The overall bitrate for the generated transport stream A margin of 30 50 over the video bitrate for high bitrates is recommended PID Audio Video PCR 0 999 120 220 520 Only appears for MPEG 2 TS and MPEG 2 TS RTP output formats The PIDs assigned to audio video and the PCR in the TS stream Values are separated...

Page 41: ...era RTP TS IP Port x y z w pppp 225 1 2 3 8888 The IP address and port being streamed to Video Codec H 264 The video format being used in the incoming stream Only H 264 is supported in this release Audio Codec AAC PCM None The audio codec being used in the incoming stream MP1L2 and MP3 support is available through a separate license MVE Flag Checkbox On Off Set this flag if the streaming source is...

Page 42: ...fset 0x400000 size 0x240000 2359296 bytes read OK Booting kernel from Legacy Image at 80700000 Image Name Linux 2 6 18 14_pro500 davinci_e Image Type ARM Linux Kernel Image uncompressed Data Size 2052236 Bytes 2 MB Load Address 80008000 Entry Point 80008000 Verifying Checksum OK Loading Kernel Image OK OK Starting kernel Uncompressing Linux no vid3 buffer allocated init started BusyBox v1 15 0 svn...

Page 43: ...failed Use FPGA slave serial mode Design filename top ncd HW_TIMEOUT FALSE UserID 0xFFFFFFFF Part num len 12 Part number 3s200aft256 Date 2013 06 06 Time 12 31 49 Bitstream size 149516 Wrote 149516 bytes FPGA version 0x001A Write 0xf40d Write 0xf41d Write 0xf42d Write 0xf43d Board revision 00001010 Z3 Technology DM36x Linux 2 6 18 http www z3technology com login 640 root login on tts 0 BusyBox v1 ...

Page 44: ...tereo 5 Audio Bitrate 128 kbits 6 Video Resolution Follow input 9 Rate Control CBR A Video Bitrate 8000k B Video Profile High C Gop Size 60 Frames D Video Burst Size 300ms E Video Codec H 264 F Frame Decimation None G Video Delay 0 H Audio Delay 0 I Output Interface Ethernet VBR J Output Format RTP K Dest IP Address 225 1 2 3 L Dest Port 8888 M ASI Bitrate 12000k N ASI PCR Interval O PID Audio Vid...

Page 45: ...ndows computer 2 Place an SD card into your computer 3 Open the ZWriter Windows program provided by Z3 4 Select the img file 5 Specify your SD card as the location to write to Note Verify this location as this will cause it to be overwritten There is no recovery once you click Write Device 6 When ZWriter is finished eject the SD card from your computer 7 Place the SD card in the socket on the Z3 D...

Page 46: ...om the Linux PC Try pinging the Linux PC from the Z3 DM368 VI RPS Problem Do not see video in VLC UDP Does the IP address set in Dest Address equal the IP address of the PC running VLC Does the port number in Dest Port equal the value entered in the URL for VLC Does the video coming out of the source match the resolution in the encoder settings Is the PC fast enough for 1080p decode on VLC Does th...

Page 47: ...not come up Is the link to filesys properly set up see step 2c Does the IP address in the line added in etc exports match the IP address set in nfsserver in u boot Does the value of nfs_root in u boot point to z3 dm368 filesys fs Did you start the NFS server If you modified the exports file did you remember to restart the NFS server after that When contacting Z3 Support for additional support plea...

Reviews: