技术领域technical field
本发明涉及视频监控技术领域,具体的说,涉及了一种模拟多路视频编码器输入视频监控系统的方法。The invention relates to the technical field of video monitoring, in particular to a method for simulating the input of multi-channel video encoders into a video monitoring system.
背景技术Background technique
视频监控系统一般包括监控摄像机、硬盘录像机、云台、云台解码器等组成设备。构建一个视频监控系统,最重要的就是对该系统的性能进行测试,而视频监控系统的性能测试需要模拟很多路的视频图像。在现有的处理方法中,一般采用实际的编码器或者IP摄像机(含高清)模拟视频图像输入,而搭建这样的一个测试环境必然需要投入大量的设备,这势必会加大投资的成本和测试的周期。而且,对于视频图像内容的分析,往往还需要现场的录像数据,而这些录像数据如何导入到视频监控系统中作为测试样本,一直也没有一种理想有效的途径。A video surveillance system generally includes surveillance cameras, hard disk video recorders, PTZs, PTZ decoders and other components. To build a video surveillance system, the most important thing is to test the performance of the system, and the performance test of the video surveillance system needs to simulate many channels of video images. In the existing processing methods, the actual encoder or IP camera (including high-definition) is generally used to simulate video image input, and building such a test environment will inevitably require a large amount of equipment, which will inevitably increase the cost of investment and testing. cycle. Moreover, the analysis of video image content often requires on-site video data, and how to import these video data into the video surveillance system as a test sample has never been an ideal and effective way.
为了解决以上存在的问题,人们一直在寻求一种理想的技术解决方案。In order to solve the above existing problems, people have been seeking an ideal technical solution.
发明内容Contents of the invention
本发明的目的是针对现有技术的不足,从而提供一种模拟多路视频编码器输入视频监控系统的方法,该方法解决了传统搭建视频监控系统平台时需使用大量编码设备的问题,具有易于实现和投资成本低的优点。The purpose of the present invention is to address the deficiencies in the prior art, thereby providing a method for simulating multi-channel video encoder input into a video surveillance system. Advantages of low implementation and investment costs.
为了实现上述目的,本发明所采用的技术方案是:一种模拟多路视频编码器输入视频监控系统的方法,它包括以下步骤:In order to achieve the above object, the technical solution adopted in the present invention is: a method for simulating a multi-channel video encoder input video surveillance system, which includes the following steps:
步骤1:获取音视频数据,所述音视频数据是从编码器设备处获取的音视频码流,或者是直接读取的本地音视频文件;Step 1: Obtain audio and video data, the audio and video data is the audio and video code stream obtained from the encoder device, or a local audio and video file directly read;
步骤2:将获取的音视频数据保存在缓冲区,同时所述缓冲区设定上限,超过所述缓冲区的上限则删除最早的数据;Step 2: save the audio and video data obtained in the buffer zone, and set an upper limit for the buffer zone, and delete the earliest data if the upper limit of the buffer zone is exceeded;
步骤3:对应每个视频监控系统的发送对象设置发送缓冲区,将保存在缓冲区中的音视频数据发送到各个发送缓冲区,同时所述发送缓冲区设定上限,超过所述发送缓冲区的上限则删除最早的数据。Step 3: Set the sending buffer corresponding to the sending object of each video surveillance system, send the audio and video data stored in the buffer to each sending buffer, and set the upper limit of the sending buffer at the same time, exceeding the sending buffer If the upper limit is set, the oldest data will be deleted.
基于上述,所述缓冲区和所述发送缓冲区均采用内存池方式。 Based on the above, both the buffer and the sending buffer adopt a memory pool manner. the
本发明相对现有技术具有实质性特点和进步,具体的说,本发明支持从编码器获取码流和读本地文件两种方式,能满足视频监控系统的性能测试、功能测试演示、分析算法测试等多种需求;本发明方法能模拟多路编码器输入视频监控系统,从而大幅度降低了视频监控系统平台测试的投资成本,同时还可以缩短测试周期。Compared with the prior art, the present invention has substantive characteristics and progress. Specifically, the present invention supports two ways of obtaining code stream from the encoder and reading local files, and can meet the performance test, function test demonstration, and analysis algorithm test of the video surveillance system. and other requirements; the method of the present invention can simulate multi-channel encoder input video monitoring system, thereby greatly reducing the investment cost of the video monitoring system platform test, and can also shorten the test cycle at the same time.
具体实施方式Detailed ways
下面通过具体实施方式,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below through specific implementation methods.
一种模拟多路视频编码器输入视频监控系统的方法,它包括以下步骤:A method for simulating multi-channel video encoder input video monitoring system, it comprises the following steps:
步骤1:获取音视频数据,所述音视频数据可以是从真实的编码器、IP摄像机处获取的音视频码流,也可以是直接读取的本地音视频文件;Step 1: Obtain audio and video data, the audio and video data can be the audio and video code stream obtained from a real encoder, IP camera, or a local audio and video file directly read;
步骤2:将获取的音视频数据保存在缓冲区,所述缓冲区设定上限,若超过所述缓冲区的上限,则删除最早的数据;Step 2: the obtained audio and video data is stored in a buffer, and the buffer is set as an upper limit, and if the upper limit of the buffer is exceeded, the earliest data is deleted;
步骤3:对应每个视频监控系统的发送对象设置发送缓冲区,将保存在缓冲区中的音视频数据发送到各个发送缓冲区,一路音视频码流即可模拟高达几百路的音视频码流输入视频监控系统,发送音视频数据时,采用多线程技术,网络通信则采用异步发送机制,线程遍历发送对象后发送音视频数据,从而发送到各个对象间的数据互不影响,保证了发送效率和准确性;所述发送缓冲区设定上限,若超过所述发送缓冲区的上限,则删除最早的数据。Step 3: Set the sending buffer corresponding to the sending object of each video surveillance system, and send the audio and video data stored in the buffer to each sending buffer, and one audio and video code stream can simulate up to hundreds of audio and video codes The streaming input video monitoring system adopts multi-threading technology when sending audio and video data, and the network communication adopts an asynchronous sending mechanism. The thread traverses the sending object and sends the audio and video data, so that the data sent to each object does not affect each other, ensuring the transmission Efficiency and accuracy; the sending buffer sets an upper limit, and if the upper limit of the sending buffer is exceeded, the earliest data is deleted.
为了提高视频监控系统的响应性能,所述缓冲区和所述发送缓冲区均采用内存池方式,这样能减少系统对内存的频繁申请和释放。In order to improve the response performance of the video monitoring system, both the buffer and the sending buffer adopt a memory pool mode, which can reduce frequent application and release of memory by the system.
使用该方法向视频监控系统接入音视频码流后,可以对视频监控系统的软件进行转发、存储等性能测试;当获取的音视频数据是读取的本地音视频文件时,还可以以现场录像实际场景方式再现现场真实场景,不仅可以用于系统功能测试、客户演示,还可以用于视频图像的分析算法测试。After using this method to access the audio and video code stream to the video surveillance system, performance tests such as forwarding and storage can be performed on the software of the video surveillance system; The method of recording the actual scene reproduces the real scene on site, which can not only be used for system function test, customer demonstration, but also for video image analysis algorithm test.
最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制;尽管参照较佳实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本发明的具体实施方式进行修改或者对部分技术特征进行等同替换;而不脱离本发明技术方案的精神,其均应涵盖在本发明请求保护的技术方案范围当中。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them; although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that: the present invention can still be Modifications to the specific implementation of the invention or equivalent replacement of some technical features; without departing from the spirit of the technical solution of the present invention, should be included in the scope of the technical solution claimed in the present invention.
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN2012105786384ACN103024360A (en) | 2012-12-28 | 2012-12-28 | Method for simulating input video monitoring system of multi-channel video coder | 
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN2012105786384ACN103024360A (en) | 2012-12-28 | 2012-12-28 | Method for simulating input video monitoring system of multi-channel video coder | 
| Publication Number | Publication Date | 
|---|---|
| CN103024360Atrue CN103024360A (en) | 2013-04-03 | 
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CN2012105786384APendingCN103024360A (en) | 2012-12-28 | 2012-12-28 | Method for simulating input video monitoring system of multi-channel video coder | 
| Country | Link | 
|---|---|
| CN (1) | CN103024360A (en) | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN105516630A (en)* | 2015-12-14 | 2016-04-20 | 讯美电子科技有限公司 | Method for simulating preview of real-time streaming data of hard disk video | 
| CN106341287A (en)* | 2015-07-10 | 2017-01-18 | 杭州海康威视系统技术有限公司 | Cloud storage system test method, device and system | 
| CN109582674A (en)* | 2018-11-28 | 2019-04-05 | 亚信科技(南京)有限公司 | A kind of date storage method and system | 
| CN109905697A (en)* | 2019-02-27 | 2019-06-18 | 苏州科达科技股份有限公司 | Video conference test method, device and storage medium | 
| CN111031279A (en)* | 2019-11-29 | 2020-04-17 | 武汉烽火众智数字技术有限责任公司 | Monitoring platform-based simulation front-end equipment point location construction method and system | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| US6778265B1 (en)* | 1999-11-10 | 2004-08-17 | Thomson Licensing S.A. | Copy feature for recordable DVD editing | 
| CN101330609A (en)* | 2008-07-31 | 2008-12-24 | 南京大学 | A multi-path wireless video transmission method and system | 
| CN101419828A (en)* | 2008-11-20 | 2009-04-29 | 杭州海康威视数字技术股份有限公司 | Hard disc video recording and retrieval method for analog magnetic tape serial schema | 
| CN101706675A (en)* | 2009-11-17 | 2010-05-12 | 北京中科大洋科技发展股份有限公司 | High standard-definition video-audio IO card with internal switching function | 
| CN101873487A (en)* | 2010-02-09 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | Decoding method, decoder and system based on audio/video monitoring system | 
| CN102002582A (en)* | 2009-09-03 | 2011-04-06 | 复旦大学 | Method and device for synchronously analyzing and monitoring band steel by using image identification | 
| CN102231821A (en)* | 2011-06-23 | 2011-11-02 | 深圳中兴力维技术有限公司 | Data storage method applied in remote video monitoring system and system thereof | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| US6778265B1 (en)* | 1999-11-10 | 2004-08-17 | Thomson Licensing S.A. | Copy feature for recordable DVD editing | 
| CN101330609A (en)* | 2008-07-31 | 2008-12-24 | 南京大学 | A multi-path wireless video transmission method and system | 
| CN101419828A (en)* | 2008-11-20 | 2009-04-29 | 杭州海康威视数字技术股份有限公司 | Hard disc video recording and retrieval method for analog magnetic tape serial schema | 
| CN102002582A (en)* | 2009-09-03 | 2011-04-06 | 复旦大学 | Method and device for synchronously analyzing and monitoring band steel by using image identification | 
| CN101706675A (en)* | 2009-11-17 | 2010-05-12 | 北京中科大洋科技发展股份有限公司 | High standard-definition video-audio IO card with internal switching function | 
| CN101873487A (en)* | 2010-02-09 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | Decoding method, decoder and system based on audio/video monitoring system | 
| CN102231821A (en)* | 2011-06-23 | 2011-11-02 | 深圳中兴力维技术有限公司 | Data storage method applied in remote video monitoring system and system thereof | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN106341287A (en)* | 2015-07-10 | 2017-01-18 | 杭州海康威视系统技术有限公司 | Cloud storage system test method, device and system | 
| CN105516630A (en)* | 2015-12-14 | 2016-04-20 | 讯美电子科技有限公司 | Method for simulating preview of real-time streaming data of hard disk video | 
| CN109582674A (en)* | 2018-11-28 | 2019-04-05 | 亚信科技(南京)有限公司 | A kind of date storage method and system | 
| CN109582674B (en)* | 2018-11-28 | 2023-12-22 | 亚信科技(南京)有限公司 | Data storage method and system | 
| CN109905697A (en)* | 2019-02-27 | 2019-06-18 | 苏州科达科技股份有限公司 | Video conference test method, device and storage medium | 
| CN111031279A (en)* | 2019-11-29 | 2020-04-17 | 武汉烽火众智数字技术有限责任公司 | Monitoring platform-based simulation front-end equipment point location construction method and system | 
| Publication | Publication Date | Title | 
|---|---|---|
| CN108234997B (en) | Time-delay measuring method, equipment, system and the computer-readable medium of live video | |
| CN102301730B (en) | Multi-channel audio and video transmission and processing method, device and system | |
| CN105791431B (en) | An online distributed monitoring video processing task scheduling method and device | |
| TWI540887B (en) | Audio and video media files composition method and server system | |
| CN103024360A (en) | Method for simulating input video monitoring system of multi-channel video coder | |
| CN104185018B (en) | For web camera simulator and the testing method of video monitoring system test | |
| CN101536014A (en) | Embedded device for multimedia capture | |
| CN102868939A (en) | Method for synchronizing audio/video data in real-time video monitoring system | |
| CN103108160B (en) | Monitor video data capture method, server and terminal | |
| WO2018076998A1 (en) | Method and device for generating playback video file | |
| CN103731631A (en) | Method, device and system for transmitting video image | |
| CN102655585A (en) | Video conference system and time delay testing method, device and system thereof | |
| CN110008102B (en) | Server performance testing method and system based on intelligent video application | |
| CN109698943B (en) | A Capacity Scalable Network Camera Access Platform | |
| CN102737681B (en) | Performance testing method and device of stream media player | |
| CN102932640A (en) | Method for controlling video stream frame rate | |
| CN109040640A (en) | A kind of distributed video storage-playback | |
| CN106454249A (en) | Device for simulating multipath high-definition real-time audio and video transmission and method thereof | |
| US20140025782A1 (en) | System and method for playing and transmitting network video | |
| CN205693815U (en) | A kind of ultra high-definition transmission of video and storage system | |
| CN202334750U (en) | High-definition AV (Audio/Video) trial system | |
| CN108012085B (en) | A kind of multimedia information processing method, server and storage medium | |
| CN102521301B (en) | Retrieval method and retrieval system of video and audio monitoring information | |
| CN110635969B (en) | High concurrency test method for streaming media direct memory system | |
| CN111614969A (en) | UAV inspection video live broadcast method and system | 
| Date | Code | Title | Description | 
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C12 | Rejection of a patent application after its publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20130403 |