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.

CN116567228BActive Publication Date: 2026-06-12TENCENT TECHNOLOGY (SHENZHEN) CO LTD

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

Technical Problem

Existing video encoding methods have low encoding efficiency when switching video frame scenes, resulting in an increase in the amount of P-frame data.

Method used

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.

🎯Benefits of technology

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.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The application provides an encoding method, a real-time communication method, a device, equipment and a storage medium, comprising: pre-encoding a current video frame according to a first encoding mode to obtain a pre-encoded frame of the current video frame, in the first encoding mode, a first video frame is pre-encoded as an I frame, and a video frame after the first video frame is pre-encoded as a P frame; if there is no I frame in M encoded frames before the current video frame, determining whether the current video frame is a scene switching frame according to the pre-encoded frame and a target pre-encoded frame, the scene switching frame is a video frame that has a scene switching relative to a previous video frame, the target pre-encoded frame is obtained by pre-encoding a previous video frame of the current video frame, one encoded frame is obtained by encoding a video frame before the current video frame, and M is a preset positive integer; if the current video frame is the scene switching frame, encoding the current video frame as an I frame; and if the current video frame is not the scene switching frame, encoding the current video frame as a P frame. Thus, the encoding efficiency is improved.
Need to check novelty before this filing date? Find Prior Art