background image

 

 

 

 

User’s Guide 

Player and Recorder Application 

High Definition Video Processor Module 

DM368-ZDVR Rapid Prototyping System 

Model Name: 

Z3-DM368-ZDVR

 

 

 

 

 

DOC-USR-0044-01 

Manual Version 1.03.01 

Software Version 1.03.01 

December 13, 2013 

 

 

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. 

Summary of Contents for Z3-DM368-ZDVR

Page 1: ...rsion 1 03 01 December 13 2013 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 ...

Page 2: ... to reflect rec pb capability 0 02 00 05 30 2011 Adjust per implementation BM 0 03 00 06 03 2011 Continue to adjust as implemented BM 0 04 00 10 31 2011 Edited document layout CH 0 05 00 01 31 2013 Address update Minor update PS 0 06 00 02 08 2013 Updated Section 7 2 PS 0 07 00 02 08 2013 Formatting grammar review MC 1 03 01 12 13 2013 Changed version number to reflect software version number made...

Page 3: ...k a File 12 5 1 Set up the Audio Video Source 12 5 2 Connect the Board 12 5 3 Set up the Terminal Window 13 5 4 Power on the board 13 5 5 Encode a stream 14 5 6 Play back a stream 14 5 7 Play stream on Windows Media Player 14 5 8 Option 1 Invoking the OSD overlay 15 6 Running The Code You Built on the Board 16 6 1 Method 1 Updating the Image File using an SD card 16 6 2 Method 2 Running Your Code ...

Page 4: ...of Images Directory after Successful Build 9 Figure 4 ZDVR Software Architecture 11 Figure 5 Demo Connections for Z3 DM368 RPS 12 Figure 6 ZDVR Startup Message 13 Figure 7 Graphics shown on screen as an overlay 15 Figure 8 Graphics with encoded video overlayed 15 Figure 9 The ZWriter Main Menu 16 Figure 10 Selecting the img file 17 Figure 11 Editing uboot_envDM368 txt 20 Figure 12 Minicom Terminal...

Page 5: ... connector design which supplies all interfaces native to the DM368 to an application board mate including I2C SPI LCD USB Serial SD MMC MS digital video digital audio analog composite and component video Figure 1 below shows the Z3 DM368 MOD An application board the Z3 DM365 APP is included with the Z3 DM368 RPS This application board uses the I O expansion capability of the Z3 DM368 MOD to imple...

Page 6: ...___________________________________________ Z3 Technology LLC 100 N 8th ST STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 6 Figure 2 Z3 DM368 ZDVR App Board Component In Component Out Composite In Composite Out Headphone Out Serial 5V Power MicroSD GPIOs HDMI Out Ethernet SD Card USB ...

Page 7: ...t Edge Connector Expansion o Digital Video input interface for use with CMOS sensors or other devices o Digital Video output interface for use with LCD or other devices o Composite Video input output o Component Analog Video output o Stereo Audio input 3 sets of stereo inputs o Stereo Audio output line level plus independent output for headphones o Fast Ethernet I O o Two MMC SD card ports one wit...

Page 8: ... install 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 3 2 Making the Directories an...

Page 9: ...around 30 40 minutes You will also need to type in the sudo password a few times towards the end of 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 The result should be something like the following Note that actual filenames dates and times will differ Figure 3 Sample Content of Imag...

Page 10: ...levant status information in return The command set allows for the quick configuration of elements such as capture resolution encoding bit rate file names etc and should be sufficient for implementing most video playback and recording applications Both player and recorder are command line driven applications designed so that they can be executed via console commands or be set up to be automaticall...

Page 11: ...ponents such as audio and video capture audio and video codecs and file format constructors and parsers 4 3 Software Interface The player and recorder command line applications each have a command response type interface where the user sends commands and the application returns the status or other relevant information Commands are executed one at a time with a command being accepted only when the ...

Page 12: ...ect a source with a composite output such as a DVD or Blu ray player Power on the Source Connect composite out of the Source to a monitor Make sure the Source is set to NTSC output the default for most DVD Blu ray players in North America and Japan Select content you would like to record 5 2 Connect the Board For these steps please refer to Figure 5 2 Connect the supplied 2 5mm serial cable and NU...

Page 13: ...ty 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 ttyUSB0 Set option E Bps Par Bits to 115200 8N1 Press return Select Exit 5 4 Power on the board 7 Connect the 5V power supply and turn on the switch If all is configured properly you sho...

Page 14: ...ow you can begin encode To record 1 minute of mp4 type record vpassthru true ntsc1 mp4 11 ZDVR will respond with Recording You should start hearing the audio being encoded and a few seconds later see video on the passthrough monitor 5 6 Play back a stream 12 When ZDVR is done it will return End recording and OK To play back the stream you just recorded type play ntsc1 mp4 13 Press the H and L keys...

Page 15: ... the board and remount it in ZDVR storage mmc 18 Type the following example app to invoke the OSD overlay example cd opt dvsdk interface 19 You should see a sample picture on the screen 20 Now try an encode command with passthrough record vpassthru true ntsc1 mp4 21 You should see the content being encoded overlapped with the original picture The source code for interface can be found at PRJROOT d...

Page 16: ...e the firmware of the Z3 DM368 ZDVR using an SD card The process requires a Windows PC an SD card and the ZWriter tool included with ZDVR The process for updating via SD card is as follows 1 Locate the img update file you want to update to either received from Z3 or built in your environment and copy it to your Windows computer 2 Place an SD card into your Windows computer 3 Open the ZWriter Windo...

Page 17: ...wherever you specify to be overwritten There is no recovery once you hit 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 DM368 ZDVR 8 Power on the system viewing the terminal output via your PC 9 You should be able to see the system updating the flash 10 Once the update is complete the system will automatically reboot 11 Powe...

Page 18: ... xinetd tftpd tftp b Create the file etc xinetd d tftp Set server_args to home An example of a tftp file would be service tftp disable no socket_type dgram protocol udp wait yes user nobody server usr sbin in tftpd server_args home c Make a tftpboot directory sudo mkdir tftpboot sudo chmod R 777 tftpboot sudo chown R nobody tftpboot d Start tftp sudo service xinetd start 2 Enable NFS on the Linux ...

Page 19: ...be different depending on your specific release cd home z3 z3 dm368 ln s z3 dm368 ZDVR date images images ln s z3 dm368 ZDVR date filesys filesys f Start the NFS server sudo service nfs kernel server restart 3 Configure u boot on your board to match your system configuration settings a Reboot the board with minicom or TeraTerm setup on your PC see Steps 5 and 6 in Section 6 b As soon as u boot sta...

Page 20: ... should point to the fs subdirectory within the filesys link you set up in step 2e e Save your changes and then copy this file to your home directory this will make it easy to transfer from minicom later cp uboot_envDM368 txt home z3 Figure 11 Editing uboot_envDM368 txt Modify to match the IP address of your Linux PC Modify to match the netmask of your Linux PC should be same as Target netmask Mod...

Page 21: ...t 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 file i This should bring up the Select file for upload window pointing to your home directory From here use the up and down arrow keys to scroll down and select the uboot_envDM368 txt file you modified and then copied in step 3e Press the space bar to tag the file Th...

Page 22: ...ng as the TFTP and NFS Server 5 From the u boot prompt type boot DM365 EVM boot You should see the Z3 DM368 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 see the Troubleshooting section in Appendix C 6 3 Other available u boot commands Besides booting from N...

Page 23: ...coming from ZDVR will contain the character or the character in the first column depending on whether the information that follows is a status or response or if it is some error or attention condition The Linux shell by default will issue a prompt when it is ready to accept new commands When the ZDVR system is loaded the shell prompt is changed to a character to notify its presence All commands ar...

Page 24: ...tem where the remaining commands can access by default The string USB can be used as an alias for dev sda A storage command with RELEASE as a parameter will cause the storage partition previously selected to be un mounted This command completes with Released to indicate that the device was successfully released and it is safe to remove it A storage command without any arguments will return the blo...

Page 25: ...as been released and it is now safe to remove block_device Success Device is mounted and ready to use Device not found Error Could not find the specified device Is it plugged in No device mounted RELEASE parameter specified but no devices previously mounted Device busy Attempted to RELEASE a device that is currently busy Error General error More detailed information may follow READY Device is moun...

Page 26: ...ime time_limit vrate bit_rate filename Parameters filename The name of the file to create on the previously specified storage device If the file already exists it will be overwritten by the new recording If there are no devices mounted by the storage command the record command will fail with a No storage error The file name should be terminated in mp4 to create standard format files that can be re...

Page 27: ...Query current recorder state The recorder will report its current state as Recording if recording is in progress or Paused Please note that the file size limit is 4 GBytes or less depending on the type of file system used by the recording media Status Result OK Success the file was recorded to mass storage The record application terminated execution Recording Issued when the recorder starts to rec...

Page 28: ...ll be ignored P Pause playback The player will issue a status message Paused when the playback is paused R Resume playback at normal speed forward The player will issue a Playing status message and resume normal playback from the current file position T Query the playback time The player will report the current time into the file The format of the message is HH MM SS Fx Seek forward Bx Seek backwa...

Page 29: ...E command to terminate the session No storage Error There is no mounted device to get the file from No file Error Input file not found on storage device Bad parameter Error Invalid input parameter filename or required input not provided Error Playback stopped or was never started due to an error condition Details may follow follow or precede it 7 8 File management commands Standard Linux commands ...

Page 30: ...6 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 2038716 Bytes 1 9 MB Load Address 80008000 Entry Point 80008000 Verifying Checksum OK Loading Kernel Image OK OK Starting kernel Uncompressing Linux done booting the kernel no vid3 buffer allocated AF Driver initialized init started BusyB...

Page 31: ... CST built in shell ash Enter help for a list of built in commands Memory CMEM 128M Linux 128M Total 256M Changed clock rate from 72000000 to 72000000 davinci_platform No internal HD clock available use external Preloading gstreamer components echo COMPOSITE sys class davinci_display ch0 output cd opt dvsdk standard ntsc storage mmc dev mmcblk0p1 record vpassthru true ntsc2 mp4 opt gstreamer apps ...

Page 32: ...________________________________________________________________ Z3 Technology LLC 100 N 8th ST STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 32 Zplayer Ver 3 0 0 Z3 Technology LLC 2011 http www z3technology com Playing End play OK storage release Released sync ...

Page 33: ...o the board without any routers etc Can the Linux PC and target board see each other on the network Try pinging the Z3 DM368 ZDVR IP address from the Linux PC Try pinging the Linux PC from the Z3 DM368 ZDVR Does the file uImage exist in z3 dm368 images Is the link to images properly set up see step 2e If you take serverargs in etc xinetd d tftp and combine that with tftp_root in u boot does it poi...

Reviews: