Audio and video playing method and device

A technology for audio and video playback and audio playback, applied in the multimedia field, can solve the problems of poor playback effect of multimedia players and lack of playback methods of audio and video synchronization, and achieve the effect of improving playback effect.

CN106658135AActive Publication Date: 2017-05-10BEIJING QIYI CENTURY SCI & TECH CO LTD
6 Cites 10 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2017-05-10

Smart Images

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

Abstract

The embodiment of the invention discloses an audio and video playing method and device which are applied to a multimedia player in an audio direct mode. The method comprises the steps of: at an interval of a preset synchronization duration or every when a preset synchronization time point is reached, calculating current buffer time of an audio buffer region; according to the buffer time and a first target timestamp, determining audio play time; according to the audio play time and a second target timestamp, determining whether audio frames currently stored in the audio buffer region and video frames currently stored in a video buffer region meet synchronous playing conditions; and if yes, pushing the video frames currently stored in the video buffer region to video equipment for playing, and pushing the audio frames currently stored in the audio buffer region to audio equipment for playing. By applying the audio and video playing method and device disclosed by the embodiment of the invention, the audio frames and the video frames, which meet the synchronous playing conditions, are simultaneously played, synchronous playing of an audio and a video when the multimedia player is in the audio direct mode is implemented, and a playing effect of the multimedia player is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of multimedia technology, in particular to an audio and video playing method and device. Background technique

[0002] With the development of Internet technology, the channels for users to obtain multimedia information are becoming more and more convenient, and various multimedia players are showing a trend of rapid development. Synchronous playback of audio and video is an important content that reflects the service quality of multimedia players.

[0003] Audio and video synchronization refers to maintaining the time synchronization relationship between audio frames and video frames, which can be achieved by reducing the playing time difference between audio frames and video frames. Since each audio frame has an audio time stamp and each video frame has a video time stamp, the audio and video synchronization method mainly uses a time stamp synchronization method, that is, first select a reference clock (the time on ...

Examples

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0040] The embodiment of the present invention discloses an audio and video playing method and device, which are applied to a multimedia player in an audio direct mode, and will be described in detail below.

[0041] see figure 1 , figure 1 A schematic flow diagram of an audio and video playback method provided by an embodiment of the present invention, including the following steps:

[0042]S101. Calculate the buffering time of the current audio buffer every tim...