Method and system for synchronously playing audio and video
A technology of video synchronization and playback method, applied in image communication, selective content distribution, electrical components, etc., can solve problems such as decoding time exceeding 33 milliseconds, asynchronous audio and video, large jitter in decoding time, etc. Experience and avoid unstable frame rate effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] Such as figure 2 As shown, it is a method for synchronously playing audio and video according to Embodiment 1 of the present invention, including:
[0058] Step 201, the terminal acquires audio data and video data according to the multimedia playback request to play; wherein,
[0059] The terminal obtains the audio data and video data for decoding and playing, and the audio data and video data are all with time stamps.
[0060] Step 202, obtaining the currently played audio timestamp and video timestamp, and obtaining the delay value of the current audio and video playback according to the audio timestamp and the video timestamp;
[0061] Wherein, the delay value is a difference between the audio time stamp and the video time stamp.
[0062] Step 203, comparing the preset expected error value with the delay value to obtain a variable mark; wherein,
[0063] The expected error value is an error range value within which the user can tolerate non-absolute synchronizati...
Embodiment 2
[0072] Such as image 3 Shown, on the basis of embodiment 1, a kind of audio and video synchronous playing method of the present invention comprises:
[0073] In step 301, the terminal obtains audio data and video data according to a multimedia play request for playing.
[0074] Step 302, obtain the currently played audio time stamp and video time stamp, and obtain the delay value of the current audio and video play according to the audio time stamp and the video time stamp.
[0075] Step 303, comparing the preset expected error value with the delay value to obtain a variable flag. in,
[0076] The range of the expected error value is 0-200 milliseconds, preferably, the expected error value is 100 milliseconds. An excessively large expected error value will affect the effect of users viewing audio and video synchronization, while an error value that is too small may be below the actual error value. Performing audio and video synchronization processing according to a small e...
Embodiment 3
[0091] Such as Figure 4 As shown, it is a specific embodiment of the audio and video synchronous playback method of the present invention, including:
[0092] In step 401, the terminal acquires audio data and video data according to a multimedia playback request for playback.
[0093] Step 402, obtain the currently played audio time stamp and video time stamp, and obtain the delay value of the current audio and video play according to the audio time stamp and the video time stamp.
[0094] Step 403, set the expected error value as 90 milliseconds, and compare it with the delay value to obtain a variable mark.
[0095] Step 404: Generate an accumulative error value, a proportional error value, and a predictive error value according to the variable mark, and weight the accumulative error value, proportional error value, and predictive error value to obtain a video rendering interval.
[0096] Specifically, wherein, the cumulative error value is generated according to the vari...
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