Advance Technologies; Automate the World.Manual Rev. 2.00Revision Date: January 7, 2005Part No: 50-15029-101PCI-MP4S4-CH MPEG4 SoftwareVideo Compre
90 Function LibraryResult = AngeloMPEG4_Decode_Set_Motion_Detection(channel, area, 0, Threshold, interval, action, X_Start, Y_Start, Width, Height);en
Function Library 91video_format:Full NTSC (640*480) = 0, Full PAL (768*576) = 1, CIF NTSC (320*240) = 2, CIF PAL (384*288) = 3, Q
92 Function Library@ Return Code0: ERROR_NoError@ Example< VC/BCB >int Result;int channel = 0;int iWidth = 0;int iHeight = 0;int video_format =
Function Library 93Result := AngeloMPEG4_Decode_Get_Config(channel, iWidth, iHeight, videoformat, colorspace, Bitrate, frame_rate);end;AngeloMPEG4_De
94 Function Libraryint Result;int channel = 0;Result = AngeloMPEG4_Decode_Start(channel);Result = AngeloMPEG4_Decode_Stop(channel);< Visual Basic &
Function Library 95@ Argument Decoder_Index: Indicates the channel number of MPEG4 Decoder. The range of channel is 0 - 15.Byte_Second: The current f
96 Function LibraryAngeloMPEG4_Decode_ ReInitial–AngeloMPEG4_Decode_ ReInitialEx–@ SyntaxC/C++ (Windows 98/NT/2000/XP)int AngeloMPEG4_Decode_ReInitial
Function Library 97Quality:Bitrate: Indicates the bitrate of MPEG4 stream from encode server.Frame_rate: Indicates the frame rate of MPEG4 stream fro
98 Function Libraryint Result;int channel = 0;int Quality =0int Bitrate = 480000;int frame_rate = 15;int Angelo_Video_Format = 2;Result = AngeloMPEG4_
Function Library 99AngeloMPEG4_Decode_ Save_File_Start–AngeloMPEG4_Decode_ Save_File_Stop–@ SyntaxC/C++ (Windows 98/NT/2000/XP/CE.NET)int AngeloMPEG4
Introduction 11 IntroductionThe PCI-MP4S is a MPEG4 software video compression develop-ment kit that combines excellent real-time image acquisition a
100 Function Libraryformat:1: m4v,2: avi.3: both.@ Return Code0: ERROR_NoError@ Example< VC/BCB >int Result;int channel = 0;char* n_file_name =
Function Library 101interval_second, format: Longint;Result: Longint;beginchannel := 0;n_file_name := ‘Video0’;interval_second := 10;format := 3; //
102 Function Libraryint AngeloMPEG4_Decode_File_Start(int Decoder_Index,int Mode);int AngeloMPEG4_Decode_File_Set_Position(int Decoder_Index, long* Fr
Function Library 103Byte_Per_Pixel As Long, Total_Frame As Long, Time_Seconds As Long) As LongAngeloMPEG4_M4V _2_ AVI (ByVal file_name As String, iWi
104 Function Libraryfile_name: The name of file to save to, includes the path and extension of file name.iWidth: Indicate the width of the MPEG4 image
Function Library 105char* m4v_filename = “test2.m4v”;char* avi_filename = “test3.avi”;void CM4VPlayerView::MediaStreamProc( int Decoder_Channel ,long
106 Function Librarym_filename = “test1.m4v”m4v_filename = “test2.m4v”avi_filename = “test3.avi” m_Decoder_Channel = 0Mode = 0 ‘play oncePublic Sub lp
Function Library 107
108 Function Library< Delphi >procedure DecoderCallbackProc(Decoder_Index:Longint;int_status:Longint;VideoBufferaddress:Longint); stdcallvar
Function Library 109Result := AngeloMPEG4_Decode_File_Set_Position(m_Decoder_Channel,m_total_frame div 2);Result := AngeloMPEG4_Decode_File_Pause(m_D
2Introduction1.1 FeaturesImage AcquisitionAcquisition speedColor Image: The color video format is compatible with the follow-ing composite video input
110 Function Library5.4 System Functions@ NameAngeloMPEG4_Get_Version(lMpeg4_DLLVersion,AngeloRTV_DLLVersion, Reserved)@ DescriptionAngeloMPEG4_Get_Ve
Function Library 111@ ArgumentMpeg4_DLLVersion: Indicates the current version of theMPEG4 DLL. It is of 4 rows in length.AngeloRTV_DLLVersion: Indica
112 Function LibraryResult: Longint;Str_AngeloMPEG4_Version, Str_AngeloRTV_Version: String;beginResult := AngeloMPEG4_Get_Version(Mpeg4_DLLVersion[0],
Appendix 113AppendixAppendix A: GlossaryBrightness: Attribute of a visual sensation according to which an area appearsto exhibit more or less light C
114 AppendixFrame:One frame (two fields) of video contains the full vertical interlacedinformation content of the picture. For NTSC this consists of 5
Appendix 115Ireland) and PAL M (hybrid standard, having the same resolutionas NTSC, but uses PAL transmission and color coding technol-ogy).Saturatio
116 AppendixAppendix B: Standard Compliance This equipment has been tested and found to comply with the lim-its for a Class A digital device, pursuant
Appendix 117This equipment has been tested and found to comply withEN55022/CISPR22 and EN55024/CISPR24. To meet EC require-ments, shielded cables mus
118 Appendix
Warranty Policy 119Warranty PolicyThank you for choosing ADLINK. To understand your rights andenjoy all the after-sales services we offer, please rea
Introduction 3MPEG4 EncodingQuality Index:Supports setting of initial motion detection area and assigning orcreating directory for saved files.Save v
120 Warranty Policy3. Our repair service is not covered by ADLINK's two-yearguarantee in the following situations:X Damage caused by not followin
4IntroductionSave single image file: Supports save single image to BMP orJPEG image file format.MPEG4 DecodingMPEG4 video decoding: Video decoding can
Introduction 5I/O LinesThe PCI-MP4S is fitted with TTL compatible I/O lines protectedagainst overloads and electrostatic discharges. Each line may be
6Introduction1.3 System requirementFor real-time* to compression 4-CH color MPEG4 video require-ment, the PCI-MP4S minimum system requirement are as f
Introduction 7Video Format: QCIF (160*120)# Port EncodingQualityCPU loading (max. %)DecodingMicrosoft Media PlayerADLINK M4V Player1Lowest 11 OK OKLo
8Introduction* When CPU loading up to 100% then will start have time-lapseeffect.12Lowest 34 OK OKLow 42 OK OKNormal 61 OK OKHigh 91 OK OKHighest 91 O
Introduction 9Video Format: CIF(320*240)* When CPU loading up to 100% then will start have time-lapseeffect.# Port EncodingQualityCPU loading (max. %
Copyright 2005 ADLINK TECHNOLOGY INC.All Rights Reserved. The information in this document is subject to change without priornotice in order to improv
10 IntroductionVideo Format: 4CIF(640*480)* When CPU loading up to 100% then will start have time-lapseeffect.PCI-X PlatformX SBC: ADLINK NuPRO850X CP
Introduction 11Video Format: QCIF (160*120)# Port EncodingQualityCPU loading (max. %)DecodingMicrosoft Media PlayerADLINK M4V Player1Lowest 5 OK OKLo
12 Introduction12Lowest 18 OK OKLow 25 OK OKNormal 33 OK OKHigh 58 OK OKHighest 55 OK OK16Lowest 28 OK OKLow 45 OK OKNormal 61 OK OKHigh 87 OK OKHighe
Introduction 13Video Format: CIF(320*240)# Port EncodingQualityCPU loading (max. %)DecodingMicrosoft Media PlayerADLINK M4V Player1Lowest 9 OK OKLow
14 Introduction* When CPU loads up to 100%, the time-lapse effect would com-mence.6Lowest 29 OK OKLow 38 OK OKNormal 52 OK OKHigh 92 OK OKHighest 98 O
Introduction 15Video Format: 4CIF(640*480)* When CPU loads up to 100%, the time-lapse effect would com-mence.# Port EncodingQualityCPU loading (max.
16 Introduction
Hardware Reference 172 Hardware Reference2.1 PCI-MP4S SpecificationVideo InputFour composite video color digitizersVideo input interface: four compos
18 Hardware ReferenceWatch Dog TimerX For monitoring applications – will reset the PC after a pro-grammable inactivity time-out.X Interface: 2-pin hea
Hardware Reference 19PCI-MP4S AppearanceFigure 2-2: PCI-MP4S AppearancePCI-MP4S Standard AccessoriesX Watch dog reset cableX GPIO bracketX User’s Man
Getting Service from ADLINKCustomer Satisfaction is top priority for ADLINK Technology Inc.Please contact us should you require any service or assista
20 Hardware ReferencePCI-MP4S Connectors and Pin DefinitionsVideo InputsChannel Extension Video Input (CN2)Connector DefinitionVideo IN – CH 0Video IN
Hardware Reference 21Channel Extension Video Input (CN3)Channel Extension Video Input (CN5)Table 2-5: Channel Extension Video Input (CN5)GPIO (CN8)T
22 Hardware ReferenceGPIO (CN9)Table 2-7: GPIO (CN9)Watchdog Timer ResetTable 2-8: Watchdog Timer ResetPin Function Pin Function1IN2 (External inter
Hardware Reference 232.2 RTV-E4 Extension board for RTV-24 and PCI-MP4S(Optional item, not a standard accessory)Figure 2-4: RTV-E4RTV-E4 Connectors a
24 Hardware Reference2.3 RTV-I4 Isolation GPIO board for RTV-24 and PCI-MP4S(Optional item, not a standard accessory)Figure 2-5: RTV-I4RTV-I4 Connecto
Hardware Reference 25Relay I/O voltage requirement:X Input: +5V to +24VX Output: AC: 0.5A/125V, DC: 1A/30V or 0.3A/100VSTRG output signal select:X ST
26 Hardware ReferenceTrigger output voltage: 0V to +5VInput 2R10P pin header pin definition:GPIO (CN1)Table 2-10: GPIO (CN1)GPIO (CN2)Table 2-11: GP
Hardware Reference 27D-sub 25-pin output connector pinPin Signal name Pin Signal name1 DI1 14 RY3_COM2 DI1_COM 15 RY43 DI2 16 RY4_COM4 DI2_COM 17 STR
28 Hardware Reference
Installation Guide 293 Installation Guide3.1 Hardware InstallationPCI-MP4SUse the following steps to install the PCI-MP4S board on the PCIbus:1. Remo
30 Installation Guide5. Once perfectly aligned with an empty slot, press theboard firmly but carefully into the connector.6. Anchor the board by repla
Installation Guide 312. Select Vision.
32 Installation Guide3. Click Angelo4. Select Windows Driver for Windows 98/NT/2000/XP.
Installation Guide 335. The driver will begin installing.6. Click Next until the driver installs completely.
34 Installation Guide
Installation Guide 35
36 Installation Guide7. Click Finish and restart the system.
Installation Guide 37X The Found New Hardware Wizard window appears after system restarts. Click NEXT and follow the following steps to complete the
38 Installation GuideZ Click Next.
Installation Guide 39Z Click Next.Z Click Finish.X Another Found New Hardware Wizard window appears when you finished the wizard. Repeat step 7.1 unt
Table of Contents iTable of ContentsTable of Contents... iList of Tables...
40 Installation GuideX If you see a yellow question mark appear in front of the new driver’s name, you need to setup the driver manually.
Installation Guide 41X Right click on the driver name, Multimedia Controller which is a audio device, then select Properties on the popup menu. Follo
42 Installation GuideZ Click Reinstall Driver.Z Click Next.
Installation Guide 43Z Click Next.Z Check Specify a location then click Next.Z In Copy manufacture’s files from: text box insert the location of driv
44 Installation GuideThen click OK.Z Click Next.
Installation Guide 45Z Click Finish to complete this wizard.Z This device is working properly.Z The yellow question mark disappears.
46 Installation GuideX Right click on the driver name, Multimedia Video Controller which is a video device. Repeat step 8.2 onwards.X Repeat steps 8.2
ViewCreator Utility 474 ViewCreator UtilityOnce hardware installation is complete, ensure that the system iscorrectly configured before running the V
48 ViewCreator Utility4.2 Component DescriptionTree BrowserThe Tree Browser window lists the PCI-MP4S cards and videoports available at the local comp
ViewCreator Utility 49MPEG4 EncodingSingle channel displayX Click a video Port icon in the Tree Browser window. A video frame will appear in the Imag
ii Table of ContentsPCI-MP4S Standard Accessories ... 19PCI-MP4S Connectors and Pin Definitions ... 202.
50 ViewCreator UtilityVideo adjustmentsHueClick and hold the left mouse button on the Hue slider of theControl Panel and drag the cursor to change its
ViewCreator Utility 51Cross LineCheck the Cross Line check box in the Control Panel. A cross-hair will appear in the center of the rectangle.ToolsGPI
52 ViewCreator Utility
Function Library 535 Function LibraryThis chapter describes the API for Mpeg4 encode and decode.Users can use these functions to develop application
54 Function LibraryDecode (Section 5.3)AngeloMPEG4_Decode_Set_Callback(Decoder_Index, CallBackProc)AngeloMPEG4_Decode_Connect(Decoder_Index,Encoder_IP
Function Library 555.2 Encode Functions@ NameAngeloMPEG4_Encode_Initial(Encoder_Index, Local_Address, Quality , Angelo_PortNo, Angelo_ChannelNo, Ange
56 Function LibraryAngeloMPEG4_Encode_Set_Motion_Detection(Encoder_Index, Area, enable, Threshold, interval, action, X_Start, Y_Start, Width, Height):
Function Library 57AngeloMPEG4_Encode_Save_File_Start:Use this function to save the encoded image into an “.avi” or“.m4v” video file. The “.avi” file
58 Function LibraryAngelo_Color_Format, int Angelo_Video_Format)int AngeloMPEG4_Encode_InitialEx(int Encoder_Index, char* Local_Address, int Bitrate,
Function Library 59@ ArgumentEncoder_Index: Indicates the channel index for the MPEG4encoder. The range of channels is 0 – 15.Local_Address: Indicate
Table of Contents iiiAngeloMPEG4_Decode_Connect – ... 79AngeloMPEG4_Decode_Disconnect – ... 79Angelo
60 Function LibraryBitrate: Indicates the number of bits per second.frame_rate: Indicates the number of frames that theMPEG4 encoder will encode per s
Function Library 61int Bitrate = 480000;int frame_rate = 15;Result = AngeloMPEG4_Encode_Initial (Encoder_Index, Quality, Angelo_PortNo, Angelo_Channe
62 Function Library< Delphi >VarEncoder_Index, Result: Longint;Quality: Longint;Bitrate, frame_rate: Longint;Angelo_PortNo, Angelo_ChannelNo: Lo
Function Library 63Visual Basic (Windows 98/NT/2000/XP)AngeloMPEG4_Encode_Set_Callback (ByVal Encoder_Index As Long, ByVal Encode_CallBackProcas As L
64 Function Library< Visual Basic >Dim Encoder_Index As Long, Result As LongPublic Sub encode_callback(ByVal Encoder_Index As Long, ByVal int_st
Function Library 65// Main CodevarEncoder_Index, Result: Longint;beginEncoder_Index:= 0;Result := AngeloMPEG4_Encode_Set_Callback(Encoder_Index, Enco
66 Function Library@ Argument Channel: Indicates the channel index for the MPEG4encoder. The range of channels is 0 – 15.@ Return Code@ Example< VC
Function Library 67Result := AngeloMPEG4_Encode_Close(Encoder_Index);end;AngeloMPEG4_Encode_Save_File_Start–AngeloMPEG4_Encode_Save_File_Stop–AngeloM
68 Function LibraryAngeloMPEG4_Encode_Create_Directory(Encoder_Index:Longint; Dir:String):Longint;@ Argument Encoder_Index: Indicates the channel inde
Function Library 69< Visual Basic >Dim Result As Long, Encoder_Index As Long, interval_second As Long, format As Long Encoder_Index = 0;n_file_
iv List of TablesList of TablesTable 1-1: Acquisition Speed ... 2Table 1-2: Quality Index ...
70 Function LibraryAngeloMPEG4_Encode_Set_Motion_Detection–@ SyntaxC/C++ (Windows 98/NT/2000/XP)int AngeloMPEG4_Encode_Set_Motion_Detection(int Encode
Function Library 71Threshold: Determines the sensitivity of motion detectionmeasurement. The valid values are from 0 - 15, with 0 beingthe highest se
72 Function Library< Visual Basic >Dim Result As Long, Encoder_Index As Long, enable As Long, Threshold As Long, interval As Long, action As Lon
Function Library 73Width = 160;Height = 120;if (enable = 1) thenResult = AngeloMPEG4_Encode_Set_Motion_Detection(Encoder_Index, area, enable, Thresho
74 Function Library5.3 Decode Functions@ NameAngeloMPEG4_Decode_Set_Callback(Decoder_Index,CallBackProc) – Setup the callback function for decoder.Ang
Function Library 75AngeloMPEG4_Decode_Save_File_Start(Decoder_Index, n_file_name, interval_second, format) – Startto save compressed file in decode s
76 Function LibraryAngeloMPEG4_Decode_ Connect:Use this function to establish a connection between decoderand encoder. The video date will then be tra
Function Library 77automatically. Use this function to restart the video datatransmission, if “AngeloMPEG4_Decode_Stop” has beencalled to stop the tr
78 Function LibraryAngeloMPEG4_Decode_Save_File_Stop:If the connection between encoder and decoder is established, use this function to stop saving vi
Function Library 79AngeloMPEG4_Decode_File_Pause:The file is paused until AngeloMPEG4_Decode_File_Continue is activated.AngeloMPEG4_Decode_File_Get_P
List of Figures vList of FiguresFigure 2-1: 4-channel software trigger output ... 18Figure 2-2: PCI-MP4S Appearance ...
80 Function LibraryDelphi (Windows 98/NT/2000/XP)AngeloMPEG4_Decode_Connect(Decoder_Index:Longint; Encoder_IP:String; Encoder_Index:Longint):Longint;A
Function Library 81<Delphi >varchannel: Longint;Encoder_IP: String;Encoder_channel: Longint;Result: Longint;beginchannel := 0;Remote_IP := ‘127
82 Function Libraryint_status: Interrupt status:Bit 0: Image readyBit 1: Motion Detection occurBit 2: Connection establish@ Return Code0: ERROR_NoErro
Function Library 83int Bitrate = 0, frame_rate = 0, colorspace = 0;AngeloMPEG4_Decode_Get_Config(channel, &iWidth, &iHeight, &videoformat
84 Function Library Bitrate, Framerate, colorspace, videoformat: Longint;begin case int_status of 1: begin {********* image buffer OK ****
Function Library 85Visual Basic(Windows 98/NT/2000/XP)AngeloMPEG4_Decode_Set_Image_Config(ByVal channel As Long, ByVal Decoder_Index As Long, ByVal V
86 Function Library@ Return Code0: ERROR_NoError@ Example< VC/BCB >int Result;int channel = 0;int ConfigIndex = 0;int value = 128;Result = Angel
Function Library 87AngeloMPEG4_Decode_Set_Motion_Detection–@ SyntaxC/C++ (Windows 98/NT/2000/XP)int AngeloMPEG4_Decode_Set_Motion_Detection(int Decod
88 Function LibraryAction: The argument descript what actions the function will do.bit 0: Callback,bit 1: Reserved,bit 2: Send motion frameExample: wh
Function Library 89channel = 0enable = 1Threshold = 5interval = 3action = 1 + 4area =1X_Start = 0Y_Start =0Width = 160Height = 120Result = AngeloMPEG
Comentarios a estos manuales