WO2012119459A1 - 数据传输的方法、装置和系统 - Google Patents

数据传输的方法、装置和系统 Download PDF

Info

Publication number
WO2012119459A1
WO2012119459A1 PCT/CN2011/081912 CN2011081912W WO2012119459A1 WO 2012119459 A1 WO2012119459 A1 WO 2012119459A1 CN 2011081912 W CN2011081912 W CN 2011081912W WO 2012119459 A1 WO2012119459 A1 WO 2012119459A1
Authority
WO
WIPO (PCT)
Prior art keywords
video data
parameter
encoding
temporary
video
Prior art date
Application number
PCT/CN2011/081912
Other languages
English (en)
French (fr)
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 WO2012119459A1 publication Critical patent/WO2012119459A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, and system. Background technique
  • the video service has become the largest Internet traffic, and it will be a dominant form of business for future Internet applications.
  • due to the huge amount of data generated by the video service while providing rich information, it also occupies a large amount of network bandwidth in the transmission of the network, and the bandwidth of the network is limited. Therefore, a large amount of video data may cause congestion of the wireless network. .
  • the video data can be compressed and transcoded, so that the amount of data transmitted is reduced, the transmission delay of the video data is reduced, and network congestion is avoided.
  • the embodiment of the present invention provides a method for video data transmission, where the method includes:
  • An embodiment of the present invention further provides an apparatus for video data transmission, where the apparatus includes:
  • a first video data acquiring module configured to acquire video data
  • a first encoding parameter determining module configured to determine a first encoding parameter according to a preset video quality evaluation parameter threshold value and the video data
  • a first encoded video data generating module configured to encode the video data according to the first encoding parameter, Obtaining first encoded video data
  • the first encoded video data sending module is configured to send the first encoded video data to the user terminal.
  • the embodiment of the invention further provides a system for video data transmission, the system comprising a video data transmission device and a terminal:
  • the video data transmission device is configured to acquire video data, determine a first encoding parameter according to a preset video quality evaluation parameter threshold value and the video data, and encode the video data according to the first encoding parameter. Obtaining first encoded video data, and transmitting the first encoded video data to the terminal;
  • the terminal is configured to receive the first encoded video data sent by the video data transmission device.
  • the first coding parameter is determined according to the preset video quality evaluation parameter threshold value and the video data, thereby ensuring the QoE of the user; further, the video data is selected by using the selected first coding parameter. Encoding is performed to obtain the first encoded video data, which reduces the amount of data of the video data, and avoids wireless network congestion caused by a large amount of video data.
  • FIG. 1 is a flowchart of a method for transmitting video data according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for transmitting video data according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for transmitting video data according to Embodiment 3 of the present invention.
  • FIG. 4 is a flowchart of a method for transmitting video data according to Embodiment 4 of the present invention.
  • FIG. 5 is a comparison diagram of video screenshot quality before and after rate adjustment according to Embodiment 4 of the present invention.
  • Embodiment 6 is a system gain diagram provided by Embodiment 4 of the present invention.
  • FIG. 7 is a schematic structural diagram of an apparatus for transmitting video data according to Embodiment 5 of the present invention.
  • FIG. 8 is a schematic structural diagram of an apparatus for transmitting video data according to Embodiment 6 of the present invention.
  • FIG. 9 is a schematic structural diagram of a video data transmission system according to Embodiment 7 of the present invention. detailed description
  • an embodiment of the present invention provides a method for video data transmission, where the method includes:
  • the video data may be directly obtained; or the encoded video data is decoded, that is, the second encoded video data is obtained, and the second encoded video data is decoded to obtain the video. data.
  • the second encoded video data is encoded video data obtained by encoding original video data.
  • S102 determining, according to a preset video quality evaluation parameter threshold value and the video data, a first encoding parameter; optionally, obtaining a temporary first encoding parameter; according to the temporary first encoding parameter, The video data is encoded to obtain temporary reconstructed video data; and the video quality evaluation parameter value of the temporary reconstructed video data and the video data is obtained; determining whether the video quality evaluation parameter value is greater than or equal to the threshold value, If not, after the preset increment is added to the temporary first encoding parameter, performing the step of encoding the video data according to the temporary first encoding parameter. If yes, the temporary first coding parameter is taken as the first coding parameter.
  • the obtaining the temporary first encoding parameter may include: acquiring a preset temporary first encoding parameter; or acquiring a second encoding parameter of the second encoded video data as the temporary first encoding.
  • the second encoding parameter is a parameter used when encoding the video data to generate the second encoded video data.
  • the preset video quality evaluation parameter threshold value in this step may be multiple.
  • the video quality evaluation parameter of the video data may be obtained. Determining a threshold value; and determining a video quality evaluation parameter threshold value that satisfies the condition according to the determining condition, and finally using the video quality evaluation parameter threshold value that satisfies the condition as a preset video quality evaluation parameter threshold value.
  • the determining condition of the video quality evaluation parameter threshold value of the video data may be determined according to various factors, such as a current network status, a total amount of video data, and the like.
  • S103 encoding the video data according to the first encoding parameter to obtain first encoded video data
  • S104 transmitting the first encoded video data to a user terminal.
  • the video data of the preset time interval in the video data is obtained; the parameter threshold is evaluated according to the preset video quality, and the video data of the preset time interval determines the first encoding parameter.
  • the video data can be evaluated only for a period of time to determine the first encoding parameter.
  • the period of time is the evaluation time length Tl, and T1 can be a data packet, a frame or a slice time, and the like.
  • T1 can be a data packet, a frame or a slice time, and the like.
  • the purpose of setting T1 is to perform cyclic calculation on the data of T1 time for each evaluation without looping all the data of the input code stream, which can reduce the calculation amount and reduce the system complexity.
  • the first encoding parameter may be periodically determined, such as setting the period to ⁇ , ⁇ greater than or equal to T1, ⁇ may be several data packets, time of several frames, etc.; the purpose of setting ⁇ is to re-perceive each time Make a judgment to deal with The changing real-time resource utilization and input video stream, while updating the optimized parameters at the time of encoding, instead of using only fixed optimization parameters for the entire input video.
  • the first coding parameter is determined according to the preset video quality evaluation parameter threshold value and the video data, thereby ensuring the QoE of the user; further, the video data is selected by using the selected first coding parameter. Encoding is performed to obtain the first encoded video data, which reduces the amount of data of the video data, and avoids wireless network congestion caused by a large amount of video data.
  • an embodiment of the present invention provides a method for video data transmission, including the following steps:
  • the second encoded video data is obtained by encoding the video data that needs to be acquired;
  • S202 Decode the second encoded video data to obtain video data.
  • the first coding parameter may be a preset temporary first coding parameter; or the second coding parameter of the second coded video data is obtained as the temporary first coding parameter.
  • the second encoding parameter is a parameter used when encoding the video data to generate the second encoded video data.
  • the first encoding parameter and the second encoding parameter is a quantization parameter
  • a first provisional coding parameter is the temporary quantization parameter QP (Quantization Parameter) 0
  • QP is an important encoding parameters, the larger the value of QP, the image It is not clear that the smaller the video rate after encoding, the less bandwidth is used during video transmission.
  • the video quality evaluation parameter is PSNR (Peak Signal to Noise Ratio).
  • PSNR Peak Signal to Noise Ratio
  • QP As an important coding parameter, QP needs to be reflected by the image sequence set of the video stream and the parameters in the parameter sequence set, as well as the information of the packet header. That is, if you want to obtain the QP of the current frame of a certain video, you need to consider the image sequence set comprehensively. , the parameter sequence set and the QP information in the current data packet header.
  • the peak signal to noise ratio (PSNR) threshold may be a peak signal to noise ratio (PSNR) threshold value preset in the execution body of the step, or a peak signal to noise ratio (PSNR) gate obtained from other locations by the execution step of the step. Limit.
  • PSNR peak signal to noise ratio
  • first coding parameter and the second coding parameter are hierarchical coding levels
  • temporary first coding parameter is a temporary hierarchical coding level
  • S204 Encoding the video data according to the temporary first encoding parameter, to obtain temporary reconstructed video data.
  • S206 Determine whether the video quality evaluation parameter value is greater than or equal to the threshold value. If not, add a preset increment to the temporary first encoding parameter, and then execute S204, where the preset increment may be positive. Number or negative number; if yes, execute S207;
  • the temporary first coding parameter is used as a first coding parameter, and the video data is encoded according to the first coding parameter to obtain first coded video data.
  • S208 Send the first encoded video data to a user terminal.
  • the first coding parameter is determined according to the preset video quality evaluation parameter threshold value and the video data, thereby ensuring the QoE of the user; further, the video data is selected by using the selected first coding parameter. Encoding is performed to obtain the first encoded video data, which reduces the amount of data of the video data, and avoids wireless network congestion caused by a large amount of video data.
  • the embodiment of the present invention provides a method for video data transmission, including steps S301 to S306, where S301 ⁇ S302 are the same as S201 ⁇ S202; S305 ⁇ S306 are the same as S207 ⁇ S208, and the specific steps are implemented.
  • Example 2 which is not described here again. Different from Embodiment 2, this embodiment further includes the following steps:
  • S303 Query a correspondence between a locally stored video quality evaluation parameter threshold value and an encoding parameter, and obtain an encoding parameter corresponding to the preset video quality evaluation parameter threshold value;
  • the correspondence between the video quality evaluation parameter threshold and the coding parameter may be as shown in Table 1, and the video quality evaluation parameter threshold may be corresponding to multiple coding parameters.
  • PSNR 30 25 25 25 25 25 25 0 0
  • PSNR 35 20 20 20 0 0 0 0
  • one coding parameter may be determined in the multiple corresponding coding parameters by setting a coding parameter selection condition.
  • setting the coding parameter selection condition may be: acquiring an encoding parameter that is closest to the second coding parameter in the correspondence relationship.
  • the closest to the second coding parameter may be obtained by acquiring an encoding parameter of the second encoding parameter in the correspondence relationship
  • the coding parameter of the number is used as the first coding parameter.
  • the correspondence between the threshold value of the locally stored video quality evaluation parameter and the coding parameter may be a combination of a video quality evaluation parameter threshold value and a second coding parameter.
  • Corresponding relationship of the coding parameter values; correspondingly, the coding parameter value corresponding to the video quality evaluation parameter threshold value is obtained by acquiring the second coding parameter in the correspondence relationship, and the coding parameter value is used as the first coding parameter.
  • the coding parameters used in coding such as QP
  • QP have a relatively fixed correspondence with the PSNR between the reconstructed video and the source video. For example, when the PSNR is equal to 40 dB, the corresponding QP value during encoding is 25 about. Therefore, what is described in this embodiment is a method of determining an encoding parameter by a static lookup table.
  • the correspondence between the PSNR threshold value and the coding parameter saved locally can be determined by: determining, by using offline testing, the correspondence between the QP and the PSNR threshold as a table, the table The value of the corresponding re-encoding parameter QP is recorded when the PSNR threshold value and the QP value of the input video are differently combined; if there is no QP that satisfies the condition, the corresponding part of the table may be represented by a specific value, such as 0, At the time, the first coding parameter cannot be determined by S304.
  • the first coding parameter may be further accurately determined by performing steps S203-S206 in Embodiment 2, specifically, the first coding parameter determined in S304 is used as the temporary first coding parameter in S203, and then S203 to S206 are sequentially executed.
  • the procedure refer to Embodiment 2, and details are not described herein again.
  • the first coding parameter is determined according to the preset video quality evaluation parameter threshold value and the video data, thereby ensuring the QoE of the user; further, the video data is selected by using the selected first coding parameter. Encoding is performed to obtain the first encoded video data, which reduces the amount of data of the video data, and avoids wireless network congestion caused by a large amount of video data. Further, in this embodiment, the first coding parameter is determined by querying the correspondence between the locally stored threshold value and the coding parameter, and the coding parameter is not required to be determined by real-time testing, thereby saving the determination time of the coding parameter and improving the coding efficiency.
  • an embodiment of the present invention provides a video data transmission method, where the video data is encoded to generate the second encoded video data, and the second encoded parameter is a second quantization step.
  • the video data is evaluated for a period of time, and the first coding parameter is determined as an example.
  • the method includes:
  • S402 Decode the second encoded video data to obtain video data.
  • the obtained video data in the second encoded video data is decoded to obtain video data.
  • the captured video stream data of the application layer is obtained by stripping the obtained second encoded video data from the packet header, and the pure video data stream is taken out from the container of the video stream, and the video stream is performed on the video stream. Decode, get the solution The video stream data is obtained after the code to obtain the video data.
  • the pure video data stream may be an H.264 stream, or a code stream of other encoding methods, such as H.263, MPEG-4, etc., and the specific stream format depends on the input.
  • the quantization step is a parameter used when encoding the video data to generate the second encoded video data.
  • DPI Deep Packet Inspection
  • the image sequence set and the parameter sequence set of the initial portion of the decoded video are parsed to obtain a quantization step size of the second encoded video data.
  • the peak signal-to-noise ratio PSNR threshold is a threshold value of the quality comparison parameter of the reconstructed video at the time of decoding and re-encoding, which can be determined by channel parameters, system resource utilization, and user policy information.
  • the better the channel condition, the smaller the resource utilization, and the greater the PSNR threshold is a threshold value of the quality comparison parameter of the reconstructed video at the time of decoding and re-encoding.
  • S402, S403, and S404 may be performed in parallel or serially, and the execution order may be arbitrarily combined.
  • S405 adding a preset step increment to the quantization step of the second encoded video data to obtain a temporary quantization step size
  • S406 Encoding the video data according to the temporary quantization step to obtain temporary reconstructed video data.
  • S407 Determine whether the PSNR value of the temporarily reconstructed video data compared with the decoded video data in S402 is greater than or Is equal to the PSNR threshold, if not, then executing S408; if yes, executing S409;
  • S409 The temporary quantization step size is used as the first coding parameter.
  • S410 Encoding the video data according to the first encoding parameter, to obtain first encoded video data. Specifically, encoding the video data according to the first encoding parameter, to obtain a re-encoded first encoding.
  • the video data optionally, the first encoded video data may be an H.264 stream.
  • S411 Send the first encoded video data to a user terminal.
  • the re-encoded H.264 video stream is re-encapsulated into an output video stream.
  • the re-encapsulation of the re-encoded video stream may further include an audio stream, a subtitle stream, and the like.
  • the parameter used by the video data to generate the second encoded video data is a quantization step
  • the parameter used when generating the second encoded video data is When the layered coding level is used, the corresponding preset step size increment is the preset layered code level increment.
  • the remaining steps are the same as those in this embodiment, and are not described here.
  • the method may further include: acquiring part of the video data
  • S405 ⁇ S409 may determine the first coding parameter according to the preset peak signal to noise ratio PSNR threshold, and specifically: determining the preset time according to a preset peak signal to noise ratio (PSNR) threshold value.
  • PSNR preset peak signal to noise ratio
  • Fig. 5 is a comparison of video screenshots before and after rate adjustment, and the PSNR threshold is 40 dB.
  • the video QP before the rate adjustment is equal to 5, that is, the rate is 1452. 7kbps, and the video QP after the rate adjustment is equal to 25, that is, the rate is 319. 06kbps. It can be seen that the video quality before and after the rate adjustment, the picture quality difference is not obvious.
  • Figure 6 is a gain diagram of the system capacity.
  • the circled part in the figure is the corresponding system capacity diagram in Figure 5.
  • the PSNR threshold is 40 dB
  • the system gain can reach 200% or more.
  • the meaning of the gain is: If the system can allow one user to access before adopting the scheme, after the scheme is adopted, the system allows at least 3 users to access, and the QoE feelings of the three users when watching the video are the same as the previous one. The QoE experience of the user watching the video alone did not drop much.
  • the system gain is small. For example, if the QP value of the input video itself is equal to 35 and the PSNR threshold is 40 dB, the system basically has no gain.
  • the initial data packets need to be intercepted first, so that the image sequence set in the initial packet can be obtained.
  • the parameter sequence set, and the video data used to determine the first encoding parameter is preferably a video data of the first few data packets removed to ensure accuracy and rationality of the determined first encoding parameter.
  • the first coding parameter is determined by increasing the preset step size increment.
  • the first coding parameter may be determined by decrementing from the maximum value that the first coding parameter may take.
  • the first coding parameter is determined by using the coding parameter as the QP as an example.
  • low-pass filtering may also be used to adjust the first coding parameter of the rate determination:
  • the input video The image is first DCT transformed. After DCT transform, the low frequency components are concentrated in the upper left corner, and the high frequency components are distributed in the lower right corner. Since the low frequency components contain the main information of the image, the high frequency components are less important than this, so The high frequency component can be ignored to achieve the purpose of compression.
  • downsampling downs or subsampling may be used, that is, by reducing the sampling rate of the signal, the purpose of reducing the data rate or reducing the amount of data is achieved.
  • the process of determining the first encoding parameter may be triggered by an event, that is, when a new event occurs in the system, such as The system real-time resource utilization suddenly increases or decreases, or the parameters of the input H.264 video itself are hopped, etc., and the process of determining the first encoding parameter described in the above embodiment is triggered.
  • an event that is, when a new event occurs in the system, such as The system real-time resource utilization suddenly increases or decreases, or the parameters of the input H.264 video itself are hopped, etc.
  • it can also combine the two methods of period and event triggering, that is, the method of periodicity in the normal state, when an event occurs, the state change is directly triggered without waiting for the next cycle to arrive.
  • the cycle is not stopped immediately, but multiple conditions that meet the threshold are continuously found.
  • the first coding parameter is determined according to the preset video quality evaluation parameter threshold value and the video data, thereby ensuring the QoE of the user; further, the video data is selected by using the selected first coding parameter. Encoding is performed to obtain the first encoded video data, which reduces the amount of data of the video data, and avoids wireless network congestion caused by a large amount of video data. In addition, dynamic adjustment of the coding parameters improves the accuracy of the coding and enhances the adaptability to time-varying wireless channels.
  • an embodiment of the present invention provides a device for transmitting video data, where the device includes: a first video data acquiring module 501, configured to acquire video data;
  • a first encoding parameter determining module 502 configured to determine a first encoding parameter according to a preset video quality evaluation parameter threshold value and the video data;
  • a first encoded video data generating module 503, configured to encode the video data according to the first encoding parameter, to obtain first encoded video data
  • the first encoded video data sending module 504 is configured to send the first encoded video data to the user terminal.
  • the embodiment of the present invention determines the first encoding parameter according to the preset video quality evaluation parameter threshold value and the video data, and encodes the video data according to the first encoding parameter to obtain the first encoded video number. That is, the data amount of the video data is reduced, the wireless network congestion caused by a large amount of video data is avoided, and the QoE of the user is ensured by setting the video quality evaluation parameter threshold.
  • Example 6
  • an embodiment of the present invention provides an apparatus for video data transmission, where the apparatus includes a first video data acquiring module 501, a first encoding parameter determining module 502, and first encoded video data in Embodiment 5. a generating module 503, a first encoded video data sending module 504;
  • the first video data obtaining module 501 specifically includes:
  • the second encoded video data acquiring unit 5011 is configured to obtain second encoded video data, where the second encoded data is obtained by encoding the video data that needs to be obtained;
  • the video data generating unit 5012 is configured to decode the second encoded video data to obtain the video data.
  • the first encoding parameter determining module 502 specifically includes: a temporary first encoding parameter obtaining unit 5021, configured to acquire a temporary first encoding parameter;
  • the temporary reconstructed video data generating unit 5022 is configured to encode the video data according to the temporary first encoding parameter to obtain temporary reconstructed video data.
  • the video quality evaluation parameter value obtaining unit 5023 is configured to compare the temporary reconstructed video data with the video data to obtain a first video quality evaluation parameter value
  • the video quality evaluation parameter value determining unit 5024 is configured to determine whether the first video quality evaluation parameter value is greater than or equal to the threshold value, and if not, add a preset increment to the temporary first encoding parameter, Performing the step of encoding the video data according to the temporary first encoding parameter, until the first video quality evaluation parameter value is greater than or equal to the threshold; if yes, the temporary first The encoding parameter is used as the first encoding parameter.
  • the temporary first encoding parameter obtaining unit 5021 specifically includes:
  • the first first encoding unit acquires a first sub-unit 50211 for acquiring a preset temporary first encoding parameter
  • the second encoding unit acquires a second encoding unit that acquires a second encoding parameter of the second encoded video data as the temporary first encoding parameter, where the second encoding parameter is to encode the video data.
  • a parameter used when generating the second encoded video data is to generate the second encoded video data.
  • the first encoding parameter determining module 502 includes:
  • a coding parameter determining unit configured to query a correspondence between a locally saved video quality evaluation parameter threshold and an encoding parameter, and obtain an encoding parameter corresponding to the preset video quality evaluation parameter threshold; and the corresponding encoding parameter As the first coding parameter.
  • the device also includes:
  • the second video data obtaining module 505 is configured to acquire the video data of the preset time interval in the video data.
  • the first encoding parameter determining module 502 includes:
  • the second encoding parameter determining module is configured to determine, according to a preset threshold value of the video image quality parameter ratio before and after the encoding, the video data of the preset time interval determines the first encoding parameter.
  • the first coding parameter and the second coding parameter may be a quantization parameter, and the temporary first coding parameter is a temporary quantization parameter; or, the first coding parameter and the second coding parameter are A hierarchical coding level, the temporary first coding parameter being a temporary hierarchical coding level.
  • the device also includes:
  • a determining condition obtaining module 507 configured to obtain a determining condition of a video quality evaluation parameter threshold value of the video data
  • a video quality evaluation parameter threshold determining module 508 configured to determine, according to the determining condition, a video that satisfies the condition
  • the quality evaluation parameter threshold value is used as a preset video quality evaluation parameter threshold value.
  • the embodiment of the present invention determines the first encoding parameter according to the preset video quality evaluation parameter threshold value and the video data, and encodes the video data according to the first encoding parameter to obtain the first encoded video number. That is, the data amount of the video data is reduced, the wireless network congestion caused by a large amount of video data is avoided, and the QoE of the user is ensured by setting the video quality evaluation parameter threshold.
  • Example 6
  • an embodiment of the present invention provides a system for video data transmission, where the system includes a video data transmission device 601 and a terminal 602:
  • the video data transmission device 601 is configured to acquire video data, determine a first coding parameter according to a preset video quality evaluation parameter threshold value and the video data, and perform the video data according to the first coding parameter. Encoding, obtaining first encoded video data, and transmitting the first encoded video data to the terminal;
  • the terminal 602 is configured to receive the first encoded video data sent by the video data transmission device.
  • the terminal 602 may be a video server for video transmission and forwarding, or another terminal for the user to watch video.
  • the embodiment of the present invention determines the first encoding parameter according to the preset video quality evaluation parameter threshold value and the video data, and encodes the video data according to the first encoding parameter to obtain the first encoded video number. That is, the data amount of the video data is reduced, the wireless network congestion caused by a large amount of video data is avoided, and the QoE of the user is ensured by setting the video quality evaluation parameter threshold.
  • All or part of the technical solutions provided by the above embodiments may be implemented by software programming, and the software program is stored in a readable storage medium such as a hard disk, an optical disk or a floppy disk in a computer.

Abstract

本发明公开了一种数据传输的方法、装置和系统,属于通信技术领域。所述方法包括:获取视频数据;根据预设的视频质量评价参数门限值和所述视频数据,确定第一编码参数;根据所述第一编码参数对所述视频数据进行编码,得到第一编码视频数据;发送所述第一编码视频数据至用户终端。本发明实施例通过根据预设的视频质量评价参数门限值和所述视频数据,确定第一编码参数,从而保证了用户的QoE;进一步的,通过选择的第一编码参数对所述视频数据进行编码,得到第一编码视频数据,减少了视频数据的数据量,避免了由于大量的视频数据造成的无线网络拥塞。

Description

数据传输的方法、 装置和系统 技术领域
本发明涉及通信技术领域, 特别涉及一种数据传输的方法、 装置和系统。 背景技术
视频业务已成为互联网流量最大的业务, 其将是未来互联网应用上占据主导地位的一 种业务形态。 但是, 由于视频业务产生的数据量巨大, 在其提供丰富信息的同时, 在网络 的传输中也占用了大量的网络带宽, 而网络的带宽有限, 因此, 大量的视频数据会造成无 线网络的拥塞。
现有技术中, 可通过对视频数据压縮、 转码, 以致减少其传输数据量, 减少视频数据 的传输时延, 避免了网络拥塞。
发明人在实现本发明的过程中发现现有技术存在以下缺陷:
现有技术中, 对视频数据压縮、 转码时, 是以减少视频数据的传输数据量为主要目的, 其并没有充分考虑用户的 QoE (Qual ity of Experience, 用户体验), 当视频数据被过度压 縮、 转码后, 会使严重影响用户对视频数据的观看, 从而导致用户的 QoE得不到保证。 发明内容
为了使用户收看视频的 QoE得到保证, 本发明实施例提供了一种视频数据传输的方法, 所述方法包括:
获取视频数据;
根据预设的视频质量评价参数门限值、 所述视频数据, 确定第一编码参数;
根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数据;
发送所述第一编码视频数据至用户终端。
本发明实施例还提供了一种视频数据传输的装置, 所述装置包括:
第一视频数据获取模块, 用于获取视频数据;
第一编码参数确定模块, 用于根据预设的视频质量评价参数门限值、 所述视频数据, 确定第一编码参数;
第一编码视频数据生成模块, 用于根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数据;
第一编码视频数据发送模块, 用于发送所述第一编码视频数据至用户终端。
本发明实施例还提供了一种视频数据传输的系统, 所述系统包括视频数据传输装置和 终端:
所述视频数据传输装置, 用于获取视频数据, 根据预设的视频质量评价参数门限值和 所述视频数据, 确定第一编码参数, 根据所述第一编码参数对所述视频数据进行编码, 得 到第一编码视频数据, 发送所述第一编码视频数据至所述终端;
所述终端, 用于接收所述视频数据传输装置发送的所述第一编码视频数据。
本发明实施例通过根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编 码参数, 从而保证了用户的 QoE; 进一步的, 通过选择的第一编码参数对所述视频数据进行 编码, 得到第一编码视频数据, 减少了视频数据的数据量, 避免了由于大量的视频数据造 成的无线网络拥塞。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所需要使用的 附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本 领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的 附图。
图 1是本发明实施例 1提供的视频数据传输的方法流程图;
图 2是本发明实施例 2提供的视频数据传输的方法流程图;
图 3是本发明实施例 3提供的视频数据传输的方法流程图;
图 4是本发明实施例 4提供的视频数据传输的方法流程图;
图 5是本发明实施例 4提供的速率调节前后视频截图质量对比图;
图 6是本发明实施例 4提供的系统增益图;
图 7是本发明实施例 5提供的视频数据传输的装置结构示意图;
图 8是本发明实施例 6提供的视频数据传输的装置结构示意图;
图 9是本发明实施例 7提供的视频数据传输系统结构示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一步地详细描述。 实施例 1
如图 1所示, 本发明实施例提供了一种视频数据传输的方法, 所述方法包括:
S 101 : 获取视频数据;
可选的, 所述视频数据可以是直接获取到的; 或者对编码后的视频数据进行解码得到 的, 即获取第二编码视频数据, 并对所述第二编码视频数据进行解码, 得到该视频数据。
其中, 所述第二编码视频数据为对原始视频数据进行编码得到的编码后的视频数据。
S 102 : 根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编码参数; 可选的, 可通过获取临时第一编码参数; 根据所述临时第一编码参数对所述视频数据 进行编码, 得到临时重构视频数据; 获取所述临时重构视频数据与所述视频数据的视频质 量评价参数值; 判断所述视频质量评价参数值是否大于或等于所述门限值, 如果不是, 则 为所述临时第一编码参数增加预设增量后, 执行所述根据所述临时第一编码参数对所述视 频数据进行编码的步骤。 如果是, 则将所述临时第一编码参数作为第一编码参数。
其中, 可选的所述获取临时第一编码参数, 具体可以包括: 获取预设的临时第一编码 参数; 或, 获取所述第二编码视频数据的第二编码参数作为所述临时第一编码参数, 所述 第二编码参数为对所述视频数据进行编码生成所述第二编码视频数据时采用的参数。
优选的, 本步骤中的预设的视频质量评价参数门限值可以为多个, 当预设的视频质量 评价参数门限值为多个时, 可通过获取所述视频数据的视频质量评价参数门限值的确定条 件; 并根据所述确定条件, 确定满足条件的视频质量评价参数门限值, 最后将所述满足条 件的视频质量评价参数门限值作为预设的视频质量评价参数门限值。
其中, 所述视频数据的视频质量评价参数门限值的确定条件可以为根据多种因素决定, 如当前的网络状况、 视频的数据的总量等。
S 103 : 根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数据; S 104: 发送所述第一编码视频数据至用户终端。
可选的, 可通过获取所述视频数据中的预设时间间隔的视频数据; 根据预设的视频质 量评价参数门限值, 所述预设时间间隔的视频数据确定第一编码参数。
由于视频数据往往较大可选的, 因此可只针对一段时间内的视频数据进行评估, 从而 确定第一编码参数。 该一段时间即为评估时长 Tl, T1可以为一个数据包、 一帧或一个片的 时间等等。 设置 T1 的目的是, 每次评估时, 只需要对 T1时间的数据进行循环计算, 而无 需对输入码流的所有数据进行循环计算, 这样可以减少计算量, 降低系统复杂度。
另外, 可周期性确定第一编码参数, 如设置该周期为 Τ, Τ大于等于 Tl, Τ可以为几个 数据包、 几帧的时间等; 设置 τ的目的是, 每经过 Τ时间, 就重新进行一次判决, 以应对 变化的实时资源利用率和输入视频流, 同时对编码时的优化参数进行一次更新, 而不是对 整段输入视频都只采用固定的优化参数。
本发明实施例通过根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编 码参数, 从而保证了用户的 QoE; 进一步的, 通过选择的第一编码参数对所述视频数据进行 编码, 得到第一编码视频数据, 减少了视频数据的数据量, 避免了由于大量的视频数据造 成的无线网络拥塞。 实施例 2
如图 2所示, 本发明实施例提供了一种视频数据传输的方法, 包括以下步骤:
S201 : 获取第二编码视频数据;
其中, 所述第二编码视频数据为对需要获取的视频数据进行编码后得到的;
S202: 对所述第二编码视频数据进行解码, 得到视频数据;
S203: 获取临时第一编码参数;
可选的, 所述第一编码参数可以为预设的临时第一编码参数; 或通过获取所述第二编 码视频数据的第二编码参数作为所述临时第一编码参数。 所述第二编码参数为对所述视频 数据进行编码生成所述第二编码视频数据时采用的参数。
可选的, 第一编码参数和第二编码参数为量化参数, 所述临时第一编码参数为临时量 化参数 QP (Quantization Parameter ) 0 QP是一项重要的编码参数, QP值越大, 图像越不 清晰, 编码后视频速率越小, 视频传输过程中占用的带宽就越少。 可选的, 视频质量评价 参数为 PSNR (Peak Signal to Noise Ratio, 峰值信噪比)。 视频编码时所采用的 QP与编 码后重构视频与编码前视频的 PSNR之间存在递减的关系, 即编码时所采用的 QP越大, 编 码后重构视频与编码前视频的 PSNR值越小。 QP作为一项重要的编码参数, 需要通过视频流 的图像序列集和参数序列集中的参数, 以及数据包头的信息共同体现, 即如果想获得某段 视频当前帧的 QP, 需要综合考虑图像序列集、参数序列集以及当前数据包头三项中的 QP信 息。
其中, 所述峰值信噪比 PSNR 门限值可以为预设于本步骤执行主体内的峰值信噪比 PSNR 门限值, 或是由本步骤执行主体从其他位置获取到的峰值信噪比 PSNR门限值。
进一步可选的, 所述第一编码参数和第二编码参数为分层编码层次, 所述临时第一编 码参数为临时分层编码层次。
S204: 根据所述临时第一编码参数对所述视频数据进行编码, 得到临时重构视频数据;
S205 : 将所述临时重构视频数据与所述视频数据进行对比, 得到第一视频质量评价参 数值;
S206 : 判断所述视频质量评价参数值是否大于或等于所述门限值, 如果否, 则为所述 临时第一编码参数增加预设增量后执行 S204, 所述预设增量可以为正数或负数; 如果是则 执行 S207;
S207 : 将所述临时第一编码参数作为第一编码参数, 根据该第一编码参数对所述视频 数据进行编码, 得到第一编码视频数据;
S208: 发送所述第一编码视频数据至用户终端。
本发明实施例通过根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编 码参数, 从而保证了用户的 QoE; 进一步的, 通过选择的第一编码参数对所述视频数据进行 编码, 得到第一编码视频数据, 减少了视频数据的数据量, 避免了由于大量的视频数据造 成的无线网络拥塞。 实施例 3
如图 3所示, 本发明实施例提供了一种视频数据传输的方法, 包括步骤 S301~S306, 其 中, S301~S302与 S201~S202相同; S305~S306与 S207~S208相同, 具体步骤参见实施例 2, 此处不再赘述, 与实施例 2不同的是, 本实施例还包括以下步骤:
S303 : 查询本地保存的视频质量评价参数门限值与编码参数的对应关系, 获取所述预 设的视频质量评价参数门限值对应的编码参数;
S304: 将所述对应的编码参数作为第一编码参数。
可选的, 视频质量评价参数门限值与编码参数的对应关系可如表一所示, 同意视频质 量评价参数门限值可对应多个编码参数,。
表一:
/
编 码 参 数
PSNR=30 25 25 25 25 0 0
PSNR=35 20 20 20 0 0 0
PSNR=45 15 15 0 0 0 0
PSNR=55 10 0 0 0 0 0
可选的, 可通过设置编码参数选取条件在多个对应编码参数中确定一个编码参数, 如 设置编码参数选取条件可以为, 获取所述对应关系中最接近所述第二编码参数的编码参数。 可通过获取所述对应关系中所述第二编码参数的编码参数, 将所述最接近所述第二编码参 数的编码参数作为第一编码参数; 可选的, 所述本地保存的视频质量评价参数门限值与编 码参数的对应关系可以为视频质量评价参数门限值与第二编码参数的组合对应的编码参数 值的对应关系; 相应的, 可通过获取所述对应关系中所述第二编码参数与所述视频质量评 价参数门限值对应的编码参数值, 将所述编码参数值作为第一编码参数。
进一步可选的, 通过实践证明, 编码时采用的编码参数, 比如 QP与重构视频和源视频 之间的 PSNR有着比较固定的对应关系, 比如 PSNR等于 40dB时, 编码时的对应 QP值为 25 左右。 因此, 本实施例中描述的是一种通过静态查表的方法来确定编码参数。
优选的, 本地保存的所述 PSNR门限值与编码参数的对应关系可通过以下方式确定: 可 首先通过采用离线测试的方式, 将 QP与 PSNR门限值的对应关系制作为一个表格, 该表格 记录了 PSNR门限值和输入视频的 QP值取不同组合时, 对应的重编码参数 QP的取值; 如果 不存在满足条件的 QP, 则表格相应的部分可以用特定数值表示, 比如 0, 此时, 通过 S304 则无法确定第一编码参数。
可选的, S304之后, 可通过执行实施例 2中步骤 S203~S206进一步精确确定-第一编码 参数, 具体为, 将 S304中确定的第一编码参数作为 S203中的临时第一编码参数, 然后顺 序执行 S203~S206, 步骤参见实施例 2, 此处不再赘述。
本发明实施例通过根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编 码参数, 从而保证了用户的 QoE; 进一步的, 通过选择的第一编码参数对所述视频数据进行 编码, 得到第一编码视频数据, 减少了视频数据的数据量, 避免了由于大量的视频数据造 成的无线网络拥塞。 进一步的, 本实施例通过查询本地保存的门限值与编码参数的对应关 系确定第一编码参数, 无需通过实时测试确定编码参数, 节省了编码参数的确定时间, 提 高了编码效率。 实施例 4
如图 4所示, 本发明实施例提供了一种视频数据传输的方法, 以对所述视频数据进行 编码生成所述第二编码视频数据, 所述第二编参数为第二量化步长; 且只针对一段时间内 的视频数据进行评估, 从而确定第一编码参数为例, 所述方法包括:
S401 : 获取第二编码视频数据;
S402 : 对所述第二编码视频数据进行解码, 得到视频数据;
具体的, 对获取到的所述第二编码视频数据中的视频数据进行解码, 得到视频数据。 可选的, 可通过将获取到的第二编码视频数据剥去数据包头还原为应用层的视频流数 据, 从视频流的容器封装中取出其中的纯视频数据码流, 并对该视频流进行解码, 得到解 码后视频流数据从而得到该视频数据。
其中, 可选的, 所述纯视频数据码流可以为 H. 264码流, 或其他编码方式的的码流, 如 H. 263、 MPEG-4等, 具体码流格式取决于输入。
S403: 获取所述第二编码视频数据的量化步长;
其中, 量化步长为对所述视频数据进行编码生成所述第二编码视频数据时采用的参数; 可选的,通过对解码后的视频流进行 DPI (Deep Packet Inspection,深度数据包检测), 对解码后视频的初始部分的图像序列集和参数序列集进行解析, 从而获取第二编码视频数 据的量化步长。
S404: 获取峰值信噪比 PSNR门限值;
其中, 峰值信噪比 PSNR 门限值, 是指解码后的视频与重新编码时的重构视频的质量对 比参数的门限值, 其可通过信道参数、 系统资源利用率和用户策略信息确定。 可选的, 信 道状况越好, 资源利用率越小, PSNR门限值也设置的越大。
S402、 S403、 S404可以并行进行, 也可以串行进行, 且执行顺序可以任意组合。
S405 : 在所述第二编码视频数据的量化步长的基础上增加预设步长增量, 得到临时量 化步长;
S406: 根据所述临时量化步长对所述视频数据进行编码, 得到临时重构视频数据; S407: 判断所述临时重构视频数据与 S402中解码后的视频数据相比的 PSNR值是否大 于或等于所述 PSNR门限值, 如果不是, 则执行 S408; 如果是则执行 S409;
S408: 为所述临时量化步长增加预设步长增量后, 执行 S406;
S409: 将所述临时量化步长作为第一编码参数。
S410: 根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数据; 具体的, 根据所述第一编码参数对所述视频数据进行编码, 得到重新编码后的第一编 码视频数据, 可选的, 第一编码视频数据可以为 H. 264码流。
S411 : 发送所述第一编码视频数据至用户终端。
可选的, 将重编码后的 H. 264视频流, 重新封装为输出视频流。
其中, 与重编码后的视频流进行重新封装的, 还可以包括音频流、 字幕流等。
可选的, 本实施例中, 采用的是对所述视频数据进行编码生成所述第二编码视频数据 采用的参数为量化步长为例, 当生成所述第二编码视频数据采用的参数为分层编码层次时, 相应的预设步长增量则为预设分层编码层次增量, 其余步骤与本实施例的步骤相同, 此处 不再赘述。
进一步可选的, 本实施例中 S402之后, 还可包括步骤: 获取所述视频数据中的部分视 频数据; 相应的, S405~S409可以为根据预设峰值信噪比 PSNR门限值, 确定第一编码参数, 具体包括: 根据预设峰值信噪比 PSNR 门限值, 确定所述预设时间间隔的视频数据的第三编 码参数, 将所述第三编码参数作为所述第一编码参数。
现采用开源的 H. 264编解码仿真器 JM程序, 对本实施例进行仿真, 实验结果如图 5和 图 6所示, 其中图 5为速率调节前后的视频截图对比, PSNR门限值为 40dB, 左图速率调节 前视频 QP等于 5, 即速率为 1452. 7kbps, 右图速率调节后的视频 QP等于 25, 即速率为 319. 06kbps。 可以看出速率调节前后的视频质量对比, 图片质量差别并不明显。
图 6为系统容量的增益图, 图中圈出的部分为图 5中调节时对应的系统容量图。从图 6 中可以看出当输入视频本身的速率较大, QP值较小时, 采用本发明方案进行速率调节后, 增益比较明显, 当 PSNR门限值为 40dB时, 系统增益可以达到 200%以上, 该增益的意义是: 如果采用本方案前, 系统可以允许一个用户接入, 则采用本方案后, 系统允许至少 3 个用 户接入, 而这 3个用户观看视频时的 QoE感受与之前一个用户单独观看视频的 QoE感受并 没有很大的下降。 当输入视频本身的速率就比较小时, 系统增益很小, 如输入视频本身的 QP值等于 35, PSNR门限值为 40dB时, 系统基本是没有增益的。
需要说明的是, 由于图像序列集和参数序列集一般是在视频流的最初几个数据包中传 输, 本实施例中需要首先截取这些初始数据包, 以能够获得初始包中的图像序列集和参数 序列集, 而用于确定第一编码参数的视频数据优选的为除去上述最初几个数据包的视频数 据, 以保证确定的第一编码参数的准确性、 合理性。
需要说明的是本实施是以递增预设步长增量的方式, 确定第一编码参数的, 可选的, 还可以从该第一编码参数可取的最大值递减, 从而确定第一编码参数。
需要说明的是, 本实施例中是以编码参数为 QP为例确定的第一编码参数, 本实施例中 还可采用低通滤波来调节速率确定的第一编码参数: 首先, 对输入的视频图像首先进行 DCT 变换, DCT变换后低频分量都集中在左上角, 高频分量分布在右下角, 由于低频分量包含了 图像的主要信息, 而高频分量与之相比就不那么重要了, 所以可以忽略高频分量, 从而达 到压縮的目的。 除此以外, 本实施例中还可采用下采样 downsampl ing、 或者 subsampl ing, 即通过降低信号的采样速率, 达到降低数据速率或减少数据量的目的。
可选的, 以上所述的所有实施例中, 除周期性的确定第一编码参数外, 还可以通过事 件来触发确定第一编码参数的过程, 即当系统中有新的事件发生时, 如系统实时资源利用 率突然增大或减少, 或者输入 H. 264视频本身的参数发生跳变等, 则触发以上实施例中所 述的确定第一编码参数的过程。 另外, 也可以结合周期和事件触发的两种方法, 即通常状 态下是周期的方法, 当有事件发生时, 直接触发状态的改变, 而无需等到下个周期的到来。 可选的, 以上所述的所有实施例中, 当找出第一个符合门限值条件的临时第一编码参 数后, 不马上停止循环, 而是继续找出多个符合门限值条件的临时第一编码参数, 最后在 多个符合们门限条件的临时编码参数中选择一个作为最终的第一编码参数。
本发明实施例通过根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编 码参数, 从而保证了用户的 QoE; 进一步的, 通过选择的第一编码参数对所述视频数据进行 编码, 得到第一编码视频数据, 减少了视频数据的数据量, 避免了由于大量的视频数据造 成的无线网络拥塞。 另外, 动态的调节编码参数, 提高了编码的准确性, 增强了对时变的 无线信道的适应性。 实施例 5
如图 7所示, 本发明实施例提供了一种视频数据传输的装置, 所述装置包括: 第一视频数据获取模块 501, 用于获取视频数据;
第一编码参数确定模块 502, 用于根据预设的视频质量评价参数门限值和所述视频数 据, 确定第一编码参数;
第一编码视频数据生成模块 503, 用于根据所述第一编码参数对所述视频数据进行编 码, 得到第一编码视频数据;
第一编码视频数据发送模块 504, 用于发送所述第一编码视频数据至用户终端。
本发明实施例通过根据预设的视频质量评价参数门限值、 所述视频数据, 确定第一编 码参数; 并根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数, 即减 少了视频数据的数据量, 避免了由于大量的视频数据造成的无线网络拥塞, 同时又通过设 置视频质量评价参数门限值, 从而保证了用户的 QoE。 实施例 6
如图 8 所示, 本发明实施例提供了一种视频数据传输的装置, 所述装置包括实施例 5 中的第一视频数据获取模块 501、 第一编码参数确定模块 502、 第一编码视频数据生成模块 503、 第一编码视频数据发送模块 504;
其中, 所述第一视频数据获取模块 501具体包括:
第二编码视频数据获取单元 5011, 用于获取第二编码视频数据, 所述第二编码数据为 对需要获取的视频数据进行编码后得到的;
视频数据生成单元 5012, 用于对所述第二编码视频数据进行解码, 得到所述视频数据。 所述第一编码参数确定模块 502具体包括: 临时第一编码参数获取单元 5021, 用于获取临时第一编码参数;
临时重构视频数据生成单元 5022, 用于根据所述临时第一编码参数对所述视频数据进 行编码, 得到临时重构视频数据;
视频质量评价参数值获取单元 5023, 用于将所述临时重构视频数据与所述视频数据进 行对比, 得到第一视频质量评价参数值;
视频质量评价参数值判断单元 5024, 用于判断所述第一视频质量评价参数值是否大于 或等于所述门限值, 如果否, 则为所述临时第一编码参数增加预设增量后, 执行所述根据 所述临时第一编码参数对所述视频数据进行编码的步骤, 直至所述第一视频质量评价参数 值大于或等于所述门限值; 如果是, 则将所述临时第一编码参数作为所述第一编码参数。
其中, 所述临时第一编码参数获取单元 5021具体包括:
临时第一编码参数获取第一子单元 50211, 用于获取预设的临时第一编码参数; 或,
临时第一编码参数获取第二子单元 50212,用于获取所述第二编码视频数据的第二编码 参数作为所述临时第一编码参数, 所述第二编码参数为对所述视频数据进行编码生成所述 第二编码视频数据时采用的参数。
在本实施例的另一实施方式中, 所述第一编码参数确定模块 502包括:
编码参数确定单元, 用于查询本地保存的视频质量评价参数门限值与编码参数的对应 关系, 获取所述预设的视频质量评价参数门限值对应的编码参数; 将所述对应的编码参数 作为第一编码参数。
所述装置还包括:
第二视频数据获取模块 505, 用于获取所述视频数据中的预设时间间隔的视频数据; 相应的, 所述第一编码参数确定模块 502包括:
第二编码参数确定模块, 用于根据预设的编码前后视频图像质量参数比值的门限值, 所述预设时间间隔的视频数据确定第一编码参数。
需要说明的是, 本实施中所述第一编码参数和第二编码参数可以为量化参数, 所述临 时第一编码参数为临时量化参数; 或, 所述第一编码参数和第二编码参数为分层编码层次, 所述临时第一编码参数为临时分层编码层次。
所述装置还包括:
确定条件获取模块 507, 用于获取所述视频数据的视频质量评价参数门限值的确定条 件;
视频质量评价参数门限值确定模块 508, 用于根据所述确定条件, 确定满足条件的视频 质量评价参数门限值, 将所述满足条件的视频质量评价参数门限值作为预设的视频质量评 价参数门限值。
本发明实施例通过根据预设的视频质量评价参数门限值、 所述视频数据, 确定第一编 码参数; 并根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数, 即减 少了视频数据的数据量, 避免了由于大量的视频数据造成的无线网络拥塞, 同时又通过设 置视频质量评价参数门限值, 从而保证了用户的 QoE。 实施例 6
如图 9所示, 本发明实施例提供了一种视频数据传输的系统, 所述系统包括视频数据 传输装置 601和终端 602 :
所述视频数据传输装置 601, 用于获取视频数据, 根据预设的视频质量评价参数门限值 和所述视频数据, 确定第一编码参数, 根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数据, 发送所述第一编码视频数据至所述终端;
所述终端 602, 用于接收所述视频数据传输装置发送的所述第一编码视频数据。
可选的, 所述终端 602 可以是用于视频传输转发的视频服务器, 或用户用户收看视频 的其他终端。 本发明实施例通过根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编 码参数; 并根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数, 即减 少了视频数据的数据量, 避免了由于大量的视频数据造成的无线网络拥塞, 同时又通过设 置视频质量评价参数门限值, 从而保证了用户的 QoE。 以上实施例提供的技术方案中的全部或部分内容可以通过软件编程实现, 其软件程序 存储在可读取的存储介质中, 存储介质例如: 计算机中的硬盘、 光盘或软盘。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种视频数据传输的方法, 其特征在于, 所述方法包括:
获取视频数据;
根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编码参数;
根据所述第一编码参数对所述视频数据进行编码, 得到第一编码视频数据;
发送所述第一编码视频数据至用户终端。
2、根据权利要求 1所述的方法,其特征在于,所述获取视频数据之后,所述方法还包括; 获取所述视频数据的视频质量评价参数门限值的确定条件;
根据所述确定条件, 确定满足条件的视频质量评价参数门限值, 将所述满足条件的视频 质量评价参数门限值作为预设的视频质量评价参数门限值。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述获取视频数据具体包括: 获取第二编码视频数据, 所述第二编码视频数据为对需要获取的视频数据进行编码后得 到的;
对所述第二编码视频数据进行解码, 得到所述视频数据。
4、根据权利要求 1-3任一项所述的方法, 其特征在于, 所述根据预设的视频质量评价参 数门限值和所述视频数据, 确定第一编码参数, 具体包括:
获取临时第一编码参数;
根据所述临时第一编码参数对所述视频数据进行编码, 得到临时重构视频数据; 将所述临时重构视频数据与所述视频数据进行对比, 得到第一视频质量评价参数值; 判断所述第一视频质量评价参数值是否大于或等于所述门限值, 如果否,
则为所述临时第一编码参数增加预设增量, 执行所述根据所述临时第一编码参数对所述 视频数据进行编码的步骤, 直至所述第一视频质量评价参数值大于或等于所述门限值;
如果是, 则将所述临时第一编码参数作为所述第一编码参数。
5、 根据权利要求 4所述的方法, 其特征在于:
所述获取临时第一编码参数, 具体包括:
获取预设的临时第一编码参数; 或,
获取所述第二编码视频数据的第二编码参数作为所述临时第一编码参数, 所述第二编码 参数为对需要获取的视频数据进行编码生成所述第二编码视频数据时采用的参数。
6、根据权利要求 1或 2所述的方法, 其特征在于, 所述根据预设的视频质量评价参数门 限值和所述视频数据, 确定第一编码参数具体包括:
查询本地保存的视频质量评价参数门限值与编码参数的对应关系, 获取所述预设的视频 质量评价参数门限值对应的编码参数;
将所述对应的编码参数作为第一编码参数。
7、 根据 3-6任一项权利要求所述的方法, 其特征在于:
所述第一编码参数和第二编码参数为量化参数,所述临时第一编码参数为临时量化参数; 或, 所述第一编码参数和第二编码参数为分层编码层次, 所述临时第一编码参数为临时 分层编码层次。
8、根据权利要求 1所述的方法,其特征在于,所述获取视频数据之后,所述方法还包括: 获取所述视频数据中的预设时间间隔的视频数据;
相应的, 根据预设的视频质量评价参数门限值和所述视频数据, 确定第一编码参数具体 包括:
根据预设的编码前后视频图像质量参数比值的门限值和所述预设时间间隔的视频数据确 定第一编码参数。
9、 一种视频数据传输的装置, 其特征在于, 所述装置包括:
第一视频数据获取模块, 用于获取视频数据;
第一编码参数确定模块, 用于根据预设的视频质量评价参数门限值和所述视频数据, 确 定第一编码参数;
第一编码视频数据生成模块, 用于根据所述第一编码参数对所述视频数据进行编码, 得 到第一编码视频数据;
第一编码视频数据发送模块, 用于发送所述第一编码视频数据至用户终端。
10、 根据权利要求 9所述的装置, 其特征在于, 所述装置还包括;
确定条件获取模块, 用于获取所述视频数据的视频质量评价参数门限值的确定条件; 视频质量评价参数门限值确定模块, 用于根据所述确定条件, 确定满足条件的视频质量 评价参数门限值, 将所述满足条件的视频质量评价参数门限值作为预设的视频质量评价参数 门限值。
11、根据权利要求 9或 10所述的装置, 其特征在于, 所述第一视频数据获取模块具体包 括:
第二编码视频数据获取单元, 用于获取第二编码视频数据, 所述第二编码视频数据为对 需要获取的视频数据进行编码后得到的;
视频数据生成单元, 用于对所述第二编码视频数据进行解码, 得到所述视频数据。
12、根据权利要求 9-11任一项所述的装置, 其特征在于, 所述第一编码参数确定模块具 体包括:
临时第一编码参数获取单元, 用于获取临时第一编码参数;
临时重构视频数据生成单元,用于根据所述临时第一编码参数对所述视频数据进行编码, 得到临时重构视频数据;
视频质量评价参数值获取单元,用于将所述临时重构视频数据与所述视频数据进行对比, 得到第一视频质量评价参数值;
视频质量评价参数值判断单元, 用于判断所述第一视频质量评价参数值是否大于或等于 所述门限值, 如果否, 则为所述临时第一编码参数增加预设增量后, 执行所述根据所述临时 第一编码参数对所述视频数据进行编码的步骤, 直至所述第一视频质量评价参数值大于或等 于所述门限值; 如果是, 则将所述临时第一编码参数作为所述第一编码参数。
13、根据权利要求 12所述的装置, 其特征在于, 所述临时第一编码参数获取单元具体包 括:
临时第一编码参数获取第一子单元, 用于获取预设的临时第一编码参数;
或,
临时第一编码参数获取第二子单元, 用于获取所述第二编码视频数据的第二编码参数作 为所述临时第一编码参数, 所述第二编码参数为对需要获取的视频数据进行编码生成所述第 二编码视频数据时采用的参数。
14、根据权利要求 9或 10所述的装置, 其特征在于, 所述第一编码参数确定模块具体还 包括:
编码参数确定单元, 用于查询本地保存的视频质量评价参数门限值与编码参数的对应关 系, 获取所述预设的视频质量评价参数门限值对应的编码参数; 将所述对应的编码参数作为 第一编码参数。
15、 根据 11-14任一项权利要求所述的装置, 其特征在于:
所述第一编码参数和第二编码参数为量化参数,所述临时第一编码参数为临时量化参数; 或, 所述第一编码参数和第二编码参数为分层编码层次, 所述临时第一编码参数为临时 分层编码层次。
16、 根据权利要求 9所述的装置, 其特征在于, 所述装置还包括:
第二视频数据获取模块, 用于获取所述视频数据中的预设时间间隔的视频数据; 相应的, 所述第一编码参数确定模块包括:
第二编码参数确定模块, 用于根据预设的编码前后视频图像质量参数比值的门限值和所 述预设时间间隔的视频数据确定第一编码参数。
17、 一种视频数据传输的系统, 其特征在于, 所述系统包括视频数据传输装置和终端: 所述视频数据传输装置, 用于获取视频数据, 根据预设的视频质量评价参数门限值和所 述视频数据, 确定第一编码参数, 根据所述第一编码参数对所述视频数据进行编码, 得到第 一编码视频数据, 发送所述第一编码视频数据至所述终端;
所述终端, 用于接收所述视频数据传输装置发送的所述第一编码视频数据。
PCT/CN2011/081912 2011-03-08 2011-11-08 数据传输的方法、装置和系统 WO2012119459A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110055792.9 2011-03-08
CN201110055792.9A CN102685472B (zh) 2011-03-08 2011-03-08 数据传输的方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2012119459A1 true WO2012119459A1 (zh) 2012-09-13

Family

ID=46797462

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081912 WO2012119459A1 (zh) 2011-03-08 2011-11-08 数据传输的方法、装置和系统

Country Status (2)

Country Link
CN (1) CN102685472B (zh)
WO (1) WO2012119459A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140254659A1 (en) 2013-03-11 2014-09-11 Mediatek Inc. Video coding method using at least evaluated visual quality and related video coding apparatus
US20150181208A1 (en) * 2013-12-20 2015-06-25 Qualcomm Incorporated Thermal and power management with video coding
CN103813181A (zh) * 2014-02-14 2014-05-21 华为技术有限公司 一种视频优化系统及方法
CN107846590B (zh) * 2016-09-19 2020-09-08 阿里巴巴集团控股有限公司 一种视频编码的方法和视频编码器
CN107948649B (zh) * 2016-10-12 2020-07-03 北京金山云网络技术有限公司 一种基于主观质量模型的视频编码方法及装置
CN108012154B (zh) * 2016-10-28 2020-07-03 北京金山云网络技术有限公司 一种视频编码方法及装置
CN108574841B (zh) * 2017-03-07 2020-10-30 北京金山云网络技术有限公司 一种基于自适应量化参数的编码方法及装置
CN112204970A (zh) * 2018-07-25 2021-01-08 深圳市大疆创新科技有限公司 图像的编码控制方法、装置、存储介质及无人机
CN109302623B (zh) * 2018-11-01 2020-06-09 南京大学 一种基于QoE模型动态自适应视频的传输方法
CN109413416A (zh) * 2018-12-14 2019-03-01 网宿科技股份有限公司 一种直播视频流转码质量监控的方法及装置
CN110121074B (zh) * 2019-04-25 2021-06-11 西安空间无线电技术研究所 一种性能预知的卫星图像大压缩方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801936A (zh) * 2005-12-30 2006-07-12 杭州华为三康技术有限公司 运动图像编码控制方法及编码装置
CN101198042A (zh) * 2007-12-26 2008-06-11 广东威创视讯科技股份有限公司 视频编码的码率控制方法及视频数据的发射设备
CN101621351A (zh) * 2008-06-30 2010-01-06 华为技术有限公司 一种调节多媒体编码速率的方法、装置及系统
CN101971634A (zh) * 2008-03-11 2011-02-09 英国电讯有限公司 视频编码

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801936A (zh) * 2005-12-30 2006-07-12 杭州华为三康技术有限公司 运动图像编码控制方法及编码装置
CN101198042A (zh) * 2007-12-26 2008-06-11 广东威创视讯科技股份有限公司 视频编码的码率控制方法及视频数据的发射设备
CN101971634A (zh) * 2008-03-11 2011-02-09 英国电讯有限公司 视频编码
CN101621351A (zh) * 2008-06-30 2010-01-06 华为技术有限公司 一种调节多媒体编码速率的方法、装置及系统

Also Published As

Publication number Publication date
CN102685472A (zh) 2012-09-19
CN102685472B (zh) 2014-11-05

Similar Documents

Publication Publication Date Title
WO2012119459A1 (zh) 数据传输的方法、装置和系统
US10819766B2 (en) Voice encoding and sending method and apparatus
US10645449B2 (en) Method and apparatus of content-based self-adaptive video transcoding
KR101464456B1 (ko) 비디오 데이터 품질 평가 방법 및 장치
JP7075983B2 (ja) ビデオ処理装置およびビデオストリームの処理方法
US8675728B2 (en) Transmitting apparatus and method, and receiving apparatus and method
US8842159B2 (en) Encoding processing for conferencing systems
KR20150048775A (ko) 무선 네트워크 상의 적응적 레이트 멀티미디어 통신을 위한 디바이스 및 방법
US20170347159A1 (en) Qoe analysis-based video frame management method and apparatus
US10003626B2 (en) Adaptive real-time transcoding method and streaming server therefor
KR101693564B1 (ko) 미디어 품질 평가 방법 및 장치
MX2011006449A (es) Sistemas y metodos para controlar la codificacion de una corriente de medios.
US20170142029A1 (en) Method for data rate adaption in online media services, electronic device, and non-transitory computer-readable storage medium
US10116715B2 (en) Adapting encoded bandwidth
CN107920041B (zh) 一种直播视频数据编码比特率的调整方法和装置
WO2017084277A1 (zh) 在线媒体服务的码流自适应方法及系统
US20160028594A1 (en) Generating and Utilizing Contextual Network Analytics
US20120124633A1 (en) Wireless Video Streaming Quality Management for Bandwidth Constrained Cellular Network
Taha et al. Smart algorithm in wireless networks for video streaming based on adaptive quantization
WO2023010992A1 (zh) 视频编码方法、装置、计算机可读介质及电子设备
US10419581B2 (en) Data cap aware video streaming client
JP4861371B2 (ja) 映像品質推定装置、方法、およびプログラム
CN107079132B (zh) 在视频电话中的端口重配置之后馈送经帧内译码的视频帧
WO2015044104A1 (en) Video traffic management
CN103686208B (zh) 一种视频云计算传输方法

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: 11860573

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: 11860573

Country of ref document: EP

Kind code of ref document: A1