[go: up one dir, main page]

CN102984506A - A 3G-SDI/DVI Portable Video Signal Acquisition Method - Google Patents

A 3G-SDI/DVI Portable Video Signal Acquisition Method Download PDF

Info

Publication number
CN102984506A
CN102984506A CN2012105565748A CN201210556574A CN102984506A CN 102984506 A CN102984506 A CN 102984506A CN 2012105565748 A CN2012105565748 A CN 2012105565748A CN 201210556574 A CN201210556574 A CN 201210556574A CN 102984506 A CN102984506 A CN 102984506A
Authority
CN
China
Prior art keywords
frame
video signal
module
video
dvi
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.)
Granted
Application number
CN2012105565748A
Other languages
Chinese (zh)
Other versions
CN102984506B (en
Inventor
周春雷
张坛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DALIAN KEDI VIDEO TECHNOLOGY CO LTD
Original Assignee
DALIAN KEDI VIDEO TECHNOLOGY CO LTD
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by DALIAN KEDI VIDEO TECHNOLOGY CO LTD filed Critical DALIAN KEDI VIDEO TECHNOLOGY CO LTD
Priority to CN201210556574.8A priority Critical patent/CN102984506B/en
Publication of CN102984506A publication Critical patent/CN102984506A/en
Application granted granted Critical
Publication of CN102984506B publication Critical patent/CN102984506B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Television Systems (AREA)

Abstract

The invention discloses a 3G-SDI/DVI portable video signal acquisition method, which comprises the following steps: 1) sending the parallel video signals and the position information of the video frame where the video stream is located to a cache module; 2) calculating a memory write address, then circularly storing, and sending a parallel video signal to a frame control coding module; 3) the parallel video signals are directly coded and output to a DVI coding chip, and each frame of the parallel video signals is monitored; 4) when a specific frame or a problem frame is monitored, sending the parallel video signals in the current memory to a processor module with a file system; 5) and sending the parallel video signals to a static storage module for storage. The implementation of the invention has the following beneficial effects: the SDI signal is converted into the DVI signal for convenient analysis, the video image is analyzed in a static picture by setting video slow-playing and static frames, and the specific picture or video can be stored in a static storage module, such as an SD card, in real time.

Description

一种3G-SDI/DVI便携式视频信号采集方法A 3G-SDI/DVI Portable Video Signal Acquisition Method

技术领域technical field

本发明涉及视频采集分析领域,更具体地说,涉及一种3G-SDI(3Gbps传输速率的串行数字信号)和DVI(数字视频接口)便携式高清数字视频信号的采集方法。The present invention relates to the field of video acquisition and analysis, and more specifically, relates to a method for acquiring portable high-definition digital video signals of 3G-SDI (3Gbps transmission rate serial digital signal) and DVI (Digital Video Interface).

背景技术Background technique

目前,在我国广播电视领域,3G-SDI信号应用趋势原来越明朗,设备提供商能争分夺秒的推出自己的兼容3G-SDI信号的设备。在应用时,五花八门的设备级联后往往会出现一些意想不到错误效果,这些现象时常转瞬即逝,无法扑捉,导致无法分析问题的原因,从而不能够正常的解决问题。设备的维护人员并不是设备的提供商,更不是设备研发人员,当发现问题,也不能很好的确定问题所在。且3G-SDI/DVI信号的数据量庞大,在数据量庞大的视频帧中,很难找出特定帧或问题帧并将特定帧或问题帧单帧提取出来。At present, in the field of radio and television in my country, the trend of 3G-SDI signal application has become more and more clear, and equipment providers can race against time to launch their own equipment compatible with 3G-SDI signals. In application, various equipment cascades often have some unexpected error effects. These phenomena are often fleeting and cannot be captured, resulting in the inability to analyze the cause of the problem and thus fail to solve the problem normally. The maintenance personnel of the equipment are not the suppliers of the equipment, let alone the R&D personnel of the equipment. When a problem is found, they cannot determine the problem well. Moreover, the data volume of the 3G-SDI/DVI signal is huge, and it is difficult to find out a specific frame or a problem frame and extract a specific frame or a problem frame in a video frame with a huge data volume.

因此需要一种视频信号采集方法,该方法能够在无电脑、无外接电源的特殊场合监控视频信号,当视频信号出现问题效果后,能够将问题视频流存储后到后台分析,或者移交给技术人员,以便解决问题。Therefore, there is a need for a video signal acquisition method, which can monitor video signals in special occasions without computers and external power supplies. When the video signal has a problem effect, the problem video stream can be stored and analyzed in the background, or handed over to technical personnel. , in order to solve the problem.

发明内容Contents of the invention

本发明针对以上问题的提出,而研制一种3G-SDI/DVI便携式视频信号采集方法。Aiming at the above problems, the present invention develops a 3G-SDI/DVI portable video signal collection method.

一种3G-SDI/DVI便携式视频信号采集方法,其特征在于,包括特定帧或问题帧的存储步骤,步骤如下:A kind of 3G-SDI/DVI portable video signal acquisition method, it is characterized in that, comprises the storage step of specific frame or problem frame, and step is as follows:

1)视频解析模块对接收端的SDI视频信号进行均衡处理,将均衡后的串行视频信号转换为并行视频信号,并获取视频流所在视频帧的位置信息,然后将并行视频信号与视频流所在视频帧的位置信息一起发送至高速缓存模块;1) The video analysis module equalizes the SDI video signal at the receiving end, converts the equalized serial video signal into a parallel video signal, and obtains the position information of the video frame where the video stream is located, and then compares the parallel video signal with the video stream where the video stream is located. The location information of the frame is sent to the cache module together;

2)高速缓存模块根据视频流所在视频帧的位置信息以及自身存储参数计算内存写地址后,将并行视频信号进行循环存储,并将并行视频信号发送至帧控编码模块;2) After the cache module calculates the memory write address according to the location information of the video frame where the video stream is located and its own storage parameters, the parallel video signal is cyclically stored, and the parallel video signal is sent to the frame control encoding module;

3)帧控编码模块将来自高速缓存模块的并行视频信号直接编码后输出到DVI编码芯片,对并行视频信号的每一帧进行监控;3) The frame control encoding module directly encodes the parallel video signal from the cache module and outputs it to the DVI encoding chip to monitor each frame of the parallel video signal;

4)当监控到特定帧或问题帧时,通过人机接口控制高速缓存模块将当前内存中的并行视频信号发送至带文件系统的处理器模块;4) When a specific frame or problem frame is monitored, the cache module is controlled through the man-machine interface to send the parallel video signal in the current memory to the processor module with a file system;

5)带文件系统的处理器模块将并行视频信号发送至静态存储模块进行存储。5) The processor module with the file system sends the parallel video signal to the static storage module for storage.

本发明的方法还包括特定帧或问题帧的分析步骤,步骤如下:The method of the present invention also includes an analysis step of a specific frame or a problem frame, the steps are as follows:

6)通过人机接口控制带文件系统的处理器模块将静态存储模块中存储的并行视频信号按照规则读出,并存储到高速缓存模块的内存中;6) Control the processor module with file system through the man-machine interface to read out the parallel video signal stored in the static storage module according to the rules, and store it in the memory of the cache module;

7)高速缓存模块按照帧控编码模块的设置参数以帧的形式向帧控编码模块发送并行视频信号;7) The cache module sends parallel video signals to the frame control coding module in the form of frames according to the setting parameters of the frame control coding module;

8)帧控编码模块将并行视频信号发送到DVI编码芯片中输出。8) The frame control encoding module sends the parallel video signal to the DVI encoding chip for output.

本发明的步骤1)中还包括步骤:将并行视频信号与视频流所在视频帧的位置信息进行位宽转换后一起发送至高速缓存模块,位宽转换规则如下:设高速缓存模块中的内存数据位宽为a,并行视频信号的数据位宽为b,取c组并行视频信号存储到d个内存地址中,其中,c、d为a、b的公倍数的两个余数,且c>d。Step 1) of the present invention also includes the step of: converting the parallel video signal and the position information of the video frame where the video stream is located to the cache module after bit width conversion. The bit width conversion rule is as follows: set the memory data in the cache module The bit width is a, the data bit width of the parallel video signal is b, and c groups of parallel video signals are taken and stored in d memory addresses, where c and d are the two remainders of the common multiple of a and b, and c>d.

本发明的步骤8)中,帧控编码模块采用倍帧、跳帧或者静帧的方式将并行视频信号发送到DVI编码芯片中输出。In step 8) of the present invention, the frame control encoding module sends the parallel video signal to the DVI encoding chip for output by means of frame doubling, frame skipping or frame freezing.

实施本发明具有以下有益效果:(1)利用高速缓存模块中的内存循环存储3G-SDI/DVI视频信号,并通过播放视频对内存中的3G-SDI/DVI视频信号进行监控,当发现特定帧或问题帧时,将当前内存中的3G-SDI/DVI视频信号存储到静态存储模块,以便技术人员后期通过将静态存储模块中的3G-SDI/DVI视频信号调取出来进行分析;(2)通过将并行视频信号与视频流所在视频帧的位置信息进行位宽转换后一起发送至高速缓存模块,来避免内存空间的浪费;(3)通过控制帧控编码模块采用倍帧、跳帧或者静帧的方式将并行视频信号发送到DVI编码芯片中输出,以使技术人员通过慢放、快进或者静帧来更好的分析特定帧或问题帧;(4)SDI信号的显示设备应用没有DVI显示设备广泛,我们将SDI信号转成DVI信号,方便工作人员随时随地进行分析,为了能够实现每一帧扑捉的处理,操作人员可以通过设定使得视频慢放和静帧,从而在静止的画面中分析视频图像,可以实时存储特定画面或视频至静态存储模块中。Implementing the present invention has the following beneficial effects: (1) Utilize the memory in the cache module to store 3G-SDI/DVI video signals circularly, and monitor the 3G-SDI/DVI video signals in the memory by playing video, when a specific frame is found or problematic frame, store the 3G-SDI/DVI video signal in the current memory to the static storage module, so that technicians can analyze the 3G-SDI/DVI video signal in the static storage module later; (2) By converting the bit width of the parallel video signal and the position information of the video frame where the video stream is located, they are sent to the cache module together to avoid waste of memory space; (3) By controlling the frame control encoding module to use frame doubling, frame skipping or static The parallel video signal is sent to the DVI encoding chip for output in the form of frames, so that technicians can better analyze specific frames or problem frames by slowing down, fast forwarding or stilling frames; (4) The display device application of the SDI signal does not have DVI There are a wide range of display devices. We convert SDI signals into DVI signals, which is convenient for the staff to analyze anytime and anywhere. In order to realize the processing of each frame capture, the operator can make the video slow down and freeze the frame by setting, so that in the static The video image is analyzed in the picture, and the specific picture or video can be stored in the static storage module in real time.

附图说明Description of drawings

图1是实现本发明的3G-SDI/DVI便携式视频信号采集方法的一实施例的硬件结构示意图;Fig. 1 is the hardware structural representation of an embodiment realizing the 3G-SDI/DVI portable video signal acquisition method of the present invention;

图2是本发明的3G-SDI/DVI便携式视频信号采集方法的一实施例的位宽转换的方法流程图;Fig. 2 is the method flowchart of the bit width conversion of an embodiment of the 3G-SDI/DVI portable video signal acquisition method of the present invention;

图3是实现本发明的3G-SDI/DVI便携式视频信号采集方法的一实施例的硬件系统图。Fig. 3 is a hardware system diagram of an embodiment implementing the 3G-SDI/DVI portable video signal acquisition method of the present invention.

具体实施方式Detailed ways

本发明提供了一种3G-SDI/DVI便携式视频信号采集方法,该方法可以对3Gbps高清数字视音频信号进行采集分析缓存,并且支持HD(高清晰度)数字视频信号和SD(标准清晰度)数字视频信号,当问题视频图像发生时,采集设备将缓存中的数据存储到静态存储模块中。之后可以通过DVI回放输出功能分析问题视频,也可以将静态存储模块中的问题视频数据拷贝到电脑中进行分析。The invention provides a 3G-SDI/DVI portable video signal collection method, which can collect, analyze and cache 3Gbps high-definition digital video and audio signals, and supports HD (high definition) digital video signals and SD (standard definition) Digital video signal, when the problematic video image occurs, the acquisition device will store the data in the buffer into the static storage module. Afterwards, the problem video can be analyzed through the DVI playback output function, and the problem video data in the static storage module can also be copied to the computer for analysis.

图1是实现本发明的3G-SDI/DVI便携式视频信号采集方法的一实施例的硬件结构示意图,如图所示。FIG. 1 is a schematic diagram of the hardware structure of an embodiment of the 3G-SDI/DVI portable video signal acquisition method of the present invention, as shown in the figure.

实现本发明3G-SDI/DVI便携式视频信号采集方法的硬件结构包括视频解析模块、高速缓存模块、帧控编码模块、带文件系统的处理器模块、静态存储模块,其中,视频解析模块、帧控编码模块、带文件系统的处理器模块都与高速缓存模块相连接,静态存储模块由带文件系统的处理器模块支配。各个模块的功能分别如下:The hardware structure realizing the 3G-SDI/DVI portable video signal collection method of the present invention comprises a video analysis module, a high-speed cache module, a frame control coding module, a processor module with a file system, and a static storage module, wherein the video analysis module, frame control The encoding module and the processor module with a file system are all connected to the cache module, and the static storage module is controlled by the processor module with a file system. The functions of each module are as follows:

视频解析模块用于将接收端的SDI视频信号进行均衡处理;将均衡后的串行视频信号进行串并转换为并行视频信号,并分析视频得到视频流所在视频帧的位置信息。The video analysis module is used to equalize the SDI video signal at the receiving end; serial-parallel convert the equalized serial video signal into a parallel video signal, and analyze the video to obtain the position information of the video frame where the video stream is located.

高速缓存模块中包括内存和内存控制器,用于对高速数据的实时操作处理,在本系统内使用的是CycloneⅣ系列FPGA,或者使用更高性能系列的FPGA对4G/8G容量DDR3内存进行控制,此模块核心是DDR3内存的控制器。他对视频解析模块发送来的视频帧进行处理,计算目前数据所在内存地址,进行循环存储,同时也能将内存中的数据读回发送到带文件系统的处理器模块。采集模块将SDI视频信号进行串转并后,视频分析模块将视频帧进行对齐排序,高速缓存模块中的内存控制器并按照自身研发的内存对齐技术讲视频帧有规律的存储到内存条中,并进行循环存储,缓存时间的长短取决于内存的大小和SDI视频信号的格式,内存控制器按照约定视频流格式定制视频的存储边界。保证能够正确取出任意时间段的完整的一帧视频数据。The cache module includes a memory and a memory controller for real-time operation and processing of high-speed data. The CycloneⅣ series FPGA is used in this system, or a higher performance series FPGA is used to control the 4G/8G capacity DDR3 memory. The core of this module is the controller of DDR3 memory. It processes the video frames sent by the video analysis module, calculates the memory address where the current data is stored, and performs circular storage. At the same time, it can also read back the data in the memory and send it to the processor module with a file system. After the acquisition module serializes and merges the SDI video signals, the video analysis module aligns and sorts the video frames, and the memory controller in the cache module stores the video frames regularly in the memory stick according to the memory alignment technology developed by itself. And carry out circular storage. The length of the cache time depends on the size of the memory and the format of the SDI video signal. The memory controller customizes the storage boundary of the video according to the agreed video stream format. It is guaranteed that a complete frame of video data of any time period can be correctly retrieved.

带文件系统的处理器模块是整个设备的控制处理器,他通过人机接口得到的指令进行工作,将高速缓存模块发送来的视频数据存储到静态存储模块,也能够将静态存储模块中的文件数据读出,并传入到高速缓存模块中去;静态存储模块带有文件系统,所述文件系统可以为任意格式的文件系统,例如FAT文件系统或者FAT32文件系统或者NTFS文件系统等。The processor module with a file system is the control processor of the entire device. It works through the instructions obtained from the man-machine interface, stores the video data sent by the cache module in the static storage module, and can also store the files in the static storage module The data is read out and passed into the high-speed cache module; the static storage module has a file system, and the file system can be a file system in any format, such as a FAT file system or a FAT32 file system or an NTFS file system.

帧控编码模块,数据来源有两个通道,第一个通道是将视频解析模块发送来的数据直接编码输出到DVI接口中,只是实现预监功能;第二个通道直接是将高速缓存模块相连,通过计算内存的读帧地址,让高速缓存模块按照帧控编码模块的周期和指令进行传送内存中的帧数据,这样就可以实现帧的快慢播放和静帧。Frame control encoding module, the data source has two channels, the first channel is to directly encode and output the data sent by the video analysis module to the DVI interface, just to realize the preview function; the second channel is directly connected to the cache module , by calculating the read frame address of the memory, let the cache module transmit the frame data in the memory according to the cycle and instructions of the frame control coding module, so that the fast and slow playback and still frame of the frame can be realized.

静态存储模块是最终保存视频数据的地方,为了提高兼容性和PC上进行读取,支持任意格式的文件系统,包括FAT文件系统,可以通过读卡器将视频数据写入到硬盘中,同时由将带文件系统处理器模块读出并写入到高速缓存模块中。The static storage module is the place where the video data is finally saved. In order to improve compatibility and read on the PC, it supports any format file system, including the FAT file system. The video data can be written into the hard disk through the card reader, and at the same time Read and write the processor module with file system into the cache module.

本发明的方法的核心原理为:DVI输出视频后,原视频监看设备发现问题视频时,通过按键操作,高速缓存模块中的内存控制器将停止将向内存中写入视频信息,此时这段完整的问题视频数据存储在内存中,内存控制器按照帧的顺序将内存中的视频段数据按照时间顺序取出提交到带文件系统的处理器模块的并行IO上,带文件系统的处理器模块将视频流存储到静态存储模块中,以便永久性存储。问题视频流分析时,只需将DVI输出端接到支持DVI接口的显示器上,操作设备,选择回放文件,带文件系统的处理器模块将静态存储模块中的相应文件读出传送到高速缓存模块的并行IO上,内存控制器将从采集通道切换到对并行IO上数据存储到内存中,存储结束后,内存控制器块将按照用户设定的帧数率,对内存条的帧数据进行读取并发送给帧控编码模块,最后帧控编码模块将数据发送到DVI编码芯片中,实现DVI输出。通过调节回放速率可以在显示器中看到缓慢的视频图像,使得操作者更容易的确定问题视频帧,并通过操作对图像进行静帧或跳帧。The core principle of the method of the present invention is: after the DVI outputs the video, when the original video monitoring equipment finds the problem video, the memory controller in the cache module will stop writing the video information to the internal memory through key operation. A complete segment of problematic video data is stored in the memory, and the memory controller takes out the video segment data in the memory in chronological order and submits them to the parallel IO of the processor module with a file system. Store the video stream into a static storage module for permanent storage. When analyzing the problematic video stream, you only need to connect the DVI output terminal to the display that supports the DVI interface, operate the device, select the playback file, and the processor module with file system will read out the corresponding file in the static storage module and send it to the cache module On the parallel IO, the memory controller will switch from the acquisition channel to store the data on the parallel IO in the memory. After the storage is completed, the memory controller block will read the frame data of the memory stick according to the frame rate set by the user. Take and send to the frame control encoding module, and finally the frame control encoding module sends the data to the DVI encoding chip to realize DVI output. Slow video images can be seen on the display by adjusting the playback rate, making it easier for the operator to determine the problem video frame, and to freeze or skip frames through the operation.

本发明的3G-SDI/DVI便携式视频信号采集方法,包括特定帧或问题帧的存储步骤,步骤如下:The 3G-SDI/DVI portable video signal collection method of the present invention comprises the storage step of specific frame or problem frame, and step is as follows:

1)视频解析模块对接收端的SDI视频信号进行均衡处理,将均衡后的串行视频信号转换为并行视频信号,并获取视频流所在视频帧的位置信息,然后将并行视频信号与视频流所在视频帧的位置信息一起发送至高速缓存模块;1) The video analysis module equalizes the SDI video signal at the receiving end, converts the equalized serial video signal into a parallel video signal, and obtains the position information of the video frame where the video stream is located, and then compares the parallel video signal with the video stream where the video stream is located. The location information of the frame is sent to the cache module together;

2)高速缓存模块根据视频流所在视频帧的位置信息以及自身存储参数计算内存写地址后,将并行视频信号进行循环存储,并将并行视频信号发送至帧控编码模块;2) After the cache module calculates the memory write address according to the location information of the video frame where the video stream is located and its own storage parameters, the parallel video signal is cyclically stored, and the parallel video signal is sent to the frame control encoding module;

3)帧控编码模块将来自高速缓存模块的并行视频信号直接编码后输出到DVI编码芯片,对并行视频信号的每一帧进行监控;3) The frame control encoding module directly encodes the parallel video signal from the cache module and outputs it to the DVI encoding chip to monitor each frame of the parallel video signal;

4)当监控到特定帧或问题帧时,通过人机接口控制高速缓存模块将当前内存中的并行视频信号发送至带文件系统的处理器模块;4) When a specific frame or problem frame is monitored, the cache module is controlled through the man-machine interface to send the parallel video signal in the current memory to the processor module with a file system;

5)带文件系统的处理器模块将并行视频信号发送至静态存储模块进行存储。5) The processor module with the file system sends the parallel video signal to the static storage module for storage.

本发明的3G-SDI/DVI便携式视频信号采集方法,还包括特定帧或问题帧的分析步骤,步骤如下:The 3G-SDI/DVI portable video signal collection method of the present invention also includes the analysis step of specific frame or problem frame, and the steps are as follows:

6)通过人机接口控制带文件系统的处理器模块将静态存储模块中存储的并行视频信号按照规则读出,并存储到高速缓存模块的内存中;6) Control the processor module with file system through the man-machine interface to read out the parallel video signal stored in the static storage module according to the rules, and store it in the memory of the cache module;

7)高速缓存模块按照帧控编码模块的设置参数以帧的形式向帧控编码模块发送并行视频信号;7) The cache module sends parallel video signals to the frame control coding module in the form of frames according to the setting parameters of the frame control coding module;

8)帧控编码模块将并行视频信号发送到DVI编码芯片中输出。8) The frame control encoding module sends the parallel video signal to the DVI encoding chip for output.

作为本发明的优选技术方案,步骤1)中还包括步骤:将并行视频信号与视频流所在视频帧的位置信息进行位宽转换后一起发送至高速缓存模块,位宽转换规则如下:设高速缓存模块中的内存数据位宽为a,并行视频信号的数据位宽为b,取c组并行视频信号存储到d个内存地址中,其中,c、d为a、b的公倍数的两个余数,且c>d。As a preferred technical solution of the present invention, step 1) also includes the step of: converting the parallel video signal and the position information of the video frame where the video stream is located to the cache module after bit width conversion, and the bit width conversion rule is as follows: set the cache The memory data bit width in the module is a, the data bit width of the parallel video signal is b, take c groups of parallel video signals and store them in d memory addresses, where c and d are the two remainders of the common multiple of a and b, And c>d.

图2是本发明的3G-SDI/DVI便携式视频信号采集方法的一实施例的位宽转换的方法流程图,如图所示。采集到的SDI视频信号是20bit并行数据,直接存储到内存中必将浪费大部分内存空间,通过时钟信号16x CLK将16组20bit数据位宽转换成320bit缓存后,便成了内存带宽的5个整数倍,所以利用时钟信号(16/5)x CLK将320bit分成5个等分存储到DDR3控制器(DDR3控制器即高速缓存模块中的内存控制器)的前置内部FIFO缓存器(64bit)中,等待DDR3内存(DDR3内存即高速缓存模块中的内存)的存储。DDR3控制器将内存中的数据直接输出到后级内部出FIFO缓存器(64bit)中,后级位宽转模块将64bit的带宽数据分解成8个字节发送给控制器等待静态存储;同理,控制器将静态存储的数据读出按照每8个字节组成一个64bit数据发送给DDR3控制器的后级内部入FIFO缓存器(64bit)中等待读取。FIG. 2 is a flow chart of a bit width conversion method of an embodiment of the 3G-SDI/DVI portable video signal acquisition method of the present invention, as shown in the figure. The collected SDI video signal is 20bit parallel data, and storing it directly in the memory will waste most of the memory space. After converting 16 sets of 20bit data bit width into 320bit buffer through the clock signal 16x CLK, it becomes 5 bits of the memory bandwidth. Integer multiple, so use the clock signal (16/5) x CLK to divide 320bit into 5 equal parts and store them in the pre-internal FIFO buffer (64bit) of the DDR3 controller (the DDR3 controller is the memory controller in the cache module) , waiting for the storage of the DDR3 memory (the DDR3 memory is the memory in the cache module). The DDR3 controller directly outputs the data in the memory to the internal output FIFO buffer (64bit) of the subsequent stage, and the subsequent bit width conversion module decomposes the 64bit bandwidth data into 8 bytes and sends them to the controller for static storage; similarly , the controller reads out the statically stored data according to every 8 bytes to form a 64bit data and sends it to the subsequent stage of the DDR3 controller into the FIFO buffer (64bit) for reading.

作为本发明的优选技术方案,步骤8)中,帧控编码模块采用倍帧、跳帧或者静帧的方式将并行视频信号发送到DVI编码芯片中输出,从而实现视频信号的快慢播放和静帧播放。As a preferred technical solution of the present invention, in step 8), the frame control encoding module sends the parallel video signal to the DVI encoding chip for output by means of frame doubling, frame skipping or still frame, thereby realizing fast and slow playback and still frame of the video signal play.

视频信号的快慢播放和静帧播放的原理如下:The principles of fast and slow playback and still frame playback of video signals are as follows:

控制器将静态存储器中的文件数据导入到总线上去,内存控制器将总线上的数据按照帧的顺序存储到DDR3内存条中,等待视频帧控制模块发来的内存读取参数,再对DDR3内存条中的视频帧进行读取。视频帧控制模块按照设定要求输出视频帧到DVI编码芯片中。The controller imports the file data in the static memory to the bus, and the memory controller stores the data on the bus into the DDR3 memory in the order of frames, waits for the memory reading parameters sent by the video frame control module, and then reads the DDR3 memory The video frames in the strip are read. The video frame control module outputs the video frame to the DVI encoding chip according to the setting requirements.

图3是实现本发明的3G-SDI/DVI便携式视频信号采集方法的一实施例的硬件系统图,如图所示。Fig. 3 is a hardware system diagram of an embodiment for realizing the 3G-SDI/DVI portable video signal acquisition method of the present invention, as shown in the figure.

PLL时钟系统对整个硬件系统进行时钟控制,视频解析模块通过视频接口接收到SDI视频信号,帧控编码模块输出到DVI编码芯片中的视频数据为固定格式,例如1920x108060Hz,为做到慢放和快放的效果并支持实时静帧功能,帧控编码模块采用倍帧和跳帧的方式,即改变对DDR3内存(图中示为SO-DIMM204)中每一帧的读取次数来达到慢放,同理改变对DDR3内存中跳帧读取达到快放。帧控编码模块得到Avalon总线上的配置参数,即播放帧的速度,计算出需要对每一帧的播放重复数或跳帧数,并计算每一帧的帧头地址,并开始对视频数据计数,当DDR3控制器将视频数据计数达到满帧时,通知DDR3控制器调到下一个需要播放的帧的内存地址上继续读取。当静帧指令发送到视频帧控制模块后,视频帧控制模块将重复上述过程,并保持下一帧所在DDR3数据地址不变,达到静帧的目的。The PLL clock system controls the clock of the entire hardware system. The video analysis module receives the SDI video signal through the video interface. The video data output by the frame control encoding module to the DVI encoding chip is in a fixed format, such as 1920x108060Hz, in order to achieve slow playback and fast playback. Play effect and support real-time static frame function, the frame control encoding module adopts frame doubling and frame skipping, that is, changing the number of readings of each frame in the DDR3 memory (SO-DIMM204 shown in the figure) to achieve slow playback, In the same way, change the reading of frame skipping in DDR3 memory to achieve fast playback. The frame control encoding module obtains the configuration parameters on the Avalon bus, that is, the speed of playing frames, calculates the number of repetitions or frame skips that need to be played for each frame, and calculates the frame header address of each frame, and starts to count the video data , when the DDR3 controller counts the video data to a full frame, the DDR3 controller is notified to transfer to the memory address of the next frame to be played to continue reading. After the freeze frame instruction is sent to the video frame control module, the video frame control module will repeat the above process, and keep the DDR3 data address where the next frame is located unchanged, so as to achieve the purpose of freeze frame.

在本实例中,本发明的实现硬件使用外部高速DDR3内存(大容量内存),可以存储高达3Gbps传输速率的全高清数字视频数据,DDR3内存的容量直接决定了采集SDI视频的长度,我们采用4G容量SO-DIMM 204P DDR3内存条最高存储标清SD高达121秒,HD-SDI高达22秒,3G信号也能达到11秒,并且可以通过DDR3的级联方式提高这些数值。In this example, the realization hardware of the present invention uses external high-speed DDR3 memory (large-capacity memory), which can store full high-definition digital video data up to 3Gbps transmission rate, and the capacity of DDR3 memory directly determines the length of collecting SDI video. We use 4G Capacity SO-DIMM 204P DDR3 memory stick can store standard definition SD up to 121 seconds, HD-SDI up to 22 seconds, 3G signal can also reach 11 seconds, and these values can be increased through DDR3 cascading.

在本实施例中,本发明的视频数据采集阶段的数据存储不是将视频数据直接静态存储的,内存控制器将输入的并行视频数据循环存储到DDR3内存中,并在DVI输出接口中实时播放采集到的视频图像,当工作人员检测到问题图像时,通过带文件系统的处理器模块将缓存到内存中的视频数据进行静态存储,即通过SD卡槽存储到SD卡中,达到了采集问题视频图像的目的。在本实施例中,带文件系统的处理器模块为Nois II处理器,所带的文件系统为FAT文件系统,通过SDRAM卡槽连接同步动态随机存储器。In this embodiment, the data storage in the video data collection stage of the present invention is not to store the video data directly and statically. The memory controller stores the input parallel video data in a DDR3 memory in a cyclic manner, and plays and collects in real time in the DVI output interface. When the staff detects a problem image, the video data cached in the internal memory will be stored statically through the processor module with a file system, that is, stored in the SD card through the SD card slot, so as to capture the problem video Image purpose. In the present embodiment, the processor module with the file system is a Nois II processor, and the file system it carries is a FAT file system, which is connected to a synchronous dynamic random access memory (SDRAM) by an SDRAM card slot.

在本实施例中,本发明的实现硬件中移植了FAT文件系统,个人电脑的所有操作系统都支持FAT文件系统,可以通过非常简单的方式将存储文件拷贝到电脑硬盘上去。这样避免了利用单独的采集工具或软件,简化了繁琐操作步骤。电脑中的视频图像分析软件能够更容易的分析采集来的数据。In this embodiment, the FAT file system is transplanted into the implementation hardware of the present invention, and all operating systems of the personal computer support the FAT file system, and the stored files can be copied to the hard disk of the computer in a very simple manner. This avoids the use of a separate acquisition tool or software and simplifies the cumbersome operation steps. The video image analysis software in the computer can analyze the collected data more easily.

采用帧控制播放技术,通过控制内存中的帧的读写规则,实现帧控制效果,本发明的实现硬件中慢放静帧功能是给分析人员提供最直接的分析方法,通过慢放找到问题所在并静帧,仔细分析每一帧的图像,更直观的指出问题所在。The frame control playback technology is used to realize the frame control effect by controlling the reading and writing rules of the frames in the memory. The slow playback and still frame function in the hardware of the present invention is to provide analysts with the most direct analysis method, and find the problem through slow playback. And freeze the frame, carefully analyze the image of each frame, and point out the problem more intuitively.

本发明是便携式设备,功耗和体积取决于系统性设计,系统采用低功耗集成度高的CycloneⅣ系列FPGA,并将所有的模块集成到此芯片中,更将控制器放入到FPGA中,这样体现了高集成度的成本和低功耗优势,也降低了系统锂电池的压力,同时降低了手持设备的体积和重量。The present invention is a portable device, and its power consumption and volume depend on the systematic design. The system adopts CycloneⅣ series FPGA with low power consumption and high integration, and integrates all modules into this chip, and puts the controller into the FPGA. This reflects the advantages of high integration cost and low power consumption, and also reduces the pressure on the system lithium battery, while reducing the size and weight of the handheld device.

本发明的有益效果为:利用内存条来对采集的高达3Gbps传输速率的视频进行循环缓存,这是因为其它非易失性存储设备很难达到的存储速度,而且由于视频数据量巨大,所以的采集设备都不可能海量存储高速视频流,而内存容量大小的视频数据已经超过我们用于分析的视频长度了。根据操作者的设定可以将这部分缓存视频片段转存储到静态存储模块(如SD卡)中,实现非易失性数据保存。SDI信号的显示设备应用没有DVI显示设备广泛,我们将SDI信号转成DVI信号,方便工作人员随时随地进行分析,为了能够实现每一帧扑捉的处理,操作人员可以通过设定使得视频慢放和静帧,从而在静止的画面中分析视频图像。工作人员还可以选择利用专用的视频分析软件将静态存储模块中的视频数据进行特定分析。The beneficial effect of the present invention is: utilize the memory bar to carry out circular buffering to the video of the acquisition up to 3Gbps transmission rate, this is because the storage speed that other non-volatile storage devices are difficult to reach, and because the video data volume is huge, so It is impossible for acquisition devices to store high-speed video streams in large quantities, and the video data with the size of the memory capacity has exceeded the length of the video we use for analysis. According to the settings of the operator, this part of the cached video clips can be transferred and stored in a static storage module (such as an SD card) to realize non-volatile data storage. The display devices of SDI signals are not as widely used as DVI display devices. We convert SDI signals into DVI signals, which is convenient for staff to analyze anytime and anywhere. In order to realize the processing of each frame capture, the operator can set the video to slow down. and still frames to analyze video images in still frames. Staff can also choose to use dedicated video analysis software to conduct specific analysis on the video data in the static storage module.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, any person familiar with the technical field within the technical scope disclosed in the present invention, according to the technical solution of the present invention Any equivalent replacement or change of the inventive concepts thereof shall fall within the protection scope of the present invention.

Claims (4)

1.一种3G-SDI/DVI便携式视频信号采集方法,其特征在于,包括特定帧或问题帧的存储步骤,步骤如下:1. a kind of 3G-SDI/DVI portable video signal collection method is characterized in that, comprises the storage step of specific frame or problem frame, and step is as follows: 1)视频解析模块对接收端的SDI视频信号进行均衡处理,将均衡后的串行视频信号转换为并行视频信号,并获取视频流所在视频帧的位置信息,然后将并行视频信号与视频流所在视频帧的位置信息一起发送至高速缓存模块;1) The video analysis module equalizes the SDI video signal at the receiving end, converts the equalized serial video signal into a parallel video signal, and obtains the position information of the video frame where the video stream is located, and then compares the parallel video signal with the video stream where the video stream is located. The location information of the frame is sent to the cache module together; 2)高速缓存模块根据视频流所在视频帧的位置信息以及自身存储参数计算内存写地址后,将并行视频信号进行循环存储,并将并行视频信号发送至帧控编码模块;2) After the cache module calculates the memory write address according to the location information of the video frame where the video stream is located and its own storage parameters, the parallel video signal is cyclically stored, and the parallel video signal is sent to the frame control encoding module; 3)帧控编码模块将来自高速缓存模块的并行视频信号直接编码后输出到DVI编码芯片,对并行视频信号的每一帧进行监控;3) The frame control encoding module directly encodes the parallel video signal from the cache module and outputs it to the DVI encoding chip to monitor each frame of the parallel video signal; 4)当监控到特定帧或问题帧时,通过人机接口控制高速缓存模块将当前内存中的并行视频信号发送至带文件系统的处理器模块;4) When a specific frame or problem frame is monitored, the cache module is controlled through the man-machine interface to send the parallel video signal in the current memory to the processor module with a file system; 5)带文件系统的处理器模块将并行视频信号发送至静态存储模块进行存储。5) The processor module with the file system sends the parallel video signal to the static storage module for storage. 2.根据权利要求1所述的3G-SDI/DVI便携式视频信号采集方法,其特征在于,还包括特定帧或问题帧的分析步骤,步骤如下:2. 3G-SDI/DVI portable video signal acquisition method according to claim 1, is characterized in that, also comprises the analysis step of specific frame or problem frame, and step is as follows: 6)通过人机接口控制带文件系统的处理器模块将静态存储模块中存储的并行视频信号按照规则读出,并存储到高速缓存模块的内存中;6) Control the processor module with file system through the man-machine interface to read out the parallel video signal stored in the static storage module according to the rules, and store it in the memory of the cache module; 7)高速缓存模块按照帧控编码模块的设置参数以帧的形式向帧控编码模块发送并行视频信号;7) The cache module sends parallel video signals to the frame control coding module in the form of frames according to the setting parameters of the frame control coding module; 8)帧控编码模块将并行视频信号发送到DVI编码芯片中输出。8) The frame control encoding module sends the parallel video signal to the DVI encoding chip for output. 3.根据权利要求1所述的3G-SDI/DVI便携式视频信号采集方法,其特征在于,步骤1)中还包括步骤:将并行视频信号与视频流所在视频帧的位置信息进行位宽转换后一起发送至高速缓存模块,位宽转换规则如下:设高速缓存模块中的内存数据位宽为a,并行视频信号的数据位宽为b,取c组并行视频信号存储到d个内存地址中,其中,c、d为a、b的公倍数的两个余数,且c>d。3. The 3G-SDI/DVI portable video signal collection method according to claim 1, characterized in that step 1) further includes the step of converting the bit width of the parallel video signal and the position information of the video frame where the video stream is located Send them to the cache module together, and the bit width conversion rules are as follows: set the memory data bit width in the cache module as a, and the data bit width of the parallel video signal as b, take c groups of parallel video signals and store them in d memory addresses, Wherein, c and d are the two remainders of the common multiple of a and b, and c>d. 4.根据权利要求2所述的3G-SDI/DVI便携式视频信号采集方法,其特征在于,步骤8)中,帧控编码模块采用倍帧、跳帧或者静帧的方式将并行视频信号发送到DVI编码芯片中输出。4. The 3G-SDI/DVI portable video signal acquisition method according to claim 2, wherein in step 8), the frame control encoding module sends the parallel video signal to the DVI encoding chip output.
CN201210556574.8A 2012-12-18 2012-12-18 A 3G-SDI/DVI Portable Video Signal Acquisition Method Expired - Fee Related CN102984506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210556574.8A CN102984506B (en) 2012-12-18 2012-12-18 A 3G-SDI/DVI Portable Video Signal Acquisition Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210556574.8A CN102984506B (en) 2012-12-18 2012-12-18 A 3G-SDI/DVI Portable Video Signal Acquisition Method

Publications (2)

Publication Number Publication Date
CN102984506A true CN102984506A (en) 2013-03-20
CN102984506B CN102984506B (en) 2016-08-10

Family

ID=47858199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210556574.8A Expired - Fee Related CN102984506B (en) 2012-12-18 2012-12-18 A 3G-SDI/DVI Portable Video Signal Acquisition Method

Country Status (1)

Country Link
CN (1) CN102984506B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702860A (en) * 2015-03-19 2015-06-10 深圳市载德光电技术开发有限公司 FPGA-based (field programmable gate array-based) video image switching system
CN104811666A (en) * 2015-04-27 2015-07-29 无锡天脉聚源传媒科技有限公司 Vehicle-mounted monitoring method and device
CN109587421A (en) * 2018-12-10 2019-04-05 南京威翔科技有限公司 A kind of HD-SDI/3G-SDI transmitting-receiving and real-time picture-in-picture switch output processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286873A (en) * 2008-05-05 2008-10-15 电子科技大学 An Ethernet error frame extraction interface device
CN101753938A (en) * 2008-12-22 2010-06-23 北京中星微电子有限公司 Method, system and equipment for storing video data in video monitoring system
CN101764921A (en) * 2009-12-25 2010-06-30 大连科迪视频技术有限公司 3G-SDI high-definition digital video frame synchronization system
CN101778204A (en) * 2010-02-06 2010-07-14 大连科迪视频技术有限公司 3G-SDI high-definition digital video-audio delay system
CN201623792U (en) * 2009-12-25 2010-11-03 康佳集团股份有限公司 LED display screen audio-video control device and LED display screen

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286873A (en) * 2008-05-05 2008-10-15 电子科技大学 An Ethernet error frame extraction interface device
CN101753938A (en) * 2008-12-22 2010-06-23 北京中星微电子有限公司 Method, system and equipment for storing video data in video monitoring system
CN101764921A (en) * 2009-12-25 2010-06-30 大连科迪视频技术有限公司 3G-SDI high-definition digital video frame synchronization system
CN201623792U (en) * 2009-12-25 2010-11-03 康佳集团股份有限公司 LED display screen audio-video control device and LED display screen
CN101778204A (en) * 2010-02-06 2010-07-14 大连科迪视频技术有限公司 3G-SDI high-definition digital video-audio delay system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702860A (en) * 2015-03-19 2015-06-10 深圳市载德光电技术开发有限公司 FPGA-based (field programmable gate array-based) video image switching system
CN104702860B (en) * 2015-03-19 2017-12-05 深圳市载德光电技术开发有限公司 Video image switching system based on FPGA
CN104811666A (en) * 2015-04-27 2015-07-29 无锡天脉聚源传媒科技有限公司 Vehicle-mounted monitoring method and device
CN109587421A (en) * 2018-12-10 2019-04-05 南京威翔科技有限公司 A kind of HD-SDI/3G-SDI transmitting-receiving and real-time picture-in-picture switch output processing method
CN109587421B (en) * 2018-12-10 2021-03-12 南京威翔科技有限公司 HD-SDI/3G-SDI transceiving and real-time picture-in-picture switching output processing method

Also Published As

Publication number Publication date
CN102984506B (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN107133011B (en) Multichannel data storage method of oscillograph
CN105700849B (en) Device, system and method for realizing PCM audio acquisition based on FPGA
CN103327265B (en) A kind of four road image synthesizing method and devices thereof based on FPGA
CN101778204B (en) 3G-SDI high-definition digital video and audio delay system
CN101938638A (en) Network Video Surveillance System Based on Resolution Hierarchical Transmission
CN103402068B (en) Uncompressed formula audio/video player system and player method
CN102253915A (en) Data acquisition and playback system
CN102243615B (en) Memory buffer management method supporting audio and video frame storage
CN102984506B (en) A 3G-SDI/DVI Portable Video Signal Acquisition Method
CN202121688U (en) Integrated intelligent pick-up head
CN103780877A (en) Massive video data storage and retrieval method based on h264 coding
CN112887682B (en) Multi-channel track image synchronous acquisition and storage system and method
CN103369365A (en) Audio and video synchronous recording device
CN103686039B (en) Multichannel video capture card and its processing method
CN101465145B (en) Recording apparatus
CN115866331A (en) Video frame sampling analysis method, device, equipment and storage medium
CN203027375U (en) A 3G-SDI/DVI portable video signal acquisition device
CN202818514U (en) Multichannel video collection card
CN204258949U (en) A kind of IMAQ playback board
CN104796728A (en) 4G-WIFI (fourth generation-wireless fidelity) high-definition network video server
CN204498285U (en) A kind of 4G-WIFI high-definition network video server
CN104156907A (en) FPGA-based infrared preprocessing storage system and FPGA-based infrared preprocessing storage method
CN204498286U (en) A kind of 4G-WIFI SD network video server
CN101202876A (en) Method for implementing synchronization of audio and picture by using audio frequency and video frequency composite channel in DVR
CN112637602A (en) JPEG interface and digital image processing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160810

Termination date: 20191218

CF01 Termination of patent right due to non-payment of annual fee