WO2015188678A1 - Transmission control method and system for video stream of mobile device - Google Patents

Transmission control method and system for video stream of mobile device Download PDF

Info

Publication number
WO2015188678A1
WO2015188678A1 PCT/CN2015/079029 CN2015079029W WO2015188678A1 WO 2015188678 A1 WO2015188678 A1 WO 2015188678A1 CN 2015079029 W CN2015079029 W CN 2015079029W WO 2015188678 A1 WO2015188678 A1 WO 2015188678A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
video
transmission
input
video stream
Prior art date
Application number
PCT/CN2015/079029
Other languages
French (fr)
Chinese (zh)
Inventor
魏子恒
Original Assignee
珠海全志科技股份有限公司
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 珠海全志科技股份有限公司 filed Critical 珠海全志科技股份有限公司
Publication of WO2015188678A1 publication Critical patent/WO2015188678A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless

Definitions

  • the invention relates to the field of digital video data transmission of a wireless network, and in particular to a method and system for controlling video stream transmission of a mobile device.
  • the invention provides a video stream transmission control method and system for a mobile device with low delay and good image quality for the problem of playing the Karton and the flower screen in the conventional video stream.
  • an embodiment of the present invention provides a mobile device video stream transmission control method, including the following steps:
  • the network detection parameters of the transmission network are detected in real time
  • the adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video encoding end and parameter adjustment of the wireless chip network driver.
  • the real-time detecting network detection parameters of the transmission network includes the following steps:
  • the threshold value table stores a parameter adjustment of the decision video encoder and a preset threshold level of the display resolution adjustment as a fifth input;
  • the internal transmission statistics parameters of the wireless chip network driver include an 802.11 frame retransmission times per second, a packet loss number per second, a received signal strength indication, and a transmission buffer margin.
  • the performing parameter adjustment related to the video encoding end according to the network detection parameter includes the following steps:
  • the parameters and display resolution of the video encoder are adjusted according to the predetermined threshold level that is satisfied.
  • the method further includes the following steps:
  • Performing parameter adjustment of the wireless chip network driver according to the network detection parameter includes the following steps:
  • the scanning mode of the wireless chip network driving is passive scanning, and the number of retransmissions of the P frame is set to be three times of the number of retransmissions of the B frame.
  • the embodiment of the present invention further provides a mobile device video stream transmission control system, including a real-time transmission processing module, configured to detect a network detection parameter of a transmission network in real time during a video stream transmission process, and re-pair the video according to the network detection parameter. And network transmission parameters for adjustment processing;
  • the adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video encoding end and parameter adjustment of the wireless chip network driver.
  • the real-time transmission processing module includes a first input unit, a second input unit, a third input unit, and a fifth input unit, where:
  • the first input unit is configured to detect an internal transmission statistical parameter of the wireless chip network driver in real time
  • the second input unit is configured to detect a total data buffer usage size after the current streaming media package in real time
  • the third input unit is configured to detect available memory of the current system in real time
  • the fifth input unit is configured to store a preset threshold level of parameter adjustment and display resolution adjustment of the decision video encoder
  • the internal transmission statistical parameters of the wireless chip network driver include 802.11 frame retransmission The number of times per second, the number of packet loss per second, the received signal strength indication, and the send buffer margin.
  • the real-time transmission processing module further includes a determining unit and a first adjusting unit, where:
  • the determining unit is configured to determine the internal transmission statistical parameter, the total data buffer usage size, and a preset threshold level that is satisfied by the available memory of the current system in the threshold table;
  • the first adjusting unit is configured to adjust a parameter and a display resolution of the video encoder according to the preset threshold level that is satisfied.
  • the fourth input unit and the second adjustment unit are further included, where:
  • the fourth input unit is configured to detect, in real time, the differentiated video stream data output by the video encoder as a flag of a P frame or a B frame;
  • the second adjusting unit is configured to set the scanning mode of the wireless chip network driving to passive scanning according to the flag bit, and set the number of retransmissions of the P frame to be three times of the number of retransmissions of the B frame.
  • the mobile device video stream transmission control method and system of the invention adds a feedback link in each link of the transmission network, detects the network detection parameters of the transmission network in real time, and re-adjusts the video and network transmission parameters according to the network detection parameters. , realizes the information interaction control with the transmission network.
  • the network detection parameter of the present invention includes an internal transmission statistical parameter driven by the wireless chip network, a total data buffer usage size, and an available memory of the current system, and the preset threshold value satisfied in the threshold table is calculated according to the weight ratio of the network detection parameters.
  • the distinguishing video stream data outputted by the device is the flag of the B frame or the P frame, and is fed back to the wireless chip network driver.
  • the wireless chip network driver recognizes the B frame and the P frame to ensure the transmission of the video key frame, thereby ensuring reliable picture quality. Provide a good user experience.
  • FIG. 1 is a flowchart of an embodiment of a video stream transmission control method for a mobile device according to the present invention
  • FIG. 2 is a schematic structural diagram of a frame of an embodiment of a transmission network of a video stream transmission control method for a mobile device according to the present invention
  • FIG. 3 is a schematic structural diagram of an embodiment of a video stream transmission control system for a mobile device according to the present invention.
  • an embodiment of the present invention provides a video stream transmission control method for a mobile device, including the following steps:
  • S100 In the process of video stream transmission, detecting network detection parameters of the transmission network in real time.
  • the adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video encoding end and parameter adjustment of the wireless chip network driver.
  • the data source of the video image is a system display buffer (buffer), which is scaled and output to the video encoder, and the video encoder performs a fixed code rate according to the previously set code rate and frame rate. And frame rate output, and then streamed and packaged (such as packaged into mpeg4ts format), streamed and output to the data cache list waiting for output to UDP socket buffer (user data packet protocol socket cache), and finally through the wireless chip
  • the network driver transmits it out.
  • the traditional RTSP Real Time Streaming Protocol
  • RTP Real Time Transport Protocol
  • the conventional technology When waiting for a retransmission of a lost packet within a certain period of time, the timeout is discarded, and a certain amount of system memory needs to be used to save the video stream data that has not been acknowledged, and the real-time performance cannot be guaranteed.
  • the conventional technology also has the following disadvantages: WIFI will actively discard data due to too many retransmissions, regardless of whether the transmission data is important, or the local buffer data is increasingly discarded due to the delay of transmission, and the buffer data is actively discarded. Proactively discarding video data in the link can cause serious screen and jamming problems and cannot be recovered.
  • the object of the present invention is to overcome the above problems, and to effectively ensure the quality of video playback while low delay.
  • the embodiment of the invention detects the network detection parameters of the transmission network in real time, realizes the information interaction control with the transmission network, and closely combines the memory usage on the data link of the wireless chip network driver and the transmission network, according to the detected network detection parameters. Adjust the video and network transmission parameters of the transmission network, such as adjusting the frame rate and code rate of the video encoder, and adjusting the display resolution of the scaling, so that the transmission network guarantees the video without affecting or slightly degrading the image quality. Low latency and smoothness of playback and fast recovery, to achieve the purpose of reducing network traffic and quality assurance of video key frames, thus providing users with a good user experience.
  • detecting network detection parameters of the transmission network in real time includes the following steps:
  • the internal transmission statistical parameters of the wireless chip network driver are detected in real time as the first input.
  • the total data buffer usage size of the current streaming media package is detected in real time as a second input.
  • the threshold value table stores the parameter adjustment of the decision video encoder and the preset threshold level of the display resolution adjustment as the fifth input.
  • the weight ratio of the internal transmission statistical parameter of the wireless chip network driver can be set to 70%
  • the weight ratio of the total data buffer usage size is 20%
  • the weight ratio of the available memory of the current system is 10%.
  • adjustments may also be made to adjust the ratio of each parameter to other values.
  • the preset threshold levels are defined according to specific product specifications.
  • the internal transmission statistics parameters of the wireless chip network driver include the number of 802.11 frame retransmissions per second, the number of packet loss per second, the received signal strength indication, and the transmission buffer margin.
  • the number of 802.11 frame retransmissions represents the number of retransmissions of 802.11 frames in 1s. The smaller the value, the better the network environment. It can estimate the busyness of the current wireless transmission network and can be directly obtained from the wireless chip network driver.
  • the number of packet loss per second indicates the number of times the device loses packets within 1 s. The smaller the value, the better the network environment. It can measure the number of retransmission failures and estimate the current wireless transmission network.
  • Received Signal Strength Indication (RSSI) indicates the strength of the current transmitted data signal.
  • the general home environment or conference room environment range is [-100dBm, -35dBm], and its range is related to the wireless receiving antenna and receiving environment.
  • the send buffer margin represents the speed of the transmission and the amount of data transmitted by the upper layer.
  • the data range is expressed as a percentage, usually [0.1, 1], and can also be directly obtained from the wireless chip network driver.
  • Their weights are: 802.11 frame retransmissions per second > packet loss per second > received signal strength indication > send buffer margin. Judging the quality of the wireless transmission network according to their weights, and obtaining the parameters that best represent the wireless chip network driver.
  • performing parameter adjustment related to the video encoding end according to the network detection parameter includes the following steps:
  • a predetermined threshold level that is satisfied in the threshold table of the fifth input is determined by the first input, the second input, and the third input.
  • the parameters and display resolution of the video encoder are adjusted according to a predetermined preset threshold level.
  • the first input represents the internal transmission statistical parameter of the wireless chip network driver, which can effectively measure the quality of the current wireless transmission network;
  • the second input represents the total data buffer usage size after the streaming media package;
  • the third input represents The available memory of the current system; calculating a parameter value indicating the status of the transmission network according to the weight ratio of the first input, the second input, and the third input, and comparing it with a preset threshold range stored in the threshold table, and determining the threshold value table
  • the preset threshold level is met, and the strategy that affects the minimum user experience is selected, such as reducing the frame rate, adjusting the code rate, and dynamically adjusting the display resolution.
  • the parameters of the video encoder include a frame rate and a code rate.
  • the adjustment priority of the frame rate, code rate, and display resolution is: frame rate > code rate > display resolution.
  • the optional frame rate includes 60fps, 30fps and 24fps.
  • the optional bit rate includes 5Mbps, 3Mbps and 1Mbps.
  • the supported display resolutions include 1080p, 720p and 480p, and the preset threshold level can be divided into up to 27 levels. The division of the level is also defined according to the specific product specifications.
  • the preset threshold level corresponding to the product can be divided into nine, wherein: the first preset threshold level corresponds to The output is 60fps/5Mbps/1080p, the output corresponding to the second preset threshold level is 30fps/5Mbps/1080p, and the output corresponding to the third preset threshold level is 24fps/5Mbps/1080p, and the output corresponding to the fourth preset threshold level is 60fps/3Mbps/1080p, the output corresponding to the fifth preset threshold level is 30fps/3Mbps/1080p, the output corresponding to the sixth preset threshold level is 24fps/3Mbps/1080p, and the output corresponding to the seventh preset threshold level is 60fps/ 1Mbps/1080p, the output corresponding to the eighth preset threshold level is 30fps/1Mbps/1080p, and the output corresponding to the ninth preset threshold level is 24fps/1Mbps/1080p.
  • the range of the corresponding first preset threshold level may be (0, 0.1), and the range of the second preset threshold level is (0.1, 0.2], and so on, the range of the ninth preset threshold level is (0.9, 1).
  • the first input has a value of 30, the weight ratio is 70%, the second input has a value of 20, the weight ratio is 20%, the third input has a value of 10, and the weight ratio is 10%.
  • the input parameter value indicating the status of the transmission network is normalized to 0.26, which satisfies the third preset threshold level, and the output corresponding to the third preset threshold level is 24fps/5Mbps/1080p, thereby adjusting the frame of the video encoder. Rate, bit rate and display resolution.
  • the method further includes the following steps:
  • Real-time detection of the video stream data output by the video encoder is a flag of a P frame or a B frame as a fourth input.
  • the parameter adjustment of the wireless chip network driver according to the network detection parameter includes the following steps:
  • the scanning mode of the wireless chip network driver is passive scanning, and the number of retransmissions of the P frame is set to be three times the number of retransmissions of the B frame.
  • Real-time detection to obtain the differentiated video stream data output by the video encoder as the flag of the P frame or the B frame, and after obtaining the flag bit, feedback to the wireless chip network driver, and the wireless chip network driver identifies which video stream data is P according to the flag bit.
  • Frame, which video stream data is B frame and set the number of retransmissions of the P frame to be 3 times of the number of retransmissions of the B frame, to ensure the transmission quality of the key frame, thereby ensuring the quality of the video.
  • the scanning mode of the wireless chip network driver is set to passive scanning, and the passive scanning time is three times of the normal scanning time, which reduces the resource consumption caused by the scanning.
  • the present invention further provides a mobile device video stream transmission control system. Since the principle of solving the problem of the system is similar to the foregoing video stream transmission control method of the mobile device, the implementation of the system can be referred to the foregoing method. Implementation, repetition will not be repeated.
  • the video stream transmission control system of the mobile device provided by the embodiment of the present invention, as shown in FIG. 3, includes a real-time transmission processing module 100 configured to detect network detection parameters of the transmission network in real time during the video stream transmission process, and detect parameters according to the network.
  • the video and network transmission transmission parameters are re-processed; wherein the adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video coding end and parameter adjustment of the wireless chip network driver.
  • the mobile device video stream transmission control system of the present invention adds a feedback link at each link of the transmission network. Real-time decision making provides a good user experience, reduces latency, and guarantees reliable picture quality.
  • the real-time transmission processing module 100 includes a first input unit 101, a second input unit 102, a third input unit 103, and a fifth input unit 105, where:
  • the first input unit 101 is configured to detect an internal transmission statistical parameter of the wireless chip network driver in real time.
  • the second input unit 102 is configured to detect the total data buffer usage size after the current streaming media package in real time.
  • the third input unit 103 is configured to detect the available memory of the current system in real time.
  • the fifth input unit 105 is configured to store a parameter adjustment of the decision video encoder and a preset threshold level of the display resolution adjustment.
  • the internal transmission statistics parameters of the wireless chip network driver include the number of 802.11 frame retransmissions per second, the number of packet loss per second, the received signal strength indication, and the transmission buffer margin.
  • the real-time transmission processing module 100 further includes a determining unit 110 and a first adjusting unit 120, where:
  • the determining unit 110 is configured to determine an internal transmission statistical parameter, a total data buffer usage size, and a preset threshold level that is satisfied in the threshold table by the available memory of the current system.
  • the first adjusting unit 120 is configured to adjust parameters and display resolution of the video encoder according to the preset preset threshold level.
  • the fourth input unit 104 and the second adjustment unit 130 are further included, wherein:
  • the fourth input unit 104 is configured to detect in real time that the differentiated video stream data output by the video encoder is a flag bit of a P frame or a B frame.
  • the second adjusting unit 130 is configured to set the scanning mode of the wireless chip network driving to passive scanning according to the flag bit, and set the number of retransmissions of the P frame to be three times the number of retransmissions of the B frame.

Abstract

Provided are a transmission control method and system for a video stream of a mobile device. The method comprises the steps of: in the transmission process of a video stream, detecting network detection parameters of a transmission network in real time; and according to the network detection parameters, readjusting a video and network transmission parameter, the adjustment of the video and network transmission parameter comprising the adjustment of parameters related to a video coding end and the adjustment of parameters of a wireless chip network driver. By means of the present invention, according to the weight ratio of the network detection parameters, a preset threshold level satisfied thereby in a threshold table is calculated, and according to the preset threshold level, the frame rate, code rate and display resolution are adjusted, thereby ensuring that the video playing has a low time delay and fluency, and can be recovered quickly without influencing or slightly reducing the picture quality; and a flag bit which is output by a video encoder for distinguishing video stream data into a B frame or a P frame is detected, so that the transmission of a video key frame can be ensured, thereby ensuring a reliable picture quality and providing a good user experience.

Description

移动设备视频流传输控制方法及系统Mobile device video stream transmission control method and system
相关申请Related application
本专利申请要求2014年6月13日申请的,申请号为201410263758.4,名称为“移动设备视频流传输控制方法及系统”的中国专利申请的优先权,在此将其全文引入作为参考。The present application claims priority to Chinese Patent Application No. 2014-10263758.4, entitled "Mobile Device Video Streaming Control Method and System", which is incorporated herein by reference in its entirety.
技术领域Technical field
本发明涉及无线网络的数字视频数据传输领域,特别是涉及移动设备视频流传输控制方法及系统。The invention relates to the field of digital video data transmission of a wireless network, and in particular to a method and system for controlling video stream transmission of a mobile device.
背景技术Background technique
随着iOS(Iphone Operating System,苹果操作系统)和Android(安卓操作系统)等智能系统的兴起,移动设备(智能手机、平板电脑)的功能越来越强大,由于移动设备屏幕的限制,很多娱乐内容(如视频、实时录像或者游戏)需要传输到大屏幕的设备去播放显示,这些内容通常是直接传输流媒体文件内容,或者实时抓取系统显示的buffer(缓冲器),通过视频编解码传送到解码设备端显示,这就对移动设备的性能和实时流媒体传输框架的性能提出新的挑战。With the rise of smart systems such as iOS (Iphone Operating System) and Android (Android operating system), mobile devices (smart phones, tablets) are becoming more and more powerful, and due to the limitations of mobile devices, many entertainments Content (such as video, real-time video or games) needs to be transferred to a large-screen device to play the display. The content is usually directly transferred to the streaming media file content, or the buffer (buffer) displayed by the system is captured in real time and transmitted through the video codec. Displaying to the decoding device side presents new challenges to the performance of mobile devices and the performance of real-time streaming media delivery frameworks.
当前移动设备在无线局域网中传输高分辨率、高码率的实时视频流时,如果无线网络环境稍差,WIFI(Wireless Fidelity,无线网络传输技术)的吞吐量会严重降低,导致视频播放延时越来越大,卡顿和花屏严重。When a mobile device transmits a high-resolution, high-rate real-time video stream in a wireless local area network, if the wireless network environment is slightly worse, the throughput of the WIFI (Wireless Fidelity, wireless network transmission technology) is seriously reduced, resulting in a delay in video playback. More and more big, Caton and Huaping are serious.
发明内容Summary of the invention
针对传统技术视频流播放卡顿和花屏的问题,本发明提供了一种视频流播放低延时和良好画质的移动设备视频流传输控制方法及系统。The invention provides a video stream transmission control method and system for a mobile device with low delay and good image quality for the problem of playing the Karton and the flower screen in the conventional video stream.
为达到技术目的,本发明实施例提供一种移动设备视频流传输控制方法,包括以下步骤:To achieve the technical purpose, an embodiment of the present invention provides a mobile device video stream transmission control method, including the following steps:
在视频流传输过程中,实时检测传输网络的网络检测参数;During the video stream transmission process, the network detection parameters of the transmission network are detected in real time;
根据所述网络检测参数重新对视频和网络传输参数作调整处理;Re-adjusting the video and network transmission parameters according to the network detection parameters;
所述视频和网络传输参数的调整处理包括与视频编码端相关的参数调整和无线芯片网络驱动的参数调整。The adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video encoding end and parameter adjustment of the wireless chip network driver.
作为一种可实施方式,所述实时检测传输网络的网络检测参数,包括如下步骤: As an implementation manner, the real-time detecting network detection parameters of the transmission network includes the following steps:
实时检测无线芯片网络驱动的内部传输统计参数,作为第一输入;Real-time detection of internal transmission statistical parameters of the wireless chip network driver as a first input;
实时检测当前流媒体封装后总的数据缓存器使用大小,作为第二输入;Real-time detection of the total data buffer usage size of the current streaming media package as a second input;
实时检测当前系统的可用内存,作为第三输入;Real-time detection of available memory of the current system as a third input;
阈值表中存放决策视频编码器的参数调整及显示分辨率调整的预设阈值等级,作为第五输入;The threshold value table stores a parameter adjustment of the decision video encoder and a preset threshold level of the display resolution adjustment as a fifth input;
所述第一输入的权重比值>第二输入的权重比值>第三输入的权重比值。The weight ratio of the first input > the weight ratio of the second input > the weight ratio of the third input.
作为一种可实施方式,所述无线芯片网络驱动的内部传输统计参数包括802.11帧重传次数每秒、数据包丢包数每秒、接收的信号强度指示和发送缓冲区余量。As an implementation manner, the internal transmission statistics parameters of the wireless chip network driver include an 802.11 frame retransmission times per second, a packet loss number per second, a received signal strength indication, and a transmission buffer margin.
作为一种可实施方式,所述根据所述网络检测参数进行与视频编码端相关的参数调整,包括如下步骤:As an implementation manner, the performing parameter adjustment related to the video encoding end according to the network detection parameter includes the following steps:
判断所述第一输入、第二输入和第三输入在第五输入的阈值表中满足的预设阈值等级;Determining, by the first input, the second input, and the third input, a preset threshold level that is satisfied in a threshold table of the fifth input;
根据满足的所述预设阈值等级调整所述视频编码器的参数和显示分辨率。The parameters and display resolution of the video encoder are adjusted according to the predetermined threshold level that is satisfied.
作为一种可实施方式,还包括如下步骤:As an implementable manner, the method further includes the following steps:
实时检测所述视频编码器输出的区分视频流数据为P帧或B帧的标志位,作为第四输入;Real-time detecting that the differentiated video stream data output by the video encoder is a flag bit of a P frame or a B frame, as a fourth input;
根据所述网络检测参数进行无线芯片网络驱动的参数调整,包括如下步骤:Performing parameter adjustment of the wireless chip network driver according to the network detection parameter includes the following steps:
根据所述标志位设置无线芯片网络驱动的扫描方式为被动扫描,且设置P帧的重传次数为B帧重传次数的3倍。According to the flag bit, the scanning mode of the wireless chip network driving is passive scanning, and the number of retransmissions of the P frame is set to be three times of the number of retransmissions of the B frame.
本发明实施例还提供一种移动设备视频流传输控制系统,包括实时传输处理模块,被配置为在视频流传输过程中,实时检测传输网络的网络检测参数,根据所述网络检测参数重新对视频和网络传输参数作调整处理;The embodiment of the present invention further provides a mobile device video stream transmission control system, including a real-time transmission processing module, configured to detect a network detection parameter of a transmission network in real time during a video stream transmission process, and re-pair the video according to the network detection parameter. And network transmission parameters for adjustment processing;
所述视频和网络传输参数的调整处理包括与视频编码端相关的参数调整和无线芯片网络驱动的参数调整。The adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video encoding end and parameter adjustment of the wireless chip network driver.
作为一种可实施方式,所述实时传输处理模块包括第一输入单元,第二输入单元,第三输入单元和第五输入单元,其中:As an implementation manner, the real-time transmission processing module includes a first input unit, a second input unit, a third input unit, and a fifth input unit, where:
所述第一输入单元,被配置以实时检测无线芯片网路驱动的内部传输统计参数;The first input unit is configured to detect an internal transmission statistical parameter of the wireless chip network driver in real time;
所述第二输入单元,被配置以实时检测当前流媒体封装后总的数据缓存器使用大小;The second input unit is configured to detect a total data buffer usage size after the current streaming media package in real time;
所述第三输入单元,被配置以实时检测当前系统的可用内存;The third input unit is configured to detect available memory of the current system in real time;
所述第五输入单元,被配置以存放决策视频编码器的参数调整及显示分辨率调整的预设阈值等级;The fifth input unit is configured to store a preset threshold level of parameter adjustment and display resolution adjustment of the decision video encoder;
所述第一输入单元的权重比值>第二输入单元的权重比值>第三输入单元的权重比值。The weight ratio of the first input unit > the weight ratio of the second input unit > the weight ratio of the third input unit.
作为一种可实施方式,所述无线芯片网络驱动的内部传输统计参数包括802.11帧重传 次数每秒、数据包丢包数每秒、接收的信号强度指示和发送缓冲区余量。As an implementation manner, the internal transmission statistical parameters of the wireless chip network driver include 802.11 frame retransmission The number of times per second, the number of packet loss per second, the received signal strength indication, and the send buffer margin.
作为一种可实施方式,所述实时传输处理模块还包括判断单元和第一调整单元,其中:As an implementation manner, the real-time transmission processing module further includes a determining unit and a first adjusting unit, where:
所述判断单元,被配置以判断所述内部传输统计参数、所述总的数据缓存器使用大小和所述当前系统的可用内存在阈值表中满足的预设阈值等级;The determining unit is configured to determine the internal transmission statistical parameter, the total data buffer usage size, and a preset threshold level that is satisfied by the available memory of the current system in the threshold table;
所述第一调整单元,被配置以根据满足的所述预设阈值等级调整所述视频编码器的参数和显示分辨率。The first adjusting unit is configured to adjust a parameter and a display resolution of the video encoder according to the preset threshold level that is satisfied.
作为一种可实施方式,还包括第四输入单元和第二调整单元,其中:As an implementation manner, the fourth input unit and the second adjustment unit are further included, where:
所述第四输入单元,被配置以实时检测所述视频编码器输出的区分视频流数据为P帧或B帧的标志位;The fourth input unit is configured to detect, in real time, the differentiated video stream data output by the video encoder as a flag of a P frame or a B frame;
所述第二调整单元,被配置以根据所述标志位设置无线芯片网络驱动的扫描方式为被动扫描,且设置P帧的重传次数为B帧重传次数的3倍。The second adjusting unit is configured to set the scanning mode of the wireless chip network driving to passive scanning according to the flag bit, and set the number of retransmissions of the P frame to be three times of the number of retransmissions of the B frame.
本发明的有益效果包括:Advantageous effects of the present invention include:
本发明的移动设备视频流传输控制方法及系统,在传输网络的各个环节加入反馈的链路,通过实时检测传输网络的网路检测参数,根据网络检测参数重新对视频和网络传输参数作调整处理,实现了与传输网络的信息交互控制。本发明的网络检测参数包括无线芯片网络驱动的内部传输统计参数、总的数据缓存器使用大小、当前系统的可用内存,根据这些网络检测参数的权重比值计算其在阈值表中满足的预设阈值等级,根据预设阈值等级调整帧率、码率和显示分辨率,使其在不影响或稍微降低画质的情况下,保证视频播放的低延时和流畅性且可以快速恢复,检测视频编码器输出的区分视频流数据为B帧或P帧的标志位,反馈给无线芯片网络驱动,无线芯片网络驱动识别B帧和P帧,可保证视频关键帧的传输,从而保证可靠的画质,提供良好的用户体验。The mobile device video stream transmission control method and system of the invention adds a feedback link in each link of the transmission network, detects the network detection parameters of the transmission network in real time, and re-adjusts the video and network transmission parameters according to the network detection parameters. , realizes the information interaction control with the transmission network. The network detection parameter of the present invention includes an internal transmission statistical parameter driven by the wireless chip network, a total data buffer usage size, and an available memory of the current system, and the preset threshold value satisfied in the threshold table is calculated according to the weight ratio of the network detection parameters. Level, adjust the frame rate, code rate and display resolution according to the preset threshold level, so as to ensure low delay and smoothness of video playback and fast recovery without detecting or slightly degrading the image quality, detecting video coding The distinguishing video stream data outputted by the device is the flag of the B frame or the P frame, and is fed back to the wireless chip network driver. The wireless chip network driver recognizes the B frame and the P frame to ensure the transmission of the video key frame, thereby ensuring reliable picture quality. Provide a good user experience.
附图说明DRAWINGS
图1为本发明的移动设备视频流传输控制方法的一实施例的流程图;1 is a flowchart of an embodiment of a video stream transmission control method for a mobile device according to the present invention;
图2为本发明的移动设备视频流传输控制方法的传输网络的一实施例的框架结构示意图;2 is a schematic structural diagram of a frame of an embodiment of a transmission network of a video stream transmission control method for a mobile device according to the present invention;
图3为本发明的移动设备视频流传输控制系统的一实施例的结构示意图。FIG. 3 is a schematic structural diagram of an embodiment of a video stream transmission control system for a mobile device according to the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例对本发明移动设备视频流传输控制方法及系统进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。 In order to make the objectives, technical solutions and advantages of the present invention more clear, the video stream transmission control method and system of the mobile device of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参见图1、图2所示,本发明实施例提供一种移动设备视频流传输控制方法,包括以下步骤:As shown in FIG. 1 and FIG. 2, an embodiment of the present invention provides a video stream transmission control method for a mobile device, including the following steps:
S100,在视频流传输过程中,实时检测传输网络的网络检测参数。S100: In the process of video stream transmission, detecting network detection parameters of the transmission network in real time.
S200,根据网络检测参数重新对视频和网络传输参数作调整处理。其中,视频和网络传输参数的调整处理包括与视频编码端相关的参数调整和无线芯片网络驱动的参数调整。S200, re-adjusting the video and network transmission parameters according to the network detection parameters. The adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video encoding end and parameter adjustment of the wireless chip network driver.
传统的移动设备视频流传输方法,视频图像的数据源即系统显示buffer(缓冲器),通过比例缩放后输出给视频编码器,视频编码器根据之前预先设置的码率和帧率进行固定码率和帧率的输出,然后进行流媒体封装打包(比如打包为mpeg4ts格式),流媒体封装后输出到数据缓存链表等待输出到UDP socket buffer(用户数据包协议套接字缓存),最后通过无线芯片网络驱动传送出去。传统的RTSP(Real Time Streaming Protocol,实时流协议)/RTP(Real Time Transport Protocol,实时传输协议)带传输带宽的控制和数据丢包重传控制,但是由于协议层面上的实现存在较大的延时,在一定的时间内等待丢失包的重传,超时则丢弃,且需要使用一定量的系统内存保存已发送尚未确认的视频流数据,无法保证实时性。传统技术还存在以下缺点:WIFI会由于重传次数过多而主动丢弃数据,而不论传输数据是否重要,或者由于传输的延时导致本地buffer数据越来越多而主动丢弃buffer数据,在数据传输链路中主动丢弃视频数据会导致严重的花屏和卡顿问题,且不可恢复。The conventional mobile device video stream transmission method, the data source of the video image is a system display buffer (buffer), which is scaled and output to the video encoder, and the video encoder performs a fixed code rate according to the previously set code rate and frame rate. And frame rate output, and then streamed and packaged (such as packaged into mpeg4ts format), streamed and output to the data cache list waiting for output to UDP socket buffer (user data packet protocol socket cache), and finally through the wireless chip The network driver transmits it out. The traditional RTSP (Real Time Streaming Protocol)/RTP (Real Time Transport Protocol) has control of transmission bandwidth and data packet loss retransmission control, but there is a large delay due to implementation at the protocol level. When waiting for a retransmission of a lost packet within a certain period of time, the timeout is discarded, and a certain amount of system memory needs to be used to save the video stream data that has not been acknowledged, and the real-time performance cannot be guaranteed. The conventional technology also has the following disadvantages: WIFI will actively discard data due to too many retransmissions, regardless of whether the transmission data is important, or the local buffer data is increasingly discarded due to the delay of transmission, and the buffer data is actively discarded. Proactively discarding video data in the link can cause serious screen and jamming problems and cannot be recovered.
本发明的目的就是克服上述问题,低延时的同时有效保证视频播放的质量。本发明实施例实时检测传输网络的网路检测参数,实现与传输网络的信息交互控制,紧密结合了无线芯片网络驱动和传输网络的数据链路上的内存使用情况,根据检测的网路检测参数对传输网络的视频和网络传输参数作调整处理,如调整视频编码器的帧率、码率,调整比例缩放的显示分辨率,使得传输网络在不影响或稍微降低画质的情况下,保证视频播放的低延时和流畅性且可以快速恢复,达到减少网络流量的目的和对视频关键帧的质量保证,从而为用户提供良好的用户体验。The object of the present invention is to overcome the above problems, and to effectively ensure the quality of video playback while low delay. The embodiment of the invention detects the network detection parameters of the transmission network in real time, realizes the information interaction control with the transmission network, and closely combines the memory usage on the data link of the wireless chip network driver and the transmission network, according to the detected network detection parameters. Adjust the video and network transmission parameters of the transmission network, such as adjusting the frame rate and code rate of the video encoder, and adjusting the display resolution of the scaling, so that the transmission network guarantees the video without affecting or slightly degrading the image quality. Low latency and smoothness of playback and fast recovery, to achieve the purpose of reducing network traffic and quality assurance of video key frames, thus providing users with a good user experience.
作为一种可实施方式,实时检测传输网络的网络检测参数,包括如下步骤:As an implementable manner, detecting network detection parameters of the transmission network in real time includes the following steps:
实时检测无线芯片网络驱动的内部传输统计参数,作为第一输入。The internal transmission statistical parameters of the wireless chip network driver are detected in real time as the first input.
实时检测当前流媒体封装后总的数据缓存器使用大小,作为第二输入。The total data buffer usage size of the current streaming media package is detected in real time as a second input.
实时检测当前系统的可用内存,作为第三输入。Real-time detection of the available memory of the current system as a third input.
阈值表中存放决策视频编码器的参数调整及显示分辨率调整的预设阈值等级,作为第五输入。The threshold value table stores the parameter adjustment of the decision video encoder and the preset threshold level of the display resolution adjustment as the fifth input.
第一输入的权重比值>第二输入的权重比值>第三输入的权重比值。The weight ratio of the first input > the weight ratio of the second input > the weight ratio of the third input.
获取无线芯片网络驱动的内部传输统计参数,获取流媒体封装后总的数据缓存器使用大小,获取当前系统的可用内存,并根据它们的权重比值计算其在阈值表中满足的预设阈 值等级。其中,可设置无线芯片网络驱动的内部传输统计参数的权重比值为70%,总的数据缓存器使用大小的权重比值为20%,当前系统的可用内存的权重比值为10%。当然,在其他实施例中,也可做适当调整,将各参数所占比值调整为其他数值。预设阈值等级根据具体的产品规格定义。Obtain internal transmission statistics parameters of the wireless chip network driver, obtain the total data buffer usage size after streaming media encapsulation, obtain available memory of the current system, and calculate a preset threshold that is satisfied in the threshold table according to their weight ratio Value level. Wherein, the weight ratio of the internal transmission statistical parameter of the wireless chip network driver can be set to 70%, the weight ratio of the total data buffer usage size is 20%, and the weight ratio of the available memory of the current system is 10%. Of course, in other embodiments, adjustments may also be made to adjust the ratio of each parameter to other values. The preset threshold levels are defined according to specific product specifications.
作为一种可实施方式,无线芯片网络驱动的内部传输统计参数包括802.11帧重传次数每秒、数据包丢包数每秒、接收的信号强度指示和发送缓冲区余量。As an implementation manner, the internal transmission statistics parameters of the wireless chip network driver include the number of 802.11 frame retransmissions per second, the number of packet loss per second, the received signal strength indication, and the transmission buffer margin.
802.11帧重传次数每秒表示1s内802.11帧重传的次数,其值越小,表示网络环境越好,其可以预估当前无线传输网络的繁忙程度,可以从无线芯片网络驱动直接获取。数据包丢包数每秒表示1s内驱动丢包的次数,其值越小,表示网络环境越好,其可以衡量重传失败的次数,预估当前无线传输网络的好坏。接收的信号强度指示(RSSI,Received Signal Strength Indication)表示当前的发送数据信号的强度,一般家庭环境或会议室环境范围为[-100dBm,-35dBm],其范围跟无线接收天线和接收环境有关,影响无线传输网络的好坏,其可从无线芯片网络驱动直接获取。发送缓冲区余量表示发送的速度和上层传输的数据量,数据范围表示为百分比,通常为[0.1,1],也可从无线芯片网络驱动直接获取。它们的权重大小为:802.11帧重传次数每秒>数据包丢包数每秒>接收的信号强度指示>发送缓冲区余量。根据它们的权重大小判断无线传输网络的好坏,并获取最能表示无线芯片网络驱动的参数。The number of 802.11 frame retransmissions represents the number of retransmissions of 802.11 frames in 1s. The smaller the value, the better the network environment. It can estimate the busyness of the current wireless transmission network and can be directly obtained from the wireless chip network driver. The number of packet loss per second indicates the number of times the device loses packets within 1 s. The smaller the value, the better the network environment. It can measure the number of retransmission failures and estimate the current wireless transmission network. Received Signal Strength Indication (RSSI) indicates the strength of the current transmitted data signal. The general home environment or conference room environment range is [-100dBm, -35dBm], and its range is related to the wireless receiving antenna and receiving environment. Affect the quality of the wireless transmission network, which can be directly obtained from the wireless chip network driver. The send buffer margin represents the speed of the transmission and the amount of data transmitted by the upper layer. The data range is expressed as a percentage, usually [0.1, 1], and can also be directly obtained from the wireless chip network driver. Their weights are: 802.11 frame retransmissions per second > packet loss per second > received signal strength indication > send buffer margin. Judging the quality of the wireless transmission network according to their weights, and obtaining the parameters that best represent the wireless chip network driver.
作为一种可实施方式,根据网络检测参数进行与视频编码端相关的参数调整,包括如下步骤:As an implementation manner, performing parameter adjustment related to the video encoding end according to the network detection parameter includes the following steps:
判断所述第一输入、第二输入和第三输入在第五输入的阈值表中满足的预设阈值等级。A predetermined threshold level that is satisfied in the threshold table of the fifth input is determined by the first input, the second input, and the third input.
根据满足的预设阈值等级调整视频编码器的参数和显示分辨率。The parameters and display resolution of the video encoder are adjusted according to a predetermined preset threshold level.
第一输入表示的是无线芯片网络驱动的内部传输统计参数,其可以有效衡量当前无线传输网络的好坏;第二输入表示的是流媒体封装后总的数据缓存器使用大小;第三输入表示的是当前系统的可用内存;根据第一输入、第二输入和第三输入的权重比值计算表示传输网络状况的参数值,并与阈值表中存放的预设阈值范围比较,判断其在阈值表中满足的预设阈值等级,选择影响用户体验最小的策略,如降低帧率,调整码率,以及动态调整显示分辨率等。其中,视频编码器的参数包括帧率和码率。帧率、码率和显示分辨率的调整优先级为:帧率>码率>显示分辨率。The first input represents the internal transmission statistical parameter of the wireless chip network driver, which can effectively measure the quality of the current wireless transmission network; the second input represents the total data buffer usage size after the streaming media package; the third input represents The available memory of the current system; calculating a parameter value indicating the status of the transmission network according to the weight ratio of the first input, the second input, and the third input, and comparing it with a preset threshold range stored in the threshold table, and determining the threshold value table The preset threshold level is met, and the strategy that affects the minimum user experience is selected, such as reducing the frame rate, adjusting the code rate, and dynamically adjusting the display resolution. Among them, the parameters of the video encoder include a frame rate and a code rate. The adjustment priority of the frame rate, code rate, and display resolution is: frame rate > code rate > display resolution.
以下结合一具体的实施例说明根据网络检测参数进行与视频编码端相关的参数调整的具体过程:The specific process of adjusting the parameters related to the video coding end according to the network detection parameters is described below in conjunction with a specific embodiment:
假设可选的帧率包括60fps,30fps和24fps,可选的码率包括5Mbps,3Mbps和1Mbps,支持的显示分辨率包括1080p,720p和480p,其预设阈值等级最多可划分为27个等级。 其等级的划分还根据具体的产品规格定义,如有些产品硬件最大只能支持60fps/5Mbps/1080p,该产品对应的预设阈值等级可划分为9个,其中:第一预设阈值等级对应的输出为60fps/5Mbps/1080p,第二预设阈值等级对应的输出为30fps/5Mbps/1080p,第三预设阈值等级对应的输出为24fps/5Mbps/1080p,第四预设阈值等级对应的输出为60fps/3Mbps/1080p,第五预设阈值等级对应的输出为30fps/3Mbps/1080p,第六预设阈值等级对应的输出为24fps/3Mbps/1080p,第七预设阈值等级对应的输出为60fps/1Mbps/1080p,第八预设阈值等级对应的输出为30fps/1Mbps/1080p,第九预设阈值等级对应的输出为24fps/1Mbps/1080p。假设阈值表中存放的预设阈值的范围为(0,1],则可对应的划分第一预设阈值等级的范围为(0,0.1],第二预设阈值等级的范围为(0.1,0.2],依次类推,第九预设阈值等级的范围为(0.9,1]。Assume that the optional frame rate includes 60fps, 30fps and 24fps. The optional bit rate includes 5Mbps, 3Mbps and 1Mbps. The supported display resolutions include 1080p, 720p and 480p, and the preset threshold level can be divided into up to 27 levels. The division of the level is also defined according to the specific product specifications. For example, some products can only support 60fps/5Mbps/1080p at most, and the preset threshold level corresponding to the product can be divided into nine, wherein: the first preset threshold level corresponds to The output is 60fps/5Mbps/1080p, the output corresponding to the second preset threshold level is 30fps/5Mbps/1080p, and the output corresponding to the third preset threshold level is 24fps/5Mbps/1080p, and the output corresponding to the fourth preset threshold level is 60fps/3Mbps/1080p, the output corresponding to the fifth preset threshold level is 30fps/3Mbps/1080p, the output corresponding to the sixth preset threshold level is 24fps/3Mbps/1080p, and the output corresponding to the seventh preset threshold level is 60fps/ 1Mbps/1080p, the output corresponding to the eighth preset threshold level is 30fps/1Mbps/1080p, and the output corresponding to the ninth preset threshold level is 24fps/1Mbps/1080p. Assuming that the preset threshold value stored in the threshold table is (0, 1), the range of the corresponding first preset threshold level may be (0, 0.1), and the range of the second preset threshold level is (0.1, 0.2], and so on, the range of the ninth preset threshold level is (0.9, 1).
在一个实施例中,第一输入的值为30,权重比值为70%,第二输入的值为20,权重比值为20%,第三输入的值为10,权重比值为10%,计算三个输入得到的表示传输网络状况的参数值,归一化后为0.26,满足第三预设阈值等级,第三预设阈值等级对应的输出为24fps/5Mbps/1080p,进而调整视频编码器的帧率,码率以及显示分辨率。In one embodiment, the first input has a value of 30, the weight ratio is 70%, the second input has a value of 20, the weight ratio is 20%, the third input has a value of 10, and the weight ratio is 10%. The input parameter value indicating the status of the transmission network is normalized to 0.26, which satisfies the third preset threshold level, and the output corresponding to the third preset threshold level is 24fps/5Mbps/1080p, thereby adjusting the frame of the video encoder. Rate, bit rate and display resolution.
作为一种可实施方式,还包括如下步骤:As an implementable manner, the method further includes the following steps:
实时检测视频编码器输出的区分视频流数据为P帧或B帧的标志位,作为第四输入。Real-time detection of the video stream data output by the video encoder is a flag of a P frame or a B frame as a fourth input.
根据网络检测参数进行无线芯片网络驱动的参数调整,包括如下步骤:The parameter adjustment of the wireless chip network driver according to the network detection parameter includes the following steps:
根据标志位设置无线芯片网络驱动的扫描方式为被动扫描,且设置P帧的重传次数为B帧重传次数的3倍。According to the flag bit, the scanning mode of the wireless chip network driver is passive scanning, and the number of retransmissions of the P frame is set to be three times the number of retransmissions of the B frame.
实时检测以获取视频编码器输出的区分视频流数据为P帧或B帧的标志位,获取标志位后,反馈给无线芯片网络驱动,无线芯片网络驱动根据标志位识别何种视频流数据为P帧,何种视频流数据为B帧,并设置P帧的重传次数为B帧重传次数的3倍,保证关键帧的传输质量,从而保证了视频的质量。在传输实时视频流时,设置无线芯片网络驱动的扫描方式为被动扫描,且被动扫描时间为平时扫描时间的3倍,减少扫描带来的资源消耗。Real-time detection to obtain the differentiated video stream data output by the video encoder as the flag of the P frame or the B frame, and after obtaining the flag bit, feedback to the wireless chip network driver, and the wireless chip network driver identifies which video stream data is P according to the flag bit. Frame, which video stream data is B frame, and set the number of retransmissions of the P frame to be 3 times of the number of retransmissions of the B frame, to ensure the transmission quality of the key frame, thereby ensuring the quality of the video. When transmitting the real-time video stream, the scanning mode of the wireless chip network driver is set to passive scanning, and the passive scanning time is three times of the normal scanning time, which reduces the resource consumption caused by the scanning.
基于同一发明构思,本发明还提供了一种移动设备视频流传输控制系统,由于此系统解决问题的原理与前述一种移动设备视频流传输控制方法相似,因此该系统的实施可以参见前述方法的实施,重复之处不再赘述。Based on the same inventive concept, the present invention further provides a mobile device video stream transmission control system. Since the principle of solving the problem of the system is similar to the foregoing video stream transmission control method of the mobile device, the implementation of the system can be referred to the foregoing method. Implementation, repetition will not be repeated.
本发明实施例提供的移动设备视频流传输控制系统,参见图3所示,包括实时传输处理模块100,被配置为在视频流传输过程中,实时检测传输网络的网络检测参数,根据网络检测参数重新对视频和网络传输传输参数作调整处理;其中,视频和网络传输参数的调整处理包括与视频编码端相关的参数调整和无线芯片网络驱动的参数调整。The video stream transmission control system of the mobile device provided by the embodiment of the present invention, as shown in FIG. 3, includes a real-time transmission processing module 100 configured to detect network detection parameters of the transmission network in real time during the video stream transmission process, and detect parameters according to the network. The video and network transmission transmission parameters are re-processed; wherein the adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video coding end and parameter adjustment of the wireless chip network driver.
本发明的移动设备视频流传输控制系统,在传输网络的各个环节加入反馈的链路进行 实时决策调整,提供良好的用户体验,降低时延,且保证了可靠的画质。The mobile device video stream transmission control system of the present invention adds a feedback link at each link of the transmission network. Real-time decision making provides a good user experience, reduces latency, and guarantees reliable picture quality.
作为一种可实施方式,所述实时传输处理模块100包括第一输入单元101,第二输入单元102,第三输入单元103和第五输入单元105,其中:As an implementation manner, the real-time transmission processing module 100 includes a first input unit 101, a second input unit 102, a third input unit 103, and a fifth input unit 105, where:
第一输入单元101,被配置以实时检测无线芯片网路驱动的内部传输统计参数。The first input unit 101 is configured to detect an internal transmission statistical parameter of the wireless chip network driver in real time.
第二输入单元102,被配置以实时检测当前流媒体封装后总的数据缓存器使用大小。The second input unit 102 is configured to detect the total data buffer usage size after the current streaming media package in real time.
第三输入单元103,被配置以实时检测当前系统的可用内存。The third input unit 103 is configured to detect the available memory of the current system in real time.
第五输入单元105,被配置以存放决策视频编码器的参数调整及显示分辨率调整的预设阈值等级。The fifth input unit 105 is configured to store a parameter adjustment of the decision video encoder and a preset threshold level of the display resolution adjustment.
第一输入单元的权重比值>第二输入单元的权重比值>第三输入单元的权重比值。The weight ratio of the first input unit > the weight ratio of the second input unit > the weight ratio of the third input unit.
作为一种可实施方式,无线芯片网络驱动的内部传输统计参数包括802.11帧重传次数每秒、数据包丢包数每秒、接收的信号强度指示和发送缓冲区余量。As an implementation manner, the internal transmission statistics parameters of the wireless chip network driver include the number of 802.11 frame retransmissions per second, the number of packet loss per second, the received signal strength indication, and the transmission buffer margin.
作为一种可实施方式,实时传输处理模块100还包括判断单元110和第一调整单元120,其中:As an implementation manner, the real-time transmission processing module 100 further includes a determining unit 110 and a first adjusting unit 120, where:
判断单元110,被配置以判断内部传输统计参数、总的数据缓存器使用大小和当前系统的可用内存在阈值表中满足的预设阈值等级。The determining unit 110 is configured to determine an internal transmission statistical parameter, a total data buffer usage size, and a preset threshold level that is satisfied in the threshold table by the available memory of the current system.
第一调整单元120,被配置以根据满足的预设阈值等级调整视频编码器的参数和显示分辨率。The first adjusting unit 120 is configured to adjust parameters and display resolution of the video encoder according to the preset preset threshold level.
作为一种可实施方式,还包括第四输入单元104和第二调整单元130,其中:As an implementation manner, the fourth input unit 104 and the second adjustment unit 130 are further included, wherein:
第四输入单元104,被配置以实时检测视频编码器输出的区分视频流数据为P帧或B帧的标志位。The fourth input unit 104 is configured to detect in real time that the differentiated video stream data output by the video encoder is a flag bit of a P frame or a B frame.
第二调整单元130,被配置以根据标志位设置无线芯片网络驱动的扫描方式为被动扫描,且设置P帧的重传次数为B帧重传次数的3倍。The second adjusting unit 130 is configured to set the scanning mode of the wireless chip network driving to passive scanning according to the flag bit, and set the number of retransmissions of the P frame to be three times the number of retransmissions of the B frame.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。 The above-mentioned embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (10)

  1. 一种移动设备视频流传输控制方法,其特征在于,包括以下步骤:A mobile device video stream transmission control method, comprising the following steps:
    在视频流传输过程中,实时检测传输网络的网络检测参数;During the video stream transmission process, the network detection parameters of the transmission network are detected in real time;
    根据所述网络检测参数重新对视频和网络传输参数作调整处理;Re-adjusting the video and network transmission parameters according to the network detection parameters;
    所述视频和网络传输参数的调整处理包括与视频编码端相关的参数调整和无线芯片网络驱动的参数调整。The adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video encoding end and parameter adjustment of the wireless chip network driver.
  2. 根据权利要求1所述的移动设备视频流传输控制方法,其特征在于,所述实时检测传输网络的网络检测参数,包括如下步骤:The mobile device video stream transmission control method according to claim 1, wherein the real-time detecting a network detection parameter of the transmission network comprises the following steps:
    实时检测无线芯片网络驱动的内部传输统计参数,作为第一输入;Real-time detection of internal transmission statistical parameters of the wireless chip network driver as a first input;
    实时检测当前流媒体封装后总的数据缓存器使用大小,作为第二输入;Real-time detection of the total data buffer usage size of the current streaming media package as a second input;
    实时检测当前系统的可用内存,作为第三输入;Real-time detection of available memory of the current system as a third input;
    阈值表中存放决策视频编码器的参数调整及显示分辨率调整的预设阈值等级,作为第五输入;The threshold value table stores a parameter adjustment of the decision video encoder and a preset threshold level of the display resolution adjustment as a fifth input;
    所述第一输入的权重比值>第二输入的权重比值>第三输入的权重比值。The weight ratio of the first input > the weight ratio of the second input > the weight ratio of the third input.
  3. 根据权利要求2所述的移动设备视频流传输控制方法,其特征在于,所述无线芯片网络驱动的内部传输统计参数包括802.11帧重传次数每秒、数据包丢包数每秒、接收的信号强度指示和发送缓冲区余量。The mobile device video stream transmission control method according to claim 2, wherein the internal transmission statistical parameters of the wireless chip network driver include 802.11 frame retransmission times per second, data packet loss per second, and received signals. Intensity indication and send buffer margin.
  4. 根据权利要求2所述的移动设备视频流传输控制方法,其特征在于,根据所述网络检测参数进行与视频编码端相关的参数调整,包括如下步骤:The mobile device video stream transmission control method according to claim 2, wherein the parameter adjustment related to the video encoding end is performed according to the network detection parameter, comprising the following steps:
    判断所述第一输入、第二输入和第三输入在第五输入的阈值表中满足的预设阈值等级;Determining, by the first input, the second input, and the third input, a preset threshold level that is satisfied in a threshold table of the fifth input;
    根据满足的所述预设阈值等级调整所述视频编码器的参数和显示分辨率。The parameters and display resolution of the video encoder are adjusted according to the predetermined threshold level that is satisfied.
  5. 根据权利要求4所述的移动设备视频流传输控制方法,其特征在于,还包括如下步骤:The mobile device video stream transmission control method according to claim 4, further comprising the following steps:
    实时检测所述视频编码器输出的区分视频流数据为P帧或B帧的标志位,作为第四输入;Real-time detecting that the differentiated video stream data output by the video encoder is a flag bit of a P frame or a B frame, as a fourth input;
    根据所述网络检测参数进行无线芯片网络驱动的参数调整,包括如下步骤:Performing parameter adjustment of the wireless chip network driver according to the network detection parameter includes the following steps:
    根据所述标志位设置无线芯片网络驱动的扫描方式为被动扫描,且设置P帧的重传次数为B帧重传次数的3倍。According to the flag bit, the scanning mode of the wireless chip network driving is passive scanning, and the number of retransmissions of the P frame is set to be three times of the number of retransmissions of the B frame.
  6. 一种移动设备视频流传输控制系统,其特征在于,包括实时传输处理模块,被配置为在视频流传输过程中,实时检测传输网络的网络检测参数,根据所述网络检测参数重新对视频和网络传输参数作调整处理; A mobile device video stream transmission control system, comprising: a real-time transmission processing module configured to detect a network detection parameter of a transmission network in real time during a video stream transmission process, and re-pair the video and the network according to the network detection parameter Transfer parameters for adjustment processing;
    所述视频和网络传输参数的调整处理包括与视频编码端相关的参数调整和无线芯片网络驱动的参数调整。The adjustment processing of the video and network transmission parameters includes parameter adjustment related to the video encoding end and parameter adjustment of the wireless chip network driver.
  7. 根据权利要求6所述的移动设备视频流传输控制系统,其特征在于,所述实时传输处理模块包括第一输入单元,第二输入单元,第三输入单元和第五输入单元,其中:The mobile device video stream transmission control system according to claim 6, wherein the real-time transmission processing module comprises a first input unit, a second input unit, a third input unit and a fifth input unit, wherein:
    所述第一输入单元,被配置以实时检测无线芯片网路驱动的内部传输统计参数;The first input unit is configured to detect an internal transmission statistical parameter of the wireless chip network driver in real time;
    所述第二输入单元,被配置以实时检测当前流媒体封装后总的数据缓存器使用大小;The second input unit is configured to detect a total data buffer usage size after the current streaming media package in real time;
    所述第三输入单元,被配置以实时检测当前系统的可用内存;The third input unit is configured to detect available memory of the current system in real time;
    所述第五输入单元,被配置以存放决策视频编码器的参数调整及显示分辨率调整的预设阈值等级;The fifth input unit is configured to store a preset threshold level of parameter adjustment and display resolution adjustment of the decision video encoder;
    所述第一输入单元的权重比值>第二输入单元的权重比值>第三输入单元的权重比值。The weight ratio of the first input unit > the weight ratio of the second input unit > the weight ratio of the third input unit.
  8. 根据权利要求7所述的移动设备视频流传输控制系统,其特征在于,所述无线芯片网络驱动的内部传输统计参数包括802.11帧重传次数每秒、数据包丢包数每秒、接收的信号强度指示和发送缓冲区余量。The mobile device video stream transmission control system according to claim 7, wherein the internal transmission statistical parameters of the wireless chip network driver include 802.11 frame retransmission times per second, data packet loss per second, and received signals. Intensity indication and send buffer margin.
  9. 根据权利要求7所述的移动设备视频流传输控制系统,其特征在于,所述实时传输处理模块还包括判断单元和第一调整单元,其中:The mobile device video stream transmission control system according to claim 7, wherein the real-time transmission processing module further comprises a determining unit and a first adjusting unit, wherein:
    所述判断单元,被配置以判断所述内部传输统计参数、所述总的数据缓存器使用大小和所述当前系统的可用内存在阈值表中满足的预设阈值等级;The determining unit is configured to determine the internal transmission statistical parameter, the total data buffer usage size, and a preset threshold level that is satisfied by the available memory of the current system in the threshold table;
    所述第一调整单元,被配置以根据满足的所述预设阈值等级调整所述视频编码器的参数和显示分辨率。The first adjusting unit is configured to adjust a parameter and a display resolution of the video encoder according to the preset threshold level that is satisfied.
  10. 根据权利要求9所述的移动设备视频流传输控制系统,其特征在于,还包括第四输入单元和第二调整单元,其中:The mobile device video stream transmission control system according to claim 9, further comprising a fourth input unit and a second adjustment unit, wherein:
    所述第四输入单元,被配置以实时检测所述视频编码器输出的区分视频流数据为P帧或B帧的标志位;The fourth input unit is configured to detect, in real time, the differentiated video stream data output by the video encoder as a flag of a P frame or a B frame;
    所述第二调整单元,被配置以根据所述标志位设置无线芯片网络驱动的扫描方式为被动扫描,且设置P帧的重传次数为B帧重传次数的3倍。 The second adjusting unit is configured to set the scanning mode of the wireless chip network driving to passive scanning according to the flag bit, and set the number of retransmissions of the P frame to be three times of the number of retransmissions of the B frame.
PCT/CN2015/079029 2014-06-13 2015-05-15 Transmission control method and system for video stream of mobile device WO2015188678A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410263758.4A CN105263066A (en) 2014-06-13 2014-06-13 Mobile equipment video stream transmission control method and system
CN201410263758.4 2014-06-13

Publications (1)

Publication Number Publication Date
WO2015188678A1 true WO2015188678A1 (en) 2015-12-17

Family

ID=54832875

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079029 WO2015188678A1 (en) 2014-06-13 2015-05-15 Transmission control method and system for video stream of mobile device

Country Status (2)

Country Link
CN (1) CN105263066A (en)
WO (1) WO2015188678A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851384A (en) * 2017-01-18 2017-06-13 环球智达科技(北京)有限公司 A kind of scheme of Android system player detection buffering
CN106851231A (en) * 2017-04-06 2017-06-13 南京三宝弘正视觉科技有限公司 A kind of video frequency monitoring method and system
CN107493478A (en) * 2017-09-01 2017-12-19 广州市百果园网络科技有限公司 Encode frame per second method to set up and equipment
CN107635256A (en) * 2017-09-22 2018-01-26 四川长虹电器股份有限公司 The method that QoS is adjusted based on android system application dynamic
US20190164518A1 (en) * 2017-11-28 2019-05-30 Nvidia Corporation Dynamic jitter and latency-tolerant rendering
CN110290402A (en) * 2019-07-31 2019-09-27 腾讯科技(深圳)有限公司 A kind of video code rate method of adjustment, device, server and storage medium
CN110381298A (en) * 2019-08-16 2019-10-25 深圳江行联加智能科技有限公司 A kind of method, apparatus and system of tunnel video monitoring
CN110636346A (en) * 2019-09-19 2019-12-31 北京达佳互联信息技术有限公司 Code rate self-adaptive switching method and device, electronic equipment and storage medium
CN112261625A (en) * 2020-10-09 2021-01-22 Oppo广东移动通信有限公司 Bit rate adaptive data transmission method and device, equipment and storage medium
CN113132669A (en) * 2021-04-22 2021-07-16 睿云联(厦门)网络通讯技术有限公司 WebRTC (Web real-time communication protocol) based weak network environment video quality improvement method, system and storage medium
CN113411218A (en) * 2021-06-22 2021-09-17 北京金山云网络技术有限公司 Method and device for evaluating instant messaging quality and electronic equipment
US11412311B2 (en) 2017-05-25 2022-08-09 Samsung Electronics Co., Ltd Methods and systems for saving data while streaming video
CN114900720A (en) * 2022-04-02 2022-08-12 杭州星犀科技有限公司 Fluency evaluation method and system for media stream, electronic device and storage medium
CN115002513A (en) * 2022-05-25 2022-09-02 咪咕文化科技有限公司 Audio and video scheduling method and device, electronic equipment and computer readable storage medium
CN115150641A (en) * 2022-06-28 2022-10-04 炫彩互动网络科技有限公司 Cloud game video coding parameter dynamic adjustment method and device
CN115174965A (en) * 2022-06-30 2022-10-11 杭州海康威视数字技术股份有限公司 Video preview method and device, electronic equipment and computer readable storage medium
CN116112712A (en) * 2023-01-12 2023-05-12 联通沃音乐文化有限公司 Self-adaptive video-audio video transmission playing method

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872594A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Real time bit rate adjusting method and device, and server device
CN105959799A (en) * 2016-05-27 2016-09-21 北京金山安全软件有限公司 Video compression method and device and electronic equipment
CN106162224A (en) * 2016-07-26 2016-11-23 北京金山安全软件有限公司 Video transmission method and device and electronic equipment
CN106658058B (en) * 2016-10-13 2019-12-13 厦门蓝斯通信股份有限公司 video sending rate synchronization management method and management system based on multiple clients
CN106559715B (en) * 2016-11-23 2019-08-06 中国联合网络通信集团有限公司 Mobile network video transmission optimization method and device
CN106713345A (en) * 2017-01-11 2017-05-24 深圳云视融通科技有限公司 Streaming media transmission method
CN108696772B (en) * 2017-04-11 2021-07-16 苏州谦问万答吧教育科技有限公司 Real-time video transmission method and device
CN107222781B (en) * 2017-06-30 2020-05-01 深圳市九洲电器有限公司 Method and system for intelligent gateway to dynamically convert code rate
CN108079578B (en) * 2017-10-26 2020-12-01 咪咕互动娱乐有限公司 Code rate adjusting method and device based on cloud game and storage medium
CN109922307B (en) * 2017-12-12 2021-01-15 杭州萤石软件有限公司 Multimedia data transmission method and camera
CN108174209A (en) * 2017-12-26 2018-06-15 天津天地伟业投资管理有限公司 A kind of anti-video effect Automatic adjustment method for escaping system of seeing a doctor outside
CN108900863B (en) * 2018-07-02 2021-01-15 宇龙计算机通信科技(深圳)有限公司 Video image generation method and device and electronic equipment
CN110740478A (en) * 2018-07-18 2020-01-31 成都鼎桥通信技术有限公司 Video resolution negotiation method and device
CN109600579A (en) * 2018-10-29 2019-04-09 歌尔股份有限公司 Video wireless transmission method, apparatus, system and equipment
CN111147938A (en) * 2018-11-06 2020-05-12 奇酷互联网络科技(深圳)有限公司 Video screen projection method, video source terminal, playing terminal and storage medium
CN109688465B (en) * 2018-11-27 2020-12-29 Oppo广东移动通信有限公司 Video enhancement control method and device and electronic equipment
CN109908586B (en) * 2019-03-18 2022-06-21 北京智明星通科技股份有限公司 HTML5 game optimization method and device
CN111711858B (en) * 2020-06-08 2022-10-14 苏州华兴源创科技股份有限公司 Data transmission method, device, integrated chip and video image processing system
CN111970565A (en) * 2020-09-21 2020-11-20 Oppo广东移动通信有限公司 Video data processing method and device, electronic equipment and storage medium
CN112104879B (en) * 2020-11-13 2021-03-23 腾讯科技(深圳)有限公司 Video coding method and device, electronic equipment and storage medium
CN113225608A (en) * 2021-03-16 2021-08-06 浙江大华技术股份有限公司 Video transmission method, device, equipment and storage medium based on wireless network
CN113747160B (en) * 2021-09-07 2023-06-16 腾讯科技(深圳)有限公司 Video coding configuration method, device, equipment and computer readable storage medium
CN114040227A (en) * 2021-10-22 2022-02-11 游密科技(深圳)有限公司 Audio and video playing control method and device, electronic equipment and storage medium
CN115842918A (en) * 2022-10-28 2023-03-24 金程科技有限公司 Variable-bit-rate video stream real-time transcoding sending device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242532A (en) * 2007-12-12 2008-08-13 浙江万里学院 A code rate control method oriented to multi-view point video
CN101340575A (en) * 2007-07-03 2009-01-07 英华达(上海)电子有限公司 Method and terminal for dynamically regulating video code
CN101795401A (en) * 2010-03-19 2010-08-04 中兴通讯股份有限公司 Method and system for transmitting video streaming medium
CN101860733A (en) * 2010-06-11 2010-10-13 深圳市黄河数字技术有限公司 3g network video monitoring system and monitoring method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100588249C (en) * 2006-07-27 2010-02-03 腾讯科技(深圳)有限公司 Method, system and terminal for adjusting video quality
CN101753973B (en) * 2008-12-12 2013-01-02 华为技术有限公司 Channel switching method, device and system
CN101765000B (en) * 2009-11-27 2012-10-24 广东亿迅科技有限公司 Implementing method for vehicle-borne video surveillance system based on mobile network
CN102413307B (en) * 2011-11-30 2013-11-27 晶门科技(深圳)有限公司 Self-adaptive code rate adjustment method and device for television video chat
CN102710401B (en) * 2012-05-30 2014-07-16 陈日清 Cross layer self-adaptive distortion modulation method for high-definition video wireless transmission

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340575A (en) * 2007-07-03 2009-01-07 英华达(上海)电子有限公司 Method and terminal for dynamically regulating video code
CN101242532A (en) * 2007-12-12 2008-08-13 浙江万里学院 A code rate control method oriented to multi-view point video
CN101795401A (en) * 2010-03-19 2010-08-04 中兴通讯股份有限公司 Method and system for transmitting video streaming medium
CN101860733A (en) * 2010-06-11 2010-10-13 深圳市黄河数字技术有限公司 3g network video monitoring system and monitoring method

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851384A (en) * 2017-01-18 2017-06-13 环球智达科技(北京)有限公司 A kind of scheme of Android system player detection buffering
CN106851231A (en) * 2017-04-06 2017-06-13 南京三宝弘正视觉科技有限公司 A kind of video frequency monitoring method and system
CN106851231B (en) * 2017-04-06 2019-09-06 南京三宝弘正视觉科技有限公司 A kind of video monitoring method and system
US11412311B2 (en) 2017-05-25 2022-08-09 Samsung Electronics Co., Ltd Methods and systems for saving data while streaming video
CN107493478B (en) * 2017-09-01 2020-04-14 广州市百果园网络科技有限公司 Method and device for setting coding frame rate
CN107493478A (en) * 2017-09-01 2017-12-19 广州市百果园网络科技有限公司 Encode frame per second method to set up and equipment
CN107635256A (en) * 2017-09-22 2018-01-26 四川长虹电器股份有限公司 The method that QoS is adjusted based on android system application dynamic
US10741143B2 (en) * 2017-11-28 2020-08-11 Nvidia Corporation Dynamic jitter and latency-tolerant rendering
US20190164518A1 (en) * 2017-11-28 2019-05-30 Nvidia Corporation Dynamic jitter and latency-tolerant rendering
CN110290402A (en) * 2019-07-31 2019-09-27 腾讯科技(深圳)有限公司 A kind of video code rate method of adjustment, device, server and storage medium
CN110381298A (en) * 2019-08-16 2019-10-25 深圳江行联加智能科技有限公司 A kind of method, apparatus and system of tunnel video monitoring
CN110636346A (en) * 2019-09-19 2019-12-31 北京达佳互联信息技术有限公司 Code rate self-adaptive switching method and device, electronic equipment and storage medium
CN110636346B (en) * 2019-09-19 2021-08-03 北京达佳互联信息技术有限公司 Code rate self-adaptive switching method and device, electronic equipment and storage medium
CN112261625A (en) * 2020-10-09 2021-01-22 Oppo广东移动通信有限公司 Bit rate adaptive data transmission method and device, equipment and storage medium
CN113132669A (en) * 2021-04-22 2021-07-16 睿云联(厦门)网络通讯技术有限公司 WebRTC (Web real-time communication protocol) based weak network environment video quality improvement method, system and storage medium
CN113411218A (en) * 2021-06-22 2021-09-17 北京金山云网络技术有限公司 Method and device for evaluating instant messaging quality and electronic equipment
CN114900720A (en) * 2022-04-02 2022-08-12 杭州星犀科技有限公司 Fluency evaluation method and system for media stream, electronic device and storage medium
CN114900720B (en) * 2022-04-02 2023-11-21 杭州星犀科技有限公司 Method, system, electronic device and storage medium for evaluating fluency of media stream
CN115002513A (en) * 2022-05-25 2022-09-02 咪咕文化科技有限公司 Audio and video scheduling method and device, electronic equipment and computer readable storage medium
CN115002513B (en) * 2022-05-25 2023-10-20 咪咕文化科技有限公司 Audio and video scheduling method and device, electronic equipment and computer readable storage medium
CN115150641A (en) * 2022-06-28 2022-10-04 炫彩互动网络科技有限公司 Cloud game video coding parameter dynamic adjustment method and device
CN115174965A (en) * 2022-06-30 2022-10-11 杭州海康威视数字技术股份有限公司 Video preview method and device, electronic equipment and computer readable storage medium
CN115174965B (en) * 2022-06-30 2024-01-02 杭州海康威视数字技术股份有限公司 Video preview method, device, electronic equipment and computer readable storage medium
CN116112712A (en) * 2023-01-12 2023-05-12 联通沃音乐文化有限公司 Self-adaptive video-audio video transmission playing method
CN116112712B (en) * 2023-01-12 2023-09-26 联通沃音乐文化有限公司 Self-adaptive video-audio video transmission playing method

Also Published As

Publication number Publication date
CN105263066A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
WO2015188678A1 (en) Transmission control method and system for video stream of mobile device
US10567452B2 (en) Method and apparatus for improving quality of multimedia streaming service
US9819717B2 (en) Video adaptation for content-aware wireless streaming
JP4670902B2 (en) Transmitting apparatus, transmitting method, and receiving apparatus
US20130195119A1 (en) Feedback channel for wireless display devices
US8633963B2 (en) Determining buffer size based on retransmission latency
CN101990087A (en) Wireless video monitoring system and method for dynamically regulating code stream according to network state
EP2820857A1 (en) Frame capture and buffering at source device in wireless display system
CN104980819A (en) Video transmission method and device
TWI628958B (en) Full-frame buffer to improve video performance in low-latency video communication systems
CN110996035B (en) Information sending method and device
US10341047B2 (en) Method and system for controlling the forwarding of error correction data
US10085029B2 (en) Switching display devices in video telephony
US20160182919A1 (en) Transmitting device and receiving device
JP5675164B2 (en) Transmission device, transmission method, and program
TWI549496B (en) Mobile electronic device and video compensation method thereof
Park et al. System architecture for IPTV seamless service in mobility
EP4319176A1 (en) Method for transmitting streaming media data and related device
CN117014608A (en) Video stream code rate adjusting method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15806484

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15806484

Country of ref document: EP

Kind code of ref document: A1