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

Active Publication Date: 2014-05-07
HUAWEI TECH CO LTD
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The prior art has the following disadvantages. First, because the memory is used to cache all audio track data, this method will take up more memory, which is not suitable for products with low memory; second, when the audio track is switched, the video is in the In the normal playback state, when

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 channel switching method, device and system
  • Audio channel switching method, device and system
  • Audio channel switching method, device and system

Examples

Experimental program
Comparison scheme
Effect test

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...

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 provides an audio channel switching method, device and system. The method includes the following steps that a request for audio channel switching is received; sending of video data to a video decoder and sending of audio channel data to an audio decoder are stopped; a stream buffering area of the audio decoder is emptied, and a frame buffering area of the audio decoder is not emptied; new audio channel data in the audio channel switching process are read from file or network streams and sent to the stream buffering area of the audio decoder. The audio channel switching method saves memory space and is relatively applicable to low-end products with low memory configuration, normal output of audios can be ensured, and the phenomenon of clamping and pausing can be avoided. Due to the fact that read new audio data can be joined with the audio channel data of the frame buffering area of the audio decoder, the phenomenon of clamping and pausing in the audio channel switching process is avoided and the phenomenon that audio output does not occur within a short time is avoided. Thus, smooth transition of audio track switching can be achieved.

Description

technical field [0001] The invention relates to the technical field of information processing, in particular to a method, device and system for switching audio tracks. Background technique [0002] With the development of technology, many people currently use computers or mobile terminals to watch videos or movies. In order to meet the needs of more users, the media files of the same movie now include multiple audio tracks, and each audio track is dubbed in a different language, for example, including a Chinese audio track and an English audio track. [0003] When using a media player to play this kind of media file, when the user selects different audio tracks, the switching of the audio track will be involved, but the smoothness of the media file playback will directly affect the user's experience when the audio track is switched. [0004] In the prior art, a decoder includes a stream buffer and a frame buffer. Among them, the stream buffer is used to store the data to b...

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/43H04N21/8547H04N21/439H04N21/422
Inventor 梁伟
Owner HUAWEI 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