Audio channel switching method, device and system
A technology of audio track and switching process, applied in the field of information processing, which can solve problems such as no audio output, inapplicability, and multiple memory, and achieve the effect of ensuring normal output, avoiding stuttering, and saving memory space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] see figure 1 , which is a flow chart of Embodiment 1 of the method for switching audio tracks provided by the present invention.
[0052] The method for audio track switching provided in this embodiment includes the following steps:
[0053] S101: Receive a request for audio track switching;
[0054] It is understandable that the request for audio track switching is generally triggered by the user. For example, when the user is watching a movie, he clicks a button or option to select the audio track he needs, so that the player will receive the request triggered by the user. A request for audio track switching, such as switching the audio track from Chinese to English.
[0055] S102: Stop sending video data to the video decoder and stop sending audio track data to the audio decoder;
[0056] When the player receives the audio track switching request, it will suspend sending audio track data and video data to the audio decoder and video decoder respectively. It is und...
Embodiment 2
[0067] see figure 2 , which is a flow chart of Embodiment 2 of the method for switching audio tracks provided by the present invention.
[0068] S201-S203 in this embodiment are respectively the same as S101-S103 in the method embodiment 1, and will not be repeated here.
[0069] S204: Obtain the display time stamp APTS of the next frame of audio track data to be decoded from the stream buffer of the audio decoder;
[0070] Since the audio track data in the audio decoder frame buffer is not cleared in the embodiment of the present invention, the new audio track data that needs to be supplemented is exactly the next frame of audio track data to be decoded in the audio decoder stream buffer, therefore, The audio track data that has been decoded will be stored in the frame buffer, as long as the next frame of audio track data to be decoded in the supplementary stream buffer starts to supplement new audio track data.
[0071] It should be noted that when the APTS of the next fr...
Embodiment 3
[0079] see image 3 , which is a flow chart of Embodiment 3 of the method for switching audio tracks provided by the present invention.
[0080] S301-S305 in this embodiment are the same as S201-S205 in Method Embodiment 2, the difference is that S306 is added in this embodiment;
[0081] That is, read the new audio track data from the file or network stream in S206 and send it to the stream buffer of the audio decoder; increase S306 before;
[0082] S306: Use the read pointer to re-read the video data and audio track data from the position corresponding to the APTS from the file or network stream until it is equal to the VPTS, discard the video data between the APTS and the VPTS, and The audio track data other than the new audio track data between the APTS and the VPTS is discarded.
[0083] Since the audio track data and video data read by the player from the file or network stream are interleaved, that is, one frame of audio track time is read, and then one frame of video...
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