Coding manner switching method, transmit end, and receive end
Abstract
A coding manner switching method is provided. The method includes acquiring, by a transmit end, state information of the transmit end and/or a receive end, where the state information comprises central processing unit (CPU) usage, a network bandwidth, and electricity amount information that are of the transmit end and/or the receive end, and information about media content to be sent by the transmit end; determining whether the state information meets a preset condition, and switching a coding manner of the media content if the state information meets the preset condition; and notifying the receive end of the coding manner of the media content of the transmit end, so that the receive end determines a decoding manner of the media content according to the coding manner of the media content.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A coding manner switching method, comprising:
acquiring, by a transmit end, state information, the state information comprising at least one of central processing unit (CPU) usage, a network bandwidth, electricity amount information that corresponds to at least one of the transmit end or a receive end, or information about media content from the transmit end, the state information being at least one of state information of the transmit end state information of a receive end, or state information of the transmit end and the receive end, and the information about the media content from the transmit end being at least one of a size of the media content from the transmit end, a resolution of the media content from the transmit end, or a frame rate of the media content from the transmit end;
determining, by the transmit end, whether at least one piece of information among the state information meets a preset condition;
switching a coding manner of the media content when one piece of information among the state information meets the preset condition, the coding manner being one of an Advanced Video Coding or a High Efficiency Video Coding; and
notifying, by the transmit end, the receive end of the coding manner of the media content of the transmit end such that the receive end is capable of determining a decoding manner of the media content according to the coding manner of the media content, the preset condition being that the network bandwidth is less than a first preset threshold when the state information currently determined by the transmit end is the network bandwidth, the coding manner of the media content being switched when one piece of information among the state information meets the preset condition comprising switching, by the transmit end, the Advanced Video Coding to the High Efficiency Video Coding when the network bandwidth is less than the first preset threshold, and the network bandwidth being at least one of the network bandwidth of the transmit end, the network bandwidth of the receive end, or the network bandwidth of the transmit end and the receive end.
2. A transmit end, comprising:
a memory comprising instructions; and
a processor coupled to the memory, the instructions causing the processor to be configured to:
acquire state information, the state information comprising at least one of central processing unit (CPU) usage, a network bandwidth, electricity amount information corresponding to at least one of the transmit end or a receive end, or information about media content from the transmit end, the state information being at least one of state information of the transmit end, state information of the receive end, or state information of the transmit end and the receive end, and the information about the media content from the transmit end being at least one of a size of the media content from the transmit end, a resolution of the media content from the transmit end, or a frame rate of the media content from the transmit end;
determine whether at least one piece of information among the state information meets a preset condition;
switch a coding manner of the media content when one piece of information among the state information meets the preset condition, the coding manner being one of an Advanced Video Coding or a High Efficiency Video Coding; and
notify the receive end of the coding manner of the transmit end such that the receive end is capable of determining a decoding manner of the media content according to the coding manner of the media content, the preset condition being that the CPU usage is greater than a first preset threshold when the state information currently determined by the transmit end is the CPU usage, the instructions further causing the processor to be configured to switch the High Efficiency Video Coding to the Advanced Video Coding when the CPU usage is greater than the first reset threshold, and the CPU usage being at least one of the CPU usage of the transmit end, the CPU usage of the receive end, or the CPU usage of the transmit end and the receive end.
3. A transmit end, comprising:
a memory comprising instructions; and
a processor coupled to the memory, the instructions causing the processor to be configured to:
acquire state information, the state information comprising at least one of central processing unit (CPU) usage, a network bandwidth, electricity amount information corresponding to at least one of the transmit end or a receive end, or information about media content from the transmit end, the state information being at least one of state information of the transmit end, state information of the receive end, or state information of the transmit end and the receive end, and the information about the media content from the transmit end being at least one of a size of the media content from the transmit end, a resolution of the media content from the transmit end, or a frame rate of the media content from the transmit end;
determine whether at least one piece of information among the state information meets a preset condition;
switch a coding manner of the media content when one piece of information among the state information meets the preset condition, the coding manner being one of an Advanced Video Coding or a High Efficiency Video Coding; and
notify the receive end of the coding manner of the transmit end such that the receive end is capable of determining a decoding manner of the media content according to the coding manner of the media content, the preset condition being that the network bandwidth is less than a first preset threshold when the state information currently determined by the transmit end is the network bandwidth, the instructions further causing the processor to be configured to switch the Advanced Video Coding to the High Efficiency Video Coding when the network bandwidth is less than the second preset threshold, and the network bandwidth being at least one of the network bandwidth of the transmit end, the network bandwidth of the receive end, or the network bandwidth of the transmit end and the receive end.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.