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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com