CN201403163Y - A Network Video Server Based on Embedded Platform - Google Patents
A Network Video Server Based on Embedded Platform Download PDFInfo
- Publication number
- CN201403163Y CN201403163Y CN 200920013128 CN200920013128U CN201403163Y CN 201403163 Y CN201403163 Y CN 201403163Y CN 200920013128 CN200920013128 CN 200920013128 CN 200920013128 U CN200920013128 U CN 200920013128U CN 201403163 Y CN201403163 Y CN 201403163Y
- Authority
- CN
- China
- Prior art keywords
- video
- network
- module
- compression
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Closed-Circuit Television Systems (AREA)
Abstract
一种基于嵌入式平台的网络视频服务器,该服务器包括视频数据采集与编解码单元、视频数据压缩与解压单元、视频数据存储单元、网络单元、控制单元和供电单元,视频数据编码模块的输入接口与摄像头相连,输出接口与视频数据压缩/解压模块的输入接口相连,视频解码模块的输入接口与视频压缩/解压单元的输出相连接,视频解码模块的输出与液晶屏相连,压缩/解压模块的输出接口与解码模块的输入相连接;网络单元通过总线扩展与控制单元相连。该系统具有快速处理、抗干扰、便于查询记录、视频图像清晰及单机显示多路图像等优点,通过IP网络把监控中心和网络到达的任何地方的监控目标组合成一个系统,适应了目前对视频监控系统远程、实时、集中的需求。
A network video server based on an embedded platform, the server includes a video data acquisition and codec unit, a video data compression and decompression unit, a video data storage unit, a network unit, a control unit and a power supply unit, and an input interface of a video data encoding module It is connected with the camera, the output interface is connected with the input interface of the video data compression/decompression module, the input interface of the video decoding module is connected with the output of the video compression/decompression unit, the output of the video decoding module is connected with the LCD screen, and the compression/decompression module The output interface is connected with the input of the decoding module; the network unit is connected with the control unit through bus expansion. The system has the advantages of fast processing, anti-interference, easy query and record, clear video image and multi-channel image display on a single machine. Remote, real-time, and centralized requirements of the monitoring system.
Description
技术领域 technical field
本实用新型属于远程视频监控领域,特别涉及一种基于嵌入式平台的网络远程视频监控系统。The utility model belongs to the field of remote video monitoring, in particular to a network remote video monitoring system based on an embedded platform.
背景技术 Background technique
随着计算机技术的高速发展,数字技术越来越多地用于视频监控系统中,极大地提高了系统的性能,使得监视、多功能自动报警、多媒体数据检索、多画面高清晰显示成为现实,大大地推广了其应用范围,功能在不断地增加,成本也在不断地降低。因此,数字化、网络化、智能化已成为视频监控领域的一种发展趋势,数字视频监控系统也逐步进入大规模商业应用阶段。With the rapid development of computer technology, digital technology is more and more used in video surveillance systems, which greatly improves the performance of the system, making surveillance, multi-functional automatic alarm, multimedia data retrieval, and multi-screen high-definition display a reality. It has greatly expanded its scope of application, its functions are constantly increasing, and its cost is constantly decreasing. Therefore, digitalization, networking, and intelligence have become a development trend in the field of video surveillance, and digital video surveillance systems have gradually entered the stage of large-scale commercial applications.
在数字化技术不断发展的进程中,新的视频压缩标准不断推出。MPEG标准是由运动图像专家组制定的一种用于数字存储、传输的运动图像编码方法,由于这个压缩标准综合了多种压缩技术,因此具有适用性强、压缩率高、图像质量好等特点,已经广泛用于视频监控系统中。MPEG-4是在继MPEG-1和MPEG-2之后,制订的又一个ISO/IEC标准,即ISO/IEC14496。它能够获得更高的音/视频压缩率,具有基于内容的交互能力。其核心思想是采用了基于对象的现代图像编码方法,利用人眼视觉特性,抓住图像信息传输的本质,从轮廓、纹理的思路出发,将图像合理地划分成物体、背景等与实际景象信息相对应的对象平面然后对各对象平面的形状、纹理和运动进行编码,从而获得了比传统编码划分质量更好、码流更小的解决方案。目前,数字视频压缩的解决方案主要有两种,一为软件方案,二为硬件方案。前者一般使用数字信号处理器(DSP)或高性能的嵌入式处理器来实现,这种设计方案在一定程度上会减低设计成本,但由于算法的合理设计及系统资源的合理应用将会使整个开放周期增加。后一种方法为利用一个MPEG-4专属解码芯片,来实现MPEG-4视频标准的编解码,这将有效的缩短产品的开发周期,同时由于高性能集成芯片的开发,已经大大降低了系统的开发成本。In the process of continuous development of digital technology, new video compression standards are constantly introduced. The MPEG standard is a moving picture encoding method for digital storage and transmission formulated by the Moving Picture Experts Group. Since this compression standard combines a variety of compression technologies, it has the characteristics of strong applicability, high compression rate, and good image quality. , has been widely used in video surveillance systems. MPEG-4 is another ISO/IEC standard formulated after MPEG-1 and MPEG-2, namely ISO/IEC14496. It can obtain a higher audio/video compression rate and has content-based interactive capabilities. Its core idea is to adopt a modern object-based image coding method, use the visual characteristics of the human eye, grasp the essence of image information transmission, start from the outline and texture ideas, and divide the image into objects, backgrounds, etc. and the actual scene information reasonably The corresponding object planes then encode the shape, texture, and motion of each object plane, resulting in a solution with better quality and smaller bitstream than traditional encoding partitions. At present, there are mainly two solutions for digital video compression, one is a software solution, and the other is a hardware solution. The former is generally realized by using a digital signal processor (DSP) or a high-performance embedded processor. This design scheme will reduce the design cost to a certain extent, but due to the rational design of the algorithm and the reasonable application of system resources, the entire The opening period increases. The latter method is to use an MPEG-4 exclusive decoding chip to realize the encoding and decoding of the MPEG-4 video standard, which will effectively shorten the product development cycle, and at the same time, the development of high-performance integrated chips has greatly reduced the system cost. Development costs.
运动检测是视频监控系统中极有实用价值的技术,对及时报警和录像有重大意义。数字技术的应用使得不用附属设备(比如红外探测)进行运动检测成为可能,通过对数字的视频流的分析就可以检测到摄像镜头内是否有物体运动并及时进行报警和录像。在数字化视频监控系统中,一般由视频压缩卡对从摄像头过来的模拟视频信号进行数字化,并压缩成MPEG流。如果把MPEG流解压缩成一帧一帧的图像再进行运动检测,将会有很大的运算量,得不偿失;因此在这种情况下,需要利用MPEG编码域的一些特殊性来进行运动检测,使得运动检测快速、高效。Motion detection is a very valuable technology in video surveillance system, which is of great significance to timely alarm and video recording. The application of digital technology makes it possible to detect motion without ancillary equipment (such as infrared detection). Through the analysis of digital video streams, it is possible to detect whether there is movement of objects in the camera lens and to alarm and record in time. In a digital video surveillance system, a video compression card generally digitizes the analog video signal from the camera and compresses it into an MPEG stream. If the MPEG stream is decompressed into a frame-by-frame image and then motion detection is performed, there will be a large amount of calculation, and the gain outweighs the gain; therefore, in this case, it is necessary to use some particularities of the MPEG coding domain for motion detection, so that Motion detection is fast and efficient.
近些年,数字视频监控系统经历了飞速的发展,九十年代末到目前为止,数字视频监控系统可以分为两种:一种是利用计算机多媒体技术来实现视频的数字化远程监控和存储,这样的系统以接入Internet的通用计算机为核心,在其上装有视频数据采集卡,通过采集卡对摄像头采集到视频数据进行压缩,然后进行存储或者发送到远程监控终端。另一种是利用嵌入式技术来实现视频数据的数字化监控和存储,这样的系统称为数字化本地视频监控系统,它只可以实现视频数据的压缩存储以及本地监控等功能,不能实现实时远程监控。然而随着时代的发展,简单快捷的远距离跨区域监控成为人们的迫切需要,而第一种方法又需要在监控现场安装通用计算机等设备,且布线复杂,不易维护,显得十分复杂与笨重,一种新的方便快捷的全数字化远程视频监控系统亟待人们去研究和实现。In recent years, the digital video surveillance system has experienced rapid development. Up to the end of the 1990s, the digital video surveillance system can be divided into two types: one is to use computer multimedia technology to realize digital remote monitoring and storage of video. The system takes a general-purpose computer connected to the Internet as the core, and a video data acquisition card is installed on it. The video data collected by the camera is compressed through the acquisition card, and then stored or sent to a remote monitoring terminal. The other is to use embedded technology to realize digital monitoring and storage of video data. Such a system is called a digital local video monitoring system. It can only realize functions such as video data compression storage and local monitoring, and cannot realize real-time remote monitoring. However, with the development of the times, simple and fast long-distance cross-regional monitoring has become an urgent need for people, and the first method needs to install general-purpose computers and other equipment on the monitoring site, and the wiring is complicated and difficult to maintain, which is very complicated and cumbersome. A new convenient and fast all-digital remote video surveillance system needs to be researched and realized urgently.
实用新型内容 Utility model content
针对现有嵌入式技术只能监控本地视频监控系统,不能远程监控的问题,本实用新型提供了一种基于嵌入式平台的网络视频服务器。Aiming at the problem that the existing embedded technology can only monitor the local video monitoring system but not remotely, the utility model provides a network video server based on the embedded platform.
视频监控系统由安装在被监控区域的网络视频服务器和设立在监控中心的远程监控终端两部分组成。远程监控终端包括连接在Internet上的计算机、交换机等,主要用于通过其浏览器对视频服务器进行访问,查看即时监控信息或回放前段时间的监控录像,并根据需要进行快进快退等操作,并可把远程服务器上的录像文件传送回监控终端的计算机上,方便的进行保存。The video monitoring system consists of two parts: a network video server installed in the monitored area and a remote monitoring terminal set up in the monitoring center. The remote monitoring terminal includes computers and switches connected to the Internet, and is mainly used to access the video server through its browser, view real-time monitoring information or playback the previous monitoring video, and perform operations such as fast forward and fast rewind as required. And the video files on the remote server can be sent back to the computer of the monitoring terminal for convenient storage.
所述的网络视频服务器包括视频数据采集与编解码单元、视频数据压缩与解压单元、视频数据存储单元、网络单元、控制单元和供电单元。其中视频数据编解码单元是由CCD摄像头、视频编码模块与视频解码模块组成,视频数据编码模块的输入接口与摄像头相连,输出接口与视频数据压缩/解压模块的输入接口相连,主要负责对摄像头采集到的模拟视频数据进行模/数转换,视频解码模块的输入接口与视频压缩/解压单元的输出相连接,视频解码模块的输出与液晶屏相连,主要负责对解压后的视频数据进行数/模转换,从而实现本地回放;所述视频压缩与解压单元主要包括视频压缩/解压模块以及它的外围电路,经过视频数据编码模块数字化了的视频数据输入到视频压缩/解压模块的视频输入接口,压缩/解压模块的输出接口与解码模块的输入相连接;所述的网络单元通过总线扩展的方式与控制单元相连;所述的视频数据存储单元是通过USB主机接口外接移动硬盘、U盘或SD/MMC接口外扩SD卡来实现的;所述的供电单元对其他几个单元供电;所述的控制单元以嵌入式微处理器为核心,利用32位总线外扩FLASH,SDRAM,通过视频压缩/解压芯片的外部主机接口对该芯片进行控制以及读取压缩视频流,利用I2C总线接口控制编码芯片和解码芯片。The network video server includes a video data acquisition and codec unit, a video data compression and decompression unit, a video data storage unit, a network unit, a control unit and a power supply unit. The video data encoding and decoding unit is composed of a CCD camera, a video encoding module and a video decoding module. The input interface of the video data encoding module is connected to the camera, and the output interface is connected to the input interface of the video data compression/decompression module. It is mainly responsible for collecting data from the camera. The input interface of the video decoding module is connected to the output of the video compression/decompression unit, and the output of the video decoding module is connected to the LCD screen. It is mainly responsible for the digital/analog conversion of the decompressed video data. Conversion, thereby realizing local replay; Described video compression and decompression unit mainly comprise video compression/decompression module and its peripheral circuit, the video data input to the video input interface of video compression/decompression module through video data encoding module digitization, compression The output interface of the/decompression module is connected with the input of the decoding module; the network unit is connected with the control unit by bus expansion; the video data storage unit is externally connected with a mobile hard disk, U disk or SD/ The MMC interface expands the SD card to realize; the power supply unit supplies power to several other units; the control unit uses the embedded microprocessor as the core, utilizes the 32-bit bus to expand the FLASH and SDRAM, and compresses/decompresses the video The external host interface of the chip controls the chip and reads the compressed video stream, and uses the I 2 C bus interface to control the encoding chip and the decoding chip.
视频服务器和监护中心的通信方法采用了客户端/服务器的体系结构,服务器端为网络视频服务器,客户端为监护中心,网络视频服务器通过接入Internet或局域网和监护中心进行数据通信,采用的是TCP/IP协议。视频编码模块对摄像头采集来的模拟视频信号进行模/数转换,得到数字视频信号,然后再通过视频/压缩解压模块对数字视频信号进行压缩,得到MPEG格式的视频数据流。用户只需要在PC浏览器中输入该服务器的IP地址,登陆到该视频服务器的主页上,进行身份验证,下载安装ActiveX控件后就可以完成相应的操作。若用户需要通过网络进行远程监控,则经过压缩得到的MPEG格式的视频数据流会以流媒体形式通过网络发送给客户。若用户需要本地存储,则该视频数据流会在控制单元的控制下,存储到通过USB接口外扩的存储单元之中。本系统也具有本地监控的功能,若用户需要对本地存储的视频监控录像进行本地回放,控制单元则会读取USB外扩存储器中的视频数据,进而对其进行解压、解码的操作,最终在液晶屏上显示出来。The communication method between the video server and the monitoring center adopts a client/server architecture, the server is a network video server, the client is a monitoring center, and the network video server communicates with the monitoring center through the Internet or a local area network. TCP/IP protocol. The video encoding module performs analog/digital conversion on the analog video signal collected by the camera to obtain a digital video signal, and then compresses the digital video signal through the video/compression decompression module to obtain a video data stream in MPEG format. The user only needs to enter the IP address of the server in the PC browser, log in to the home page of the video server, perform identity verification, download and install the ActiveX control, and then the corresponding operation can be completed. If the user needs to monitor remotely through the network, the compressed video data stream in MPEG format will be sent to the customer through the network in the form of streaming media. If the user needs local storage, the video data stream will be stored in the externally expanded storage unit through the USB interface under the control of the control unit. This system also has the function of local monitoring. If the user needs to play back the locally stored video surveillance video, the control unit will read the video data in the USB external memory, and then decompress and decode it. displayed on the LCD screen.
网络视频服务器的视频数据编码模块处理的是摄像头采集到的NTSC/PAL/SECAM格式视频信号,产生符合视频压缩/解压单元视频接口标准的数字视频信号。在外部主CPU的控制下,该数字视频数据由压缩/解压芯片进行硬件压缩编码,产生的编码数据流通过芯片内部集成的Mux FIFO接口输出,在控制单元的控制下,对其进行USB存储器处理,处理后的视频数据可以存储在物理介质上,以便在需要时通过键盘操作进行回放。网络视频服务器的解压缩编码是压缩编码的逆过程,需要解压的数据流通过视频压缩解压芯片内部集成的DemuxFIFO接口输入,解压缩编码过程是压缩编码的逆过程。本系统中的几个重要外设都是通过总线扩展的方式与处理器相连接的。其中读写控制信号是每个外设共用的,为了保证它们之间不会产生相互干扰,应将不同的信号挂载在处理器不同的片选端口。The video data encoding module of the network video server processes the NTSC/PAL/SECAM format video signal collected by the camera, and generates a digital video signal conforming to the video interface standard of the video compression/decompression unit. Under the control of the external main CPU, the digital video data is compressed and encoded by the compression/decompression chip in hardware, and the generated encoded data stream is output through the integrated Mux FIFO interface inside the chip. Under the control of the control unit, it is processed by USB memory , the processed video data can be stored on physical media for playback by keyboard operation when needed. The decompression encoding of the network video server is the inverse process of compression encoding. The data stream to be decompressed is input through the DemuxFIFO interface integrated in the video compression decompression chip. The decompression encoding process is the inverse process of compression encoding. Several important peripherals in this system are connected with the processor through bus expansion. Among them, the read and write control signals are shared by each peripheral. In order to ensure that they will not interfere with each other, different signals should be mounted on different chip select ports of the processor.
网络视频服务器的数据编解码单元是基带模拟视频信号和视频压缩/解压单元之间的一个接口电路,它包括一个视频编码芯片和一个视频解码芯片,主要负责视频数据的模/数和数/模转换,以及数字视频信号格式的转换。The data encoding and decoding unit of the network video server is an interface circuit between the baseband analog video signal and the video compression/decompression unit. It includes a video encoding chip and a video decoding chip, which is mainly responsible for the analog/digital and digital/analog conversion, and conversion of digital video signal formats.
网络视频服务器的视频数据压缩/解压单元是以视频压缩/解压芯片为核心,该芯片通过其主机接口与控制单元相连接,同时该芯片还需要外扩大容量、高速SDRAM来缓存待处理的视频信息流。The video data compression/decompression unit of the network video server is based on the video compression/decompression chip. The chip is connected to the control unit through its host interface. At the same time, the chip also needs to expand the capacity and high-speed SDRAM to cache the video information to be processed. flow.
网络视频服务器的视频数据存储单元是通过USB外扩存储器来实现的,随着大容量USB存储设备的问世,更多用户都愿意选择这种方式。The video data storage unit of the network video server is realized through a USB external storage device. With the advent of large-capacity USB storage devices, more users are willing to choose this method.
网络视频服务器的网络单元是以网络芯片为核心,控制单元通过地址、数据、控制线以及片选信号线对网络芯片进行控制和通信。The network unit of the network video server is based on the network chip, and the control unit controls and communicates with the network chip through address, data, control lines and chip selection signal lines.
网络视频服务器的控制单元是以嵌入式微处理器为核心,通过总线外扩了SDRAM、NAND FLASH,并通过I2C总线控制视频编、解码单元。The control unit of the network video server is based on an embedded microprocessor, which expands SDRAM and NAND FLASH through the bus, and controls the video encoding and decoding unit through the I 2 C bus.
网络视频服务器的供电单元采用了稳压线性电源,由外部输入的12V直流电源,经过直流稳压芯片,分别降到5V、3.3V和1.8V,供给电路的不同部分使用。The power supply unit of the network video server adopts a regulated linear power supply. The 12V DC power input from the outside is reduced to 5V, 3.3V and 1.8V respectively through the DC voltage regulator chip, and is supplied to different parts of the circuit.
网络视频服务器的工作原理如下:视频编码模块对摄像头采集来的模拟视频信号进行模/数转换,得到数字视频信号,然后再通过视频/压缩解压模块对数字视频信号进行压缩,得到MPEG格式的视频数据流。用户只需要在PC浏览器中输入该服务器的IP地址,登陆到该视频服务器的主页上,进行身份验证,下载安装ActiveX控件后就可以完成相应的操作。若用户需要通过网络进行远程监控,则经过压缩得到的MPEG格式的视频数据流会以流媒体形式通过网络发送给客户,在客户的浏览器页面上进行显示。若用户需要本地存储,则该视频数据流会在控制单元的控制下,存储到通过USB接口外扩的存储单元之中,按照时间命名各个视频文件。本系统也具有本地监控的功能,若用户需要对本地存储的视频监控录像进行本地回放,控制单元则会读取USB外扩存储器中的视频数据,进而对其进行解压、解码的操作,最终在液晶屏上显示出来,并可以进行如快进、快退等操作。The working principle of the network video server is as follows: the video encoding module performs analog/digital conversion on the analog video signal collected by the camera to obtain a digital video signal, and then compresses the digital video signal through the video/compression decompression module to obtain a video in MPEG format data flow. The user only needs to enter the IP address of the server in the PC browser, log in to the home page of the video server, perform identity verification, download and install the ActiveX control, and then the corresponding operation can be completed. If the user needs to monitor remotely through the network, the compressed video data stream in MPEG format will be sent to the customer through the network in the form of streaming media, and displayed on the customer's browser page. If the user needs local storage, the video data stream will be stored in the externally expanded storage unit through the USB interface under the control of the control unit, and each video file will be named according to the time. This system also has the function of local monitoring. If the user needs to play back the locally stored video surveillance video, the control unit will read the video data in the USB external memory, and then decompress and decode it. It will be displayed on the LCD screen, and operations such as fast forward and fast rewind can be performed.
网络视频服务器的软件部分主要运行在控制单元中的嵌入式微处理器中,主要由7个功能模块组成具体介绍如下:The software part of the network video server mainly runs in the embedded microprocessor in the control unit, and is mainly composed of 7 functional modules. The specific introduction is as follows:
(1)网络视频服务器的控制模块:网络视频服务器的控制模块负责控制该服务器的各个模块:对视频处理芯片的的配置,接受视频流数据并利用USB存储设备进行存储,同时配置网络接口建立起完善的网络功能。从开机开始运行,按下列步骤执行各个模块,直到关机其执行。(1) The control module of the network video server: the control module of the network video server is responsible for controlling each module of the server: the configuration of the video processing chip, receiving the video stream data and storing it with a USB storage device, and configuring the network interface to establish Perfect network function. Start running from power on, execute each module according to the following steps until it is executed when power off.
步骤1:开机上电,运行系统初始化模块进行对各个模块的参数配置;Step 1: Turn on the power, run the system initialization module to configure the parameters of each module;
步骤2:运行本地图形界面模块;Step 2: Run the local graphical interface module;
步骤3:检测U盘是否有存储空间;Step 3: Check whether the U disk has storage space;
步骤4:如果U盘没有存储空间,则转到步骤9;Step 4: If the U disk has no storage space, go to
步骤5:如果U盘有容量,则进入本地存储模块;Step 5: If the U disk has capacity, enter the local storage module;
步骤6:检测网络客户端是否有连接请求;Step 6: Detect whether the network client has a connection request;
步骤7:如果远程客户没有请求,则转到步骤5;Step 7: If the remote client has no request, go to
步骤8:如果远程客户有请求,则发送数据包给客户,进行实时视频的显示;Step 8: If the remote client has a request, send a data packet to the client for real-time video display;
步骤9:系统自动删除U盘中前一时间段的视频数据,转到步骤3。Step 9: The system automatically deletes the video data of the previous period in the U disk, go to
(2)网络视频服务器的视频录制模块:网络视频服务器的视频录制模块主要负责从摄像头采集的模拟信号转化为MPEG-4视频模式。(2) Video recording module of the network video server: The video recording module of the network video server is mainly responsible for converting the analog signal collected from the camera into MPEG-4 video mode.
步骤1:系统上电运行;Step 1: Power on and run the system;
步骤2:系统完成对音视频处理芯片的配置;Step 2: The system completes the configuration of the audio and video processing chip;
步骤3:系统完成对模数转化芯片的配置;Step 3: The system completes the configuration of the analog-to-digital conversion chip;
步骤4:执行本地存储模块的检测存储空间模块;Step 4: Execute the detection storage space module of the local storage module;
步骤5:检测到无空间,删除最早的视频信息,转到步骤4;Step 5: No space is detected, delete the earliest video information, and go to
步骤6:检测到有存储空间,对视频信号进行处理,然后通过音视频处理芯片的内部接口,传输到本地存储部分进行存储。Step 6: Detect that there is storage space, process the video signal, and then transmit it to the local storage part for storage through the internal interface of the audio and video processing chip.
(3)网络视频服务器的本地存储模块:网络视频服务器的本地存储模块主要负责对编码后的MPEG格式的视频数据进行存储,以供客户进行本地回放和远程网络回放。从开机运行,按下列步骤执行命令。(3) Local storage module of the network video server: the local storage module of the network video server is mainly responsible for storing encoded video data in MPEG format for local playback and remote network playback by customers. To run from boot, follow the steps below to execute the command.
步骤1:检测U盘存储空间,并将该信息显示在显示层面上;Step 1: Detect the storage space of the U disk, and display the information on the display level;
步骤2:U盘有存储空间,则以系统时间命名文件名进行存储,方便用户以时间顺序来查找回放视频文件;Step 2: If the U disk has storage space, the file name will be stored with the system time, which is convenient for users to find and playback video files in chronological order;
步骤3:U盘无存储空间,则系统自动删除最早录制的视频文件,转到步骤2;Step 3: If the U disk has no storage space, the system will automatically delete the earliest recorded video file and go to
步骤4:远程客户或本地客户有回放需求,调用存储文件发送给客户;Step 4: The remote client or local client has a playback requirement, call the stored file and send it to the client;
步骤5:检测是否有结束存储信号;Step 5: Detect whether there is an end storage signal;
步骤6:检测到有结束信号,停止存储;Step 6: Detect that there is an end signal, stop storing;
步骤7:没有检测到结束信号,继续存储,转到步骤5。Step 7: If no end signal is detected, continue to store and go to
(4)网络视频服务器的抓拍功能模块:网络视频服务器提供用户抓拍图像的功能,利用视频处理芯片所带的JPEG编码功能实现。图片是以JPEG编码形式保存,同样在保存时以系统时间命名并在文件名后加‘P’,这样是为了在回放时与视频文件进行区别。图片抓拍的实现流程与视频编码流程基本一致,区别在于将编码模式配置为JPEG模式。按照下列步骤执行命令。(4) Capture function module of the network video server: the network video server provides the user with the function of capturing images, which is realized by using the JPEG encoding function carried by the video processing chip. The picture is saved in the form of JPEG encoding, and it is also named after the system time when saving and "P" is added after the file name, so as to distinguish it from the video file during playback. The implementation process of picture capture is basically the same as the video encoding process, the difference is that the encoding mode is configured as JPEG mode. Follow the steps below to execute the command.
步骤1:远程用户和本地用户请求抓拍图像;Step 1: the remote user and the local user request to capture an image;
步骤2:系统开启视频编码芯片的JEPG编码功能;Step 2: The system starts the JPEG encoding function of the video encoding chip;
步骤3:检测系统是否有存储空间;Step 3: Detect whether the system has storage space;
步骤4:系统有空间,存入或显示图像;Step 4: The system has space, store or display images;
步骤5:系统没有空间,调用函数删除最早的视频文件,转到步骤4;Step 5: There is no space in the system, call the function to delete the earliest video file, go to
步骤6;继续显示实时视频数据。
(5)网络视频服务器的视频回放模块:网络视频服务器的回放模块是为远程或本地用户观看以前视频数据和图像设置的,为了实现更好的人机交互能力,在视频解码回放菜单下,主要完成以下功能,U盘文件的显示、视频文件的选择、播放时进度条的显示及视频文件解码显示中,增添暂停、快进和快退功能。用户可以通过调用本地存储的视频数据进行操作。进行以下步骤操作:(5) Video playback module of network video server: The playback module of network video server is set for remote or local users to watch previous video data and images. In order to achieve better human-computer interaction, under the video decoding playback menu, mainly Complete the following functions, the display of U disk files, the selection of video files, the display of the progress bar during playback, and the display of video file decoding, add pause, fast forward and fast rewind functions. Users can operate by calling the video data stored locally. Do the following steps:
步骤1:远程用户和本地用户请求视频回放;Step 1: The remote user and the local user request video playback;
步骤2:系统开启音视频处理芯片的解码功能;Step 2: The system enables the decoding function of the audio and video processing chip;
步骤3:从本地存储模块调用视频数据,发送给请求客户端。Step 3: Call the video data from the local storage module and send it to the requesting client.
步骤4:检测用户是否停止回放;Step 4: Detect whether the user stops playback;
步骤5:没有停止信号,继续执行步骤3;Step 5: If there is no stop signal, continue to step 3;
步骤6:检测到停止信号,关闭音视频处理芯片的解码功能;Step 6: Detect the stop signal, and turn off the decoding function of the audio and video processing chip;
步骤7:继续执行显示实时视频数据的功能。Step 7: Continue to execute the function of displaying real-time video data.
(6)网络视频服务器的远程监控模块:网络视频服务器的远程监控模块负责执行远程客户的各种请求,在监控终端的IE浏览器中输入网络视频服务器的IP地址,嵌入式网络视频服务器根据请求,显示登陆界面,若用户身份得到确认,则服务器会将ActiveX控件发送给用户,用户下载安装控件后,根据网页上不同的按钮,进行相应的操作,然后提交给网络视频服务器,网络视频服务器根据用户提交的不同信息,完成不同的操作,如连接、断开、回放、快进、快退等,具体步骤如下:(6) The remote monitoring module of the network video server: the remote monitoring module of the network video server is responsible for executing various requests from remote customers, input the IP address of the network video server in the IE browser of the monitoring terminal, and the embedded network video server will follow the request , to display the login interface. If the user’s identity is confirmed, the server will send the ActiveX control to the user. After the user downloads and installs the control, he performs corresponding operations according to different buttons on the web page, and then submits it to the network video server. Different information submitted by the user completes different operations, such as connection, disconnection, playback, fast forward, fast rewind, etc. The specific steps are as follows:
步骤1:远程用户输入视频服务器的IP地址,连接服务器;Step 1: The remote user enters the IP address of the video server and connects to the server;
步骤2:服务器响应远程用户的连接访问,显示登陆界面;Step 2: The server responds to the connection access of the remote user and displays the login interface;
步骤3:远程用户登陆;Step 3: remote user login;
步骤4:若远程用户身份不符,则拒绝访问请求;Step 4: If the identity of the remote user does not match, the access request is denied;
步骤5:若远程用户通过身份验证,则服务器发送ActiveX控件供远程用户下载安装;Step 5: If the remote user passes the authentication, the server sends the ActiveX control for the remote user to download and install;
步骤6:客户下载并安装ActiveX控件,开始执行各种远程操作,进行远程实时监控。Step 6: The customer downloads and installs the ActiveX control, and starts to perform various remote operations for remote real-time monitoring.
(7)网络视频服务器的运动检测模块:网络视频服务器的运动检测模块通过运动检测来控制视频数据的存储和报警动作。开始无运动报警信号,存储模块处于等待状态;运动报警信号到来,启动存储模块,在一定时间内如果没有继续收到运动报警信号,存储模块自动停止工作。这样存储量比连续存盘少得多,大量无运动的视频被剪截掉了,大大提高了存盘效率,有效地节省了存储空间,提高了视频监控系统的使用效率。具体实现步骤如下:(7) Motion detection module of the network video server: the motion detection module of the network video server controls the storage of video data and alarm action through motion detection. There is no motion alarm signal at the beginning, and the storage module is in a waiting state; when the motion alarm signal arrives, the storage module is started, and if the motion alarm signal is not received within a certain period of time, the storage module automatically stops working. In this way, the storage capacity is much less than continuous storage, and a large number of non-moving videos are cut off, which greatly improves the storage efficiency, effectively saves storage space, and improves the use efficiency of the video surveillance system. The specific implementation steps are as follows:
步骤1:服务器首先设定检测区域,配置系统的参数;Step 1: The server first sets the detection area and configures the system parameters;
步骤2:系统将从摄像机采集来的视频信进行视频压缩,压缩的码流输出到缓冲区中;Step 2: The system compresses the video signal collected from the camera, and outputs the compressed stream to the buffer;
步骤3:系统检测是否有运动物体进入事先设定的区域;Step 3: The system detects whether there is a moving object entering the pre-set area;
步骤4:系统没有检测到运动物体,即现场欲动条件不满足发出报警信号的条件,转到步骤2;Step 4: The system does not detect a moving object, that is, the on-site movement condition does not meet the conditions for sending an alarm signal, go to
步骤5:系统检测到有运动物体进入该区域时,即现场运动条件满足发出报警信号的条件,并自动开启录像功能。Step 5: When the system detects that a moving object enters the area, that is, the on-site motion conditions meet the conditions for sending an alarm signal, and the video recording function is automatically turned on.
本实用新型中的网络视频服务器主要具有如下6个功能:Network video server in the utility model mainly has following 6 functions:
1、多机组网功能1. Multi-unit networking function
本视频服务器组网方式灵活,可以支持无线网卡连接AP(Aceess Point)或者通过Ethenet组成局域网,也可以接入Internet,实现跨区域远程监控;采用本视频服务器后,网络综合布线代替了传统庞杂的模拟视频布线,网络摄像机即插即用,工程实施大大简化。The video server has a flexible networking mode, which can support wireless network card to connect AP (Aceess Point) or form a local area network through Ethernet, and can also be connected to the Internet to realize cross-regional remote monitoring; after using this video server, the network integrated wiring replaces the traditional complex Analog video wiring, plug-and-play network cameras, greatly simplifying engineering implementation.
2、多种视频压缩格式可供用户选择2. A variety of video compression formats are available for users to choose
本视频服务器视频图像格式多样,用户可以根据不同的需求,进行选择,支持的编解码协议有MPEG-1,MPEG-2,MPEG-4,H.263,M-JPEG五种;The video server has a variety of video image formats, and users can choose according to different needs. The supported codec protocols include MPEG-1, MPEG-2, MPEG-4, H.263, and M-JPEG;
3、本地功能多样化3. Diversification of local functions
本视频服务器具有本地解压缩回放功能,给用户提供本地回放视频的选择;本视频服务器可以通过USB端口,连接移动硬盘等存储设备,提供了本地海量存储功能,为满足某些特定的需求,提供最大选择的灵活度;This video server has the function of local decompression and playback, providing users with the choice of local playback video; this video server can be connected to storage devices such as mobile hard disks through USB ports, and provides local mass storage functions. In order to meet certain specific needs, provide Maximum flexibility of choice;
4、防盗报警功能4. Anti-theft alarm function
本视频服务器具有监测运动图像报警功能,即可配置为监测的区域内有图像运动即可报警的功能;可用于银行、博物馆等对安全有特殊要求的场所。This video server has the function of monitoring moving images and alarming, which can be configured to alarm when there is image movement in the monitored area; it can be used in places with special requirements for safety, such as banks and museums.
5、支持多用户接入5. Support multi-user access
本视频服务器可以最多支持20个用户同时访问该嵌入式服务器,使用方便,可以在不同的地点对同一场所进行监控。This video server can support up to 20 users to access the embedded server at the same time, it is easy to use, and can monitor the same place in different places.
6、网络传输协议多样化6. Diversification of network transmission protocols
本视频服务器在网络层可同时支持面向连接的TCP协议和无连接的UDP协议,若该视频服务器只在局域网中使用,用户可以选择可靠的面向连接的TCP协议;若该视频服务器是用在Internet中,为了保证传输速度,用户可以选择无连接的UDP协议。This video server can support connection-oriented TCP protocol and connectionless UDP protocol at the network layer at the same time. If the video server is only used in the LAN, the user can choose the reliable connection-oriented TCP protocol; if the video server is used in the Internet In , in order to ensure the transmission speed, the user can choose the connectionless UDP protocol.
系统发送启动信号给存储设备,存储设备一接到启动信号就将缓冲区的压缩码流全部保存下来,并接着连续存储视频压缩输出的码流,直到存储控制指示停止存盘为止。系统同时进行报警,以达到警示运动物体的作用。The system sends a start signal to the storage device. Once the storage device receives the start signal, it saves all the compressed code streams in the buffer, and then continuously stores the video compressed output code stream until the storage control instruction stops saving. The system alarms at the same time to achieve the function of warning moving objects.
该网络视频服务器组成的监控系统的物理构成包括:一个或多个视频服务器,有线或无线的监控终端,交换机,路由器,报警器。连接关系为:视频服务器通过网线或者交换机等设备与监控终端相连,视频服务器与报警器相连。The physical composition of the monitoring system composed of network video servers includes: one or more video servers, wired or wireless monitoring terminals, switches, routers, and alarms. The connection relationship is: the video server is connected to the monitoring terminal through a network cable or a switch, and the video server is connected to the alarm.
该监控系统主要功能为:网络摄像机不仅可基于计算机局域网用于区域监控,如住宅小区监控、办公楼、银行、商场等传统地监控;而且也能通过Internet用于新型地跨区域远程监控及网上展示,远程儿童及老人看护、无人值守通信机房监控、旅游景点网上演播、产品网上展览等。The main functions of the monitoring system are: the network camera can not only be used for regional monitoring based on the computer LAN, such as traditional monitoring of residential quarters, office buildings, banks, shopping malls, etc.; it can also be used for new cross-regional remote monitoring and online monitoring through the Internet Display, remote child and elderly care, unattended communication room monitoring, online broadcasting of tourist attractions, online exhibition of products, etc.
本实用新型与现有技术比较有如下优点:该系统采用USB存储设备存储视频数据,成本低、容量大。该系统具有快速处理能力、数字信息抗干扰能力、便于快速查询记录、视频图像清晰及单机显示多路图像等优点,而且依托网络,真正发挥了宽带网络的优势,通过IP网络,把监控中心和网络可以到达的任何地方的监控目标组合成一个系统,真正适应了目前对视频监控系统远程、实时、集中的需求。Compared with the prior art, the utility model has the following advantages: the system uses a USB storage device to store video data, and has low cost and large capacity. The system has the advantages of fast processing capability, digital information anti-interference ability, quick query record, clear video image and single-machine display of multiple images, etc., and relying on the network, it really takes advantage of the broadband network. Through the IP network, the monitoring center and The monitoring targets anywhere that the network can reach are combined into a system, which truly meets the current remote, real-time, and centralized needs of the video monitoring system.
附图说明Description of drawings
图1为由本实用新型构成的网络视频监控系统结构框图,Fig. 1 is the structural block diagram of the network video surveillance system that is made of the utility model,
图2为本实用新型视频服务器硬件组成结构图,Fig. 2 is the structural diagram of hardware composition of the utility model video server,
图3为本实用新型视频服务器软件组成结构图,Fig. 3 is the structural diagram of the video server software of the present utility model,
图4为本实用新型视频服务器的软件层次图,Fig. 4 is the software hierarchical diagram of the utility model video server,
图5为本实用新型一个实施例电源模块5V,3A输出的详细电路原理图,Fig. 5 is a detailed circuit schematic diagram of a
图6为本实用新型一个实施例电源模块1.8V,1A输出的详细电路原理图,Fig. 6 is a detailed circuit schematic diagram of the power supply module 1.8V, 1A output of an embodiment of the present invention,
图7为本实用新型一个实施例电源模块3.3V,1.5A输出的详细电路原理图,Fig. 7 is a detailed circuit schematic diagram of a power module 3.3V, 1.5A output of an embodiment of the present invention,
图8为本实用新型一个实施例视频服务器的视频编码模块电路原理图,Fig. 8 is a circuit schematic diagram of a video encoding module of a video server according to an embodiment of the present invention,
图9为本实用新型一个实施例视频服务器的视频解码模块电路原理图,Fig. 9 is a circuit schematic diagram of a video decoding module of a video server according to an embodiment of the present invention,
图10为本实用新型一个实施例视频服务器的网络接口模块电路原理图,Fig. 10 is a circuit schematic diagram of a network interface module of a video server according to an embodiment of the present invention,
图11为本实用新型一个实施例视频服务器的主控制模块的电路原理图,Fig. 11 is a schematic circuit diagram of the main control module of the video server in an embodiment of the present invention,
图12为本实用新型一个实施例视频服务器的视频数据压缩与解压缩模块电路原理图,Fig. 12 is a circuit schematic diagram of the video data compression and decompression module of the video server of an embodiment of the present utility model,
图13为本实用新型一个实施例视频服务器的复位电路模块电路原理图,Fig. 13 is a circuit schematic diagram of a reset circuit module of a video server according to an embodiment of the present invention,
图14为本实用新型一个实施例视频服务器的晶振电路图,Fig. 14 is a crystal oscillator circuit diagram of a video server according to an embodiment of the present invention,
图15为本实用新型一个实施例视频服务器音视频处理模块系统时钟电路原理图,Fig. 15 is a schematic diagram of the system clock circuit of the video server audio and video processing module system according to an embodiment of the present invention,
图16为本实用新型一个实施例视频服务器的缓冲存储模块FLASH(1)电路原理图,Fig. 16 is a circuit schematic diagram of the buffer memory module FLASH (1) of the video server of an embodiment of the utility model,
图17为本实用新型一个实施例视频服务器的缓冲存储模块FLASH(2)电路原理图,Fig. 17 is a circuit schematic diagram of the buffer memory module FLASH (2) of the video server of an embodiment of the utility model,
图18为本实用新型一个实施例视频服务器的缓冲存储模块SDRAM电路原理图,Fig. 18 is a circuit schematic diagram of a buffer storage module SDRAM of a video server according to an embodiment of the present invention,
图19为本实用新型一个实施例视频服务器的本地存储模块的USB电路原理图,Fig. 19 is a schematic diagram of a USB circuit of a local storage module of a video server according to an embodiment of the present invention,
图20为本实用新型视频服务器的视频编码执行流程图,Fig. 20 is a flow chart of video encoding execution of the video server of the present invention,
图21为本实用新型视频服务器的视频解码执行流程图,Fig. 21 is the video decoding execution flowchart of the video server of the present invention,
图22为本实用新型视频服务器的Bootloader引导流程图,Fig. 22 is the bootloader guide flowchart of the utility model video server,
图23为本实用新型视频服务器的图像抓拍编码执行流程图,Fig. 23 is the execution flowchart of the image capture encoding of the video server of the present invention,
图24为本实用新型视频服务器的本地应用软件总体执行流程图,Fig. 24 is the overall execution flowchart of the local application software of the video server of the present invention,
图25为本实用新型视频服务器的运动监测执行流程图,Fig. 25 is the execution flowchart of the motion monitoring of the video server of the present invention,
图26为本实用新型视频服务器本地控制模块软件详细执行流程图,Fig. 26 is a detailed execution flowchart of the local control module software of the video server of the present invention,
图27为本实用新型视频服务器的远程监控应用执行流程图,Fig. 27 is the execution flowchart of the remote monitoring application of the video server of the present invention,
图28本实用新型视频服务器的网络控制模块框图。Fig. 28 is a block diagram of the network control module of the video server of the utility model.
具体实施方式 Detailed ways
由本实用新型基于嵌入式平台的网络视频服务器构成的视频监控系统如图1所示,视频服务器和监护中心的通信方法采用了客户端/服务器的体系结构,服务器端为网络视频服务器,客户端为监护中心,监护中心包括通过有线或无线网络连接在Internet上的计算机、交换机等,网络视频服务器通过接入Internet或局域网和监护中心的监控终端进行数据通信,采用的协议是TCP/IP协议。As shown in Figure 1 by the video monitoring system that the network video server of the utility model based on embedded platform constitutes, the communication method of video server and monitoring center has adopted the system structure of client/server, and the server end is a network video server, and the client is The monitoring center includes computers and switches connected to the Internet through a wired or wireless network. The network video server communicates with the monitoring terminal of the monitoring center through the Internet or a local area network. The protocol adopted is the TCP/IP protocol.
网络视频服务器的硬件构成如图2所示,其中的控制单元采用的是韩国三星公司生产的ARM9核心的嵌入式微处理器S3C2410,利用32位总线外扩FLASH、SDRAM,通过视频压缩/解压芯片的外部主机接口对该芯片进行控制以及读取压缩视频流,利用I2C总线接口控制编码芯片和解码芯片,本网络视频服务器中的几个重要外设都是通过总线扩展的方式与处理器相连接的。其中读写控制信号是每个外设共用的,为了保证它们之间不会产生相互干扰,应将不同的信号挂载在处理器不同的片选端口,其接口电路如图11所示。图8到图18,显示了S3C2410芯片周边电路的电路原理图。网络视频服务器的供电单元对该系统的稳定工作起到至关重要的作用。由于本网络视频服务器中使用了模数/数模转换芯片,为使其能更有效的工作,避免高频纹波的干扰,本网络视频服务器中使用线性电源模块,MIC4576-5.0、MIC29150-3.3、MIC39150-1.8。考虑到AT2042芯片的功耗,为使其能长时间的稳定的工作,所有电源芯片都选用TO-220封状,这样在每个电源芯片后可加散热片,能保证其长时间有效工作。网络视频服务器的视频数据编码模块采用的是TI公司的超低功耗图像解码芯片TVP5150,如图8所示,它所处理的是摄像头采集到的NTSC/PAL/SECAM格式视频信号,产生符合视频压缩/解压单元视频接口标准的数字视频信号。网络视频服务器所采用的压缩、解压芯片为韩国Pentamicro公司生产的AT2042芯片,其电路如图12所示,上述的数字视频数据由压缩/解压芯片由AT2042进行硬件压缩编码,产生的编码数据流通过芯片内部集成的Mux FIFO接口输出,在控制单元的控制下,对其进行USB存储器处理,处理后的视频数据可以存储在物理介质上,以便在需要时通过键盘操作进行回放。网络视频服务器的解压缩编码是压缩编码的逆过程,需要解压的数据流通过视频压缩解压芯片内部集成的Demux FIFO接口输入,解压缩编码的基本原理类似于压缩编码。网络视频服务器的视频数据解码模块选用SAA7121,它是一款专用的电视信号编码芯片,可以将输入的数字信号经过内部的D/A转化为适于传输的模拟电视信号,通过配置相应的寄存器可以适输出信号满足S-video接口或复用接口。The hardware composition of the network video server is shown in Figure 2. The control unit is the embedded microprocessor S3C2410 with ARM9 core produced by South Korea’s Samsung Company. It uses a 32-bit bus to expand FLASH and SDRAM, and through the video compression/decompression chip. The external host interface controls the chip and reads the compressed video stream, and uses the I 2 C bus interface to control the encoding chip and decoding chip. Several important peripherals in this network video server are connected to the processor through bus expansion. connected. Among them, the read and write control signals are shared by each peripheral. In order to ensure that they will not interfere with each other, different signals should be mounted on different chip select ports of the processor. The interface circuit is shown in Figure 11. Figure 8 to Figure 18 show the circuit schematics of the peripheral circuits of the S3C2410 chip. The power supply unit of the network video server plays a vital role in the stable operation of the system. Since this network video server uses an analog-to-digital/digital-to-analog conversion chip, in order to make it work more effectively and avoid high-frequency ripple interference, this network video server uses a linear power supply module, MIC4576-5.0, MIC29150-3.3 , MIC39150-1.8. Considering the power consumption of the AT2042 chip, in order to enable it to work stably for a long time, all power chips are sealed with TO-220, so that a heat sink can be added behind each power chip to ensure its long-term effective work. The video data encoding module of the network video server adopts TI’s ultra-low power consumption image decoding chip TVP5150, as shown in Figure 8, it processes the NTSC/PAL/SECAM format video signal collected by the camera, and generates a conforming video signal. Compression/decompression unit video interface standard digital video signal. The compression and decompression chip used by the network video server is the AT2042 chip produced by Pentamicro in South Korea. The output of the integrated Mux FIFO interface in the chip is processed by USB memory under the control of the control unit, and the processed video data can be stored on the physical medium, so that it can be played back by keyboard operation when needed. The decompression encoding of the network video server is the reverse process of compression encoding. The data stream to be decompressed is input through the Demux FIFO interface integrated in the video compression decompression chip. The basic principle of decompression encoding is similar to compression encoding. The video data decoding module of the network video server uses SAA7121, which is a dedicated TV signal encoding chip, which can convert the input digital signal into an analog TV signal suitable for transmission through the internal D/A. By configuring the corresponding registers, it can The output signal is suitable for S-video interface or multiplexing interface.
网络视频服务器的网络单元以网络接口芯片LAN91C111为核心,其接口电路如图10所示,主控制芯片S3C2410通过地址、数据、控制线以及片选信号线对LAN91C11网络芯片进行控制和通信。主芯片发送信号时首先置发送使能信号,数据发送信号端TXD0~TXD1与LAN91C11的TXD0~TXD1引脚连接,作为数据的发送通道以S3C2410的时钟信号TCK发送数据。数据接收端RXD0~RXD1与LAN91C11的RXD0~RXD1引脚对应连接,为数据接收通道。LAN91C11由S3C2410选通信号线AEN来选通,通过对LAN91C11一系列寄存器的设置,可以实现视频流的网络传输。LAN91C11的INTRQ0端用来产生中断信号。以太网控制芯片通过DMA通道进行数据的传输。首先设置好传输控制和传输地址寄存器的参数,依次从指定的数据存储区域读取数据,送入内部发送缓冲器中,用MAC对数据进行封装发送,并同时记录已发送完的字节数,等到整个数据块发送完毕。一组数据发送完后,请求DMA中断,由S3C2410进行处理。The network unit of the network video server takes the network interface chip LAN91C111 as the core, and its interface circuit is shown in Figure 10. The main control chip S3C2410 controls and communicates with the LAN91C11 network chip through address, data, control lines and chip selection signal lines. When the main chip sends a signal, first set the sending enable signal, and the data sending signal terminal TXD0~TXD1 is connected to the TXD0~TXD1 pins of LAN91C11, as the data sending channel, the clock signal TCK of S3C2410 is used to send data. The data receiving end RXD0-RXD1 is correspondingly connected with the RXD0-RXD1 pins of LAN91C11, which is the data receiving channel. LAN91C11 is strobed by S3C2410 strobe signal line AEN, through the setting of a series of registers of LAN91C11, the network transmission of video stream can be realized. INTRQ0 end of LAN91C11 is used to generate interrupt signal. The Ethernet control chip transmits data through the DMA channel. First set the parameters of the transmission control and transmission address registers, read data from the designated data storage area in turn, send them to the internal transmission buffer, use MAC to encapsulate and send the data, and record the number of bytes that have been sent at the same time, Wait until the entire data block has been sent. After a group of data is sent, request DMA interrupt, which will be processed by S3C2410.
Bootloader是系统启动时执行的第一个程序,主要完成对硬件系统的初始化。具体包括:S3C2410的初始化、TVP5150功能配置、SAA7121功能配置、加载AT2042固件、以太网及串口初始化。由于在开机时要显示开机画面,故除在Bootloader中初始化相应硬件资源外,还应将开机画面的图片数据,传送到AT2042 SDRAM中。其工作流程如图22所示,显示开机画面,主要通过AT2042的JPEG解码功能来实现。首先配置AT2042的JPEG解码功能,将要显示图像先以头文件的形式添加到程序中,当需要显示时再将图像数据发送给AT2042。Bootloader is the first program executed when the system starts, mainly to complete the initialization of the hardware system. Specifically include: S3C2410 initialization, TVP5150 function configuration, SAA7121 function configuration, loading AT2042 firmware, Ethernet and serial port initialization. Since the boot screen should be displayed when booting, in addition to initializing the corresponding hardware resources in the Bootloader, the picture data of the boot screen should also be transferred to the AT2042 SDRAM. Its working process is shown in Figure 22. The startup screen is displayed, which is mainly realized through the JPEG decoding function of AT2042. First configure the JPEG decoding function of AT2042, add the image to be displayed to the program in the form of a header file, and then send the image data to AT2042 when it needs to be displayed.
图片抓拍功能所抓拍到的图片是以JPEG编码形式保存,同样在保存时以系统时间命名并在文件名后加‘P’,这样是为了在回放时与视频文件进行区别。如图23所示,图片抓拍的实现流程与视频编码流程基本一致,区别在于将编码模式配置为JPEG模式。The pictures captured by the picture capture function are saved in the form of JPEG encoding, and they are also named after the system time when saving and "P" is added after the file name, which is to distinguish them from video files during playback. As shown in Figure 23, the implementation process of picture capture is basically the same as the video encoding process, the difference is that the encoding mode is configured as JPEG mode.
视频编码功能主要利用AT2042来实现的。首先,配置相应的编码寄存器,例如编码模式、编码像素点、编码帧率及设置编码流格式(PES、PS、TS)等等。本系统中采用MPEG-4模式、720X576、每秒25帧及生成PES流来对视频数据进行编码。其流程图如图20所示。The video coding function is mainly realized by AT2042. First, configure the corresponding encoding registers, such as encoding mode, encoding pixels, encoding frame rate, and setting encoding stream format (PES, PS, TS), etc. This system uses MPEG-4 mode, 720X576, 25 frames per second and generates PES stream to encode video data. Its flow chart is shown in Figure 20.
视频解码回放功能是视频编码存储功能的逆过程,都是通过AT2042来实现的。首先,将需要解码的数据按照一定的包格式打包,然后通过主机将这些数据发送到解码复用(DemuxFIFO)队列,这是配置解码功能,开始解码。实现的具体流程如图21所示。The video decoding and playback function is the reverse process of the video encoding and storage function, and it is all realized through AT2042. First, pack the data to be decoded according to a certain packet format, and then send the data to the decoding multiplex (DemuxFIFO) queue through the host, which is to configure the decoding function and start decoding. The specific process of implementation is shown in Figure 21.
网络控制模块是外部扩展应用程序与视频服务器交互的一个模块。本系统网络控制模块的工作过程:在监控终端的IE浏览器中输入网络视频服务器的IP地址,嵌入式网络视频服务器根据请求,将相应的控制页面即ActiveX控件反馈给IE浏览器,用户下载控件后,根据控件上的指令,进行相应的操作,然后提交,该模块提取操作的信息,根据不同信息通过scoket套接口与服务器进行通信来分别处理相应的事件,如调节MPEG-4相关属性、摄像头的相关操作等。该网络控制模块的设计主要包括三部分:本地嵌入式web服务器的配置、ActiveX控件的编写、socket套接字实现服务器与监控端通信。其原理如图28所示The network control module is a module for the interaction between the external extension application program and the video server. The working process of the network control module of this system: input the IP address of the network video server in the IE browser of the monitoring terminal, and the embedded network video server will feed back the corresponding control page, that is, the ActiveX control, to the IE browser according to the request, and the user downloads the control Finally, perform corresponding operations according to the instructions on the control, and then submit them. This module extracts the information of the operations, and communicates with the server through the socket socket according to different information to process corresponding events, such as adjusting MPEG-4 related attributes, camera related operations, etc. The design of the network control module mainly includes three parts: the configuration of the local embedded web server, the writing of the ActiveX control, and the socket socket to realize the communication between the server and the monitoring terminal. Its principle is shown in Figure 28
网络视频服务器的控制模块负责控制该网络视频服务器的启动和运行,开机开始运行,按下列步骤执行各个模块,直到关机。其总体执行流程如图24所示,步骤如下:The control module of the network video server is responsible for controlling the startup and operation of the network video server. It starts to run when it is turned on, and executes each module according to the following steps until it is turned off. The overall execution process is shown in Figure 24, and the steps are as follows:
步骤1:初始化系统资源Step 1: Initialize system resources
步骤2:打开AT2042live功能Step 2: Turn on the AT2042live function
步骤3:判断是否有按键操作Step 3: Determine whether there is a key operation
步骤4:若有,执行其相应操作Step 4: If yes, perform corresponding operations
步骤5:若无,继续等待Step 5: If not, continue to wait
步骤6:判断是否要退出系统Step 6: Determine whether to log out of the system
步骤7:否,继续等待Step 7: No, keep waiting
步骤6:是,退出系统Step 6: Yes, exit the system
网络视频服务器的抓拍功能模块的执行流程如图23所示,具体步骤如下:The execution process of the capture function module of the network video server is shown in Figure 23, and the specific steps are as follows:
步骤1:远程用户和本地用户请求抓拍图像;Step 1: the remote user and the local user request to capture an image;
步骤2:系统开启视频编码芯片的JPEG编码功能;Step 2: The system starts the JPEG encoding function of the video encoding chip;
步骤3:检测系统是否有存储空间;Step 3: Detect whether the system has storage space;
步骤4:系统有存储空间,存入或显示图像;Step 4: The system has storage space to store or display images;
步骤5:系统没有存储空间,则自动删除最早录制的视频文件,转到步骤4;Step 5: If the system has no storage space, it will automatically delete the earliest recorded video file and go to
步骤6;继续显示实时视频数据;
网络视频服务器的远程监控模块执行流程如图27所示,具体执行步骤如下:The execution flow of the remote monitoring module of the network video server is shown in Figure 27, and the specific execution steps are as follows:
步骤1:远程用户输入视频服务器的IP地址,连接服务器;Step 1: The remote user enters the IP address of the video server and connects to the server;
步骤2:服务器响应远程用户的连接访问,显示登陆界面;Step 2: The server responds to the connection access of the remote user and displays the login interface;
步骤3:远程用户登陆;Step 3: remote user login;
步骤4:若远程用户身份不符,则拒绝访问请求;Step 4: If the identity of the remote user does not match, the access request is denied;
步骤5:若远程用户通过身份验证,则服务器发送ActiveX控件供远程用户下载安装;Step 5: If the remote user passes the authentication, the server sends the ActiveX control for the remote user to download and install;
步骤6:客户下载并安装ActiveX控件,开始执行各种远程操作,进行远程实时监控。Step 6: The customer downloads and installs the ActiveX control, and starts to perform various remote operations for remote real-time monitoring.
网络视频服务器的运动检测模块执行流程如图25所示,具体实现步骤如下:The execution flow of the motion detection module of the network video server is shown in Figure 25, and the specific implementation steps are as follows:
步骤1:服务器首先设定检测区域,配置系统的参数;Step 1: The server first sets the detection area and configures the system parameters;
步骤2:系统将从摄像机采集来的视频信进行视频压缩,压缩的码流输出到缓冲区中;Step 2: The system compresses the video signal collected from the camera, and outputs the compressed stream to the buffer;
步骤3:系统检测是否有运动物体进入事先设定的区域;Step 3: The system detects whether there is a moving object entering the pre-set area;
步骤4:系统没有检测到运动物体,即现场欲动条件不满足发出报警信号的条件,跳到步骤2;Step 4: The system does not detect a moving object, that is, the on-site movement condition does not meet the conditions for sending an alarm signal, skip to step 2;
步骤5:系统检测到有运动物体进入该区域时,即现场运动条件满足发出报警信号的条件,并自动开启录像功能。Step 5: When the system detects that a moving object enters the area, that is, the on-site motion conditions meet the conditions for sending an alarm signal, and the video recording function is automatically turned on.
使用本实用新型的网络视频服务器系统,首先确认导联线、电源、SD卡等安装正确无误后,可以启动网络视频服务器。打开本机电源开关后,直至液晶屏显示欢迎界面,系统启动完毕,此时网络功能已经初始化完毕,远程用户可以通过网络来访问该服务器,在监控终端的IE浏览器中输入网络视频服务器的IP地址,嵌入式网络视频服务器根据请求,将相应的控制页面即ActiveX控件反馈给IE浏览器,用户下载安装控件后,用户浏览器上将会显示出视频播放窗口和【连接】、【断开】、【录像】、【回放】、【抓拍】五个按钮,用户可以根据需要进行相应的操作。Using the network video server system of the utility model, the network video server can be started after first confirming that the lead wires, power supply, SD card, etc. are installed correctly. After turning on the power switch of the machine, until the welcome interface is displayed on the LCD screen, the system starts up. At this time, the network function has been initialized. Remote users can access the server through the network, and enter the IP of the network video server in the IE browser of the monitoring terminal. Address, the embedded network video server will feed back the corresponding control page, that is, the ActiveX control, to the IE browser according to the request. After the user downloads and installs the control, the video playback window and [Connect] and [Disconnect] will be displayed on the user browser. , [Record], [Playback], [Snapshot] five buttons, users can perform corresponding operations according to their needs.
点击【连接】按钮,客户端将会向服务器端发出连接请求,待服务器端和客户端连接上后,视频播放窗口将会显示即时监控画面。在这种状态下,点击【录像】或【抓拍】按钮网络视频服务器将会进行录像或抓拍操作,得到的视频文件和图片文件保存在本地的存储介质中。点击【回放】按钮,视频播放窗口上将会显示出在网络视频服务器存储介质中存储的视频文件,点击选中的文件,视频播放窗口上将会回放相应的视频文件。点击【断开】按钮,客户端将和服务器端断开。Click the [Connect] button, and the client will send a connection request to the server. After the server and client are connected, the video playback window will display the real-time monitoring screen. In this state, click the [Record] or [Capture] button. The network video server will record or capture, and the obtained video files and picture files will be saved in the local storage medium. Click the [Playback] button, the video file stored in the storage medium of the network video server will be displayed on the video playback window, click the selected file, and the corresponding video file will be played back on the video playback window. Click the [Disconnect] button, and the client will be disconnected from the server.
在本地,当液晶屏处在欢迎界面时按任意键,液晶屏将进入选择菜单界面,此时,界面上将会显示出【录像】【本地回放】【抓拍】【本地监控】【关闭系统】五个图标。此时在键盘上按【向左】键或【向右】键,选择光标可以在菜单中的图标上运动,按【确定】键选择相应的操作。其执行流程如图26所示。Locally, when the LCD screen is in the welcome interface, press any key, and the LCD screen will enter the selection menu interface. At this time, the interface will display 【Record】【Local Playback】【Snapshot】【Local Monitor】【Shutdown System】 five icons. At this time, press the [Left] key or [Right] key on the keyboard, the selection cursor can move on the icons in the menu, and press the [Enter] key to select the corresponding operation. Its execution flow is shown in Figure 26.
在网络视频服务器选择菜单界面上选择录像功能,视频服务器将进入录像工作状态,此时液晶屏上会显示即时的监控画面,网络视频服务器会将AT2042产生的MPEG-4格式的视频数据流存储到SD卡之中。若SD卡中空间不足,则系统将会自动删除最早的视频文件,然后继续存贮。在录像工作状态下,按【退出】键,可以回到选择菜单界面。Select the recording function on the network video server selection menu interface, and the video server will enter the recording working state. At this time, the real-time monitoring screen will be displayed on the LCD screen, and the network video server will store the video data stream in MPEG-4 format generated by AT2042 in the SD card. If there is not enough space in the SD card, the system will automatically delete the earliest video file, and then continue to store. In the recording working state, press the [Exit] key to return to the selection menu interface.
在网络视频服务器选择菜单界面上选择抓拍图片功能,视频服务器将进入图片抓拍工作状态,此时,液晶屏会显示即时的视频监控画面,按【抓拍】键,网络视频服务器将会对及时的监控画面进行抓拍操作,抓拍得到的图片文件将会被存储到SD卡中,此时,按【退出】键,将会回到选择菜单显示界面。Select the picture capture function on the network video server selection menu interface, and the video server will enter the picture capture working state. At this time, the LCD screen will display the real-time video monitoring screen. Press the [Snapshot] button, and the network video server will monitor in time Screen capture operation, the captured picture file will be stored in the SD card, at this time, press the [Exit] key, it will return to the selection menu display interface.
在网络视频服务器选择菜单界面上选择视频回放功能,网络视频服务器将会进入视频回放状态,液晶屏上会显示目前已经存在的视频文件,用户可以通过按【向上】键或【向下】键移动光标进行选择,待光标移动到选中的文件上,按【确定】键,系统将播放该视频文件,这是在液晶屏上可以看到播放画面。用户可以用【向左】键或【向右】键,调节视频的播放进度,实现快进或快退。按【退出】键,网络视频服务器将退出视频回放状态,回到选择菜单界面。Select the video playback function on the network video server selection menu interface, the network video server will enter the video playback state, and the existing video files will be displayed on the LCD screen, and the user can move by pressing the [Up] key or [Down] key. Use the cursor to select, and when the cursor moves to the selected file, press the [OK] key, and the system will play the video file, which can be seen on the LCD screen. The user can use the [Left] key or [Right] key to adjust the playback progress of the video to achieve fast forward or rewind. Press【Exit】key, the network video server will exit the video playback state and return to the selection menu interface.
在网络视频服务器选择菜单界面上选择本地监控功能,液晶屏上将会显示即时的监控视频图像,本设计在这里加入了运动捕获功能,可以用来实现报警,若监控区域有物体运动,网络视频服务器将会给出报警信号。若是用户需要,本网络视频服务器还可以在录像状态下加入报警功能。Select the local monitoring function on the network video server selection menu interface, and the real-time monitoring video image will be displayed on the LCD screen. This design adds a motion capture function here, which can be used to realize the alarm. If there is movement of objects in the monitoring area, the network video The server will give an alarm signal. If required by the user, the network video server can also add an alarm function in the recording state.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200920013128 CN201403163Y (en) | 2009-04-21 | 2009-04-21 | A Network Video Server Based on Embedded Platform |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200920013128 CN201403163Y (en) | 2009-04-21 | 2009-04-21 | A Network Video Server Based on Embedded Platform |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN201403163Y true CN201403163Y (en) | 2010-02-10 |
Family
ID=41662962
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 200920013128 Expired - Fee Related CN201403163Y (en) | 2009-04-21 | 2009-04-21 | A Network Video Server Based on Embedded Platform |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN201403163Y (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102209232A (en) * | 2010-04-09 | 2011-10-05 | 佛山市智邦电子科技有限公司 | Remote audio and video monitor system and method thereof |
| CN102685427A (en) * | 2011-03-10 | 2012-09-19 | 郑州大学 | Embedded digital video mobile storage controller and video monitoring storage system |
| CN103414885A (en) * | 2013-08-22 | 2013-11-27 | 济南中维世纪科技有限公司 | Communication method of network audio-video monitoring system |
| CN104469274A (en) * | 2013-09-22 | 2015-03-25 | 华南师范大学 | An Intelligent Video Surveillance System |
| CN105721828A (en) * | 2014-12-05 | 2016-06-29 | 魏晓慧 | Intelligent network video monitoring system |
| CN106303464A (en) * | 2016-09-30 | 2017-01-04 | 广西师范大学 | A kind of wireless video monitoring service end, client, system and processing method |
| CN107567712A (en) * | 2015-05-12 | 2018-01-09 | 西门子公司 | System and method for transferring video data from server to client |
-
2009
- 2009-04-21 CN CN 200920013128 patent/CN201403163Y/en not_active Expired - Fee Related
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102209232A (en) * | 2010-04-09 | 2011-10-05 | 佛山市智邦电子科技有限公司 | Remote audio and video monitor system and method thereof |
| CN102685427A (en) * | 2011-03-10 | 2012-09-19 | 郑州大学 | Embedded digital video mobile storage controller and video monitoring storage system |
| CN103414885A (en) * | 2013-08-22 | 2013-11-27 | 济南中维世纪科技有限公司 | Communication method of network audio-video monitoring system |
| CN103414885B (en) * | 2013-08-22 | 2016-05-25 | 济南中维世纪科技有限公司 | A kind of communication means of monitoring network audio and video system |
| CN104469274A (en) * | 2013-09-22 | 2015-03-25 | 华南师范大学 | An Intelligent Video Surveillance System |
| CN105721828A (en) * | 2014-12-05 | 2016-06-29 | 魏晓慧 | Intelligent network video monitoring system |
| CN107567712A (en) * | 2015-05-12 | 2018-01-09 | 西门子公司 | System and method for transferring video data from server to client |
| CN106303464A (en) * | 2016-09-30 | 2017-01-04 | 广西师范大学 | A kind of wireless video monitoring service end, client, system and processing method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101534423A (en) | Network video server based on embedded platform | |
| CN201403163Y (en) | A Network Video Server Based on Embedded Platform | |
| CN103731645B (en) | Law enforcement and case handling system based on wireless video transmission technology | |
| CN102263935A (en) | A Video Surveillance Transmission Device Based on TD-SCDMA Network | |
| CN112714320B (en) | Decoding method, decoding device and computer-readable storage medium | |
| CN101742218B (en) | A method for implementing a videophone system between Internet TV set-top boxes | |
| CN103929576B (en) | It compresses the method for the image data that camera is collected and supports the electronic device of this method | |
| CN105208342A (en) | Two-way video compression storage and network switch transmission circuit | |
| CN107563341B (en) | Face recognition device and face recognition system | |
| CN201663664U (en) | Network video server with double CPU structure | |
| CN201805504U (en) | Remote audio-video monitoring system | |
| CN100493184C (en) | A TV monitoring system and its implementation method | |
| Kavitha Mamindla et al. | Embedded real time video monitoring system using ARM | |
| CN102685427A (en) | Embedded digital video mobile storage controller and video monitoring storage system | |
| CN106412518A (en) | Wireless video transmission system based on TD-LTE emergency communication | |
| CN101252552B (en) | Embedded home network gateway supporting wireless audio and video transmission | |
| CN101309352B (en) | Network television | |
| CN104822048B (en) | Multi-format code stream based on Davinci technology is shown and storage device | |
| CN101277436A (en) | Multi-serial-flow network camera control system and control method thereof | |
| CN106454279B (en) | Embedded video monitoring system | |
| CN106385560A (en) | Video monitoring system and method | |
| CN100583970C (en) | A TV program recording system and method | |
| CN206195967U (en) | An embedded video monitoring system | |
| CN102790876A (en) | Embedded-type multi-functional video integral machine based on Hi3515 processor | |
| CN202679528U (en) | Hi3515 processor-based embedded multifunctional video integrated machine |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100210 Termination date: 20110421 |