主权项 |
1. A method for video encoding in a multi-party video communication, comprising:
after a terminal X joins in a multi-party video communication, A, respectively determining a number of important video encoders in use and a number of common video encoders in use of the terminal; B, according to a processing capability of the terminal and a newest determining result, respectively determining an encoding parameter for an important video and an encoding parameter for a common video, and informing each important video encoder in use and each common video encoder in use to perform video encoding according to the newly determined encoding parameters, wherein the encoding parameter comprises a highest encoding frame rate, and wherein determining the encoding parameter for the important video and the encoding parameter for the common video comprises: b1, according to the processing capability of the terminal and the determined number of the important video encoders and the number of the common video encoders, respectively initializing a highest encoding frame rate fb of the important video and a highest encoding frame rate fs of the common video; b2, increasing fb and decreasing fs, and determining a mean opinion score (MOS) of the important video according to the newly obtained fb, and determining an MOS of the common video according to the newly obtained fs; determining whether a difference between the MOS of the important video and the MOS of the common video meets a predefined condition, if the difference between the MOS of the important video and the MOS of the common video meets the predefined condition, repeating step b2, otherwise, determining the highest encoding frame rate of the important video according to the newly obtained fb, and determining the highest encoding frame rate of the common video according to the newly obtained fs. |