[go: up one dir, main page]

CN107360384B - High-speed video acquisition and transmission method - Google Patents

High-speed video acquisition and transmission method Download PDF

Info

Publication number
CN107360384B
CN107360384B CN201710528455.4A CN201710528455A CN107360384B CN 107360384 B CN107360384 B CN 107360384B CN 201710528455 A CN201710528455 A CN 201710528455A CN 107360384 B CN107360384 B CN 107360384B
Authority
CN
China
Prior art keywords
image
format
frame
high speed
speed image
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
Application number
CN201710528455.4A
Other languages
Chinese (zh)
Other versions
CN107360384A (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.)
XiAn Institute of Optics and Precision Mechanics of CAS
Original Assignee
XiAn Institute of Optics and Precision Mechanics of CAS
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 XiAn Institute of Optics and Precision Mechanics of CAS filed Critical XiAn Institute of Optics and Precision Mechanics of CAS
Priority to CN201710528455.4A priority Critical patent/CN107360384B/en
Publication of CN107360384A publication Critical patent/CN107360384A/en
Application granted granted Critical
Publication of CN107360384B publication Critical patent/CN107360384B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0117Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/10Adaptations for transmission by electrical cable

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明提供了一种高速视频采集传输方法,包括以下步骤:1)采集非标准格式的高速图像;非标准格式的高速图像为640*480@K1fps,高速图像格式为YCbCr;其中,K1=200或400;2)将非标准格式的高速图像按设定的映射规则映射成标准格式的高清视频数据;所述标准格式的高清视频数据为1920*1080@K2fps,高清图像格式为YCbCr;其中:K2=30或60;3)按设定的解映射规则将标准格式的高清视频数据恢复为非标准格式的高速图像数据;4)将恢复出来的非标准格式的高速图像数据进行HEVC/H265压缩编码;5)输出非标准格式的高速图像的压缩码流。通过该方法实现了非标准格式的高速图像长距离的无损高速传输。

The invention provides a high-speed video acquisition and transmission method, comprising the following steps: 1) acquiring a high-speed image in a non-standard format; the high-speed image in the non-standard format is 640*480@K 1 fps, and the high-speed image format is YCbCr; wherein, K 1 = 200 or 400; 2) Map the high-speed image in a non-standard format into high-definition video data in a standard format according to the set mapping rules; the high-definition video data in the standard format is 1920*1080@K 2 fps, and the high-definition image format is YCbCr; wherein: K 2 =30 or 60; 3) restore the high-definition video data of the standard format to the high-speed image data of the non-standard format according to the set demapping rule; 4) will restore the high-speed image of the non-standard format The data is compressed and encoded by HEVC/H265; 5) The compressed code stream of the high-speed image in the non-standard format is output. Through this method, the non-standard format high-speed image long-distance lossless high-speed transmission is realized.

Description

一种高速视频采集传输方法A high-speed video capture and transmission method

技术领域technical field

本发明属于信息数据传输技术领域,具体涉及一种高速视频采集传输方法。The invention belongs to the technical field of information data transmission, and in particular relates to a high-speed video acquisition and transmission method.

背景技术Background technique

在一些特殊场合或某些专门的领域中,需要使用特殊的高速摄像机拍摄和记录过程,例如:当拍摄物体爆炸的瞬间等快速变化的场景时,需要将图像数据远距离传送到后端的接收设备进行接收和数据处理。这些高速摄像机输出的图像格式通常是非标准的,并不是常见的标清、高清或超清的标准格式,无法采用常用的数字视频发送器、接收器进行传输。In some special occasions or some specialized fields, it is necessary to use special high-speed cameras to shoot and record the process. For example, when shooting fast-changing scenes such as the moment of the explosion of an object, the image data needs to be transmitted to the back-end receiving equipment over a long distance. For reception and data processing. The image formats output by these high-speed cameras are usually non-standard, not common SD, HD or UHD standard formats, and cannot be transmitted by common digital video transmitters and receivers.

数字相机输出图像时,常用的接口形式包括USB、1394(fire wire)、GE(Ethernet)、LVDS、CameraLink等。其中,USB接口特别适用于将相机直接连接到计算机显示,可支持各种分辨率和帧频,常用于各种标清、高清摄像头。1394接口传输速率高,占用CPU资源少,工作稳定,在数字摄像机上也有广泛的应用。千兆以太网(GE)传输速率高,价格低廉,使用于各种分辨率和帧频。CameraLink接口是目前的工业相机中最快的一种总线类型,一般用于高分辨率高速面阵相机,或者是线阵相机上。When the digital camera outputs images, the commonly used interface forms include USB, 1394 (fire wire), GE (Ethernet), LVDS, CameraLink, etc. Among them, the USB interface is particularly suitable for connecting the camera directly to the computer display, which can support various resolutions and frame rates, and is often used in various standard-definition and high-definition cameras. The 1394 interface has a high transmission rate, occupies less CPU resources, and works stably, and is also widely used in digital cameras. Gigabit Ethernet (GE) has high transfer rates, is inexpensive, and is used in a variety of resolutions and frame rates. The CameraLink interface is the fastest bus type in current industrial cameras, and is generally used in high-resolution, high-speed area scan cameras or line scan cameras.

USB2.0接口速率较低,在传输过程中需要CPU参与管理,占用及消耗资源较大,传输距离近,信号容易衰减。USB3.0速率有了很大提升,但需要CPU处理和传输距离近的缺点仍然没有解决。The speed of the USB2.0 interface is low, and the CPU needs to be involved in the management during the transmission process, which occupies and consumes a large amount of resources. The transmission distance is short, and the signal is easily attenuated. The speed of USB 3.0 has been greatly improved, but the shortcomings of requiring CPU processing and short transmission distance remain unsolved.

1394接口技术相对复杂,并且接口的普及率不高,已慢慢被市场淘汰。The 1394 interface technology is relatively complex, and the popularity of the interface is not high, and it has been gradually eliminated by the market.

千兆以太网要求图像的发送端、接收端都需要CPU参与进行TCP/IP协议的高速封包/解封包处理,需要连接对应的PHY器件、变压器芯片、RJ45接口,体积相对较大。Gigabit Ethernet requires that both the sending end and the receiving end of the image require the CPU to participate in the high-speed encapsulation/decapsulation processing of the TCP/IP protocol, and the corresponding PHY devices, transformer chips, and RJ45 interfaces need to be connected, and the volume is relatively large.

LVDS总线接口不能支持高速数据的传输,且有效的传输距离较短。The LVDS bus interface cannot support high-speed data transmission, and the effective transmission distance is short.

Camera Link接口体积较大,同时价格昂贵,传输距离短。The Camera Link interface is bulky, expensive, and has a short transmission distance.

因此现在急需解决的技术问题就是如何使用一种简单、低成本的装置将高速视频图像从远程高速相机中传输到后端的接收设备上进行处理。Therefore, the technical problem that needs to be solved urgently now is how to use a simple and low-cost device to transmit high-speed video images from a remote high-speed camera to a back-end receiving device for processing.

发明内容SUMMARY OF THE INVENTION

为了解决背景技术中的问题,本发明涉及一种高速视频采集传输方法,将非标准高速视频图像通过格式转化的方式实现了长距离的无损高速传输。In order to solve the problems in the background technology, the present invention relates to a high-speed video acquisition and transmission method, which realizes long-distance lossless high-speed transmission of non-standard high-speed video images through format conversion.

本发明的具体原理是:The concrete principle of the present invention is:

本发明旨在提供一种能够支持远距离传输的高速视频采集传输方法,采用将非标准格式的视频映射到标准的视频格式后再进行传输的方法,将640*480@K1fps的高速视频映射到符合BT.1120标准的1920*1080p@K2fps高清视频格式中,再将高清视频格式的数据进行解映射,恢复出640*480@K1fps高速视频数据后再进行编码输出。The present invention aims to provide a high-speed video acquisition and transmission method that can support long-distance transmission. The method of mapping non-standard format video to standard video format and then transmitting, converts 640*480@K 1 fps high-speed video Map to the 1920*1080p@K 2 fps high-definition video format that conforms to the BT.1120 standard, and then demap the data in the high-definition video format to restore 640*480@K 1 fps high-speed video data and then encode and output.

本发明的具体技术方案是:The concrete technical scheme of the present invention is:

本发明提供了一种高速视频采集传输方法,其特征在于,包括以下步骤:The present invention provides a high-speed video acquisition and transmission method, which is characterized in that it includes the following steps:

1)采集非标准格式的高速图像;1) Collect high-speed images in non-standard formats;

所述非标准格式的高速图像为640*480@K1fps,高速图像格式为YCbCr;其中,K1=200或400;The high-speed image in the non-standard format is 640*480@K 1 fps, and the high-speed image format is YCbCr; wherein, K 1 =200 or 400;

2)将非标准格式的高速图像按设定的映射规则映射成标准格式的高清视频数据;所述标准格式的高清视频数据为1920*1080@K2fps,图像格式为YCbCr;其中:K2=30或60;2) the high-speed image of non-standard format is mapped into the high-definition video data of standard format according to the mapping rule of setting; The high-definition video data of described standard format is 1920*1080@K 2 fps, and the image format is YCbCr; Wherein: K 2 =30 or 60;

3)按设定的解映射规则将标准格式的高清视频数据恢复为非标准格式的高速图像数据;3) restore the high-definition video data of the standard format to the high-speed image data of the non-standard format according to the set demapping rule;

4)将恢复出来的非标准格式的高速图像数据进行HEVC/H265压缩编码;4) performing HEVC/H265 compression coding on the recovered high-speed image data in a non-standard format;

5)输出非标准格式的高速图像的压缩码流。5) Output the compressed code stream of high-speed image in non-standard format.

上述步骤2)中设定的映射规则具体是:The mapping rules set in the above step 2) are specifically:

A1、定义K2帧符合BT.1120标准的高清视频图像的传输格式,每一帧标准的高清视频图像的传输格式中均设定有效图像区间,所述有效图像区间用于填充高速图像数据,该有效图像区间共计1920列和1080行,即2073600个字节;A1. Define the transmission format of K 2 frames of high-definition video images conforming to the BT.1120 standard. In the transmission format of each frame of standard high-definition video images, an effective image interval is set, and the effective image interval is used to fill high-speed image data. The valid image interval has a total of 1920 columns and 1080 rows, that is, 2073600 bytes;

B1、在第1帧高清视频格式的有效图像区间中第一个字节插入序号字节0,然后连续的嵌入第1-6帧高速图像,并分别编号为1~6,最后嵌入第7帧高速图像的前360行图像,并编号为7;B1. Insert the sequence number byte 0 into the first byte of the valid image interval of the first frame of high-definition video format, and then continuously embed the 1-6 frames of high-speed images, numbered 1 to 6 respectively, and finally embed the seventh frame The first 360 lines of high-speed images are numbered 7;

C1、在第2帧高清视频格式的有效图像区间中第一个字节插入序号字节1,然后嵌入第7帧高速图像的后120行,再连续嵌入第8-13帧高速图像,编号为8~13,最后嵌入第14帧高速图像的前240行,并编号为14;C1. Insert the serial number byte 1 into the first byte of the valid image interval of the second frame of high-definition video format, then embed the last 120 lines of the seventh frame of high-speed image, and then continuously embed the 8-13th frame of high-speed image, numbered as 8 to 13, and finally the first 240 lines of the 14th high-speed image are embedded and numbered 14;

D1、在第3帧高清视频格式的有效图像区间中第一个字节插入序号字节2,然后嵌入第14帧高速图像的后240行,再连续嵌入第15-20帧高速图像,编号为15~20,第3帧高清视频格式的有效图像区间容纳第20帧640*480格式图像后的多余字节统一填充为00;至此,就将连续的20帧高速图像装载入连续的3帧高清视频格式的高速图像有效图像区间中;D1. Insert the serial number byte 2 into the first byte of the valid image interval of the 3rd frame of high-definition video format, then embed the last 240 lines of the 14th frame of high-speed image, and then continuously embed the 15th-20th frame of high-speed image, numbered as From 15 to 20, the valid image interval of the 3rd frame of high-definition video format accommodates the redundant bytes after the 20th frame of 640*480 format image. In the effective image range of high-speed images in high-definition video format;

E1、重复步骤B1~D1,直到将剩余的第21~K1帧高速图像装载到第4~K2列高清视频格式的有效图像区间中。E1. Repeat steps B1 to D1 until the remaining 21st to K1 frames of high - speed images are loaded into the 4th to K2 columns of high - definition video format valid image intervals.

上述步骤3)中设定的解映射规则具体是:The demapping rules set in the above-mentioned step 3) are specifically:

A2、获取第1帧高清视频格式的有效图像区间中的数据,判断第一个字节,如果第一个字节为0则执行步骤B2,若第一个字节为1则执行步骤C2,若第一个字节为2则执行步骤D2;A2. Obtain the data in the valid image interval of the first frame of high-definition video format, and determine the first byte. If the first byte is 0, execute step B2; if the first byte is 1, execute step C2, If the first byte is 2, execute step D2;

B2、连续取出第1帧高清视频格式的有效图像区间中第1-6帧高速图像直接进行压缩编码,编号分别为1~6,然后将第7帧高速图像的前360行图像进行缓存,然后返回步骤A2;B2. Continuously take out the 1st to 6th frames of high-speed images in the valid image interval of the first frame of high-definition video format and directly compress and encode them, and the numbers are 1 to 6 respectively, and then cache the first 360 lines of the 7th frame of high-speed images, and then Return to step A2;

C2、先取出第2帧高清视频格式的有效图像区间中第7帧高速图像的后120行,将其与步骤B2中缓存的第7帧高速图像的前360行图像进行拼接后进行压缩编码,然后再连续取出第8-13帧高速图像进行压缩编码,帧编号为8~13,最后将第14帧高速图像的前240行进行缓存,最后返回步骤A2;C2. First take out the last 120 lines of the seventh frame of high-speed image in the valid image interval of the second frame of high-definition video format, splicing it with the first 360 lines of the image of the seventh frame of high-speed image cached in step B2, and then perform compression coding, Then continuously take out the 8-13 frames of high-speed images for compression coding, the frame numbers are 8 to 13, and finally cache the first 240 lines of the 14th frame of high-speed images, and finally return to step A2;

D2、先取出第3帧高清视频格式的有效图像区间中第14帧高速图像的后240行,与步骤C2中缓存的第14帧高速图像的前240行图像进行拼接后进行压缩编码,然后连续取出第15~20帧高速图像进行压缩编码准备,帧编号15~20,将后面剩余的字节丢弃,最后返回步骤A2;D2. First take out the last 240 lines of the 14th high-speed image in the valid image interval of the third frame of high-definition video format, splicing with the first 240 lines of the 14th high-speed image cached in step C2, and then compressing and encoding, and then continuously Take out the 15th to 20th frames of high-speed images to prepare for compression coding, the frame numbers are 15 to 20, discard the remaining bytes, and finally return to step A2;

E2、重复步骤A2~D2,直到将K2帧高清视频格式的有效图像区间中的数据全部接收完毕。E2. Repeat steps A2 to D2 until all the data in the valid image interval of the K 2 frame high-definition video format is received.

本发明的有益效果是:The beneficial effects of the present invention are:

本发明中采用的高速视频传输方法,在整个过程中将非标准格式的高速图像经过采集、映射、解映射、传输、压缩后,不仅能够保持原始视频的完整性,正确完整记录输出的原始数据,同时实现了高速视频数据的远程无损传输。The high-speed video transmission method adopted in the present invention can not only maintain the integrity of the original video, but also correctly and completely record the output original data after collecting, mapping, demapping, transmitting and compressing the high-speed images in non-standard formats in the whole process. , while realizing the long-distance lossless transmission of high-speed video data.

附图说明Description of drawings

图1为本发明的系统框架图;1 is a system frame diagram of the present invention;

图2为第1帧高清视频图像映射示意图;2 is a schematic diagram of the first frame high-definition video image mapping;

图3为第2帧高清视频图像映射示意图;3 is a schematic diagram of the second frame high-definition video image mapping;

图4为第3帧高清视频图像映射示意图;4 is a schematic diagram of the third frame high-definition video image mapping;

图5为数据解映射流程图。Figure 5 is a flow chart of data demapping.

具体实施方式Detailed ways

参见图1,本实施例中提供了一种高速视频采集传输方法来对本发明需要保护的传输方法进行更加详细的说明:Referring to FIG. 1, a high-speed video capture and transmission method is provided in this embodiment to describe in more detail the transmission method that needs to be protected in the present invention:

该系统包括数据发送端和接收端两部分,发送端和接收端均安装有SDI接口;发送端与接收端通过SDI同轴电缆传输数据;The system includes a data sending end and a receiving end, both of which are equipped with SDI interfaces; the sending end and the receiving end transmit data through SDI coaxial cables;

其中,发送端包括高速图像传感器以及集成在FPGA芯片上的视频采集模块以及数据映射模块;Among them, the sending end includes a high-speed image sensor, a video acquisition module and a data mapping module integrated on the FPGA chip;

接收端包括集成在ARM芯片上的数据解映射模块、视频编码模块以及视频输出模块;The receiving end includes a data demapping module, a video encoding module and a video output module integrated on the ARM chip;

其中:高速图像传感器用于输出非标准格式的高速图像;所述非标准格式的高速图像为640*480@K1fps,高速图像格式为YCbCr;其中,K1=200或400;Wherein: the high-speed image sensor is used to output a high-speed image in a non-standard format; the high-speed image in the non-standard format is 640*480@K 1 fps, and the high-speed image format is YCbCr; wherein, K 1 =200 or 400;

视频采集模块采集高速图像传感器输出的非标准格式的高速图像,然后发送给数据映射模块;The video acquisition module collects the non-standard format high-speed image output by the high-speed image sensor, and then sends it to the data mapping module;

数据映射模块负责将非标准格式的高速图像按设定的映射规则映射成标准格式的高清视频数据;所述标准格式的高清视频数据为1920*1080@K2fps,图像格式为YCbCr;其中:K2=30或60;The data mapping module is responsible for mapping the high-speed image of the non-standard format into the high-definition video data of the standard format according to the set mapping rule; The high-definition video data of the standard format is 1920*1080@K 2 fps, and the image format is YCbCr; Wherein: K 2 =30 or 60;

数据解映射模块按设定的解映射规则将标准格式的高清视频数据恢复成640*480@K1fps视频;The data demapping module restores the standard format high-definition video data to 640*480@K 1 fps video according to the set demapping rules;

视频编码模块将恢复出来的640*480@K1fps视频进行HEVC/H265压缩编码;The video encoding module performs HEVC/H265 compression encoding on the recovered 640*480@K 1 fps video;

视频输出模块用于输出640*480@K1fps的压缩码流。The video output module is used to output 640*480@K 1 fps compressed stream.

基于该系统本发明的传输方法具体步骤如下:The specific steps of the transmission method of the present invention based on the system are as follows:

步骤1)高速图形传感器输出非标准格式高速图像数据并通过视频采集模块发送至数据映射模块;Step 1) The high-speed graphic sensor outputs non-standard format high-speed image data and sends it to the data mapping module through the video capture module;

所述非标准格式的高速图像为640*480@K1fps,高速图像源格式为YCbCr;其中,K1=200或400;The high-speed image in the non-standard format is 640*480@K 1 fps, and the high-speed image source format is YCbCr; wherein, K 1 =200 or 400;

步骤2)数据映射模块将非标准格式的高速图像按设定的映射规则映射成标准格式的高清视频数据;所述标准格式的高清视频数据为1920*1080@K2fps,图像格式为YCbCr;其中:K2=30或60;Step 2) data mapping module maps the high-speed image of non-standard format into the high-definition video data of standard format according to the set mapping rule; The high-definition video data of described standard format is 1920*1080@K 2 fps, and the image format is YCbCr; Wherein: K 2 =30 or 60;

映射规则具体如下(本实施例中K1=400,K2=60):The specific mapping rules are as follows (in this embodiment, K 1 =400, K 2 =60):

A1、在数据映射模块中定义60帧符合BT.1120标准的高清视频图像的传输格式,每一帧标准的高清视频图像的传输格式中均设定有效图像区间,所述有效图像区间用于填充高速图像数据,该有效图像区间共计1920列和1080行,即2073600个字节;A1. Define the transmission format of 60 frames of high-definition video images conforming to the BT.1120 standard in the data mapping module, and set a valid image interval in the transmission format of each frame of standard high-definition video images, and the valid image interval is used to fill High-speed image data, the effective image interval has a total of 1920 columns and 1080 rows, that is, 2073600 bytes;

如图2所示,B1、在第1帧高清视频格式的有效图像区间中第一个字节插入序号字节0,然后连续的嵌入第1-6帧高速图像,并分别编号为1~6,最后嵌入第7帧高速图像的前360行图像,并编号为7;As shown in Figure 2, B1, insert the sequence number byte 0 into the first byte of the valid image interval of the first frame of high-definition video format, and then insert the 1st to 6th frames of high-speed images consecutively, and number 1 to 6 respectively , and finally the first 360 lines of the 7th high-speed image are embedded and numbered 7;

如图3所示,C1、在第2帧高清视频格式的有效图像区间中第一个字节插入序号字节1,然后嵌入第7帧高速图像的后120行,再连续嵌入第8-13帧高速图像,编号为8~13,最后嵌入第14帧高速图像的前240行,并编号为14;As shown in Figure 3, C1, insert sequence number byte 1 into the first byte of the valid image interval of the second frame of high-definition video format, then embed the last 120 lines of the seventh frame of high-speed image, and then continuously embed the 8-13 Frame high-speed images, numbered 8 to 13, and finally embedded in the first 240 lines of the 14th high-speed image, numbered 14;

如图4所示,D1、在第3帧高清视频格式的有效图像区间中第一个字节插入序号字节2,然后嵌入第14帧高速图像的后240行,再连续嵌入第15-20帧高速图像,编号为15~20,第3帧高清视频格式的有效图像区间容纳第20帧640*480格式图像后的多余字节统一填充为00;至此,就将连续的20帧高速图像装载入连续的3帧高清视频格式的高速图像有效图像区间中;As shown in Figure 4, D1, insert the sequence number byte 2 into the first byte of the valid image interval of the 3rd frame of high-definition video format, then embed the last 240 lines of the 14th frame of high-speed image, and then embed the 15th-20th consecutively. The frames of high-speed images are numbered 15 to 20. The valid image interval of the third frame of high-definition video format accommodates the redundant bytes after the 20th frame of 640*480 format images. Load continuous 3 frames of high-speed images in the high-definition video format into the effective image interval;

E1、重复步骤B1~D1,直到将剩余的第21~400帧高速图像装载到第4~60列高清视频格式的有效图像区间中。E1. Repeat steps B1 to D1 until the remaining 21st to 400th frames of high-speed images are loaded into the effective image interval of the 4th to 60th columns of the high-definition video format.

步骤3)发送端通过同轴线缆将标准格式的高清视频数据输送至接收端;Step 3) The transmitting end transmits the standard format high-definition video data to the receiving end through the coaxial cable;

步骤4)接收端的数据解映射模块按设定的解映射规则将标准格式的高清视频数据恢复出非标准格式的高速图像数据;Step 4) the data demapping module of the receiving end restores the high-speed image data of the non-standard format from the high-definition video data of the standard format according to the set demapping rule;

下面结合附图5对本文提出的解映射规则进行介绍(本实施例中K1=400,K2=60):The demapping rules proposed in this paper will be introduced below with reference to FIG. 5 (K 1 =400, K 2 =60 in this embodiment):

A2、数据解映射模块获取第1帧高清视频格式的有效图像区间中的数据,判断第一个字节,如果第一个字节为0则执行步骤B2,若第一个字节为1则执行步骤C2,若第一个字节为2则执行步骤D2;A2. The data demapping module obtains the data in the valid image interval of the first frame of high-definition video format, judges the first byte, if the first byte is 0, execute step B2, if the first byte is 1, then Execute step C2, if the first byte is 2, execute step D2;

B2、连续取出第1帧高清视频格式的有效图像区间中第1-6帧高速图像直接发送给视频编码模块,编号分别为1~6,然后取出第7帧高速图像的前360行图像进行缓存,然后返回步骤A2;B2. Continuously take out the 1st to 6th frames of high-speed images in the valid image interval of the first frame of high-definition video format and directly send them to the video coding module, the numbers are 1 to 6 respectively, and then take out the first 360 lines of the 7th frame of high-speed images for caching , and then return to step A2;

C2、先取出第2帧高清视频格式的有效图像区间中第7帧高速图像的后120行,将其与步骤B2中缓存的第7帧高速图像的前360行图像进行拼接后发送给视频编码模块,然后再连续取出第8-13帧高速图像发送给视频编码模块,帧编号为8~13,最后将第14帧高速图像的前240行进行缓存,最后返回步骤A2;C2. First take out the last 120 lines of the seventh frame of high-speed image in the valid image interval of the second frame of high-definition video format, splicing it with the first 360 lines of the image of the seventh frame of high-speed image cached in step B2, and then send it to the video encoding module, and then continuously take out the 8-13 frames of high-speed images and send them to the video coding module, the frame numbers are 8 to 13, and finally cache the first 240 lines of the 14th frame of high-speed images, and finally return to step A2;

D2、先取出第3帧高清视频格式的有效图像区间中第14帧高速图像的后240行,与步骤C2中缓存的第14帧高速图像的前240行图像进行拼接后发送给视频编码模块,然后连续取出第15~20帧高速图像发送给视频编码模块,帧编号15~20,将后面剩余的字节丢弃,最后返回步骤A2;D2. First take out the last 240 lines of the 14th frame of high-speed image in the valid image interval of the third frame of high-definition video format, splicing with the first 240 lines of the image of the 14th frame of high-speed image cached in step C2, and then send it to the video coding module, Then continuously take out the 15th to 20th frames of high-speed images and send them to the video coding module, the frame numbers are 15 to 20, discard the remaining bytes, and finally return to step A2;

E2、重复步骤A2~D2,直到将60帧高清视频格式的有效图像区间中的数据全部接收完毕。E2. Repeat steps A2 to D2 until all data in the valid image interval of the 60-frame high-definition video format is received.

步骤5)将恢复出来的非标准格式的高速图像数据进行Step 5) Perform the restored high-speed image data in a non-standard format

HEVC/H265压缩编码;HEVC/H265 compression encoding;

步骤6)输出非标准格式的高速图像的压缩码流。Step 6) Output the compressed code stream of the high-speed image in non-standard format.

Claims (1)

1. a kind of high-speed video collecting and transmitting method, which comprises the following steps:
1) high speed image of noncanonical format is acquired;
The high speed image of the noncanonical format is 640*480@K1Fps, high speed image format are YCbCr;Wherein, K1=200 or 400;
2) high speed image of noncanonical format is mapped to the HD video data of reference format by the mapping ruler of setting;
The mapping ruler is specifically:
A1, K is defined2Frame meets the transformat of the high clear video image of BT.1120 standard, the HD video figure of each frame standard Effective image section is set in the transformat of picture, the effective image section is for filling high speed image data, this is effectively Total 1920 column of image interval and 1080 rows, i.e. 2073600 bytes;
B1, first character section is inserted into serial number byte 0 in the effective image section of the 1st clear video format of vertical frame dimension, then continuously It is embedded in 1-6 frame high speed image, and number is 1~6 respectively, is finally embedded in the preceding 360 row image of the 7th frame high speed image, and compiled Number be 7;
C1, first character section is inserted into serial number byte 1 in the effective image section of the 2nd clear video format of vertical frame dimension, is then inserted into the 7th Rear 120 row of frame high speed image, then it is consecutively embedded 8-13 frame high speed image, number is 8~13, is finally embedded in the 14th vertical frame dimension speed Preceding 240 row of image, and numbering is 14;
D1, first character section is inserted into serial number byte 2 in the effective image section of the 3rd clear video format of vertical frame dimension, is then inserted into the Rear 240 row of 14 frame high speed images, then it is consecutively embedded 15-20 frame high speed image, number is the 15~20, the 3rd frame HD video Extra byte after the 20th frame 640*480 format-pattern of effective image section receiving of format is uniformly filled with 00;So far, just will Continuous 20 vertical frame dimension speed loading images enter in the effective image section of the continuous clear video format of 3 vertical frame dimension;
E1, step B1~D1 is repeated, until by remaining 21~K1Vertical frame dimension speed loading images are to 4~K2Column HD video lattice In the effective image section of formula;
The HD video data of the reference format are 1920*1080@K2Fps, high-definition image format are YCbCr;Wherein: K2= 30 or 60;
3) the HD video data of reference format are reverted to the high speed image number of noncanonical format by the demapping rule of setting According to;
Demapping rule is specifically:
A2, obtain the 1st clear video format of vertical frame dimension effective image section in data, judge first character section, if first Byte thens follow the steps B2 for 0, if first character section thens follow the steps C2 for 1, if first character section thens follow the steps D2 for 2;
B2, it is continuously withdrawn 1-6 frame high speed image in the effective image section of the 1st clear video format of vertical frame dimension and directly carries out compression volume Code, number are respectively 1~6, are then cached 360 row images before the 7th frame high speed image, then return step A2;
C2, rear 120 row for first taking out the 7th frame high speed image in the effective image section of the 2nd clear video format of vertical frame dimension, by itself and step The preceding 360 row image of the 7th frame high speed image cached in rapid B2 carries out compressed encoding after carrying out sequential concatenation, then continuously takes again 8-13 frame high speed image carries out compressed encoding out, and frame number is 8~13, finally takes out preceding 240 row of the 14th frame high speed image It is cached, finally returns to step A2;
D2, rear 240 row for first taking out the 14th frame high speed image in the effective image section of the 3rd clear video format of vertical frame dimension, with step The preceding 240 row image of the 14th frame high speed image cached in C2 carries out compressed encoding after carrying out sequential concatenation, is then continuously withdrawn 15th~20 frame high speed image carries out compressed encoding, and frame number 15~20 remaining byte will abandon below, and finally return to step A2;
E2, step A2~D2 is repeated, until by K2Data in the effective image section of the clear video format of vertical frame dimension have all received Finish;
4) high speed image data of the noncanonical format recovered is subjected to HEVC/H265 compressed encoding;
5) compressed bit stream of the high speed image of noncanonical format is exported.
CN201710528455.4A 2017-07-01 2017-07-01 High-speed video acquisition and transmission method Expired - Fee Related CN107360384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710528455.4A CN107360384B (en) 2017-07-01 2017-07-01 High-speed video acquisition and transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710528455.4A CN107360384B (en) 2017-07-01 2017-07-01 High-speed video acquisition and transmission method

Publications (2)

Publication Number Publication Date
CN107360384A CN107360384A (en) 2017-11-17
CN107360384B true CN107360384B (en) 2019-06-28

Family

ID=60273432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710528455.4A Expired - Fee Related CN107360384B (en) 2017-07-01 2017-07-01 High-speed video acquisition and transmission method

Country Status (1)

Country Link
CN (1) CN107360384B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495707B (en) * 2018-12-26 2020-06-26 中国科学院西安光学精密机械研究所 A high-speed video capture and transmission method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997615A (en) * 2014-05-05 2014-08-20 中国科学院长春光学精密机械与物理研究所 FPGA-based Camera-Link-to-SD/HD-SDI device
CN105917647A (en) * 2013-11-14 2016-08-31 Ksi数据科技公司 A system and method for managing and analyzing multimedia information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6873368B1 (en) * 1997-12-23 2005-03-29 Thomson Licensing Sa. Low noise encoding and decoding method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105917647A (en) * 2013-11-14 2016-08-31 Ksi数据科技公司 A system and method for managing and analyzing multimedia information
CN103997615A (en) * 2014-05-05 2014-08-20 中国科学院长春光学精密机械与物理研究所 FPGA-based Camera-Link-to-SD/HD-SDI device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SDI视频接口转换与采集系统的设计与实现;祁超;《中国优秀硕士学位论文全文数据库信息科技辑》;20120731(第7期);全文 *

Also Published As

Publication number Publication date
CN107360384A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN101662671B (en) Image Transmission Method of Multiple Digital Cameras Based on FPGA
CN110896431B (en) Non-compression high-definition video transmission method and system
CN104038739A (en) Method and device for utilizing video scanning two-dimensional code to achieve unidirectional data transmission under network physical isolation state
CN103188479A (en) Video monitoring system and video monitoring method based on optical fiber interface
CN107231540B (en) High-speed video acquisition and transmission system
CN109495707B (en) A high-speed video capture and transmission method
US20140022383A1 (en) Surveillance system, image compression serializer and image decompression deserializer
CN113099133A (en) Method for transmitting high-bandwidth camera data by serial deserializer link
CN107360380B (en) A dual-rate compression camera device and its host computer decoding device
CN103139550B (en) One has output high definition three code stream video camera and video code flow complex method
CN103705260A (en) Data transmitting system of digital medical imaging device based on optical fiber communications
CN107360384B (en) High-speed video acquisition and transmission method
CN117319591B (en) Video transmission method, device, computer readable storage medium and equipment
CN102263936A (en) A CCD image processing and transmission scheme and its device
CN104683768A (en) Embedded type intelligent video analysis system
CN111212285A (en) Hardware video coding system and control method of hardware video coding system
CN202206464U (en) Novel SDI panoramic camera
CN206759625U (en) Dual code stream video system
CN203677109U (en) Optical fiber communication-based data transmission system of digital medical imaging equipment
CN114866733A (en) Low-delay video processing method, system and device
CN202059481U (en) Digital high definition video camera based on general hardware
CN207443037U (en) A kind of video monitoring system based on FPGA
CN112995557B (en) Parallel processing method and device for multichannel image
CN103414898A (en) Method and system for collecting high-resolution video
CN104639873A (en) Quasi real-time high-definition video monitoring method

Legal Events

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

Granted publication date: 20190628

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