Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Multi-thread audio and video synchronization control method and system

A technology of audio and video synchronization and control method, which is applied in the field of digital audio and video, can solve problems such as waste of memory space, difficulty in image content buffer, data overflow, etc., to reduce the use of system resources, achieve low complexity, and high operating efficiency Effect

Inactive Publication Date: 2013-08-07
NANJING LONGYUAN MICROELECTRONICS TECH CO LTD
View PDF0 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the uncertainty of the image content, it is difficult to determine the size of the buffer. If the buffer is too small, the data will overflow, and if the buffer is too large, the memory space will be wasted.

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
  • Multi-thread audio and video synchronization control method and system
  • Multi-thread audio and video synchronization control method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be further described in detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0020] The multithreaded audio-video synchronization control method of the present invention is based on the platform development and realization of the embedded Linux operating system, and the audio-video transmission stream or program stream is carried out by the operating system to multi-threaded parallel processing, and its specific implementation process is as follows figure 1 shown, including the following steps:

[0021] Step 1. Create five threads, which are demultiplexing thread, audio decoding thread, video decoding thread, audio synchronous output thread and video synchronous output thread.

[0022] Step 2. Start the demultiplexing thread to complete the demultiplexing of the transport stream or program stream at the system layer, split the transport strea...

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 relates to a multi-thread audio and video synchronization control method and system. The method comprises the steps of establishing a demultiplexing thread, an audio and video decoding thread and an audio and video synchronous output thread; starting the demultiplexing thread to finish the demultiplexing processing of a transport stream or a program stream, respectively inserting audio and video elementary streams into tails of audio and video elementary stream queues, and activating the audio and video decoding thread; starting the audio and video decoding thread to respectively decode bit streams in the audio and video elementary stream queues, and respectively inserting time information and audio data and image data obtained after decoding into audio and video output queues; according to difference between a timestamp after decoding and a local system clock, starting the audio and video synchronous output thread, and selecting and outputting data which conforms to output time; and according to the difference between the timestamps of video and audio, conducting repetition and frame skipping processing to video playing to enable the audio and the video to be synchronously output. The multi-thread audio and video synchronization control method and system provided by the invention have the advantages that a large memory space is not needed for buffering data, the operating efficiency is high, the realization complexity is low and the method and the system are applicable to embedded operating systems.

Description

technical field [0001] The invention belongs to the technical field of digital audio and video, and relates to a multi-thread audio and video synchronization control method and system. Background technique [0002] Currently popular video codec standards, such as MPEG-1, MPEG-2, MPEG-4, H.26x, etc., all adopt the traditional hybrid coding structure, which uses time and space prediction, transformation, quantization and entropy coding methods , encode video frames into different frame types: intra-frame prediction frame (I frame), inter-frame prediction frame (P frame) and bi-directional prediction frame (B frame), which will inevitably cause video decoding speed to vary due to video content Different, but the playback frame rate of the video is fixed, which leads to problems such as the mismatch between the video decoding speed and the display speed, and the audio and video are encoded and transmitted separately, and synchronous output is required during playback. If it is n...

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/439H04N21/435G06F9/38H04N21/44
Inventor 陈勇王卫东吴少校乔崇祁云嵩徐钊孟凡伟
Owner NANJING LONGYUAN MICROELECTRONICS TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products