US 12,342,001 B2
Encoding method, real-time communication method, apparatus, device, and storage medium
Jia Zhang, Guangdong (CN); Xiaoxiang Yang, Guangdong (CN); Sijia Chen, Guangdong (CN); Jian Cao, Guangdong (CN); Yongcheng Huang, Guangdong (CN); and Hongbin Cao, Guangdong (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Guangdong (CN)
Filed on Nov. 20, 2023, as Appl. No. 18/514,741.
Application 18/514,741 is a continuation of application No. PCT/CN2022/137893, filed on Dec. 9, 2022.
Claims priority of application No. 202210101697.6 (CN), filed on Jan. 27, 2022.
Prior Publication US 2024/0098310 A1, Mar. 21, 2024
Int. Cl. H04N 19/87 (2014.01); H04N 19/124 (2014.01); H04N 19/132 (2014.01); H04N 19/142 (2014.01); H04N 19/157 (2014.01); H04N 19/172 (2014.01); H04N 19/463 (2014.01)
CPC H04N 19/87 (2014.11) [H04N 19/124 (2014.11); H04N 19/132 (2014.11); H04N 19/142 (2014.11); H04N 19/157 (2014.11); H04N 19/172 (2014.11); H04N 19/463 (2014.11)] 20 Claims
OG exemplary drawing
 
1. An encoding method, performed by a server, comprising:
pre-encoding a current video frame in a video stream, to obtain a pre-encoded current video frame;
when there is no I frame in M encoded video frames that have been encoded before the current video frame, determining whether the current video frame is a scene switching frame in which scene switching has occurred relative to a previous video frame, based on the pre-encoded current video frame and a pre-encoded previous video frame to the current video frame, M being a preset positive integer; and
encoding the current video frame into an I frame when the current video frame is the scene switching frame, and encoding the current video frame into a P frame when the current video frame is not the scene switching frame.