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

Synchronous playing method and device for both audio and video

An audio and video synchronization, audio and video technology, applied in the field of audio and video, can solve the problem of playing audio and video files out of sync

Active Publication Date: 2008-10-22
VIMICRO ELECTRONICS CORP
View PDF0 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The problem to be solved by the embodiment of the present invention is to provide a method and device for synchronously playing audio and video to overcome the asynchronous defect of playing audio and video files in the prior art

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 playing method and device for both audio and video
  • Synchronous playing method and device for both audio and video

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Embodiment one, when playing an audio and video file, when starting to play the audio and video, start a long timer, use the long timer to record the accumulated time to start playing, the initial value of the long timer is 0, Accuracy is in milliseconds. Assume that in the timer interrupt, the timestamp of the current frame A in the audio and video file is T A , the timestamp of the previous frame A-1 of the current frame is T A -T f , where T f is one frame time of the audio and video file, and the current counting time T of the long timer is less than or equal to T A -T f , then the current counting time T of the long timer and the timestamp T of the current frame A in the audio and video file A The deviation is greater than or equal to a frame time T of the audio and video file f . Exit the timer interrupt process now, continue to display the last frame A-1 of the current frame, then read audio and video data from the audio and video file into the buffer, and...

Embodiment 2

[0033] Embodiment two, when playing an audio and video file, when starting to play the audio and video, start a long timer, use the long timer to record the accumulated time to start playing, the initial value of the long timer is 0, Accuracy is in milliseconds. Assume that in the timer interrupt, the timestamp of the current frame B in the audio and video file is T B , the timestamp of the next frame B+1 of the current frame is T B +T f , where T f is one frame time of the audio and video file, and the current counting time T of the long timer is greater than or equal to T B +T f , then the current counting time T of the long timer and the timestamp T of the current frame B in the audio and video file B The deviation is greater than or equal to a frame time T of the audio and video file f . Display the next frame B+1 of the current frame now, then set the Buffer signs of the next frame B+1 of the current frame B and the current frame as displayed, and then from the aud...

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 discloses a method for audio-video synchronous playing. The method comprises the following steps that: an audio-video file is opened; the accumulative time for playing the audio-video file is recorded; when a timer is interrupted, whether the deviation between the current accumulative time and the timestamp of the current frame in the audio-video file is within the time of one frame is judged; if the judgment is NO, the current frame of a video file is adjusted as an object frame; if the judgment is YES, the adjusted audio-video file is played. The invention also discloses a device for audio-video synchronous playing. The method judges whether the deviation between the current accumulative playing time and the timestamp in a file during each interrupt processing is within the time of one frame; if the deviation is of one frame ahead of schedule, the interrupt processing is exited; if the deviation is of one frame lagged behind, the frame is omitted to directly display the next frame; therefore, the audio-video deviation is always controlled within one frame to ensure synchronous audio-video playing.

Description

technical field [0001] The invention relates to the technical field of audio and video, in particular to a method and device for synchronously playing audio and video. Background technique [0002] With the continuous development of multimedia technology, multimedia files (such as audio files, video files, audio and video files, slide files, etc.) The appreciation of audio and video has a great impact. [0003] At present, when playing audio and video files, the mechanism of transmitting audio data to the audio device in the Timer interrupt and displaying video pictures is generally adopted. This mechanism uses a method of mutual restriction of audio and video playback to achieve relative synchronization of audio and video. [0004] In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: due to the scheduling of system resources and the operating system, there will be errors in the playback time...

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
IPC IPC(8): G11B27/10
Inventor 李志刚
Owner VIMICRO ELECTRONICS CORP
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