Encoding method, real-time communication method, apparatus, device, and storage medium
By pre-encoding and secondary encoding the video stream, determining whether a video frame is a scene transition frame and inserting I-frames when necessary, the problem of low encoding efficiency during scene transitions in video frames is solved, achieving more efficient encoding.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-01-27
- Publication Date
- 2026-06-12
AI Technical Summary
Existing video encoding methods have low encoding efficiency when switching video frame scenes, resulting in an increase in the amount of P-frame data.
By pre-encoding the current video frame in the video stream, it is determined whether there is an I-frame in the first M encoded frames. If there is no I-frame and a scene change is detected, the current video frame is encoded as an I-frame; otherwise, it is encoded as a P-frame.
Inserting I-frames during video frame scene transitions reduces the number of bytes occupied by P-frames, improves encoding efficiency, and avoids excessive I-frame insertion.
Smart Images

Figure 1 
Figure 2