CN103248964B - Based on the Vehicular video transmission system of RTP/RTCP - Google Patents
Based on the Vehicular video transmission system of RTP/RTCP Download PDFInfo
- Publication number
- CN103248964B CN103248964B CN201310117793.0A CN201310117793A CN103248964B CN 103248964 B CN103248964 B CN 103248964B CN 201310117793 A CN201310117793 A CN 201310117793A CN 103248964 B CN103248964 B CN 103248964B
- Authority
- CN
- China
- Prior art keywords
- video
- module
- network
- vehicle
- quality
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 78
- 230000006835 compression Effects 0.000 claims abstract description 32
- 238000007906 compression Methods 0.000 claims abstract description 32
- 238000000034 method Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 7
- 230000033001 locomotion Effects 0.000 claims description 4
- 238000013139 quantization Methods 0.000 claims description 4
- 238000004088 simulation Methods 0.000 claims description 2
- 230000001105 regulatory effect Effects 0.000 claims 3
- 230000003750 conditioning effect Effects 0.000 claims 1
- NUHSROFQTUXZQQ-UHFFFAOYSA-N isopentenyl diphosphate Chemical compound CC(=C)CCO[P@](O)(=O)OP(O)(O)=O NUHSROFQTUXZQQ-UHFFFAOYSA-N 0.000 abstract description 3
- 238000013461 design Methods 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000010365 information processing Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000000991 chicken egg Anatomy 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
一种基于RTP/RTCP的车载视频传输系统,其特征在于,是由网络传输控制模块和若干N个可以移动的客户端共同构建成了本发明整个车载视频传输系统,各个车载终端形成VANET网络,所述客户端为安放于车内的车载终端,每个车载终端都安装有Intel?IPP库,所述车载视频传输系统为客户/服务器模式。本发明通过设计基于RTP/RTCP的车载视频传输系统,考虑到视频压缩参数不同对最终的传输质量会有影响,动态地根据系统检测的丢包率,实时调节视频压缩质量,本发明系统可动态调整视频传输质量。
A vehicle-mounted video transmission system based on RTP/RTCP is characterized in that the entire vehicle-mounted video transmission system of the present invention is jointly constructed by a network transmission control module and some N movable clients, and each vehicle-mounted terminal forms a VANET network, The client is a vehicle-mounted terminal placed in the vehicle, and each vehicle-mounted terminal is equipped with Intel? IPP library, the vehicle video transmission system is client/server mode. The present invention designs a vehicle-mounted video transmission system based on RTP/RTCP, considers that different video compression parameters will affect the final transmission quality, dynamically adjusts the video compression quality in real time according to the packet loss rate detected by the system, and the system of the present invention can dynamically Adjust video transmission quality.
Description
技术领域 technical field
本发明涉及一种车载无线网络通信技术领域的视频传输系统。 The invention relates to a video transmission system in the technical field of vehicle wireless network communication.
背景技术 Background technique
随着交通运输和信息产业的发展,基于车辆网络的各种视频运用受到人们的广泛关注。车辆安全辅助驾驶系统、无人驾驶车系统、超出视距外的实时路况监控系统、实时语音视频通讯系统以及多媒体娱乐信息共享系统等在保障交通安全、提高交通效率、丰富人们生活等方面具有重要的意义。这些系统的构建都将必不可少地涉及到视频在车辆网络上的编码与传输。视频技术在有线网络和无线网络中,已经实现了视频会议、视频点播等应用的成功商业化。如何在车载无线网络通信中实现车与车之间流畅的视频传输及视频共享,是目前车载无线网络研究领域的一个热点。 With the development of transportation and information industry, various video applications based on vehicle networks have attracted widespread attention. Vehicle safety assisted driving systems, unmanned vehicle systems, real-time road condition monitoring systems beyond the line of sight, real-time audio and video communication systems, and multimedia entertainment information sharing systems play an important role in ensuring traffic safety, improving traffic efficiency, and enriching people's lives. meaning. The construction of these systems will inevitably involve the encoding and transmission of video on the vehicle network. Video technology has successfully commercialized applications such as video conferencing and video-on-demand in wired and wireless networks. How to achieve smooth video transmission and video sharing between vehicles in the vehicle wireless network communication is a hot spot in the field of vehicle wireless network research.
首先,车辆网络通信极其不稳定。物体对信号的反射、车辆网络的高速移动特性、道路结构及路边环境的复杂性等,使得车辆自组织网络信道特性不同于一般的静态或低速率运动的Adhoc网络。车辆自组织网络节点间的数据传输质量依赖于特定的传输场景。鉴于车辆自组织网络时好时坏的通信特性,若要进行实时视频通信,得到的视频质量必然随着信道而变化。倘若视频压缩模块输出的视频质量较好,在信道变坏的时候,往往容易发生信道拥塞。反之视频压缩输出视频质量较差,适合在信道不稳定或者是较差的情况,但是无法充分利用信道好的时间的带宽资源。 First, vehicle network communication is extremely unstable. The reflection of the signal by the object, the high-speed movement characteristics of the vehicle network, the complexity of the road structure and the roadside environment, etc., make the channel characteristics of the vehicle self-organizing network different from the general static or low-speed Adhoc network. The quality of data transmission between nodes in a vehicle ad hoc network depends on specific transmission scenarios. In view of the up-and-down communication characteristics of vehicular ad hoc networks, if real-time video communication is to be performed, the quality of the obtained video must vary with the channel. If the video quality output by the video compression module is good, when the channel goes bad, channel congestion tends to occur easily. On the contrary, the output video quality of video compression is poor, which is suitable for unstable or poor channel conditions, but it cannot make full use of the bandwidth resources when the channel is good.
其次,视频帧也有其独有的特性。视频的压缩以GOP为单位。GOP里面包含了不同的帧类型:I帧、P帧和B帧。丢失不同类型的帧带来的损失并不一样。I帧的丢失,会对整个GOP里的正确解码造成影响。为了尽量降低丢掉的I帧造成的无法解码,通常的解决办法是减少GOP的长度。然而,GOP长度减少,I帧增多,压缩的效率降低,产生的码率会变大,导致数据量变大。数据量变大,相应的UDP传输包也增多,如果遇到网络拥塞等情况,又潜在地增大了丢包数。因而,丢包率和GOP的长度,是一个“鸡-蛋”悖论。如果以丢包率作为一个衡量网络传输信道稳定性的参数,主动地对GOP大小和视频的码率或其它压缩参数进行调节,可以取得一个相对理想的传输效果。 Second, video frames also have their own unique characteristics. Video compression is in units of GOP. GOP contains different frame types: I frame, P frame and B frame. The losses caused by the loss of different types of frames are not the same. The loss of an I frame will affect the correct decoding in the entire GOP. In order to minimize the failure of decoding caused by lost I frames, the usual solution is to reduce the length of the GOP. However, as the GOP length decreases, the number of I frames increases, the efficiency of compression decreases, and the generated code rate increases, resulting in an increase in the amount of data. As the amount of data increases, the corresponding UDP transmission packets also increase. If network congestion occurs, the number of packet loss will potentially increase. Therefore, the packet loss rate and the length of the GOP are a "chicken-egg" paradox. If the packet loss rate is used as a parameter to measure the stability of the network transmission channel, and the GOP size and video bit rate or other compression parameters are actively adjusted, a relatively ideal transmission effect can be achieved.
以下是对本说明书中部分术语的加注: The following are notes on some terms in this manual:
Adhoc网络(能够临时快速自动组网的对等式多跳移动网络) Adhoc network (peer-to-peer multi-hop mobile network capable of temporary fast automatic networking)
GOP(GroupOfPicture,画面组,一个GOP就是一组连续的画面) GOP (GroupOfPicture, picture group, a GOP is a group of continuous pictures)
UDP(UserDatagramProtocol的简称,不属于连接型协议,因而具有资源消耗小,处理速度快的优点,所以通常音频、视频和普通数据在传送时使用UDP较多,因为它们即使偶尔丢失一两个数据包,也不会对接收结果产生太大影响。UDP协议的主要作用是将网络数据流量压缩成数据包的形式。) UDP (the abbreviation of UserDatagramProtocol is not a connection protocol, so it has the advantages of low resource consumption and fast processing speed, so usually audio, video and ordinary data use UDP more when transmitting, because even if they occasionally lose one or two data packets , and will not have much impact on the receiving results. The main function of the UDP protocol is to compress network data traffic into the form of data packets.)
DirectShow(DirectShow是一种开放式的开发环境,可以根据需要定制自己的组件) DirectShow (DirectShow is an open development environment, you can customize your own components as needed)
VANET(VehicularAd-hocNETwork,车辆自组织网络) VANET (VehicularAd-hocNETwork, vehicle ad hoc network)
IntelIPP库(“IntelIntegratedPerformancePrimitives”是一套跨平台的软件函数库,它提供了广泛的多媒体功能,例如音频解码器、图像处理、信号处理、语音压缩和加密机制) IntelIPP library ("Intel Integrated Performance Primitives" is a set of cross-platform software function libraries that provide a wide range of multimedia functions, such as audio decoders, image processing, signal processing, voice compression and encryption mechanisms)
NS2(NS2是一个仿真软件,可以对通信网络协议进行仿真的工具) NS2 (NS2 is a simulation software, a tool that can simulate communication network protocols)
上述术语本身已是本领域公知的内容,因此相关内容不该认定为公开不充分。 The above terminology itself is already known in the art, so the related content should not be regarded as insufficient disclosure.
发明内容 Contents of the invention
本发明提供一种基于RTP/RTCP的车载视频传输系统,通过动态地根据系统检测的丢包率,实时调节视频压缩质量,本发明系统可动态调整视频传输质量。 The invention provides a vehicle-mounted video transmission system based on RTP/RTCP. By dynamically adjusting the video compression quality in real time according to the packet loss rate detected by the system, the system of the invention can dynamically adjust the video transmission quality.
为达到上述目的,本发明系统技术方案表征为: In order to achieve the above object, the system technical solution of the present invention is characterized as:
一种基于RTP/RTCP的车载视频传输系统,其特征在于,是由网络传输控制模块和若干N个可以移动的客户端共同构建成了本发明整个车载视频传输系统,各个车载终端形成VANET网络,所述客户端为可以安放于车内的车载终端,每个车载终端都安装有IntelIPP库,所述车载视频传输系统为客户/服务器模式。每个车载终端共包括5个功能子模块,它们是视频采集模块、视频编解码模块、信息处理模块、视频播放模块、文件存储模块,这些功能子模块都构建在所述IntelIPP库上,其中:所述视频采集模块用于视频数据的采集,从传感器硬件设备获取视频原始数据,或者从文件视频流等获得视频原始数据,视频采集模块分别与视频播放模块、视频编码模块连接,用于本地显示视频文件或者传输前的编码压缩; A vehicle-mounted video transmission system based on RTP/RTCP is characterized in that the entire vehicle-mounted video transmission system of the present invention is jointly constructed by a network transmission control module and some N movable clients, and each vehicle-mounted terminal forms a VANET network, The client is a vehicle-mounted terminal that can be placed in a vehicle, and each vehicle-mounted terminal is equipped with an IntelIPP library, and the vehicle-mounted video transmission system is a client/server mode. Each vehicle-mounted terminal comprises 5 functional sub-modules altogether, and they are video acquisition module, video codec module, information processing module, video playback module, file storage module, and these functional sub-modules are all constructed on the described IntelIPP storehouse, wherein: The video acquisition module is used for the acquisition of video data, obtains video original data from sensor hardware equipment, or obtains video original data from file video streams, etc., and the video acquisition module is respectively connected with a video playback module and a video encoding module for local display Encoding and compression of video files or before transmission;
所述视频编解码模块用于减少传输视频数据冗余; The video codec module is used to reduce transmission video data redundancy;
所述信息处理模块,为完成对视频采集模块数据的预处理以及视频压缩运算; The information processing module is to complete the preprocessing and video compression operation of the data of the video acquisition module;
所述视频播放模块分别与视频采集模块和视频解码模块连接,用于播放显示本地采集的视频数据数据或者从VANET网络传输来的其他移动车载终端解码后的视频数据; The video playing module is connected with the video acquisition module and the video decoding module respectively, and is used to play and display the video data data collected locally or the video data decoded from other mobile vehicle-mounted terminals transmitted from the VANET network;
所述文件存储模块用于存储本地采集的视频数据和从其他车载终端的接收来的视频数据,再用于向其他接收端发送传输视频文件。 The file storage module is used for storing locally collected video data and received video data from other vehicle-mounted terminals, and then used to send and transmit video files to other receiving terminals.
本发明所述网络传输控制模块,构建在VANET上,网络传输控制模块用于可移动车载终端与车载终端之间的视频数据传输。该网络传输控制模块包括动态调整视频传输质量算法软件模块,表征为:该软件模块是基于网络丢包率及视频系列复杂度来动态调整视频传输质量,评估视频在经过模拟出来的车辆网络传输后的视频质量,针对不同复杂度的视频序列对影响视频传输质量的因素GOP、压缩量化参数qp、码率bitrate、包错误率测试,得出最佳参数组合。 The network transmission control module of the present invention is constructed on the VANET, and the network transmission control module is used for the video data transmission between the mobile vehicle-mounted terminal and the vehicle-mounted terminal. The network transmission control module includes a software module for dynamically adjusting the video transmission quality algorithm, which is characterized as: the software module dynamically adjusts the video transmission quality based on the network packet loss rate and the complexity of the video series, and evaluates the video after it is transmitted through the simulated vehicle network. According to the video quality of different complexities, the factors affecting the quality of video transmission GOP, compression and quantization parameters qp, bitrate, and packet error rate are tested, and the best parameter combination is obtained.
所述动态调整视频传输质量算法软件模块,其实施的方法,包括以下步骤, Described dynamic adjustment video transmission quality algorithm software module, the method for its implementation comprises the following steps,
首先,网络丢包率的获取步骤,用于获取当前网络丢包率; First, the acquisition step of the network packet loss rate is used to obtain the current network packet loss rate;
然后,视频序列复杂度判断步骤,用于区分视频序列的运动剧烈程度; Then, the video sequence complexity judging step is used to distinguish the motion intensity of the video sequence;
最后,动态调整质量步骤,用于根据网络丢包率,将网络质量划分为三个等级:好、差、很差,在编码该帧前,如果网络质量从一个状态变化到另一个状态,根据视频的序列,调整编码参数,以符合该网络状况下的最优压缩参数。 Finally, the dynamic quality adjustment step is used to divide the network quality into three levels according to the network packet loss rate: good, bad, and very poor. Before encoding the frame, if the network quality changes from one state to another, according to For the video sequence, adjust the encoding parameters to meet the optimal compression parameters under the network conditions.
本发明通过设计基于RTP/RTCP的车载视频传输系统,考虑到视频压缩参数不同对最终的传输质量会有影响,动态地根据系统检测的丢包率,实时调节视频压缩质量,达到最终传输质量提升的目的。创新点及有益效果: By designing a vehicle-mounted video transmission system based on RTP/RTCP, the present invention considers that different video compression parameters will affect the final transmission quality, dynamically adjusts the video compression quality in real time according to the packet loss rate detected by the system, and achieves the improvement of the final transmission quality the goal of. Innovation points and beneficial effects:
(1)设计了完整的车辆网络视频传输方案及系统。充分利用H.264编码器优秀的压缩性能以及双核处理器强大的计算能力,实现了车载系统视频采集、编码、解码、传输等功能。 (1) Design a complete vehicle network video transmission scheme and system. By making full use of the excellent compression performance of the H.264 encoder and the powerful computing power of the dual-core processor, the video collection, encoding, decoding, and transmission functions of the vehicle system are realized.
(2)根据车辆网络的丢包率,针对不同的网络情况,提供优化的压缩参数配置,并能够动态调节视频传输质量。有效克服了单一压缩参数下网络动态变化时无法充分利用带宽或者数据量过大导致网络拥塞等弊端。 (2) According to the packet loss rate of the vehicle network, it provides optimized compression parameter configuration for different network conditions, and can dynamically adjust the video transmission quality. It effectively overcomes the disadvantages of not being able to make full use of the bandwidth when the network is dynamically changing under a single compression parameter or that the network is congested due to excessive data volume.
附图说明 Description of drawings
图1是本发明整个车载视频传输系统的原理框图。 Fig. 1 is a functional block diagram of the entire vehicle-mounted video transmission system of the present invention.
图2是本发明协议栈层次图。 Fig. 2 is a hierarchical diagram of the protocol stack of the present invention.
图3视频采集流程图。 Figure 3 Video capture flow chart.
图4编码模块流程图。 Figure 4 Flowchart of the encoding module.
图5解码模块流程图。 Figure 5 is a flowchart of the decoding module.
图6车载终端硬件部分EC5-1719CLDNA开发板及外部接口的结构示意图。 Figure 6 is a structural schematic diagram of the EC5-1719CLDNA development board and external interfaces of the hardware part of the vehicle terminal.
图7为本发明软件部分车载终端数据流向示意图。 Fig. 7 is a schematic diagram of the data flow of the vehicle terminal in the software part of the present invention.
图8为视频传输链路。 Figure 8 is a video transmission link.
图9为自适应视频质量算法流程。 Fig. 9 is a flowchart of an adaptive video quality algorithm.
具体实施方式 detailed description
以下结合附图对本发明技术方案作进一步介绍。The technical solution of the present invention will be further introduced below in conjunction with the accompanying drawings.
如图1所示,网络传输控制模块和若干N个可以移动的客户端共同构建成了本发明整个车载视频传输系统,各个车载终端形成VANET网络,所述客户端为安放于车内的车载终端,所述每个车载终端都安装有IntelIPP库,所述车载视频传输系统为客户/服务器模式。每个车载终端共包括5个功能子模块,它们是视频采集模块、视频编解码模块、信息处理模块、视频播放模块、文件存储模块,这些功能子模块都构建在所述IntelIPP库上,其中:所述视频采集模块用于视频数据的采集,从传感器硬件设备获取视频原始数据,或者从文件视频流等获得视频原始数据,视频采集模块分别与视频播放模块、视频编码模块连接,用于本地显示视频文件或者传输前的编码压缩。采集流程如如图3所示,由DirectShow开发,视频采集的实现不是本发明技术方案对现有技术的贡献部分。 As shown in Figure 1, the network transmission control module and some N movable clients jointly construct the entire vehicle-mounted video transmission system of the present invention, and each vehicle-mounted terminal forms a VANET network, and the client is a vehicle-mounted terminal placed in the vehicle , each of the vehicle-mounted terminals is installed with an IntelIPP library, and the vehicle-mounted video transmission system is a client/server mode. Each vehicle-mounted terminal comprises 5 functional sub-modules altogether, and they are video acquisition module, video codec module, information processing module, video playback module, file storage module, and these functional sub-modules are all constructed on the described IntelIPP storehouse, wherein: The video acquisition module is used for the acquisition of video data, obtains video original data from sensor hardware equipment, or obtains video original data from file video streams, etc., and the video acquisition module is respectively connected with a video playback module and a video encoding module for local display Video files or encoding compression before transmission. As shown in Figure 3, the collection process is developed by DirectShow, and the realization of video collection is not a part of the contribution of the technical solution of the present invention to the prior art.
所述视频编解码模块用于减少传输视频数据冗余,以解决视频数据量过大,VANET网络带宽无法满足的问题。视频编解码模块构建在IntelIPP库上,包括编码模块和解码模块两个部分。 The video codec module is used to reduce the redundancy of transmitted video data, so as to solve the problem that the video data volume is too large and the VANET network bandwidth cannot be satisfied. The video codec module is built on the IntelIPP library, including two parts: the encoding module and the decoding module.
编码模块工作的基本流程如4所示。视频编码模块基于Intel公司提供的开发工具IPP和UMC。将SampleGrabber采集到的数据队列中的缓存数据进行H.264编码压缩,以适合目前有限的VANET网络带宽。 The basic process of coding module work is shown in 4. The video coding module is based on the development tools IPP and UMC provided by Intel Corporation. H.264 encoding and compression is performed on the cached data in the data queue collected by SampleGrabber to fit the current limited VANET network bandwidth.
解码模块流程如图5所示。用户从VANET网络收到帧数据后,提取出图像的大小、颜色格式、编码器类型等信息,初始化解码环境,调用解码函数,便可以得到解码帧,最后通过UMC提供的VideoRenderer将图像供视频播放模块进行播放。 The flow of the decoding module is shown in Figure 5. After receiving the frame data from the VANET network, the user extracts the image size, color format, encoder type and other information, initializes the decoding environment, and calls the decoding function to obtain the decoded frame, and finally uses the VideoRenderer provided by UMC to display the image for video playback module to play.
以上编码、解码过程都是属于现有技术,编解码技术本身不是本发明技术方案对现有技术的贡献部分。 The above encoding and decoding processes belong to the prior art, and the encoding and decoding technology itself is not a contribution part of the technical solution of the present invention to the prior art.
所述信息处理模块,为完成对视频采集模块数据的预处理以及视频压缩运算。 The information processing module is to complete the preprocessing of the data of the video acquisition module and the video compression operation.
所述视频播放模块分别与视频采集模块和视频解码模块连接,用于播放显示本地采集的视频数据数据或者从VANET网络传输来的对方(其他)移动车载终端解码后的视频数据。 The video playback module is respectively connected with the video acquisition module and the video decoding module, and is used to play and display locally collected video data or decoded video data transmitted from the other party's (other) mobile vehicle terminal transmitted from the VANET network.
所述文件存储模块用于存储本地采集的视频数据和从对方(其他)车载终端的接收来的视频数据,再用于向其他接收端发送传输视频文件。 The file storage module is used to store locally collected video data and video data received from the counterpart (other) vehicle-mounted terminal, and then used to send and transmit video files to other receiving terminals.
所述网络传输控制模块,构建在VANET上,网络传输控制模块用于可移动车载终端与车载终端之间的视频数据传输,支持单播、组播模式。网络传输控制模块的传输层采用了RTP/RTCP实时传输及控制协议实现在VANET网络两种传输模式上的数据反馈与控制。本模块的视频传输功能采用RTPMulticasting组播有根模型实现。所有的客户端加入相同的组播地址,绑定相同的本地UDP端口号A以用于接收组播数据。服务器端(即某一个车载终端)绑定另外一个端口号B,用于和所有的客户端进行数据交换。这样当客户端A发送数据到服务器端口号B,服务器接收后向组播地址及端口A进行发送,这样所有的客户端都能接收到客户端A传输过来的视频数据。 The network transmission control module is built on VANET, and the network transmission control module is used for video data transmission between the mobile vehicle-mounted terminal and the vehicle-mounted terminal, and supports unicast and multicast modes. The transport layer of the network transmission control module adopts the RTP/RTCP real-time transmission and control protocol to realize the data feedback and control on the two transmission modes of the VANET network. The video transmission function of this module is realized by the RTPMulticasting multicast rooted model. All clients join the same multicast address and bind the same local UDP port number A to receive multicast data. The server side (that is, a certain vehicle terminal) is bound to another port number B for data exchange with all clients. In this way, when client A sends data to server port number B, the server sends data to the multicast address and port A after receiving it, so that all clients can receive the video data transmitted by client A.
另外,所述网络传输控制模块包括动态调整视频传输质量算法软件模块,表征为:该软件模块是基于网络丢包率及视频系列复杂度来动态调整视频传输质量,评估视频在经过模拟出来的车辆网络传输后的视频质量,针对不同复杂度的视频序列对影响视频传输质量的因素GOP、压缩量化参数qp、码率bitrate、包错误率测试,得出最佳参数组合。 In addition, the network transmission control module includes an algorithm software module for dynamically adjusting the video transmission quality, which is characterized as: the software module dynamically adjusts the video transmission quality based on the network packet loss rate and the complexity of the video series, and evaluates the quality of the video in the simulated vehicle. The video quality after network transmission is tested for video sequences of different complexity on the factors affecting video transmission quality GOP, compression quantization parameter qp, bitrate, and packet error rate, and the best parameter combination is obtained.
该软件模块实施的方法,其特征在于,包括以下步骤, The method implemented by the software module is characterized in that it comprises the following steps,
首先,网络丢包率的获取步骤,用于获取当前网络丢包率; First, the acquisition step of the network packet loss rate is used to obtain the current network packet loss rate;
然后,视频序列复杂度判断步骤,用于区分视频序列的运动剧烈程度; Then, the video sequence complexity judging step is used to distinguish the motion intensity of the video sequence;
最后,动态调整质量步骤,用于根据网络丢包率,将网络质量划分为三个等级:好、差、很差,在编码该帧前,如果网络质量从一个状态变化到另一个状态,根据视频的序列,调整编码参数,以符合该网络状况下的最优压缩参数。 Finally, the dynamic quality adjustment step is used to divide the network quality into three levels according to the network packet loss rate: good, bad, and very poor. Before encoding the frame, if the network quality changes from one state to another, according to For the video sequence, adjust the encoding parameters to meet the optimal compression parameters under the network conditions.
以下给出具体的实施例进一步介绍本发明技术方案。Specific examples are given below to further introduce the technical solution of the present invention.
本发明基于RTP/RTCP的车载视频传输系统实现步骤如下: The present invention is based on the vehicle video transmission system of RTP/RTCP and realizes steps as follows:
(1)车载终端硬件构架 (1) Vehicle terminal hardware architecture
每个车载终端应具有较强的处理能力,以满足视频压缩运算以及视频采集模块的传感器数据的处理。本实施例选用由研祥公司生产的EC5-1719CLDNA开发板,EC5-1719CLDNA是一款采用Intel笔记本电脑芯片组945GM设计的高性能单板电脑,处理器为IntelCore2Duo,南北桥之间采用带宽达10Gb/s的直接媒体接口DMI。其特点为高性能、低功耗以及扩展卡接口丰富。基于该开发板,根据需要还可以扩展了内存、存储、显示LCD、触摸屏、摄像头、无线网卡、麦克风等设备,如图6所示。 Each vehicle-mounted terminal should have strong processing capabilities to meet the needs of video compression operations and sensor data processing of the video acquisition module. In this embodiment, the EC5-1719CLDNA development board produced by EVOC is selected. The EC5-1719CLDNA is a high-performance single-board computer designed with an Intel notebook computer chipset 945GM. The processor is IntelCore2Duo, and the bandwidth between the north and south bridges reaches 10Gb. /s Direct Media Interface DMI. It is characterized by high performance, low power consumption and rich expansion card interfaces. Based on the development board, memory, storage, display LCD, touch screen, camera, wireless network card, microphone and other devices can be expanded as needed, as shown in Figure 6.
视频采集模块从硬件设备中获取视频数据,这些硬件设备包括采集卡、电视接收卡、摄像头、录像机等。 The video capture module acquires video data from hardware devices, which include capture cards, TV receiver cards, cameras, video recorders, etc.
(2)车载终端软件构架 (2) Vehicle terminal software architecture
车载终端属于普通的C/S构架,即:由视频发送端和视频接收端两部分组成。不同的是,本发明每一个车载终端节点属于对等节点,既可以作为视频发送方,也可以作为视频的接收方,每个车载终端系统既有模块是来通过摄像头等采集视频,编码视频,也有模块(线程)是用来接受对方车载终端传来的实时视频,并且播放它。车载终端按照功能,可以划分为视频采集模块、视频编码模块、网络传输控制模块、视频解码模块、视频播放模块,如图7所示。 The vehicle-mounted terminal belongs to the common C/S framework, that is, it consists of two parts: the video sending end and the video receiving end. The difference is that each vehicle-mounted terminal node of the present invention belongs to a peer-to-peer node, and can be used as a video sender or as a video receiver. Each vehicle-mounted terminal system has modules to collect and encode videos through cameras, etc. There are also modules (threads) that are used to receive real-time video from the other party's vehicle terminal and play it. According to the functions, the vehicle terminal can be divided into video acquisition module, video encoding module, network transmission control module, video decoding module, and video playback module, as shown in Figure 7.
本发明采用DirectShow来实现视频采集。 The present invention adopts DirectShow to realize video collection.
网络传输控制模块构建在VANET上。网络传输控制模块的传输层采用了RTP/RTCP实时传输及控制协议实现在VANET网络两种传输模型上的数据反馈与控制。 The network transmission control module is built on VANET. The transport layer of the network transmission control module adopts the RTP/RTCP real-time transmission and control protocol to realize the data feedback and control on the two transmission models of the VANET network.
视频编解码模块构建在IntelIPP库上,视频编码和解码可基于Intel的IPP这个编解码库来实现的。 The video codec module is built on the IntelIPP library, and video coding and decoding can be realized based on Intel's IPP codec library.
整个车载终端的视频传输根据视频数据的流向及所采用的技术,可以组成如图8所示的链路。 The video transmission of the entire vehicle terminal can form a link as shown in Figure 8 according to the flow direction of the video data and the technology adopted.
本发明基于网络丢包率及视频系列复杂度动态调整视频传输质量的方法步骤如下: The method steps of the present invention dynamically adjust video transmission quality based on network packet loss rate and video series complexity are as follows:
(1)仿真平台搭建及参数组合获取 (1) Simulation platform construction and parameter combination acquisition
在NS2及Evalvid这两个工具的基础上,针对IntelIPPH.264编码器扩展,评估视频在经过模拟出来的车辆网络传输后的视频质量。采用Gilbert-Elliott错误模型模拟出车辆网络信道错误。针对不同复杂度的视频序列对影响视频传输质量的因素GOP、压缩量化参数qp、码率bitrate、包错误率测试,得出最佳参数组合。 Based on the two tools NS2 and Evalvid, the Intel IPPH.264 encoder extension is used to evaluate the video quality after the video is transmitted through the simulated vehicle network. The vehicle network channel error is simulated by using the Gilbert-Elliott error model. For video sequences of different complexity, the factors affecting video transmission quality GOP, compression and quantization parameters qp, bitrate, and packet error rate are tested to obtain the best parameter combination.
(2)自适应视频质量算法流程 (2) Adaptive video quality algorithm process
1)将网络信道划分为三种类型:GOOD,BAD,WORSE。 1) Divide network channels into three types: GOOD, BAD, WORSE.
当丢包率低于1%,定义信道状态为GOOD; When the packet loss rate is lower than 1%, define the channel status as GOOD;
当丢包率大于1%,小于10%,定义信道状态为BAD; When the packet loss rate is greater than 1% and less than 10%, define the channel state as BAD;
当丢包率大于10%,定义信道状态为WORSE。 When the packet loss rate is greater than 10%, define the channel state as WORSE.
车辆网络的信道状况随着环境的变化而不断地在这三种信道类型间切换。 The channel conditions of the vehicular network are constantly switching between these three channel types as the environment changes.
2)每隔一段时间,计算丢包率。 2) every once in a while , to calculate the packet loss rate.
若信道丢包率低于1%,按三种序列复杂度,提供高质量视频参数组合,如表1; If the channel packet loss rate is lower than 1%, provide high-quality video parameter combinations according to three sequence complexities, as shown in Table 1;
若丢包率满足[1%-10%),按三种序列复杂度,提供IPPPP序列,GOP=5,如表2; If the packet loss rate satisfies [1%-10%), IPPPP sequences are provided according to three sequence complexities, GOP=5, as shown in Table 2;
假设丢包率达到10%甚至更高,表明车辆由于距离过大等因素,或者到了某个道路死角,信道受损。因此,此时采用IBBBP的GOP组合,如表3,同时降低码率,此时,所有的B帧丢包后都不会影响传输成功的帧的解码,相比于前面几种组合,综合的视频质量会有所提升。 Assuming that the packet loss rate reaches 10% or even higher, it indicates that the vehicle is damaged due to factors such as excessive distance, or to a dead end of the road. Therefore, at this time, the GOP combination of IBBBP is used, as shown in Table 3, and the code rate is reduced at the same time. At this time, all B frames will not affect the decoding of successfully transmitted frames after packet loss. Compared with the previous combinations, the comprehensive Video quality will improve.
参考的三种参数组合分别如表1、2、3。详细的算法流程如图9。 The three parameter combinations for reference are shown in Tables 1, 2, and 3, respectively. The detailed algorithm flow is shown in Figure 9.
表1丢包率小于1%的视频压缩参数组合 Table 1 Combination of video compression parameters with packet loss rate less than 1%
表2丢包率1%-10%的视频压缩参数组合 Table 2 Combinations of video compression parameters with a packet loss rate of 1%-10%
表3丢包率大于10%的视频压缩参数组合 Table 3 Combination of video compression parameters with packet loss rate greater than 10%
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310117793.0A CN103248964B (en) | 2013-04-07 | 2013-04-07 | Based on the Vehicular video transmission system of RTP/RTCP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310117793.0A CN103248964B (en) | 2013-04-07 | 2013-04-07 | Based on the Vehicular video transmission system of RTP/RTCP |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103248964A CN103248964A (en) | 2013-08-14 |
CN103248964B true CN103248964B (en) | 2016-04-06 |
Family
ID=48928145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310117793.0A Expired - Fee Related CN103248964B (en) | 2013-04-07 | 2013-04-07 | Based on the Vehicular video transmission system of RTP/RTCP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103248964B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10027904B2 (en) * | 2014-03-12 | 2018-07-17 | Robert Bosch Gmbh | System and method for transmitting camera-based parameters without a dedicated back channel |
CN104010166B (en) * | 2014-06-05 | 2018-12-14 | 厦门雅迅网络股份有限公司 | A kind of method of mobile unit wireless remote video monitoring Adaptive Transmission |
CN105357590A (en) * | 2014-08-22 | 2016-02-24 | 中兴通讯股份有限公司 | Method and device for achieving terminal multimedia broadcast |
CN104394486B (en) * | 2014-11-26 | 2018-03-13 | 中标软件有限公司 | A kind of video stream processing method and device based on cloud desktop |
CN105730341B (en) * | 2016-03-11 | 2019-06-07 | 广东钛马车联网信息科技有限公司 | A kind of front truck visual field checking device, system and method |
CN108259808B (en) * | 2018-01-31 | 2021-01-08 | 维沃移动通信有限公司 | Video frame compression method and mobile terminal |
CN108650487A (en) * | 2018-03-28 | 2018-10-12 | 山东科技大学 | Wireless video multi-hop transmission system under a kind of car networking environment |
CN110365985A (en) * | 2019-06-03 | 2019-10-22 | 西安万像电子科技有限公司 | Image processing method and device |
CN111986348A (en) * | 2020-07-27 | 2020-11-24 | 广州亚美智造科技有限公司 | Video and vehicle-mounted video cyclic caching method and device and computer equipment |
CN115361571A (en) * | 2022-08-04 | 2022-11-18 | 武汉依迅北斗时空技术股份有限公司 | Playing method and device for cloud storage video data |
CN116233371A (en) * | 2023-05-08 | 2023-06-06 | 中国重汽集团济南动力有限公司 | Vehicle remote driving video transmission method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101198042A (en) * | 2007-12-26 | 2008-06-11 | 广东威创视讯科技股份有限公司 | Code rate control method for video coding and video data emission device |
CN101588595A (en) * | 2009-07-07 | 2009-11-25 | 董志 | Method for dynamically regulating data transfer rate in wireless application service system |
CN102480421A (en) * | 2010-11-30 | 2012-05-30 | 同济大学 | Vehicle network data transmission method and system thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101057439B (en) * | 2004-11-17 | 2011-07-27 | 夏普株式会社 | Transmitter |
-
2013
- 2013-04-07 CN CN201310117793.0A patent/CN103248964B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101198042A (en) * | 2007-12-26 | 2008-06-11 | 广东威创视讯科技股份有限公司 | Code rate control method for video coding and video data emission device |
CN101588595A (en) * | 2009-07-07 | 2009-11-25 | 董志 | Method for dynamically regulating data transfer rate in wireless application service system |
CN102480421A (en) * | 2010-11-30 | 2012-05-30 | 同济大学 | Vehicle network data transmission method and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103248964A (en) | 2013-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103248964B (en) | Based on the Vehicular video transmission system of RTP/RTCP | |
CN103634299B (en) | Based on multi-link real time streaming terminal and method | |
CN105392020B (en) | A kind of internet video live broadcasting method and system | |
CN101909208B (en) | Video wireless transmission control method suitable for CDMA2000 | |
CN108322708B (en) | Real-time video transmission system and method based on multi-channel parallel transmission technology | |
CN101207809A (en) | Real-time streaming media transmission method and system based on video frame splitting | |
US9232244B2 (en) | Efficient frame forwarding in large scale real-time screen content sharing meetings | |
CN100417155C (en) | Multi-mode real-time multimedia interactive system for distance teaching | |
CN101924914A (en) | Method for switching television channels and system and device thereof | |
CN101409630A (en) | Method, apparatus and system for sending and receiving stream medium data | |
US20170142029A1 (en) | Method for data rate adaption in online media services, electronic device, and non-transitory computer-readable storage medium | |
CN102547376B (en) | Video data transmission method, device and system | |
CN109618188A (en) | Coding, retransmission method, device, equipment and the storage medium of video data | |
WO2015117355A1 (en) | Method and device for realizing multimedia broadcasting of terminal | |
Yao et al. | IPB-frame adaptive mapping mechanism for video transmission over IEEE 802.11 e WLANs | |
CN103108186A (en) | Method of achieving high-definition transmission of videos | |
CN101515934B (en) | Method, device and communication system for forwarding scalable video coded data message | |
Zhang et al. | Application research of image compression and wireless network traffic video streaming | |
Afzal et al. | Multipath MMT-based approach for streaming high quality video over multiple wireless access networks | |
CN103428175A (en) | Real-time voice intercom system based on heterogeneous mobile IP networks | |
CN1996813B (en) | Self-adapted media transfer management of the continuous media stream used for LAN/WAN environment | |
Han et al. | Deep learning based loss recovery mechanism for video streaming over mobile information-centric network | |
CN116980392A (en) | Media stream processing method, device, computer equipment and storage medium | |
Liao et al. | A dual mode self-adaption handoff for multimedia services in mobile cloud computing environment | |
Fu et al. | A wireless vehicle surveillance system mixed QoS controls |
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: 20160406 |