Method and device for processing play abnormality of audio stream, computer device and computer readable storage medium
A technology for abnormal playback and processing methods, applied in the field of audio and video, which can solve problems such as inability to handle abnormal situations and sound interruptions
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] figure 1 A method for handling abnormal audio stream playback provided by an embodiment of the present invention is shown, and the details are as follows:
[0039] In step S110, the audio frame data in the cache is acquired.
[0040] In the embodiment of the present invention, the audio frame data can specifically receive real-time audio and video stream data through a communication port such as a network port or a USB port, and demultiplex the audio data after being demultiplexed by the demultiplexing module.
[0041] In step S120, the decoding parameters of the audio frame data are analyzed, relevant audio data is obtained, and the time stamp of the first frame of audio frame data is recorded.
[0042] As an embodiment of the present invention, the audio frame data includes an audio frame sequence, and the acquired audio frame sequence is transmitted to the AudioQueue audio processing framework for playback processing. After the AudioQueue audio processing framework ...
Embodiment 2
[0087] Figure 5 It shows another method for handling abnormal audio stream playback provided by the embodiment of the present invention, and the details are as follows:
[0088] In an embodiment of the present invention, the relevant audio data includes an audio frame duration, and the method further includes:
[0089] In step S210, the average decoding time of multiple consecutive audio frames is calculated.
[0090] In the embodiment of the present invention, after the audio frame data is parsed, it is decoded and rendered through the AudioQueue audio processing framework and output, and the decoding time of multiple consecutive audio frames is counted at the same time, and the time for receiving the audio frame data according to the AudioQueue audio processing framework, Obtain the difference between the two times, and calculate the length of time consumed by each audio frame according to the number of audio frames, which is the average time spent on decoding.
[0091] I...
Embodiment 3
[0098] Image 6It shows a device for handling abnormal playback of audio streams provided by the embodiment of the present invention. For convenience of description, only the parts related to the embodiment of the present invention are shown.
[0099] The device 300 for handling abnormal audio streams includes: an audio frame data acquisition unit 31, an analysis unit 32, a decoding unit 33, an actual audio rendering time acquisition unit 34, a real-time code stream playback time drift acquisition unit 35, a judging unit 36, and a first reset start Unit 37.
[0100] The audio frame data obtaining unit 31 is configured to obtain the audio frame data in the cache.
[0101] In the embodiment of the present invention, the audio frame data can specifically receive real-time audio and video stream data through a communication port such as a network port or a USB port, and demultiplex the audio data after being demultiplexed by the demultiplexing module.
[0102] The parsing unit 3...
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