CN104967901B - Track switching method and apparatus for media playing in media play - Google Patents
Track switching method and apparatus for media playing in media play Download PDFInfo
- Publication number
- CN104967901B CN104967901B CN201510367773.8A CN201510367773A CN104967901B CN 104967901 B CN104967901 B CN 104967901B CN 201510367773 A CN201510367773 A CN 201510367773A CN 104967901 B CN104967901 B CN 104967901B
- Authority
- CN
- China
- Prior art keywords
- track
- packets
- audio
- data packet
- media file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000004044 response Effects 0.000 claims abstract description 14
- 238000004891 communication Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000000151 deposition Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 241000209140 Triticum Species 0.000 description 1
- 235000021307 Triticum Nutrition 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4335—Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
- H04N21/4392—Processing of audio elementary streams involving audio buffer management
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
This application discloses a kind of track switching method, applied to apparatus for media playing, this method includes:When the audio of the first track of a media file is played in the apparatus for media playing, in response to the instruction for switching to the second track of user's triggering, delete the packets of audio data of the first track preserved in audio buffer, and it is successively read the packets of audio data of second track of media file described in the external memory, and save it in the audio buffer, wherein, the packets of audio data of read second track corresponds in the screen buffer video data packet currently preserved, then plays the packets of audio data of second track.According to technical solution disclosed in the present application, the memory source for playing and being taken during media file can be reduced.
Description
Technical field
The present invention relates to technical field of media play, more particularly to a kind of track switching method and apparatus for media playing.
Background technology
At present, in order to meet different demands of the user to audio, media file generally includes the voice data of a plurality of track.
Every track corresponds to an independent audio stream.In media file, the audio stream of different language form is (such as Chinese, English
Text etc.) correspond to different tracks.The audio stream (such as Doby, AAC, MP3) of different tonequality also corresponds to different tracks.
The content of the invention
The embodiment of the present invention provides the track switching method and apparatus for media playing in a kind of media play, is played with reducing
The memory source taken during media file.
An embodiment of the present invention provides the track switching method in media play, applied to apparatus for media playing, when described
When apparatus for media playing plays the audio of the first track of a media file, the described of media file described in external memory is successively read
It is simultaneously stored in the corresponding audio of media file described in memory and delayed by the packets of audio data and video data packet of the first track respectively
Rush area and screen buffer;This method includes:
In response to the instruction for switching to the second track of user's triggering, described the preserved in the audio buffer is deleted
The packets of audio data of one track, and stop reading the packets of audio data of first track of media file described in the external memory
With the video data packet;
The packets of audio data of second track of media file described in the external memory is successively read, and is saved it in
In the audio buffer;The packets of audio data of read second track, which corresponds in the screen buffer, currently protects
The video data packet deposited;
Video data packet to be played is obtained from the video cache area, it is to be played to obtain this from the audio buffer
Corresponding second track of video data packet packets of audio data, and play the acquired video data packet and described
The packets of audio data of second track.
The present invention provides apparatus for media playing, which includes read module, for being broadcast when the media
When putting the audio of the first track of one media file of device plays, first sound of media file described in external memory is successively read
The packets of audio data and video data packet of rail and it is stored in respectively the corresponding audio buffer of media file described in memory and
Screen buffer;
The apparatus for media playing still further comprises switching control module and playing module, wherein,
The switching control module is used for the instruction for switching to the second track in response to user's triggering, deletes the audio
The packets of audio data of first track preserved in buffering area, and instruct the read module to stop reading institute in the external memory
State the packets of audio data of first track of media file and the video data packet;
The read module is further used for the instruction in response to the switching control module, is successively read in the external memory
The packets of audio data of second track of the media file, and save it in the audio buffer;It is read
The packets of audio data of second track corresponds in the screen buffer video data packet currently preserved;
The playing module is used to obtain video data packet to be played from the video cache area, delays from the audio
The packets of audio data that area obtains corresponding second track of the video data packet to be played is rushed, and it is described acquired in broadcasting
The packets of audio data of video data packet and second track.
Using above-mentioned technical proposal, during the audio for the first track that a media file is played in the apparatus for media playing,
In response to the instruction for switching to the second track of user's triggering, the voice data of the first track preserved in deletion audio buffer
Bag, and the packets of audio data of second track of media file described in the external memory is successively read, and save it in described
In audio buffer, wherein, the packets of audio data of read second track corresponds in the screen buffer currently
The video data packet preserved, then plays the packets of audio data of second track.When being so reduced by playing media file
The memory source of occupancy.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other attached drawings according to these attached drawings.
Fig. 1 is apparatus for media playing structure diagram in the embodiment of the present invention;
Fig. 2 is the flow chart of the track switching method in media play in the embodiment of the present invention;
Fig. 3 is the flow chart of the track switching method in media play in the embodiment of the present invention;
Fig. 4 is that media play sound intermediate frequency data packet reads schematic diagram in the embodiment of the present invention;
Fig. 5 is apparatus for media playing structure diagram in the embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained without making creative work
Example is applied, belongs to the scope of protection of the invention.
The present inventor has found in the course of the research, in order to meet that user switches in media file in playing external memory
The demand of track, when playing the media file, terminal device can read the packets of audio data corresponding to every track, and all protect
Deposit in the corresponding audio buffer of the media file in memory.Due to needing to preserve the audio of a plurality of track in the media file
Data packet, will take substantial amounts of memory source.Especially for the more demanding track of tonequality (for example, Doby), the sound is preserved
Memory source shared by the corresponding packets of audio data of rail will be more.
In view of this, the embodiment of the present invention proposes the track switching method in a kind of media play.It is real according to the present invention
The method for applying example offer, when the apparatus for media playing plays the audio of the first track of a media file, is successively read outer
It is simultaneously stored in institute in memory by the packets of audio data and video data packet of first track of media file described in depositing respectively
State the corresponding audio buffer of media file and screen buffer.The instruction for switching to the second track triggered in response to user,
The packets of audio data of first track preserved in the audio buffer is deleted, and stops reading matchmaker described in the external memory
The packets of audio data and the video data packet of first track of body file.It is successively read the text of media described in the external memory
The packets of audio data of second track of part, and save it in the audio buffer;Read second sound
The packets of audio data of rail corresponds in the screen buffer video data packet currently preserved.From the video cache area
It is middle to obtain video data packet to be played, obtain the video data packet to be played corresponding described the from the audio buffer
The packets of audio data of two tracks, and play the voice data of the acquired video data packet and second track
Bag.So as to reduce the memory source for playing and being taken during media file.
Fig. 1 is apparatus for media playing structure diagram in one embodiment of the invention.As shown in Figure 1, apparatus for media playing
100 can be the computing device that there are data to calculate processing and store function, include but not limited to (being provided with communication module)
Smart mobile phone, palm PC, tablet computer, smart television (Smart TV) etc..Operation system is fitted with these communication terminals
System, includes but not limited to:Android operation system, Symbian operating systems, Windows mobile operating systems, Yi Jiping
Fruit iPhone OS operating systems etc..As shown in Figure 1, apparatus for media playing 100 can include processor 102, non-volatile meter
Calculation machine readable memory 104, I/O interfaces 106 and another non-volatile computer readable memory 109.The media play is set
Standby 100 may also include network communication interface 108.These components are communicated by bus 105.
In an embodiment of the invention, which is apparatus for media playing 100
External memory, can include paper storage medium (such as paper tape), magnetic storage medium (such as floppy disk, hard disk, flash memory), optical storage media
(such as CD-ROM), magnetic-optical storage medium (such as MO) etc..In an embodiment of the invention, the non-volatile computer is readable
Memory 109 stores media file to be played.
In an embodiment of the invention, non-volatile computer readable memory 104 is the interior of apparatus for media playing 100
Deposit, be stored with multiple program modules:Operating system 112, I/O modules 114, communication module 116 and application program 118.Processor
102 can read the program module in memory to realize scheme provided in an embodiment of the present invention.When the apparatus for media playing 100
, can be readable in the non-volatile computer when broadcasting one is stored in the media file of non-volatile computer readable memory 109
In memory 104 audio buffer and screen buffer are opened up for the media file.Wherein, the audio buffer be used for store from
The packets of audio data of the current audio track read in the media file of external memory, the screen buffer are used to store being somebody's turn to do from external memory
The video data packet read in media file.
In an embodiment of the invention, I/O interfaces 106 can be connected with input-output apparatus, such as touch-screen, wheat
Gram wind, loudspeaker etc..The input data received from input equipment is sent to I/O modules 114 and is handled by I/O interfaces 106,
And the data sending for exporting I/O modules 114 is to output equipment.
In an embodiment of the invention, network communication interface 108 can send out the data received from communication network 140
Communication module 116 is given, and will be sent from the data that communication module 116 receives by communication network 140.
Track switching can be included by, which being stored in the application program 118 in memory 104, applies 119.Apparatus for media playing
It can be switched by the track and realize that the track of the media file played switches using 119.As shown in Figure 1, the data are same
Step can include read module 501, switching control module 502 and playing module 503 using 119, and extended meeting is to module after this paper
The concrete function and operation principle of 501-503 is described in detail.Processor 102 can be realized by performing Audio conversion using 119
The track switching of the media file played.
Fig. 2 is the flow chart of the track switching method in media play in the embodiment of the present invention.This method is applied to media
Playback equipment.As shown in Fig. 2, this method comprises the following steps:
Step 200:When the apparatus for media playing plays the audio of the first track of a media file, it is successively read outer
It is simultaneously stored in institute in memory by the packets of audio data and video data packet of first track of media file described in depositing respectively
State the corresponding audio buffer of media file and screen buffer.
Step 201:In response to the instruction for switching to the second track of user's triggering, delete and preserved in the audio buffer
The first track packets of audio data, and stop reading the audio number of first track of media file described in the external memory
According to bag and the video data packet.
Step 202:The packets of audio data of second track of media file described in the external memory is successively read, and will
It is stored in the audio buffer;The packets of audio data of read second track corresponds to the screen buffer
In the video data packet that currently preserves;
Step 203:Video data packet to be played is obtained from the video cache area, is obtained from the audio buffer
The packets of audio data of corresponding second track of the video data packet to be played, and play the acquired video data
The packets of audio data of bag and second track.
Fig. 3 is the flow chart of the track switching method in media play in the embodiment of the present invention.This method is applied to media
Playback equipment.As shown in figure 3, this method comprises the following steps:
Step 300:When the apparatus for media playing plays the audio of the first track of a media file, it is successively read outer
It is simultaneously stored in institute in memory by the packets of audio data and video data packet of first track of media file described in depositing respectively
State the corresponding audio buffer of media file and screen buffer.
In an embodiment of the invention, by demultiplexing the media file in the external memory, the of the media file is read
The packets of audio data and video data packet of one track.For example, by by the reading pointer of the media file in the external memory from work as
Front position starts to be moved rearwards successively, is successively read the subsequent video data bag and its correspondence of media file described in the external memory
First track packets of audio data.
Step 301:In response to the instruction for switching to the second track of user's triggering, delete and preserved in the audio buffer
The first track packets of audio data, and stop reading the audio number of first track of media file described in the external memory
According to bag and the video data packet.
Step 302:The packets of audio data of second track of media file described in the external memory is successively read, and will
It is stored in the audio buffer;The packets of audio data of read second track corresponds to the screen buffer
In the video data packet that currently preserves;
In an embodiment of the invention, can be successively read by demultiplexing the media file described in the external memory
The packets of audio data of second track of media file.As shown in Figure 4, it may be determined that the media file 401 in the external memory
The first position 402 that is currently pointed at of reading pointer.Determine the video data packet preserved at first in the screen buffer, make institute
State the second place 403 that reading pointer is directed toward where the video data packet that this in the external memory preserves at first.By by the reading
Fetching pin is moved to the first position 402 successively from the second place 403, is successively read in the external memory positioned at described the
The packets of audio data of second track between two positions 403 and the first position 402.
Step 303:Video data packet to be played is obtained from the video cache area, is obtained from the audio buffer
The packets of audio data of corresponding second track of the video data packet to be played, and play the acquired video data
The packets of audio data of bag and second track.
In an embodiment of the invention, each packets of audio data has timestamp with video data packet.When an audio number
Identical with a video data packet according to wrapping, which corresponds to the video data packet.Specifically, the audio buffer is obtained
Take corresponding second track of the video data packet to be played packets of audio data include from audio buffer obtain with
The packets of audio data of identical second track of the timestamp of the video data packet to be played.
In an embodiment of the invention, when performing above-mentioned steps 301-303, apparatus for media playing still plays video
Data packet.That is, the influence that the broadcasting of video data packet switches from track.
In an embodiment of the invention, after step 303, step 304 is further comprised.
Step 304:The subsequent video data bag of the media file and second track are successively read from external memory
Packets of audio data, and it is stored in the corresponding screen buffer of media file described in the memory and Audio Buffer respectively
Area.
In an embodiment of the invention, as shown in figure 4, by by the reading pointer of the media file in the external memory from
Current location (i.e. first position 402) starts to be moved rearwards successively, is successively read the follow-up of media file described in the external memory
The packets of audio data of video data packet and its corresponding second track.
Track switching method in the media play proposed above to the embodiment of the present invention is illustrated.With reference to attached
Figure illustrates apparatus for media playing provided in an embodiment of the present invention.
Fig. 5 is a kind of structure diagram of apparatus for media playing provided in an embodiment of the present invention.As shown in figure 5, the media
Playback equipment 500 is included with lower module:
Read module 501, for when the apparatus for media playing play a media file the first track audio when, according to
It is simultaneously stored in by the packets of audio data and video data packet of first track of media file described in secondary reading external memory respectively
The corresponding audio buffer of media file described in memory and screen buffer;The apparatus for media playing further comprises switching
Control module 502 and playing module 503, wherein,
The switching control module 502 is used for the instruction for switching to the second track in response to user's triggering, described in deletion
The packets of audio data of first track preserved in audio buffer, and instruct the read module 501 to stop reading outside described
The packets of audio data and the video data packet of first track of media file described in depositing;
The read module 501 is further used for the instruction in response to switching control module 502, is successively read the external memory
Described in media file second track packets of audio data, and save it in the audio buffer;Read
The packets of audio data of second track correspond to the video data packet that currently preserves in the screen buffer;
The playing module 503 is used to obtain video data packet to be played from the video cache area, from the sound
Frequency buffering area obtains the packets of audio data of corresponding second track of the video data packet to be played, and plays acquired
The packets of audio data of the video data packet and second track.
In an embodiment of the invention, the read module 501 is used for the reading for determining the media file in the external memory
The first position that fetching pin is currently pointed at, determines the video data packet preserved at first in the screen buffer, makes the reading
Fetching pin is directed toward the second place where the video data packet that this in the external memory preserves at first, by by the reading pointer from
The second place is moved to the first position successively, is successively read in the external memory positioned at the second place and described the
The packets of audio data of second track between one position.
In an embodiment of the invention, in the institute in having read the external memory with currently being preserved in the screen buffer
After the packets of audio data for stating corresponding second track of video data packet, the read module 501 is further used for ringing
Should in the instruction of switching control module 502 be successively read from the external memory media file subsequent video data bag and
The packets of audio data of second track, and it is stored in the corresponding screen buffer of media file described in the memory respectively
And audio buffer.
In an embodiment of the invention, the read module 501 is used for by by the media file in the external memory
Reading pointer is moved rearwards successively since current location, is successively read the subsequent video number of media file described in the external memory
According to the packets of audio data of bag and its corresponding second track.
In an embodiment of the invention, the playing module 503 be used for from the audio buffer obtain with it is described
The packets of audio data of identical second track of the timestamp of the video data packet to be played.
Track switching method embodiment in apparatus for media playing and media play that above-described embodiment provides belongs to same
One design, its specific implementation process refer to embodiment of the method, and which is not described herein again.
In addition, each function module in each embodiment of the present invention can be integrated in a processing unit, can also
That modules are individually physically present, can also two or more modules integrate in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.The work(of each embodiment
Energy module can be located at a terminal or network node, or can also be distributed on multiple terminals or network node.
In addition, each embodiment of the present invention can pass through the data processing by data processing equipment such as computer execution
Program is realized.Obviously, data processor constitutes the present invention.In addition, it is generally stored inside the data in a storage medium
Processing routine by program by directly reading out storage medium or by installing or copying to data processing equipment by program
Performed in storage device (such as hard disk and/or memory).Therefore, such storage medium also constitutes the present invention.Storage medium can be with
Use any kind of recording mode, such as paper storage medium (such as paper tape), magnetic storage medium (such as floppy disk, hard disk, flash memory
Deng), optical storage media (such as CD-ROM), magnetic-optical storage medium (such as MO) etc..
Therefore present invention also offers a kind of storage medium, wherein data processor is stored with, the data processor
For performing any type embodiment of the above method of the present invention.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of protection of the invention.
Claims (8)
1. a kind of track switching method, it is characterised in that applied to apparatus for media playing, when the apparatus for media playing plays one
During the audio of the first track of media file, the voice data of first track of media file described in external memory is successively read
Bag is stored in the corresponding audio buffer of media file described in memory and screen buffer with video data packet and by it respectively;Should
Method includes:
In response to the instruction for switching to the second track of user's triggering, first sound preserved in the audio buffer is deleted
The packets of audio data of rail, and stop reading packets of audio data and the institute of first track of media file described in the external memory
State video data packet;
The packets of audio data of second track of media file described in the external memory is successively read, and is saved it in described
In audio buffer;The packets of audio data of read second track corresponds in the screen buffer what is currently preserved
The video data packet;
Video data packet to be played is obtained from the video cache area, obtaining this from the audio buffer to be played regards
The packets of audio data of corresponding second track of frequency data packet, and play the acquired video data packet and described second
The packets of audio data of track;
The packets of audio data of second track for being successively read media file described in the external memory, including:
Determine the first position that the reading pointer of the media file in the external memory is currently pointed at;
Determine the video data packet preserved at first in the screen buffer, the reading pointer is directed toward this in the external memory most
The second place where the video data packet first preserved;
By the way that the reading pointer is moved to the first position successively from the second place, it is successively read in the external memory
The packets of audio data of second track between the second place and the first position.
2. according to the method described in claim 1, it is characterized in that, in having read the external memory with the screen buffer
After the packets of audio data of corresponding second track of the video data packet currently preserved, further comprise:From institute
The packets of audio data of the subsequent video data bag that the media file is successively read in external memory and second track is stated, and will
It is stored in the corresponding screen buffer of media file described in the memory and audio buffer respectively.
3. according to the method described in claim 2, it is characterized in that, after the media file is successively read from the external memory
The packets of audio data of continuous video data packet and second track, including:
By the way that the reading pointer of the media file in the external memory is moved rearwards successively since current location, institute is successively read
State the subsequent video data bag of media file described in external memory and its packets of audio data of corresponding second track.
4. according to the method described in claim 1, it is characterized in that, described obtain this from the audio buffer and to be played regard
The packets of audio data of corresponding second track of frequency data packet, including:
Second sound identical with the timestamp of the video data packet to be played is obtained from the audio buffer
The packets of audio data of rail.
A kind of 5. apparatus for media playing, it is characterised in that including:
Read module, for when the audio of the first track of the apparatus for media playing one media file of broadcasting, being successively read
It is simultaneously stored in memory by the packets of audio data and video data packet of first track of media file described in external memory respectively
The corresponding audio buffer of the media file and screen buffer;The apparatus for media playing further comprises switching control mould
Block and playing module, wherein,
The switching control module is used for the instruction for switching to the second track in response to user's triggering, deletes the Audio Buffer
The packets of audio data of first track preserved in area, and instruct the read module to stop reading matchmaker described in the external memory
The packets of audio data and the video data packet of first track of body file;
The read module is further used for the instruction in response to the switching control module, is successively read described in the external memory
The packets of audio data of second track of media file, and save it in the audio buffer;It is read described
The packets of audio data of second track corresponds in the screen buffer video data packet currently preserved;
The playing module is used to obtain video data packet to be played from the video cache area, from the audio buffer
The packets of audio data of corresponding second track of the video data packet to be played is obtained, and plays the acquired video
The packets of audio data of data packet and second track;
The read module is used to determine the first position that the reading pointer of the media file in the external memory is currently pointed at, really
The video data packet preserved at first in the fixed screen buffer, makes the reading pointer be directed toward this in the external memory and preserves at first
Video data packet where the second place, by the way that the reading pointer is moved to described first successively from the second place
Position, the audio for second track being successively read in the external memory between the second place and the first position
Data packet.
6. equipment according to claim 5, it is characterised in that in having read the external memory with the screen buffer
After the packets of audio data of corresponding second track of the video data packet currently preserved, the read module is into one
Step is used for the instruction in response to the switching control module, and the subsequent video of the media file is successively read from the external memory
The packets of audio data of data packet and second track, and it is corresponding that it is stored in media file described in the memory respectively
Screen buffer and audio buffer.
7. equipment according to claim 6, it is characterised in that the read module is used for by by the matchmaker in the external memory
The reading pointer of body file is moved rearwards successively since current location, is successively read described in the external memory after media file
The packets of audio data of continuous video data packet and its corresponding second track.
8. equipment according to claim 5, it is characterised in that the playing module is used to obtain from the audio buffer
Take the packets of audio data of second track identical with the timestamp of the video data packet to be played.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510367773.8A CN104967901B (en) | 2015-06-29 | 2015-06-29 | Track switching method and apparatus for media playing in media play |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510367773.8A CN104967901B (en) | 2015-06-29 | 2015-06-29 | Track switching method and apparatus for media playing in media play |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104967901A CN104967901A (en) | 2015-10-07 |
| CN104967901B true CN104967901B (en) | 2018-05-04 |
Family
ID=54221824
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510367773.8A Active CN104967901B (en) | 2015-06-29 | 2015-06-29 | Track switching method and apparatus for media playing in media play |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104967901B (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105979347A (en) * | 2015-12-03 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Video play method and device |
| CN108574880A (en) * | 2017-03-07 | 2018-09-25 | 合网络技术(北京)有限公司 | Multimedia resource playback method and device |
| CN108810575B (en) * | 2017-05-04 | 2021-10-29 | 杭州海康威视数字技术股份有限公司 | A method and device for sending target video |
| CN107426600B (en) * | 2017-06-30 | 2019-11-08 | 北京威动科技有限公司 | Switch the playback method and device of track and subtitle rail |
| CN110798743A (en) * | 2018-08-02 | 2020-02-14 | 腾讯科技(深圳)有限公司 | Video playing method and device and computer readable storage medium |
| CN109599133B (en) * | 2018-12-18 | 2020-11-24 | 海信视像科技股份有限公司 | Language audio track switching method and device, computer equipment and storage medium |
| CN111510755A (en) * | 2019-01-30 | 2020-08-07 | 上海哔哩哔哩科技有限公司 | Audio and video switching method and device, computer equipment and readable storage medium |
| CN112866794B (en) * | 2019-11-12 | 2022-06-07 | 腾讯科技(深圳)有限公司 | Audio track switching method and equipment |
| CN111356009B (en) * | 2020-02-26 | 2022-05-31 | 北京大米科技有限公司 | Audio data processing method and device, storage medium and terminal |
| CN111601158B (en) * | 2020-05-14 | 2021-11-02 | 青岛海信传媒网络技术有限公司 | Method for optimizing audio track cutting of streaming media pipeline and display equipment |
| CN113596545A (en) * | 2021-07-21 | 2021-11-02 | 中央广播电视总台 | Audio track switching method and device, media playing device and computer storage medium |
| CN118158484A (en) * | 2022-12-06 | 2024-06-07 | 中兴通讯股份有限公司 | Multimedia data processing method and device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102347042A (en) * | 2010-07-28 | 2012-02-08 | Tcl集团股份有限公司 | Audio track switching method, system thereof and audio and video file playing device |
| CN102521159A (en) * | 2011-12-16 | 2012-06-27 | 杭州初灵信息技术股份有限公司 | Method for dynamically scheduling packet data of on-chip and off-chip memories according to traffic |
| CN103780943A (en) * | 2014-01-24 | 2014-05-07 | 华为技术有限公司 | Audio channel switching method, device and system |
| CN104318933A (en) * | 2014-08-26 | 2015-01-28 | 北京洛哈技术有限公司 | Original and accompaniment switching method and device |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7103553B2 (en) * | 2003-06-04 | 2006-09-05 | Matsushita Electric Industrial Co., Ltd. | Assistive call center interface |
| CN103093776B (en) * | 2011-11-04 | 2016-01-20 | 腾讯科技(深圳)有限公司 | Multi-audio-track content player method and system in network audiovisual |
| CN103179450A (en) * | 2011-12-23 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method, device and system for playing video, and audio track server |
| US9154834B2 (en) * | 2012-11-06 | 2015-10-06 | Broadcom Corporation | Fast switching of synchronized media using time-stamp management |
| US9344759B2 (en) * | 2013-03-05 | 2016-05-17 | Google Inc. | Associating audio tracks of an album with video content |
| CN104505109B (en) * | 2014-12-29 | 2017-06-30 | 珠海全志科技股份有限公司 | The track changing method of multimedia player, system and correspondence player and equipment |
-
2015
- 2015-06-29 CN CN201510367773.8A patent/CN104967901B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102347042A (en) * | 2010-07-28 | 2012-02-08 | Tcl集团股份有限公司 | Audio track switching method, system thereof and audio and video file playing device |
| CN102521159A (en) * | 2011-12-16 | 2012-06-27 | 杭州初灵信息技术股份有限公司 | Method for dynamically scheduling packet data of on-chip and off-chip memories according to traffic |
| CN103780943A (en) * | 2014-01-24 | 2014-05-07 | 华为技术有限公司 | Audio channel switching method, device and system |
| CN104318933A (en) * | 2014-08-26 | 2015-01-28 | 北京洛哈技术有限公司 | Original and accompaniment switching method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104967901A (en) | 2015-10-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104967901B (en) | Track switching method and apparatus for media playing in media play | |
| CN106559706B (en) | A kind of processing method of audio data, device and system | |
| CN109166589B (en) | Application sound suppression method, device, medium and equipment | |
| CN106454391B (en) | Live broadcast-to-on-demand broadcast method, device and terminal | |
| CN113890932A (en) | Audio control method and system and electronic equipment | |
| CN112423076B (en) | Audio screen-throwing synchronous control method, equipment and computer readable storage medium | |
| CN108079578A (en) | A kind of code rate adjustment method based on cloud game, device and storage medium | |
| JP6118418B2 (en) | Electronic book document processing method, terminal, electronic device, program, and recording medium | |
| US20160133006A1 (en) | Video processing method and apparatus | |
| CN107105096A (en) | A kind of audio-frequency processing method, terminal and storage medium | |
| CN105872724A (en) | A video playback method and device | |
| CN107613369A (en) | Video broadcasting method, device and electronic equipment based on GStreamer frameworks | |
| US20210358475A1 (en) | Interpretation system, server apparatus, distribution method, and storage medium | |
| WO2020010963A1 (en) | Voice handover method, apparatus, terminal, and computer-readable storage medium | |
| US10171868B2 (en) | Method for processing audio data, terminal and television | |
| KR101402869B1 (en) | Method and system for processing audio signals in a central audio hub | |
| CN111966448A (en) | Audio transmission method and system | |
| CN112631541B (en) | Synchronous playing method and device for controlling multi-playing equipment, storage medium and control terminal | |
| CN106559705A (en) | A kind of processing method of voice data, device and system | |
| CN109495776A (en) | The method and intelligent terminal that a kind of audio sends, plays | |
| CN119729743A (en) | Audio playing method and device and electronic equipment | |
| CN105389156B (en) | A kind of method and system reducing voice input to output delay based on DMA technology | |
| CN106162335B (en) | Playback method, apparatus and system based on multichannel television audio data | |
| CN103345930B (en) | data synthesis method, device and terminal | |
| CN106559703B (en) | A kind for the treatment of method and apparatus of audio data |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |