CN103581715A - Methods and apparatuses for realizing zero-second switching during the playing of streaming media - Google Patents

Methods and apparatuses for realizing zero-second switching during the playing of streaming media Download PDF

Info

Publication number
CN103581715A
CN103581715A CN201310284952.6A CN201310284952A CN103581715A CN 103581715 A CN103581715 A CN 103581715A CN 201310284952 A CN201310284952 A CN 201310284952A CN 103581715 A CN103581715 A CN 103581715A
Authority
CN
China
Prior art keywords
channel
timeout period
switch request
current channel
frame
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.)
Pending
Application number
CN201310284952.6A
Other languages
Chinese (zh)
Inventor
夏斌强
左建春
林世勤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Marvell International Ltd
Original Assignee
Marvell International Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Marvell International Ltd filed Critical Marvell International Ltd
Publication of CN103581715A publication Critical patent/CN103581715A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides methods and apparatuses for realizing zero-second switching during the playing of streaming media, wherein one of the methods includes receiving data in all of the time slots on the frequency points of the streaming media, caching the received data, and respectively analyzing the corresponding frames of a plurality of channels. The method further includes only decoding and playing the frame of the current channel. According to the invention, the methods and apparatuses for playing streaming media can realize the channel switching in approximate zero second, thereby significantly improving user experiences.

Description

For realize the method and apparatus of cutting platform for zero second when playing stream media
the cross reference of related application
The application requires on August 7th, 2012 to submit the priority of the NO.61/680617 U.S. Provisional Patent Application of USPO, and its full content is incorporated into this by reference.
Technical field
The embodiments of the present invention relate to the communications field, and more specifically, relate to the method and apparatus for playing stream media.
Background technology
Traditional real-time streams playing program of playing on mobile phone or other wireless devices all needs the time that spends several seconds to prepare media data before conventionally starting to play.
Fig. 1 shows traditional real-time multimedia streaming playing frame structure.As shown in fig. 1, only have a control engine 101, data buffer 102 and a playback engine 103 in traditional real-time multimedia streaming playing frame structure, its mode of operation is as follows:
1) application plays device (App player) request program is play, and then control engine configuration channel, and hardware layer configures to receive data with this;
2) after DSR, control engine by this data Replica in data buffer, and require playback engine to extract these data;
3) playback engine is extracted decoder by these data, and is ready for broadcasting.
Now, if need to be switched to another channel, need repetition said process, this will spend the time of several seconds before can playing next channel.
Summary of the invention
Therefore need a kind of method and apparatus that not only can reduce power consumption but also can approach the channel switching of zero second.
In order to address the above problem, the embodiments of the present invention have proposed a kind of effective mechanism, make when switching channels, the spent time of set-up procedure to be optimized.For user, the method, without any need for set-up procedure, is switched and directly it is play and just directly carry out channel.This also just means only needs almost to prepare for zero second media data.
According to an embodiment of the invention, a kind of method for playing stream media is provided, Streaming Media comprises the data of a plurality of channels on a frequency.Method comprises the data in all time slots of receiving stream media on frequency, the data that buffer memory receives, and parse respectively the respective frame of a plurality of channels.The method also comprises the frame of only decoding and playing current channel.
According to another implementation of the invention, the method also comprises in response to the channel switch request that is switched to another channel, stops the decoding of the frame of current channel and broadcasting, and is new current channel by another channel fix.The method also comprises the frame of only decoding and playing new current channel.
According to another execution mode of the present invention, the method also comprises the timeout period that is provided for channel switching, if do not receive channel switch request in timeout period, stops processing in back way the channel except current channel.
According to an embodiment of the invention, the method also comprises if receive channel switch request in timeout period, the channel that change is processed in back way, and replacement timeout period.
According to another implementation of the invention, the method also comprises if receiving channel switch request after timeout period, again processes in back way the channel except current channel and replacement timeout period.
According to another execution mode of the present invention, the method also comprises: according to the history of channel switch request, occur situation, when prediction processes the channel except current channel again in back way, and replacement timeout period.
According to an embodiment of the invention, provide a kind of equipment for playing stream media.This equipment comprises control engine, controls engine and is configured to the data in all time slots of receiving stream media on frequency.This equipment also comprises a plurality of data buffers, and a plurality of data buffers are configured to the data that buffer memory receives, and parses respectively the respective frame of a plurality of channels.In addition, this equipment also comprises a plurality of playback engine, and a plurality of playback engine are configured to only to decode and play the frame of current channel.
According to another implementation of the invention, wherein in response to the channel switch request that is switched to another channel, controlling engine is also configured to stop to the decoding of the frame of current channel and broadcasting, and by another channel fix, be new current channel, playback engine is also configured to only to decode and plays the frame of new current channel.
According to another execution mode of the present invention, wherein control engine and be also configured to be provided for the timeout period that channel switches, if do not receive channel switch request in timeout period, stop moving in back way the playback engine except the playback engine corresponding to current channel.
According to an embodiment of the invention, if wherein control engine, be also configured to receive channel switch request in timeout period, the playback engine that change moves in back way, and replacement timeout period.
According to another implementation of the invention, if wherein controlling engine is also configured to receiving channel switch request after timeout period, again move in back way the playback engine except the playback engine corresponding to current channel, and replacement timeout period.
According to another execution mode of the present invention, wherein to control engine and be also configured to occur situation according to the history of channel switch request, when prediction processes the channel except current channel again in back way, and replacement timeout period.
According to an embodiment of the invention, a kind of user's mobile device is provided, it comprises the above-mentioned equipment switching for stream media channel.
According to another implementation of the invention, provide a kind of Set Top Box, it comprises the above-mentioned equipment switching for stream media channel.
According to another execution mode of the present invention, provide a kind of device switching for stream media channel.This device comprises for receiving stream media the parts of the data of all time slots on frequency; Be used for the data that buffer memory receives, and parse respectively the parts of the respective frame of a plurality of channels; And for only decoding and playing the parts of the frame of current channel.
According to an embodiment of the invention, this device also comprises for the channel switch request in response to being switched to another channel, stops the decoding of the frame of current channel and broadcasting, and another channel fix is the parts of new current channel; And for only decoding and playing the parts of the frame of new current channel.
According to another implementation of the invention, this device also comprises the timeout period of switching for being provided for channel, if do not receive channel switch request in timeout period, stops processing in back way the parts of the channel except current channel.
According to another execution mode of the present invention, this device also comprises: if for receiving channel switch request in timeout period, and the channel that change is processed in back way, and the parts of replacement timeout period.
According to an embodiment of the invention, this device also comprises: if for receiving channel switch request after timeout period, again process in back way the channel except current channel, and the parts of replacement timeout period.
According to another implementation of the invention, this device also comprises: for the history according to channel switch request, occur situation, when prediction processes the channel except current channel again in back way, and the parts of replacement timeout period.
Utilize embodiments of the present invention, by being prepared in advance for the data of each channel, having realized stream media channel quick, low-power consumption and switched.
Accompanying drawing explanation
Describe in detail by reference to the accompanying drawings and with reference to following, the feature of embodiments of the present invention, advantage and other aspects will become more obvious, wherein:
The schematically illustrated traditional real-time multimedia streaming playing frame structure of Fig. 1;
The flow chart of the schematically illustrated method for playing stream media according to the embodiment of the present invention of Fig. 2;
The schematically illustrated channel according to another embodiment of the present invention of Fig. 3 switches; And
The block diagram of the schematically illustrated equipment for playing stream media according to the embodiment of the present invention of Fig. 4.
Embodiment
Embodiments of the present invention, by the next channel data that is prepared in advance, make, when expectation is switched to next channel, can directly to it, plays, thereby greatly shorten time of switching channels, and then significantly promote user's experience.In another embodiment, by being provided for the timeout period of channel switching, change the channel of processing in back way, realized when switching fast and effectively reduced power consumption, this makes it possible to obtain good trading off between the time loss of switching channels and power consumption.In another execution mode, by the history based on channel switch request, occur that situation predicts in back way the channel of processing, channel is switched more intelligent and efficient.
Below in conjunction with accompanying drawing, describe the specific embodiment of the present invention in detail.
Fig. 2 shows the flow chart of the method 200 for playing stream media according to the embodiment of the present invention.As shown in Figure 2, in step S201, the data in all time slots of receiving stream media on frequency.Each specific frequency can receive several channels, in the present embodiment, is received in the data in all time slots on this frequency, the broadcasting after switching for channel.In another embodiment, the frame in all time slots on the frequency of receiving stream media place is deferred to China Mobile multimedia broadcasting CMMB standard.In step S202, the data that buffer memory receives, and parse respectively the respective frame of a plurality of channels.Wherein, for the data that receive, only carry out complexity and the parse operation much smaller than decoding consuming time, and it is not decoded.In step S203, only decode and play the frame of current channel.S202 is different from step, and decode operation is only corresponding to the frame of current channel.In another execution mode, H.264 standard is deferred in this decoding.
Although not shown in the drawings, in one embodiment, method 200 also comprises in response to the channel switch request that is switched to another channel, stops the decoding of the frame of current channel and broadcasting, and is new current channel by another channel fix.The method also comprises the frame of only decoding and playing new current channel.In the playing process of current channel, carry out the operation of above-mentioned steps S201-202, that is simultaneously, when playing, upgrade the data in institute's buffer memory all time slots of the Streaming Media through resolving on frequency.When receive from user be switched to the channel switch request of another channel time, by buffer memory the data through resolving of decoding, realized channel fast and switched, and then greatly promoted user's experience.
When promoting channel switch speed, another key issue is how when the channel of realizing approaching zero second switches, to reduce power consumption.If also make three playback engine all play when the operation that there is no switching channels, will cause huge waste to power.Therefore, in an embodiment of the invention, by within the specific time, when there is no the operation of switching channels, the channel that stops processing in back way, thus reduced power consumption.
The channel that Fig. 3 shows according to the embodiment of the present invention switches example.As shown in Figure 3, current broadcasting channel is channel _ 2, and previous channel is channel _ 1, and next channel is channel _ 3.When needs are switched to previous channel or next channel, in the situation that only have one for playing the data buffer of playback engine and user cache data of current channel, before being switched to channel _ 1 or channel _ 3, need to spend the several seconds to prepare data.If but there are three playback engine and three data buffers, according to above description, could realize the channel switching that approaches zero second.
Based on above-mentioned thought, method according to another implementation of the invention arranges timeout period by the operation for switching channels, can when the operation that there is no switching channels, avoid the work of backstage playback engine, and its crucial processing procedure is as follows:
1) application program arranges timeout period and starts backstage playback engine (for the playback engine of channel _ 1 and channel _ 3);
2) if do not receive channel switch request in timeout period, stop processing in back way the channel except current channel;
3), if application program is learnt the operation that has switching channels in this timeout period, such as the operation that is switched to channel _ 3, will stop for the playback engine of channel _ 1 and start the playback engine for channel _ 4, the timeout period of simultaneously resetting.Now, channel _ 3rd, current broadcasting channel.That is, if receive channel switch request in timeout period, the channel that change is processed in back way, and replacement timeout period;
4) if receiving channel switch request after timeout period, again process in back way the channel except current channel, and replacement timeout period.
Owing to processing 4), the method is not the real operation that approaches the switching channels of zero second, but for realize approach the switching channels of zero second and save power be one compromise.Special timeout period can be set reduce to process 4) probability that occurs.
In another execution mode, also can occur when again situation is predicted according to the history of channel switch request and process in back way the channel except current channel and replacement timeout period.
Fig. 4 shows the block diagram of the equipment 400 for playing stream media according to the embodiment of the present invention.As shown in Figure 4, equipment 400 comprises control engine 401, a plurality of data buffer 402-1 to 402-n, and a plurality of playback engine 403-1 to 403-n.Wherein, control engine 401 and be configured to the data in all time slots of receiving stream media on frequency, a plurality of playback engine 403-1 to 403-n are configured to the data that buffer memory receives, and parse respectively the respective frame of a plurality of channels, and a plurality of playback engine 403-1 to 403-n is configured to only to decode and plays the frame of current channel.Particularly, first, application plays device request program is play, and then control a plurality of channels of engine configuration, and hardware layer will configure to receive data with this.Secondly, after DSR, control engine a plurality of channel datas are copied in a plurality of data buffers, and require a plurality of playback engine to extract these data.Then, playback engine is extracted decoder by these data, and is ready for broadcasting.Finally, application plays device is play the current channel program corresponding with playback engine.Now, if expectation is switched to next channel, only needs to select another playback engine, and do not need repetition said process.Therefore the time that, switching broadcasting channel spends is almost insignificant.
In another embodiment, in response to the channel switch request that is switched to another channel, controlling engine is also configured to stop to the decoding of the frame of current channel and broadcasting, and by another channel fix, be new current channel, playback engine is also configured to only to decode and plays the frame of new current channel.
In another execution mode, control engine and be also configured to be provided for the timeout period that channel switches, if do not receive channel switch request in timeout period, stop moving in back way the playback engine except the playback engine corresponding to current channel.In one embodiment, if control engine, be also configured to receive channel switch request in timeout period, the playback engine that change moves in back way, and replacement timeout period.In another embodiment, if control engine, be also configured to after timeout period, receiving channel switch request, again move in back way the playback engine except the playback engine corresponding to current channel and replacement timeout period.
In another execution mode, to control engine and be also configured to occur situation according to the history of channel switch request, when prediction processes the channel except current channel again in back way, and replacement timeout period.
In addition, the present invention also may be embodied in user's mobile device and the Set Top Box that comprises the above-mentioned equipment switching for stream media channel.
To sum up, by reference to the accompanying drawings each execution mode of the present invention is described in detail.It will be appreciated by those skilled in the art that embodiments of the present invention can realize by hardware, software, firmware, module or its combination, also can embody the present invention in computer program set on the signal bearing medium for any suitable data treatment system.Sort signal bearing medium can be transmission medium or for the recordable media of machine sensible information, comprises magnetizing mediums, light medium or other suitable media.The example of recordable media comprises: the disk in hard disk drive or floppy disk, the CD for CD-ROM drive, tape, and thinkable other media of those skilled in the art.One skilled in the art would recognize that any communication terminal with suitable programmed device all can carry out the step of the inventive method as embodied in program product.
It should be noted that for the present invention is easier to understand, description has above been omitted to be known for a person skilled in the art and may to be essential some ins and outs more specifically for realization of the present invention.
Although disclose particular implementation of the present invention, it will be appreciated by those skilled in the art that and can make a change and can not depart from the spirit and scope of the present invention for specific execution mode.Therefore, the invention is not restricted to specific execution mode, and claims comprise any and all such application, modification and execution mode in the scope of the invention.

Claims (20)

1. for a method for playing stream media, described Streaming Media comprises the data of a plurality of channels on a frequency, and described method comprises:
Receive the data in all time slots of described Streaming Media on described frequency;
The data that buffer memory receives, and parse respectively the respective frame of described a plurality of channels; And
Only decode and play the frame of current channel.
2. according to the method for claim 1, also comprise: in response to the channel switch request that is switched to another channel:
Stop the decoding of the frame of described current channel and broadcasting;
By described another channel fix, it is new current channel; And
Only decode and play the frame of described new current channel.
3. method according to claim 1, also comprises: be provided for the timeout period that channel switches, if do not receive described channel switch request in described timeout period, stop processing in back way the channel except described current channel.
4. method according to claim 3, also comprises: if receive described channel switch request in described timeout period, and the channel that change is processed in back way, and the described timeout period of resetting.
5. method according to claim 3, also comprises: if receiving described channel switch request after described timeout period, again process in back way the channel except described current channel, and the described timeout period of resetting.
6. method according to claim 3, also comprises: according to the history of described channel switch request, occur situation, when prediction processes the channel except described current channel again in back way, and the described timeout period of resetting.
7. for an equipment for playing stream media, comprising:
Control engine, described control engine is configured to receive the data in all time slots of described Streaming Media on described frequency;
A plurality of data buffers, described a plurality of data buffers are configured to the data that buffer memory receives, and parse respectively the respective frame of described a plurality of channels; And
A plurality of playback engine, described a plurality of playback engine are configured to only to decode and play the frame of current channel.
8. according to the equipment of claim 7, wherein in response to the channel switch request that is switched to another channel, described control engine is also configured to stop to the decoding of the frame of described current channel and broadcasting, and by described another channel fix, be new current channel, described playback engine is also configured to only to decode and plays the frame of described new current channel.
9. equipment according to claim 7, wherein said control engine is also configured to be provided for the timeout period that channel switches, if do not receive described channel switch request in described timeout period, stop moving in back way the playback engine except the playback engine corresponding to described current channel.
10. equipment according to claim 9, if wherein said control engine is also configured to receive described channel switch request in described timeout period, changes the playback engine of operation in back way, and the described timeout period of resetting.
11. equipment according to claim 9, if wherein said control engine is also configured to receiving described channel switch request after described timeout period, again move in back way the playback engine except the playback engine corresponding to described current channel, and the described timeout period of resetting.
12. equipment according to claim 9, wherein said control engine is also configured to occur situation according to the history of described channel switch request, when prediction processes the channel except described current channel again in back way, and the described timeout period of resetting.
13. 1 kinds of user's mobile devices, comprise according to the equipment switching for stream media channel described in any one in claim 7 to 12.
14. 1 kinds of Set Top Box, comprise according to the equipment switching for stream media channel described in any one in claim 7 to 12.
15. 1 kinds of devices that switch for stream media channel, comprising:
For receiving the parts of the data of all time slots of described Streaming Media on described frequency;
Be used for the data that buffer memory receives, and parse respectively the parts of the respective frame of described a plurality of channels; And
For only decoding and playing the parts of the frame of current channel.
16. according to the device of claim 15, also comprises: for the channel switch request in response to being switched to another channel, stop the decoding of the frame of described current channel and broadcasting, and described another channel fix is the parts of new current channel; And
For only decoding and playing the parts of the frame of described new current channel.
17. devices according to claim 15, also comprise: the timeout period of switching for being provided for channel, if do not receive described channel switch request in described timeout period, stop processing in back way the parts of the channel except described current channel.
18. devices according to claim 17, also comprise: if for receiving described channel switch request in described timeout period, and the channel that change is processed in back way, and the parts of the described timeout period of resetting.
19. devices according to claim 17, also comprise: if for receiving described channel switch request after described timeout period, again process in back way the channel except described current channel, and the parts of the described timeout period of resetting.
20. devices according to claim 17, also comprise: for the history according to described channel switch request, occur situation, when prediction processes the channel except described current channel again in back way, and the parts of the described timeout period of resetting.
CN201310284952.6A 2012-08-07 2013-07-04 Methods and apparatuses for realizing zero-second switching during the playing of streaming media Pending CN103581715A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201261680617P 2012-08-07 2012-08-07
US61/680,617 2012-08-07

Publications (1)

Publication Number Publication Date
CN103581715A true CN103581715A (en) 2014-02-12

Family

ID=50052484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310284952.6A Pending CN103581715A (en) 2012-08-07 2013-07-04 Methods and apparatuses for realizing zero-second switching during the playing of streaming media

Country Status (1)

Country Link
CN (1) CN103581715A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050207A (en) * 2019-12-05 2020-04-21 海信电子科技(深圳)有限公司 Television channel switching method and television

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070195892A1 (en) * 2006-02-17 2007-08-23 Kwang-Pyo Choi Data receiving device and method for shortening channel switching time in digital multimedia broadcasting system
CN101123717A (en) * 2007-09-25 2008-02-13 中兴通讯股份有限公司 A device and method for quick switching of channels
CN101472154A (en) * 2007-12-27 2009-07-01 深圳华为通信技术有限公司 Method for switching digital channel and device for processing digital video
CN101656869A (en) * 2008-08-21 2010-02-24 华为技术有限公司 Method, device and system for switching channels
CN101951483A (en) * 2010-09-19 2011-01-19 中兴通讯股份有限公司 Television channel switching method for mobile terminal and mobile terminal
CN101984655A (en) * 2010-11-23 2011-03-09 华亚微电子(上海)有限公司 Digital television receiving system and channel changing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070195892A1 (en) * 2006-02-17 2007-08-23 Kwang-Pyo Choi Data receiving device and method for shortening channel switching time in digital multimedia broadcasting system
CN101123717A (en) * 2007-09-25 2008-02-13 中兴通讯股份有限公司 A device and method for quick switching of channels
CN101472154A (en) * 2007-12-27 2009-07-01 深圳华为通信技术有限公司 Method for switching digital channel and device for processing digital video
CN101656869A (en) * 2008-08-21 2010-02-24 华为技术有限公司 Method, device and system for switching channels
CN101951483A (en) * 2010-09-19 2011-01-19 中兴通讯股份有限公司 Television channel switching method for mobile terminal and mobile terminal
CN101984655A (en) * 2010-11-23 2011-03-09 华亚微电子(上海)有限公司 Digital television receiving system and channel changing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050207A (en) * 2019-12-05 2020-04-21 海信电子科技(深圳)有限公司 Television channel switching method and television

Similar Documents

Publication Publication Date Title
US11202066B2 (en) Video data encoding and decoding method, device, and system, and storage medium
CN102347042B (en) Audio track switching method, system thereof and audio and video file playing device
KR101408021B1 (en) Method and playing device for realizing fast response in multimedia file control process
US11128879B2 (en) Hybrid decoding
CN101277450A (en) Method and apparatus for switching program
CN103297852A (en) Channel change speed improving method, device and system
CN101404741B (en) Audio playing apparatus and method, and digital television chip
CN108174280B (en) Audio and video online playing method and system
CN110602122A (en) Video processing method and device, electronic equipment and storage medium
CN104837052A (en) Playing method of multimedia data and device
TW201347547A (en) Method and apparatus for parallel entropy encoding, method and apparatus for parallel entropy decoding, and non-transitory computer-readable recording medium
EP2014045A1 (en) Adaptive streaming buffering
CN1271835C (en) Recording regenerative method and device for motion picture data
CN107071549A (en) Many player fast switch over method, device and storage medium under single decoder
CN104092714A (en) Stream media file playing method and device
CN105979060A (en) Play method and device
CN102970525B (en) Optimized decoding processing method, device and system of mobile terminal player
CN104202656B (en) Network audio MP3 flows out of order segmentation decoding method
CN103841451A (en) Multimedia playing method, device and terminal
CN103581715A (en) Methods and apparatuses for realizing zero-second switching during the playing of streaming media
CN109672745A (en) The online control method for playing back of audio and device for FreeRTOS
CN104796732B (en) A kind of audio and video edit methods and device
CN103533401A (en) Stream media data switch playing method and player
CN108881989A (en) A kind of quick plug-flow control method of live streaming TS program and system
CN104918051A (en) Video processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140212