background image

SunVideo Plus 1.3 User’s Guide

901 San Antonio Road

Palo Alto, , CA 94303-4900

Part No: 806-2818-10

September 1999, Revision A

Содержание SunVideo Plus 1.3

Страница 1: ...SunVideo Plus 1 3 User s Guide 901 San Antonio Road Palo Alto CA 94303 4900 Part No 806 2818 10 September 1999 Revision A...

Страница 2: ...USA 650 960 1300 Fax 650 969 9131...

Страница 3: ...SunVideo Plus 1 3 User s Guide Part No 806 2818 10 September 1999 Revision A...

Страница 4: ...Sun Microsystems Inc 901 San Antonio Road Palo Alto Californie 94303 4900 U S A Tous droits r serv s Ce produit ou document est prot g par un copyright et distribu avec des licences qui en restreigne...

Страница 5: ...nstalling SunVideo Plus 7 Installation Kit 7 Installation Requirements 7 Unpacking the SunVideo Plus Card 8 Installing the SunVideo Plus Card 8 SunVideo Plus 1 3 Software Contents 9 Removing Previous...

Страница 6: ...vc_devices Script 22 Setting SVC Environment Variables Solaris 2 5 1 only 22 4 SunVideo Plus Example Programs 25 Audio Recording 26 Audio Playing 27 Audio Looping 28 The soundtool Program 29 Using the...

Страница 7: ...tes for SunVideo Plus 49 Attributes Overview 50 General Attributes 51 DEVICE_NAME 51 PORT_V 51 PORT 51 FORMAT_V 52 FORMAT 52 IMAGE_SKIP 52 MAX_BUFFERS 52 NUM_BUFFERS 53 FULL_BUFFERS 53 FLUSH_BUFFERS 5...

Страница 8: ...ession and CIS Selection 56 HW Decompression and Creating an XIL Device 56 Using Both HW Compression and HW Decompression 56 The SunVideo Plus Control Panel and XIL Attributes 57 Molecules 57 Errors 5...

Страница 9: ...deo Plus card Chapter 3 describes SunVideo Plus and SunVideo compatibility mode Chapter 4 provides programming tools and XIL program examples Chapter 5 provides SunVideo Plus XIL programming attribute...

Страница 10: ...ail AaBbCc123 What you type when contrasted with on screen computer output su Password AaBbCc123 Book titles new words or terms words to be emphasized Command line variable replace with a real name or...

Страница 11: ...he Web The docs sun com web site enables you to access Sun technical documentation on the Web You can browse the docs sun com archive or search for a specific book title or subject at http docs sun co...

Страница 12: ...xi SunVideo Plus 1 3 User s Guide September 1999 Revision A...

Страница 13: ...eo cameras 4 Microphones 4 Headsets 4 Software decoders 4 Standard multimedia tools The onboard video processor and audio digital signal processor DSP equip standard desktop computers particularly tho...

Страница 14: ...IN Input formats NTSC or PAL Video sampling YUV 4 2 2 Audio inputs Line In or Microphone In shared jack Audio outputs Headphone Out Line Out Video compression CellB H 261 JPEG MPEG1 CIF I Frame NTSC...

Страница 15: ...ng Audio recording and playback Sound monitor Frame Rates Depending on your computer system s application load and display window size the SunVideo Plus subsystem can display video rates of up to 30 f...

Страница 16: ...The SunVideo Plus card is installed in a PCI bus slot The card contains two Composite IN ports and one S Video IN port For audio signals SunVideo Plus also contains one port for line level OUT one po...

Страница 17: ...deo inputs S Video can provide a much sharper image than Composite video with better color separation S Video uses a four pin mini DIN connector which provides separate Y luminance and C chrominance s...

Страница 18: ...6 SunVideo Plus 1 3 User s Guide September 1999 Revision A...

Страница 19: ...sfully install SunVideo Plus If you do not know the root password of the system on which you are installing SunVideo Plus contact your system administrator Installation Kit The SunVideo Plus 1 3 Insta...

Страница 20: ...ircuit boards such as SunVideo Plus are made of delicate electronic components that are extremely sensitive to static electricity Ordinary amounts of static from your clothes or work environment can d...

Страница 21: ...t ja ko sv zh zh_TW BIG5 Translated User s Guide English German Spanish French Italian Japanese Korean Swedish Simplified Chinese Traditional Chinse BIG5 Common to each Solaris release Common Packages...

Страница 22: ...UNWo1kpd u SUNWo1kpx Device driver XIL1 3 Runtime Solaris 7 and Hardware 3 99 5 99 8 99 and 11 99 Once installed the SunVideo Plus 1 3 software resides in etc opt SUNWo1kp opt SUNo1kp and opt SUNWopi...

Страница 23: ...SunVideo Plus 1 3 installation kit 1 Log in superuser root 2 Insert the SunVideo Plus 1 3 CD into the CD ROM drive connected to your system 4 If your system is running Volume Manager it should automat...

Страница 24: ...ment type hostname cd cdrom sunvideo_plus_1_3 Solaris_2 5 1 Packages hostname usr sbin pkgadd d Choose all 4 To install the Solaris 2 6 operating environment type hostname cd cdrom sunvideo_plus_1_3 S...

Страница 25: ...sing other SunVideo Plus applications that do not automatically search this default directory you must include the path to the SunVideo Plus libraries libo1kusr and libotiaudio in your LD_LIBRARY_PATH...

Страница 26: ...ironmental variable 4 Using sh or ksh environments type hostname PATH opt SUNWo1kp bin PATH hostname export PATH 4 Using csh environment type hostname setenv PATH opt SUNWo1kp bin PATH Setting XIL Env...

Страница 27: ...er dev olk1 and so on The operating system remembers the order of slots and SunVideo Plus device numbers even if a card is removed and later replaced So if the first SunVideo Plus card is moved to ano...

Страница 28: ...es then it will exit If your video source is an S Video device type the following to use the S Video source hostname xil_display I 0 4 Connect an audio line input device to the audio input jack and co...

Страница 29: ...howMe desktop videoconferencing products and ShowMe TV audio video broadcasting product For using your Sun applications refer to the user s guide provided with your Sun application product For example...

Страница 30: ...tion combinations 4 SunVideo Plus supports the JPEG CellB and MPEG 1 I frame codes under compatibility mode It also supports the uncompressed formats SunVideo Plus does NOT support H 261 or MPEG1 IPB...

Страница 31: ...o Compatibility mode XIL pipeline hierarchy for the SunVideo Plus card svc_devices This script creates svc_devices install or removes svc_devices remove SunVideo Compatibility mode pseudo devices Pseu...

Страница 32: ...rite permissions to the DESTDIR directory If the svc mode is already installed when svc_install is run then the previous SVC hierarchy will be removed and then replaced You should re run svc_install a...

Страница 33: ...back the original XIL device handler directory Caution Since the SVC mode replaces the standard XIL 1 3 device handler directory it is VERY important to run svc_uninstall before any updates that is pa...

Страница 34: ...m use the rtvc pseudo device name typically dev rtvc0 Note If you use pkgrm to remove the SunVideo Plus software you do not need to first run the svc_devices remove script The pkgrm script removes all...

Страница 35: ...H before you attach the new path to LD_LIBRARY_PATH The following is an example of attaching DESTDIR lib using csh shell hostname setenv O1KHOME opt SUNWo1kp hostname setenv LD_LIBRARY_PATH opt SUNWo1...

Страница 36: ...24 SunVideo Plus 1 3 User s Guide September 1999 Revision A...

Страница 37: ...BLE 4 1 SunVideo Plus Example Programs Example Program Description swmtool A tool for installing SunVideo Plus through a GUI o1k_audrec A tool for recording audio to file o1k_audplay A tool for playin...

Страница 38: ...XIL and the SunVideo Plus audio library o1k_ctl A audio and video controller used to alter inputs to SunVideo Plus These programs also help verify proper operation of the SunVideo Plus card Audio Rec...

Страница 39: ...ain 0 1 0 0 I information Audio file string information b size Buffer size 1000 h amount Print hash marks after amount 0 Audio Playing The olk_audplay program is a command line driven tool for playing...

Страница 40: ...he command line syntax for the olk_audloop example hostname o1k_audloop options The following table describes command options and the default setting TABLE 4 4 o1k_audloop Options Options Description...

Страница 41: ...size 1000 The soundtool Program The soundtool program is a GUI tool for recording playing and modifying u law audio files compressed audio files The following shows the command line syntax for the so...

Страница 42: ...uses the libaudio audio library and a few system calls such as open close read write ioctl and fcntl to operate on Sun standard hardware and audio devices The source for the soundtool demonstration d...

Страница 43: ...attributes such as video audio input selections audio volume gain video brightness contrast and so on for each SunVideo Plus installed in your system 1 Open the SunVideo Plus Control Panel hostname o...

Страница 44: ...The Query button is used to dynamically check if a selected SunVideo Plus device is currently opened by another process The various attributes on the control panel may also be changed programmaticall...

Страница 45: ...d Frames to skip between capture 0 D s Name of device dev olk0 B d H261 bitrate kbits sec 2000 Q d H261 max quantity 10 R d H261 rate control 0 variable 1 fixed 1 Legal Switches E Exit on first error...

Страница 46: ...er SunVideo Plus device for decode you must explicitly use the D option The following shows the command line syntax for the xil_decompress example hostname xil_decompress options i filename The follow...

Страница 47: ...t h261 D dev o1k1 Video Display This is a modified example of an XIL that captures video and displays it Changes to video attributes that affect the color of the image brightness contrast hue and so...

Страница 48: ...subimage width 640 h d Capture subimage height 480 i d Frames to skip between capture 0 m d Maximum frames to buffer 2 x d x window location random y d y window location random D s Name of device dev...

Страница 49: ...16 bit video data which is then dithered in software by the XIL molecules to 8 bits To display video type hostname xil_display Video Broadcast and Video Receiver These two programs xil_video_broadcas...

Страница 50: ...ev olk0 I d Select input channel 1 P d Delay x ms per transmit 0 d s Save bitstream in file NULL f d Frames to broadcast 18000 i d Frames to skip between capture 0 m d Maximum frames to buffer 2 s d S...

Страница 51: ...o_receiver example hostname xil_video_receiver options The following table describes command options and the default setting TABLE 4 9 xil_video_receiver Options Legal Options Description and Values D...

Страница 52: ...Video Broadcast and Video Receiver for H 261 These two programs xilh_video_broadcast and xilh_video_receiver are modified XIL examples that run on the SunVideo Plus card and use H 261 compression The...

Страница 53: ...Plus device dev olk0 I d Select input channel 1 P d Delay x ms per transmit 0 d s Save bitstream in file NULL f d Frames to broadcast 18000 i d Frames to skip between capture 0 m d Maximum frames to...

Страница 54: ...se messages Audio Video Conferencing The following shows the command line syntax for the xil_video_receiver example hostname xilh_video_receiver options The following table describes command options a...

Страница 55: ...io and video conference written in C using XIL and the SunVideo Plus audio API It supports CellB JPEG and H261 video formats and various audio formats The following shows the command line syntax for t...

Страница 56: ...conference application 4 The p option should be used if you know the call will be sent by PAL format If you do not use this option if sending PAL formats errors will occur The following figure shows...

Страница 57: ...n This closes this pop up window and places the User Host name in the Main Conference Panel Figure 4 3 Only the user calling the conference needs to configure the Main Conference Panel because when a...

Страница 58: ...Conference Panel Then select A V Panel for audio and video parameters that you can change in the audio video panel During a conference call you will have two windows on your display a Local View and a...

Страница 59: ...e top left corner To reduce CPU use you can switch your local view to an icon This is advisable during an H261 conference When you have completed your conference call click HangUp The HangUp button is...

Страница 60: ...48 SunVideo Plus 1 3 User s Guide September 1999 Revision A...

Страница 61: ...IL programming Source code to various XIL examples are included as part of the developer kit These examples give developers a good start in using XIL and the SunVideo Plus card MMACo1k is the XIL soft...

Страница 62: ...AME and are documented as such in the following sections See Important Attribute Information on page 55 for addition information The following general device attributes are available with the MMACo1k...

Страница 63: ...by a previous XIL set attribute call These attributes have an asterisk before there DEFAULT entry See The SunVideo Plus Control Panel and XIL Attributes on page 57 for more information General Attribu...

Страница 64: ...ages For example an application that supports security cameras could use the attribute to provide images at 30 second intervals Another example is to use IMAGE_SKIP when you want to limit the frame ra...

Страница 65: ...ttribute is set then all saved buffers are flushed before the next image is captured After the operation completes the value of FULL_BUFFERS is set to zero The input value of the set attribute call is...

Страница 66: ...sets the desired maximum compression bit rate The rate is in bits per second of units of 1000 For example the default value of 256 produces a maximum bit rate of 256000 bits per second 32000 bytes sec...

Страница 67: ..._boolean Default FALSE This attribute selects which CIS hardware accelerated decompression should be performed on The default value of NULL implies that the first CIS encountered by a decompression mo...

Страница 68: ...cts like an XIL compute device in that it is accelerating an XIL molecule For applications that use decompression only it is not necessary to create an xil device and device image as described in Crea...

Страница 69: ...ss contrast and so on out of an XIL application Thus end users can tune these video parameters for their video source once and not have to deal with making the same changes each time they run an XIL a...

Страница 70: ...ACo1k device driver error messages TABLE 5 1 MMACo1k Error Messages Error Message Description MMACo1k 1 MMACo1k invalid PORT specification MMACo1k 4 MMACo1k could not open MMACo1k device The reason fo...

Страница 71: ...The best source of information about programming using the XIL programming interface is within the XIL examples provided in the developer kit The following table lists these examples TABLE 5 2 XIL Sou...

Страница 72: ...e SunVideo Plus hardware based H261 decompression xil_broadcast This example shows how to capture and compress video and a method for broadcasting this video over a network using UDP xil_receive This...

Страница 73: ...g analog signals to digital signals Typically used in public and private telephone networks G 711 samples analog data and prepares it for transmission G 722 A wide band high quality algorithm with a b...

Страница 74: ...and T1 bit rate transmission At 1 5 Mbits second the algorithm uses both interframe and intraframe coding to achieve quality video at a lower bandwidth PCM Pulse Code Modulation See G 711 Glossary 62...

Отзывы: