Synchronous audio and video playing method and device

A synchronous playback, audio and video technology, applied in the field of video communication, can solve the problems of inconsistent time stamps, audio and video playback cannot be effectively synchronized, and achieve the effect of synchronous playback

Inactive Publication Date: 2014-03-26
SHENZHEN QVOD TECH
View PDF5 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0020] The main purpose of the embodiments of the present invention is to provide a method and device for synchronous audio and video playback to solve the problem that the audio and video synchronous playback technology in the prior art cannot be effectively synchronized due to inconsistent time stamps

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Synchronous audio and video playing method and device
  • Synchronous audio and video playing method and device
  • Synchronous audio and video playing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] An embodiment of the present invention provides a method for synchronously playing audio and video. figure 1 It is a flowchart of an audio-video synchronous playback method according to an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0050] Step 101: receiving streaming media data including video data and audio data from the system;

[0051] Step 102: read the streaming media data, and record the start time stamp of reading the streaming media data;

[0052] Step 103: Obtain and analyze the data packets of video data and the data packets of audio data respectively;

[0053] Step 104: record the analysis time stamp of each data packet respectively;

[0054] Step 105: Binding the start timestamp and the video parsing timestamp to the video data packet as a video data sample;

[0055] Step 106: Binding the start time stamp and the audio parsing time stamp to the audio data packet as an audio data sample;

[0056] Step 107: Pla...

Embodiment 2

[0174] An embodiment of the present invention provides an audio and video synchronous playback device, which is preferably used to implement the method in the first embodiment above. Figure 9 It is a structural block diagram of an audio-video synchronous playback device according to an embodiment of the present invention, such as Figure 9 As shown, the device includes:

[0175] Streaming media data receiving unit 901, for receiving the streaming media data comprising video data and audio data from the system;

[0176] A start time stamp recording unit 902, configured to read streaming media data, and record the start time stamp of reading the streaming media data;

[0177] Streaming media data parsing unit 903, for acquiring and parsing the data packet of video data and the data packet of audio data respectively;

[0178] Analytical timestamp recording unit 904, configured to record the analytical timestamp of each data packet respectively;

[0179] The video data sample ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a synchronous audio and video playing method and a synchronous audio and video playing device. The synchronous audio and video playing method comprises the following steps: receiving streaming media data, including audio data and video data, from a system; reading the streaming media data, and recording a starting timestamp for reading the streaming media data; respectively acquiring and parsing a video data packet and an audio data packet; recording a parsing timestamp of each data packet; binding the starting timestamp and a video parsing timestamp to the video data packet as a video data sample; binding the starting timestamp and an audio parsing timestamp to the audio data packet as an audio data sample; according to the video data sample and the audio data sample as well as an external clock, synchronously playing the audio data and the video data. Through the method and the device, synchronous playing of audio and video can be effectively achieved.

Description

technical field [0001] The present invention relates to the field of video communication, in particular to a method and device for synchronously playing audio and video. Background technique [0002] The purpose of audio and video synchronization is to output the video frame and the audio data corresponding to the frame display time point to the device synchronously, so as to realize the normal playback of the movie. Since audio and video are encoded separately, their decoding is also separate, and the decoded audio and video output is an irrelevant process. In order to ensure normal playback, the encoder will stamp the encoded video and audio streams with time stamps (timestamp, ts for short) in units of frames during encoding, and the audio and video data with the same or almost the same time stamp will be should be output simultaneously. [0003] At present, to achieve audio and video synchronization, you can use the video ts as a reference to synchronize the audio to t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/434H04N21/8547
Inventor 梁健国博彬
Owner SHENZHEN QVOD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products