VIDEO COMMUNICATION METHOD AND SYSTEM FOR DYNAMICALLY MODIFYING VIDEO ENCODING

Abstract
The present invention relates to a video communication method for dynamically modifying video encoding, which includes: obtaining a video window size change signal in a video receiver; generating an encoding modification signal according to the change signal; transmitting the encoding modification signal to a video sender; the video sender receiving the modification signal and modifying encoding parameters of a encoder in real time according to the modification signal. The present invention also relates to a video communication system for dynamically modifying video encoding. Once video window size changes, the video receiver immediately sends a signal to the video sender to inform the video sender to modify encoding parameters. The video sender modifies the encoding parameters according to the signal, and adaptively modifies bandwidth and CPU requirement of each channel according to the RTCP feedback.
Description
FIELD OF THE INVENTION

The present invention relates to the field of video communication, and more particularly, to a video communication method for dynamically modifying video encoding and a video communication system of dynamically modifying video encoding.


BACKGROUND OF THE INVENTION

With the development of network communication technology, applications of making video communication between communication terminals are more and more common.


In traditional video communication, when size of a video window in a local receiver is changed (e.g., scaled by a user), the receiver, according to the video quality statistics in a certain time, informs the video source encoder on the sender side to modify the encoding rate, resolution, bit rate, frame rate and other parameters via real time transport protocol (RTCP), to eventually adapt to the changes of the video window size. Therefore, even if the video window size of the receiver is changed, the video source encoder on the sender side remains in the same encoding strategy for a certain time.


The traditional video communication technology notifies the encoder on the sender side to make change completely basing on the statistical results of recent video quality. A certain response time is required for the sender to fully adapt the scaling operation of video window size on the receiver side. Therefore, the efficiency is low. Especially, when a large window is scaled to a small window, a long response time and a wide bandwidth is needed, which thereby impacts the ability of other video channels to effectively use the bandwidth resources and the CPU resources. When a small window is scaled to a large window, the video quality on the receiver side is affected since the sender will remain the small encoding resolution.


SUMMARY OF THE INVENTION

Accordingly, it is necessary to provide a video communication method for dynamically modifying video encoding being able to quickly respond to the change of video window size.


A video communication method for dynamically modifying video encoding includes: obtaining a video window size change signal from a video receiver; generating an encoding modification signal according to the change signal; transmitting the encoding modification signal to a video sender; and the video sender receiving the encoding modification signal and modifying encoder's encoding parameters according to the encoding modification signal.


Preferably, the encoding modification signal is a modifying signal.


Preferably, the encoder's encoding parameters include one or one more of the following: encoding rate, bit rate, resolution and frame rate; the modifying signal includes one or one more of the following that need to be modified: encoding rate, bit rate, resolution and frame rate.


Preferably, the video communication method further includes: making statistics on video quality on the video receiver side; informing the video sender via real time transport control protocol to modify the encoder's encoding parameters according to the statistics in a first predetermined time.


Preferably, the video communication method further includes: the video sender encoding video according to the modified encoding parameters and transmitting the encoded video to the video receiver.


Preferably, in the step of transmitting the encoding modification signal to a video sender, the encoding modification signal is transmitted using a transmission control protocol.


According to a second aspect thereof, the present invention further provides a video communication method of dynamically modifying video encoding, wherein the method includes: obtaining a video window size change signal from a video receiver; generating an encoding modification signal according to the change signal; transmitting the encoding modification signal to a video sender; and receiving the video encoded with encoder's encoding parameters that are modified by the video sender in real time according to the encoding modification signal.


Preferably, the encoding modification signal is a modifying signal.


Preferably, the video communication method further includes: making statistics on video quality on the video receiver side; informing the video sender via real time transport control protocol to modify the encoder's encoding parameters according to the statistics in a first predetermined time.


Preferably, in the step of transmitting the encoding modification signal to a video sender, the encoding modification signal is transmitted via transmission control protocol.


According to a third aspect thereof, the present invention further provides a video communication method for dynamically modifying video encoding, wherein the method includes: a video sender receiving an encoding modification signal generated by a video receiver according to video window size change, modifying encoder's encoding parameters in real time according the encoding change signal; encoding video according the modified encoding parameters; and transmitting the encoded video to the video receiver.


Preferably, the encoder's encoding parameters include one or one more of the following: encoding rate, bit rate, resolution and frame rate; the encoding modification signal is a modifying signal including one or one more of the following that need to be modified: encoding rate, bit rate, resolution and frame rate.


It is necessary to further provide a video communication system for dynamically modifying video encoding for quickly responding to the change of the video window size.


A video communication system for dynamically modifying video encoding includes a video receiver and a video sender. The video receiver includes an input module, a signal generating module and a transmitting interface that are sequentially connected; the input module is used for obtaining a video window size change signal from the video receiver; the signal generating module is used for generating an encoding modification signal according to the change signal; and the transmitting interface is used for transmitting the encoding modification signal to the vide sender. The video sender includes a receiving interface and an encoder that are interconnected. The receiving interface is used for receiving the encoding modification signal, and the encoder is used for modifying encoding parameters in real time according to the encoding modification signal.


Preferably, the encoder's encoding parameters include one or one more of the following: encoding rate, bit rate, resolution and frame rate; the encoding modification signal is a modifying signal including one or one more of the following that need to be modified: encoding rate, bit rate, resolution and frame rate.


Preferably, the video receiver further includes a video quality statistics module connected to the transmitting interface for making statistics on video quality on the video receiver side; the transmitting interface is also used for informing the video sender via real time transport control protocol to modify the encoder's encoding parameters according the statistics in a first predetermined time.


Preferably, the video sender is used for encoding video by the modified encoding parameters and transmitting the encoded video to the video receiver.


According to a fifth aspect thereof, the present invention provides a video receiver, wherein the video receiver includes: an input module used for obtaining a video window size change signal from a video receiver side; a signal generating module used for generating an encoding modification signal according to the change signal; a transmitting interface used for transmitting the encoding modification signal to a vide sender; a video receiving module used for receiving the video encoded with encoder's encoding parameters that are modified by the video sender in real time according to the encoding modification signal.


Preferably, the encoding modification signal is a modifying signal.


Preferably, the video receiver further includes a video quality statistics module connected to the transmitting interface for making statistics on video quality on the video receiver side; the transmitting interface is also used for informing the video sender via a real time transport control protocol for modifying the encoder's encoding parameters according to the statistics in a first predetermined time.


Preferably, the transmitting interface is used for transmitting the encoding modification signal to the video sender via transmission control protocol.


According to sixth aspect thereof, a video sender includes: a receiving interface used for receiving encoding modification signal generated by a video receiver according to a video window size change signal; an encoder used for modifying encoding parameters in real time according to the encoding modification signal and encoding video by the modified encoding parameters; a video sender module for sending the encoded video to the video receiver; and a video transmitting module for transmitting the encoded video to the video receiver.


Preferably, the encoding parameters include one or one more of the following: encoding rate, bit rate, resolution and frame rate; the encoding modification signal is a modifying signal including one or one more of the following that need to be modified: encoding rate, bit rate, resolution and frame rate.


According to the video communication method for dynamically modifying video encoding and the video communication system for dynamically modifying video encoding described above, when the video window size on the video receiver side changes, the video receiver immediately sends a signal to the video sender for informing the video sender to modify the encoder's encoding parameters. The video sender timely modifies the encoder's encoding parameters according to the signal. Therefore, the bandwidth and CPU resources can be used in a more quick, reasonable and efficient manner.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a flowchart of a video communication method for dynamically modifying video encoding according to an embodiment of the present invention;



FIG. 2 is a working flowchart of a video receiver according to the embodiment of the present invention;



FIG. 3 is a working flowchart of a video sender according to the embodiment of the present invention;



FIG. 4 is a block diagram of a video communication system for dynamically modifying video encoding according to the embodiment of the present invention;



FIG. 5 is a block diagram of a video communication system for dynamically modifying video encoding according to another embodiment of the present invention;



FIG. 6 is a block diagram of a video receiver according to the embodiment of the present invention;



FIG. 7 is a block diagram of a video sender according to the embodiment of the present invention.





DESCRIPTION OF THE PREFERRED EMBODIMENTS

In order to make the objects, features and advantages of the present disclosure clearer, the following examples are intended to illustratively be described referring to the drawings.


The present invention is based on the conventional QoS (Quality of Service) guarantee of the real-time video stream. Encoding modification is generated when video window size in a video receiver is changed, which enables a video sender to respond to the changes in the video receiver in real time. The present invention is applicable to multi-channel (including duplex channel) video communication.



FIG. 1 is a flowchart of a video communication method for dynamically modifying video encoding according to an embodiment of the present invention. The method includes the following steps.


S110, obtain a video window size change signal in a video receiver. In this step, the video window size change signal is obtained when video window size in the video receiver is changed.


S120, generate an encoding modification signal according to the change signal. The encoding modification signal is a customized signal. For example, the encoding modification signal could be a modifying signal (MODIFY_CAP). The encoding modification signal contains one or one more of the encoding parameters: encoding rate, bit rate, resolution, frame rate, etc.


S130, transmit the encoding modification signal to a video sender.


In the present embodiment, the transmission of the signals between the video sender and the video receiver is transmitted by TCP (Transmission control protocol). In other embodiments, the signals could be transmitted by other reliable transmission protocol. In the present embodiment, the signal and the video data is transmitted in the same channel. In other embodiments, the signal and the video data could be transmitted in different channels.


S140, the video sender receives the encoding modification signal and modifies an encoder's encoding parameters in real time according to the encoding modification signal. The encoding parameters include at least one of following: encoding rate, bit rate, resolution and frame rate.


When the encoding parameter is modified, the video sender encodes the video based on the modified encoding parameters and transmits the encoded video to the receiver.


In another embodiment, the video communication method for dynamically modifying video encoding further includes the following steps.


Make statistics on the video quality of the video receiver.


According to the statistics of the video quality within a certain period of time, notify the video sender by real time transport control protocol (RTCP) to modify the encoding rate, resolution, bit rate, frame rate of video source encoder. The certain period of time is a first predetermined time, which could be an empirical value.


The operation of the video receiver is illustrated in FIG. 2.


S11, obtain the video window size change signal from the video receiver.


S12, generate the encoding modification signal according to the change signal. In the present embodiment, the encoding modification signal is a customized signal. For example, the encoding modification signal could be a modifying signal (MODIFY_CAP). The encoding modification signal contains one or one more of the encoding parameters: encoding rate, bit rate, resolution, frame rate, etc.


S13, transmit the encoding modification signal to the video sender. In the present embodiment, the signal between the sender and the receiver is transmitted by TCP (transmission control protocol).


S14, receive the video encoded by the encoder's encoding parameters that are modified by the video sender in real time.


The operation of the video receiver could further comprise the following steps:


Make statistics for the video quality of the video receiver.


According to the statistics of the video quality within a certain period of time, notify the video sender by real time transport control protocol (RTCP) to modify the encoding rate, resolution, bit rate, frame rate of video source encoder. The certain period of time is a first predetermined time, which could be an empirical value.


The operation of the video sender is illustrated in FIG. 3.


S21, the video sender receives the encoding modification signal that is generated by the video receiver according to the video window size change signal. In the present embodiment, the encoding modification signal is a modifying signal containing one of one more of the following: encoding rate, bit rate, resolution and frame rate.


S22, modify the encoder's encoding parameters in real time according to the encoding modification signal. In the present embodiment, the encoding parameters include at least one of follows: encoding rate, bit rate, resolution and frame rate.


S23, transmit the encoded video back to the video receiver.


A specific embodiment is described below to introduce the steps of the video communication method for dynamically modifying video encoding.


Step A, establish a video session.


The parties involved in the video communication establish a multi-people video session by a session establishment protocol.


Step B, exchange video process capacities to each other.


In the initial stage of establishing the session, the video process capacities are exchanged by an exchanging signal (EXCHANGE_CAP). The video process capacities include the decoding capacities of the terminal hardware of each party that involved in the session, such as video resolution, bit rate, frame rate, etc. When the capacities are exchanged, every party involved in the session acknowledges the capacities of the other parties involved in the session.


Step C, encode the video and transmit the encoded video data. When the video session is established, each party involved in the session adapts to a set of encoding parameters according to the capacity of the counterparty, and encodes the video data by the adapted encoding parameters, and transmits the encoded video data to the counterparty.


Step D, receive and decode the encoded video data.


During the session, i.e., during the step C and step D, video window size may be changed because of user's operation or other reason. The change of video window size on the video receiver side means that the decoding capacities of the video receiver are changed. Then the operation flow goes to step S110 to obtain the video window size change signal from the video receiver.


S120, generate an encoding modification signal according to the change signal. The encoding modification signal is a modifying signal (MODIFY_CAP), containing the latest decoding capacity of the video receiver in the current state.


S130, transmit the encoding modification signal to the video sender. Once generated, the encoding modification signal is transmitted to the video sender. In the present embodiment, the encoding modification signal and the video data in the aforesaid step C are transmitted in the same channel. In other embodiments, the encoding modification signal and the video data could be transmitted in different channels, respectively.


S140, the video sender receives the encoding modification signal, and modifies the encoding parameters in real time according to the encoding modification signal. On the reception of the encoding modification signal, according to the parameters contained in the encoding modification signal, the sender timely and dynamically changes the encoding policy (the encoding parameters) of the encoder for the video (the video targeted for the video receiver that transmits the encoding modification signal).


Therefore, once the encoding policy of the video is updated, the video receiver will know the modification of the video encoding. The received video data is a video data stream that matches the current video process capacity.


Furthermore, in the present embodiment, when the video session is established, each party involved in the video communication will periodically inform the other parties about its communication environment via RTCP signal. The communication environment may include the current network bandwidth, delay and encoding requirement. Each party that receives the RTCP signal may accordingly modify its own encoding strategy (modifies encoding parameters) based on the parameters in the RTCP signal, to adapt to changes in the communication environment. In traditional communication, this adaption process is slow, especially in conditions of frequent changes. The slow process results in a waste of resources. However, in the present invention, by the use of the modifying signal, it is able to adapt to the changes in a timelier manner. Therefore, the bandwidth and CPU resources can be allocated and used in a more quick, reasonable and efficient manner; and the overall quality of multiplayer real-time video communication is improved.



FIG. 4 illustrates a video communication system for dynamically modifying video encoding according to an embodiment of the present invention. The video communication system includes a video receiver 200 and a video sender 300.


The video receiver 200 includes an input module 210, a signal generating module 220 and a transmitting interface 230 that are sequentially connected. The input module 210 is used for obtaining the video window size change signal from the video receiver 200. The signal generating module 220 generates the encoding modification signal according to the video window size change signal. The transmitting interface 230 is used for transmitting the encoding modification signal to the video sender 300.


In the present embodiment, the transmitting interface 230 transmits the encoding modification signal to the video sender 300 via TCP (Transmission control protocol). In other embodiments, the signal may be transmitted via other protocol. In the present embodiment, the encoding modification signal and the video data are transmitted in the same channel. In other embodiment, the encoding modification signal and the video data could be transmitted in different channels.


The video sender 300 includes a receiving interface 310 and an encoder 320 that are interconnected. The receiving interface 310 is used for receiving the encoding modification signal transmitted from the transmitting interface 230. The encoder 320 modifies encoding parameters in real time according to the encoding modification signal.


The video sender 300 is also used for encoding the video data according the modified encoding parameters, and transmitting the encoded video data to the video receiver 200.


In the present embodiment, the encoding modification signal is a customized signal. For example, the encoding modification signal could be a modifying signal (MODIFY_CAP). The encoding modification signal contains one or one more of the following: encoding rate, bit rate, resolution, frame rate, etc.



FIG. 5 illustrates a video communication system for dynamically modifying video encoding according to another embodiment of the present invention. The video communication system of FIG. 5 is different from the video communication system of FIG. 4 mainly in that, the video communication of FIG. 5 further includes a video quality statistics module 240. The video quality statistics module 240 is used for video quality statistics of the video receiver 200. The transmitting interface 230 is further used for informing the video sender 300 via RTCP to modify the encoding parameters of the encoder 320 according the video quality statistics in a first predetermined time.



FIG. 6 illustrates a video receiver according to an embodiment of the present invention. The video receiver 200 includes an input module 210, a signal generating module 220, a transmitting interface 230 and a video receiving module 250.


The input module 210 is used to obtain video window size change signal from the video receiver 200.


The signal generating module 220 is used to generate an encoding modification signal according to the change signal. In the present embodiment, the encoding modification signal is a customized signal. For example, the encoding modification signal could be a modifying signal (MODIFY_CAP), containing one or one more of the following parameters that need to be modified: encoding rate, bit rate, resolution and frame rate.


The transmitting interface 230 is used for transmitting the encoding modification signal to the video sender 300.


The video receiving module 250 is used for receiving the video that is encoded by the video sender 300 with the encoding parameters that are modified in real time according to the encoding modification signal.


As described above, in preferred embodiments, the video receiver 200 may also include a video quality statistics module 240 for video quality statistics of the video receiver 200. In the embodiment, the transmitting interface 230 is further used for informing the video sender 300 to modify the encoding parameters of the encoder 320 via RTCP according the video quality statistics in a first predetermined time.



FIG. 7 illustrates a video sender according to an embodiment of the present invention. The video sender 300 includes:


the receiving interface 310 which is used for receiving the encoding modification signal that is generated by the video receiver 200 according to the video window size change signal;


the encoder 320 which is used for modifying encoding parameters in real time according to the encoding modification signal; in the present embodiment, the encoding parameters of the encoder 320 include one or one more of the following: encoding rate, bit rate, resolution, frame rate, etc;


the video transmitting module 330 which is used for transmitting the encoded video to the video receiver 200.


According to the video communication method for dynamically modifying video encoding and the video communication system for dynamically modifying video encoding described above, when the video window size of the video receiver changes, the video receiver immediately sends a signal to the video sender and inform the video sender to modify the encoder's encoding parameters. The video sender modifies the encoder's encoding parameters according to the signal. At the same time, the video sender adaptively modifies the bandwidth requirement and CPU requirement of each channel according to the RTCP feedback. Therefore, the net bandwidth and CPU resources could be timely, reasonably, and effectively used.


The embodiments were chosen and described in order to explain the principles of the invention and their practical application so as to enable others skilled in the art to utilize the invention and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those skilled in the art to which the present disclosure pertains without departing from its spirit and scope. Accordingly, the scope of the present disclosure is defined by the appended claims rather than the foregoing description and the exemplary embodiments described therein.

Claims
  • 1. A video communication method for dynamically modifying video encoding, the method comprising: obtaining a video window size change signal from a video receiver;generating an encoding modification signal according to the change signal;transmitting the encoding modification signal to a video sender;receiving, by the video sender, the encoding modification signal; andmodifying, by the video sender, an encoder's encoding parameters according to the encoding modification signal.
  • 2. The video communication method according to claim 1, wherein the encoding modification signal is a modifying signal.
  • 3. The video communication method according to claim 2, wherein: the encoder's encoding parameters comprises one or one more of the following: encoding rate, bit rate, resolution and frame rate; andthe modifying signal comprises one or one more of the following: encoding rate, bit rate, resolution and frame rate that need to be modified.
  • 4. The video communication method according to claim 1, wherein the video communication method further comprises: making statistics for video quality of the video receiver; andinforming the video sender to modify the encoder's encoding parameters via real time transport control protocol according to the statistics in a first predetermined time.
  • 5. The video communication method according to claim 1, wherein the video communication method further comprises: encoding, by the video sender, video according to the modified encoding parameters; andtransmitting, by the video sender, the encoded video to the video receiver.
  • 6. The video communication method according to claim 1, wherein, in said transmitting the encoding modification signal to a video sender, the encoding modification signal is transmitted via transmission control protocol.
  • 7. A video communication method for dynamically modifying video encoding, the method comprising: obtaining a video window size change signal in a video receiver;generating an encoding modification signal according to the change signal;transmitting the encoding modification signal to a video sender; andreceiving the video encoded with an encoder's encoding parameters that are modified by the video sender in real time according to the encoding modification signal.
  • 8. The video communication method according to claim 7, wherein the encoding modification signal is a modifying signal.
  • 9. The video communication method according to claim 7, wherein the video communication method further comprises: making statistics for video quality of the video receiver; andinforming the video sender via real time transport control protocol to modify the encoder's encoding parameters according to the statistics in a first predetermined time.
  • 10. The video communication method according to claim 7, wherein, in said transmitting the encoding modification signal to a video sender, the encoding modification signal is transmitted via transmission control protocol.
  • 11. A video communication method for dynamically modifying video encoding, the method comprising: receiving, by a video sender, an encoding modification signal generated by a video receiver according to video window size change;modifying, by the video sender, an encoder's encoding parameters in real time according the encoding modification signal;encoding video according the modified encoding parameters; andtransmitting the encoded video to the video receiver.
  • 12. The video communication method according to claim 11, wherein: the encoder's encoding parameters comprise one or one more of the following: encoding rate, bit rate, resolution and frame rate; andthe encoding modification signal comprises one or one more of the following that need to be modified: encoding rate, bit rate, resolution and frame rate.
  • 13. A video communication system of dynamically modifying video encoding, comprising: a video receiver; anda video sender, wherein: the video receiver comprises an input module, a signal generating module and a transmitting interface that are sequentially connected, the input module being used to obtain a video window size change signal, the signal generating module being used to generate an encoding modification signal according to the change signal, the transmitting interface being used to transmit the encoding modification signal to the video sender; andthe video sender comprises a receiving interface and an encoder connected to the receiving interface, the receiving interface being used to receive the encoding modification signal, the encoder being used for modifying encoding parameters in real time according to the encoding modification signal.
  • 14. The video communication system according to claim 13, wherein: the encoding parameters comprise one or one more of the following: encoding rate, bit rate, resolution and frame rate; andthe encoding modification signal is a modifying signal comprising one or one more of the following that needs to be modified: encoding rate, bit rate, resolution and frame rate.
  • 15. The video communication system according to claim 13, wherein: the video receiver further comprises a video quality statistics module connected to the transmitting interface for making statistics of video quality of the video receiver; andthe transmitting interface is also used for informing the video sender via real time transport control protocol to modify the encoding parameters according the statistics in a first predetermined time.
  • 16. The video communication system according to claim 13, wherein: the video sender is used for encoding video by the modified encoding parameters and transmitting the encoded video to the video receiver.
  • 17. A video receiver comprising: an input module to obtain a video window size change signal of the video receiver;a signal generating module to generate an encoding modification signal according to the change signal;a transmitting interface to transmit the encoding modification signal to a video sender; anda video receiving module to receive video encoded with an encoder's encoding parameters that are modified by the video sender in real time according to the encoding modification signal.
  • 18. The video receiver according to claim 17, wherein the encoding modification signal is a modifying signal.
  • 19. The video receiver according to claim 17, wherein: the video receiver further comprises a video quality statistics module connected to the transmitting interface for making statistics of video quality of the video receiver; andthe transmitting interface is also used to inform the video sender via real time transport control protocol to modify the encoder's encoding parameters according the statistics in a first predetermined time.
  • 20. The video receiver according to claim 17, wherein the transmitting interface is used to transmit the encoding modification signal to the video sender via transmission control protocol.
  • 21. A video sender comprising: a receiving interface to receive an encoding modification signal generated by a video receiver according to a video window size change signal;an encoder to modify encoding parameters in real time according to the encoding modification signal, and to encode video with the modified encoding parameters; anda video transmitting module to transmit the encoded video to the video receiver.
  • 22. The video sender according to claim 21, wherein: the encoding parameters comprise one or one more of the following: encoding rate, bit rate, resolution and frame rate; andthe encoding modification signal is a modifying signal comprising one or one more of the following that need to be modified: encoding rate, bit rate, resolution and frame rate.
Priority Claims (1)
Number Date Country Kind
201110001383.0 Jan 2011 CN national
CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of International Application No. PCT/CN2011/083439, filed Dec. 5, 2011, and claims foreign priority to Chinese Application No. CN201110001383.0, filed Jan. 5, 2011, and which are incorporated herein by reference in their entireties.

Continuations (1)
Number Date Country
Parent PCT/CN2011/083439 Dec 2011 US
Child 13933761 US