Audio stream flow velocity error processing method and apparatus, computer apparatus and computer readable storage medium

An audio stream and audio technology, applied in the field of audio and video, can solve problems such as mismatching decoding speed, overflow and overflow of audio and video buffer data of the player, etc.

Active Publication Date: 2018-01-09
SHENZHEN STATE MICRO TECH CO LTD
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides an audio stream flow rate error processing method, aiming to solve the problem in the prior art that data overflo...

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
  • Audio stream flow velocity error processing method and apparatus, computer apparatus and computer readable storage medium
  • Audio stream flow velocity error processing method and apparatus, computer apparatus and computer readable storage medium
  • Audio stream flow velocity error processing method and apparatus, computer apparatus and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] figure 1 A method for processing an audio stream velocity error provided by an embodiment of the present invention is shown, and the details are as follows:

[0034] In step S110, the audio frame data in the cache is acquired.

[0035] 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.

[0036] In step S120, the audio frame data is parsed to obtain the timestamp of the first frame of the audio frame data.

[0037] 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 receives the audio frame sequence, it passes through the audio fr...

Embodiment 2

[0062] In the embodiment of the present invention, in step S120, the parsing of the audio frame data to obtain the timestamp of the first frame of the audio frame data includes:

[0063] In step S121, the decoding parameters of the audio data frame are analyzed, the audio sampling rate and the audio frame duration are obtained, and the timestamp of the first frame of the audio frame data is recorded;

[0064] In the embodiment of the present invention, the audio sampling rate is the number of audio samples corresponding to each audio frame, and the audio frame duration is the playback duration of each audio frame.

[0065] 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 receives the audio frame sequence, it passes through the audio frame sequence The PES packe...

Embodiment 3

[0079] image 3 It shows the implementation process of another audio stream flow rate error processing method provided by the embodiment of the present invention, which is similar to the first embodiment, except that the acquisition of the audio frame data in the cache includes:

[0080] In step S210, audio stream data is received in real time.

[0081] In the embodiment of the present invention, the audio stream data may be received in real time through a communication port such as a network port, a USB port, etc., and the audio stream data may be compressed audio data or original audio data.

[0082] In step S220, the audio stream data is demultiplexed to obtain audio frame data.

[0083] In the embodiment of the present invention, after the audio stream data is received, the packets of the same type in the audio stream data are stored and processed separately by the demultiplexing module. To distinguish audio or other business information data. Its function is to separat...

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 is applied to the technical field of audios/videos, and provides an audio stream flow velocity error processing method and apparatus, a computer apparatus and a computer readable storagemedium. The method comprises the steps of obtaining audio frame data in a cache; analyzing the audio frame data to obtain a timestamp for a first frame of the audio frame data; according to a difference value between the timestamp for the first frame and a timestamp of an audio frame entering to be cached newly when audio playing is started, obtaining an initial bit stream time drift of the audioplaying; performing decoding and rendering on the audio frame data, and calculating a practical audio rendering time; according a difference value between the practical audio rendering time and a timestamp of an audio frame entering to be cached newly at present in an audio frame data decoding process, obtaining a real-time bit stream playing time drift; and when the real-time bit stream playingtime drift is not consistent with an initial code stream time drift, accelerating or lowering an audio playing speed. The problem of cache up-down overflow due to a front-end transmission precision error in the audio playing process is eliminated, and the product stability is improved.

Description

technical field [0001] The invention belongs to the technical field of audio and video, and in particular relates to an audio stream velocity error processing method, device, computer device and computer-readable storage medium. Background technique [0002] MPEG2-TS is a communication protocol for audio, video and data, in which Transport Stream (TS) has become a device layer encoding standard commonly used in the field of digital television. Transport stream is aimed at the transmission of channels with certain bit errors. It can combine multiple programs into one stream for transmission. It allows the same program to contain multiple audio and video streams, and can also add some additional information. [0003] At present, when real-time MPEG2-TS audio and video streams are processed, the real-time MPEG2-TS audio and video streams transmitted by the communication port are usually received in real time through USB or network, and the audio and video players use demultiple...

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): H04N21/439H04N21/8547
Inventor 刘学文车明贤
Owner SHENZHEN STATE MICRO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products