CN103002272A - Method, device and equipment for switching code rate of audio and video information - Google Patents
Method, device and equipment for switching code rate of audio and video information Download PDFInfo
- Publication number
- CN103002272A CN103002272A CN2011102741122A CN201110274112A CN103002272A CN 103002272 A CN103002272 A CN 103002272A CN 2011102741122 A CN2011102741122 A CN 2011102741122A CN 201110274112 A CN201110274112 A CN 201110274112A CN 103002272 A CN103002272 A CN 103002272A
- Authority
- CN
- China
- Prior art keywords
- code check
- predetermined
- playing duration
- data message
- scope
- 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
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a method, a device and equipment for switching code rate of audio and video information played on line through a computer. The technical scheme includes that method include steps of acquiring cached residual play duration supported by to-be-played data information; judging whether the residual play duration is within a preset play duration range or not; determining new code rate required to be switched to according to the preset play duration range if the residual play duration is within the preset play duration range; and acquiring to-be-cached data information corresponding to the new code rate from the audio and video information and then playing the data information. By the method, the device and the equipment, balance between internet speed and play smoothness can be achieved, manual regulation is omitted for users, play interruption or reload of audio and video and the like during code rate switching can be avoided, frequency of the code rate switching is controlled, and watching experiences of users are improved.
Description
Technical field
The present invention relates to field of computer technology, relate in particular to method, device and the equipment of the code check of the online audio/video information of playing of a kind of computer implemented switching.
Background technology
Because the network speed between different user differs greatly, therefore, many audio frequency and video provide the website to tend to provide content identical but audio frequency and video that code check is different to the user, to adapt to the demand of different user.Yet, in the prior art, usually when playing audio-video, need to manually be selected by the user code check of these audio frequency and video, and can't according to actual environment automatic switchover code check in user's playing process, cause inconvenience to the user.
Summary of the invention
The method, device and the equipment that the purpose of this invention is to provide the code check of the online audio/video information of playing of a kind of computer implemented switching.
According to an aspect of the present invention, provide the method for the code check of the online audio/video information of playing of a kind of computer implemented switching, wherein, said method comprising the steps of:
A. obtain the residue playing duration of the data message support to be played of buffer memory;
B. judge whether described residue playing duration belongs to a predetermined playing duration scope;
C. when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope, determine to cut the new code check that goes to;
D obtains the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, in order to play.
According to an aspect of the present invention, also provide a kind of code check switching device shifter of code check of the audio/video information that switches online broadcast, wherein, described code check switching device shifter comprises:
The first deriving means is used for obtaining the residue playing duration of the data message support to be played of buffer memory;
The first judgment means is used for judging whether described residue playing duration belongs to a predetermined playing duration scope;
First determines device, is used for when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope, determines to cut the new code check that goes to;
The second deriving means is used for obtaining the described audio/video information data message for the treatment of buffer memory corresponding with described new code check, in order to play.
According to an aspect of the present invention, also provide a kind of computer equipment, wherein, this computer equipment comprises described code check switching device shifter.
Compared with prior art, the present invention has the following advantages: 1) the residue playing duration by data message to be played in the foundation buffer memory judges whether switching code rate, and switching code rate in residue reproduction time situation about satisfying condition only, the trouble of having avoided the user manually to adjust can be averaged out between network speed and broadcast fluency automatically; 2) can obtain identical but the data message that code check is different of content, when switching code rate, can avoid causing playing and interrupt or the situations such as audio frequency and video heavy duty; 3) carry out auxiliary judgment by increasing duration and reproduction time, avoid switching code rate too frequent, thereby improve user's viewing experience.
Description of drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 is the method flow diagram of the code check of the online audio/video information of playing of a kind of computer implemented switching of one aspect of the invention;
Fig. 2 is the method flow diagram of the code check of the online audio/video information of playing of a kind of computer implemented switching of a preferred embodiment of the invention;
Fig. 3 is the method flow diagram of the code check of the online audio/video information of playing of a kind of computer implemented switching of a preferred embodiment of the invention;
Fig. 4 is the structural representation of code check switching device shifter of the code check of one aspect of the invention a kind of audio/video information of switching online broadcast;
Fig. 5 is the structural representation of code check switching device shifter of the code check of a preferred embodiment of the invention a kind of audio/video information of switching online broadcast;
Fig. 6 is the structural representation of code check switching device shifter of the code check of a preferred embodiment of the invention a kind of audio/video information of switching online broadcast;
Fig. 7 is the segmentation schematic diagram of data message in the data message to be played of a preferred embodiment of the invention.
Same or analogous Reference numeral represents same or analogous parts in the accompanying drawing.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
Fig. 1 has illustrated the method flow diagram of the code check of the audio/video information that a kind of computer implemented switching of one aspect of the invention is play online.The method according to this invention comprises step S1, step S2, step S3 and step S4.Wherein, the method according to this invention can realize by the code check switching device shifter in the subscriber equipment, for example, realizes by devices such as application module, operating system, processing controller in the subscriber equipment.Wherein, described subscriber equipment be a kind of can be according to the program of prior storage, automatically, at high speed carry out the modernized intelligent electronic device of massive values computation and various information processings, its hardware includes but not limited to microprocessor, FPGA, DSP, embedded device etc.Wherein, described subscriber equipment by with self network of living in other subscriber equipmenies or the interactive operation of the network equipment realize the present invention.Described subscriber equipment includes but not limited to computer, smart mobile phone, PDA etc.The described network equipment includes but not limited to server group that single network server, a plurality of webserver form or based on the cloud that is made of a large amount of computers or the webserver of cloud computing (Cloud Computing), wherein, cloud computing is a kind of of Distributed Calculation, a super virtual machine that is comprised of the loosely-coupled computer collection of a group.Wherein, described subscriber equipment or the residing network of the described network equipment include but not limited to the Internet, wide area network, metropolitan area network, local area network (LAN), VPN network etc.
Need to prove; described subscriber equipment and the network equipment are only for giving an example; other subscriber equipmenies existing or that may occur from now on, the network equipment or network also should be included in the protection range of the present invention, and be contained in this with way of reference as applicable to the present invention.
In step S1, the code check switching device shifter obtains the residue playing duration of the data message support to be played of buffer memory.
Wherein, described data message to be played comprise for online playing audio-video information, be downloaded to the buffer memory of subscriber equipment under the code check switching device shifter but the data message corresponding with at least a code check not yet play.Preferably, described data message is corresponding with various code rate.For example, in the data message to be played as shown in Figure 7, first paragraph data message Data1 is corresponding to rate br1, and second segment data message Data2 is corresponding to code check br2, and the 3rd segment data information D ata3 is corresponding to code check br1.Wherein, the type of described data message includes but not limited to: 1) audio class data message; 2) video class data message etc.
Particularly, the code check switching device shifter is determined the residue playing duration of the data message support to be played of described buffer memory according to the data volume of each segment data information of corresponding each code check in the data message to be played; Perhaps, the code check switching device shifter obtain obtain in the attribute information by data message to be played that this data message to be played finishes the time time point information, and in conjunction with the time point information of current broadcast, determine the residue playing duration that the data message to be played of described buffer memory is supported.
For example, data message to be played under the code check switching device shifter in the subscriber equipment buffer memory comprises the code check corresponding to 512kbps, data volume is the first paragraph data message of 1Mb, and corresponding to the 256kbps code check, data volume is the second segment data message of 2Mb, and then the code check switching device shifter is determined residue playing duration=1Mb ÷ 512kbps+2Mb ÷ 256kbps=10s.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention those skilled in the art should understand that, any implementation of the residue playing duration of the data message support to be played of buffer memory of obtaining all should be within the scope of the present invention.
Then, in step S2, the code check switching device shifter judges whether described residue playing duration belongs to a predetermined playing duration scope.
Preferably, whether the code check switching device shifter belongs to this selecteed predetermined playing duration scope by selecting one by one predetermined playing duration scope at least one predetermined playing duration scope to judge described residue playing duration.
For example, totally three of predetermined playing duration scopes, be respectively " greater than 20s ", " less than 5s " and " between the 5s to 20s ", the residue playing duration 10s that then obtains among the code check switching device shifter determining step S1 belong to predetermined playing duration scope " between the 5s to 20s ".
Again for example, totally two of predetermined playing duration scopes are respectively " greater than 20s " and " less than 5s ", and the residue playing duration 10s that then obtains among the code check switching device shifter determining step S1 does not belong to arbitrary predetermined playing duration scope.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly judge whether described residue playing duration belongs to the implementation of a predetermined playing duration scope, all should be within the scope of the present invention.
Then, in step S3, when described residue playing duration belonged to predetermined playing duration scope described in the step S2, the code check switching device shifter was determined to cut the new code check that goes to according to described predetermined playing duration scope.
Wherein, described code check switching device shifter determines that according to described predetermined playing duration scope the mode that need cut the new code check that goes to includes but not limited to:
1) directly obtains the predetermined code check corresponding with described predetermined playing duration scope as described new code check.
For example, the code check switching device shifter obtains residue playing duration 25s in step S1, judge that in step S2 residue playing duration 25s belongs to a predetermined playing duration scope " less than 30s ", then the code check switching device shifter directly obtains the predetermined code check 384kbps corresponding with this predetermined playing duration scope " less than 30s " as new code check.
2) the code check switching device shifter obtains the code check switching mode of corresponding described predetermined playing duration scope; And determine to cut the new code check that goes to according to described code check switching mode and the first code check, wherein, described the first code check is the code check corresponding with the data message of current download.
Wherein, described code check switching mode comprises following arbitrary class mode:
A) by selecting predetermined code check greater than the first code check as described new code check in a plurality of predetermined code checks.Particularly, when code check was divided into a plurality of rank, the code check switching device shifter selected the upper N level bit-rate of the first code check as described new code check, and wherein, described N is the natural number more than or equal to 1; When code check not being divided rank, the code check switching device shifter is by selecting predetermined code check greater than the first code check as described new code check in a plurality of predetermined code checks.
B) by selecting predetermined code check less than described the first code check as described new code check in a plurality of predetermined code checks.Particularly, when code check was divided into a plurality of rank, the code check switching device shifter selected the lower M level bit-rate of the first code check as described new code check, and wherein, described M is the natural number more than or equal to 1; When code check not being divided rank, the code check switching device shifter is by the new code check of predetermined code check conduct of selecting in a plurality of predetermined code checks less than the first code check.
Particularly, the code check switching device shifter is based on predetermined predetermined playing duration scope and the corresponding relation of code check switching mode, obtain the code check switching mode corresponding to described predetermined playing duration scope, and determine to cut the new code check that goes to according to described code check switching mode and the first code check.
For example, the code check switching device shifter obtains residue playing duration 10s in step S1, judge that in step S2 residue playing duration 10s belongs to predetermined playing duration scope " between the 5s to 20s ", and the code check switching mode corresponding with predetermined playing duration scope " between the 5s to 20s " " by selecting at random a predetermined code check in the predetermined code check greater than the first code check as new code check ", then the code check switching device shifter determines that according to the data message of current download the first code check is 512kbps, and by a plurality of predetermined code check 256kbps, 512kbps, determine among 768kbps and the 1024kbps to comprise 768kbps and 1024kbps greater than the predetermined code check of the first code check 512kbps, and select at random 1024kbps as new code check.
Again for example, the residue playing duration that the code check switching device shifter obtains in step S1 is 34s, and judge that in step S2 this residue playing duration 34s belongs to a predetermined playing duration scope " greater than 30s ", wherein, predetermined code check is divided into five ranks from high to low, and the code check switching device shifter determines that the first code check of the data message of current download is the other code check of the third level, then the code check switching device shifter " is selected the code check of the first code check next stage as new code check " according to the code check switching mode corresponding with this predetermined playing duration scope " less than or equal to 5s ", selects the second level code check of this first code check next stage as new code check.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, it is any when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope, the definite implementation that need cut the new code check that goes to all should be within the scope of the present invention.
Then, in step S4, the code check switching device shifter obtains the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, in order to play.Wherein, the code check switching device shifter is by obtaining the described data message for the treatment of buffer memory in server or self the residing peer-to-peer network.
Particularly, described code check switching device shifter obtains the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, includes but not limited in order to the mode of playing:
1) obtains directly that corresponding code check is the data message for the treatment of buffer memory of described new code check in the described audio/video information, in order to play.
For example, the code check switching device shifter determines that in step S3 new code check is 256kbps, and then the code check switching device shifter sends the request download corresponding to the data message of 256kbps code check to server.
Then, server receives the request from the code check switching device shifter, and inquiry and obtain data message Data4 corresponding to the 256kbps code check in self memory device, then data message Data4 is fed back to the code check switching device shifter.
The code check switching device shifter receives the data message Data4 from server feedback, to play.
2) the code check switching device shifter obtains the reproduction time information of the data message to be played of buffer memory; And according to described reproduction time information, determine the initial play time of the data message of corresponding new code check to be obtained; Then, the code check switching device shifter obtains corresponding with described new code check lights the data message for the treatment of buffer memory from described initial reproduction time, in order to play.
Wherein, described reproduction time information includes but not limited to: the time point information when a) described data playback to be played is complete; B) the residue playing duration information of described data to be played; C) when playing duration corresponding to each the segment data information that comprises in the described data to be played is identical, the initial play time of the one piece of data information of the current download that described data to be played comprise.
Particularly, described code check switching device shifter obtains the reproduction time information of the data message to be played of buffer memory, according to described reproduction time information, determine the initial play time of the data message of corresponding new code check to be obtained, and obtain and corresponding with described new code check light the data message for the treatment of buffer memory from described initial reproduction time, include but not limited in order to the mode of playing:
A) during the residue playing duration information of the time point information when described reproduction time information comprises that data playback to be played is complete or data to be played, the code check switching device shifter is determined the initial play time of the data message of corresponding new code check to be obtained according to current play time and the described reproduction time information of the online audio/video information of playing; Then, the code check switching device shifter obtains corresponding with described new code check lights the data message for the treatment of buffer memory from described initial reproduction time, in order to play.
For example, the code check switching device shifter obtains the residue playing duration 15 minutes 30 seconds of the data message to be played of buffer memory in step S1, the new code check of determining in step S3 is the second level code check, and it is the 10th minute the 0th second that the code check switching device shifter obtains current play time, then the code check switching device shifter determines that wait the initial play time corresponding to the data message of new code check of obtaining be after data message to be played finishes the 1st second, namely the 25th minute the 31st second; Then, the code check switching device shifter is the 25th minute the 31st second and this time point data message afterwards by inquiring about and obtain corresponding to second level code check and initial reproduction time in the peer-to-peer network, in order to play.
B) when playing duration corresponding to each the segment data information that comprises in the described data to be played is identical, the initial play time of the data message of the current download that the code check switching device shifter comprises according to data to be played, and the playing duration information of each segment data information, determine the corresponding newly initial play time of the data message of code check to be obtained; Then, the code check switching device shifter obtains corresponding with described new code check lights the data message for the treatment of buffer memory from described initial reproduction time, in order to play.
For example, playing duration for the every segment data information that consists of described audio/video information is 5 minutes, the new code check that the code check switching device shifter obtains in step S3 is 512kbps, and the code check switching device shifter determines that the initial reproduction time of the data message of the current download that comprises in the data to be played is the 30th minute the 1st second, then the code check switching device shifter determines that the initial reproduction time of the data message corresponding to new code check to be obtained is the playing duration 5 minutes that the initial reproduction time of the data message of current download adds every segment data information, is the 35th minute the 1st second; Then to obtain corresponding to 512kbps code check and initial reproduction time by server be data message after the 35th minute the 1st second and this time point to the code check switching device shifter, in order to play.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly obtain the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, in order to the implementation of playing, all should be within the scope of the present invention.
The method according to this invention, residue playing duration by data message to be played in the foundation buffer memory judges whether switching code rate, and switching code rate in residue reproduction time situation about satisfying condition only, the trouble of having avoided the user manually to adjust can be averaged out between network speed and broadcast fluency automatically.And, owing to can obtain identical but the data message that code check is different of content among the present invention, therefore, when switching code rate, can avoid causing playing and interrupt or the situations such as audio frequency and video heavy duty.
Fig. 2 has illustrated the method flow diagram of the code check of the audio/video information that a kind of computer implemented switching of a preferred embodiment of the invention is play online.Method according to present embodiment comprises step S1, step S2, step S5, step S6, step S3 and step S4.Wherein, described step S3 further comprises step S301.
Described step S1 and step S2 are described in detail in the described embodiment of reference Fig. 1, and are contained in this by reference, repeat no more herein.
In step S5, the code check switching device shifter obtains the lasting duration of the data message of playing by the second code check, and wherein, described the second code check is the code check corresponding with the data message of current broadcast.
For example, to obtain the current in progress lasting duration of having play corresponding to the data message Data5 of code check 128kbps be 3 minutes to the code check switching device shifter.
Then, in step S6, the code check switching device shifter judges whether described lasting duration belongs to a predetermined duration scope that continues.
Preferably, whether the code check switching device shifter belongs to this selecteed predetermined lasting duration scope by selecting one by one the predetermined duration scope that continues at least one predetermined lasting duration scope to judge described lasting duration.
For example, the lasting duration that the code check switching device shifter obtains in step S5 is 3 minutes, two predetermined duration scopes that continue are respectively " greater than 10 minutes " and " less than 5 minutes ", then the code check switching device shifter is selected first the predetermined duration scope " greater than 10 minutes " that continues, and judge to continue duration be not belong to this predetermined duration scope that continues in 3 minutes, then the code check switching device shifter continue to be selected the predetermined duration scope " less than 5 minutes " that continues, and judges that continuing duration is to belong to this predetermined duration scope that continues in 3 minutes.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention those skilled in the art should understand that, anyly judge whether described lasting duration belongs to a predetermined implementation that continues the duration scope, all should be within the scope of the present invention.
What need to further specify is, described step S1 to step S2 and described step S5 between the step S6 without precedence relationship, the code check switching device shifter can first execution in step S1 to step S2, execution in step S5 is to step S6 again, perhaps first execution in step S5 is to step S6, and execution in step S1 is to step S2 again; Perhaps, concurrent execution in step S1 is to step S2, and step S5 is to step S6.
Then, in step S301, when judging that described lasting duration belongs to the predetermined duration scope that continues, and when described residue playing duration belongs to predetermined playing duration scope, the code check switching device shifter is determined to cut the new code check that goes to according to described predetermined playing duration scope and the described predetermined duration scope that continues.
Wherein, described code check switching device shifter determines that according to described predetermined playing duration scope and the described predetermined duration scope that continues the mode that need cut the new code check that goes to includes but not limited to:
1) directly obtains the predetermined code check corresponding with described predetermined playing duration scope and described predetermined lasting duration scope as described new code check.
2) the code check switching device shifter obtains corresponding described predetermined playing duration scope and the described predetermined code check switching mode that continues the duration scope; And determine to cut the new code check that goes to according to described code check switching mode and the first code check.
Wherein, described code check switching mode is at the execution mode 2 with reference to step S3 embodiment illustrated in fig. 1) in described in detail, repeat no more herein.
Wherein, the code check switching device shifter obtains corresponding to described predetermined playing duration scope and the described predetermined code check switching mode that continues the duration scope based on predetermined predetermined playing duration scope and the predetermined corresponding relation that continues duration scope and code check switching mode.
Wherein, described code check switching device shifter obtains corresponding described predetermined playing duration scope and the described predetermined code check switching mode that continues the duration scope, and the mode of determining to cut the new code check that goes to according to described code check switching mode and the first code check, with the execution mode 2 with reference to step S3 embodiment illustrated in fig. 1) described in the code check switching device shifter obtain the code check switching mode of corresponding described predetermined playing duration scope, and it is same or similar to determine to cut the mode of the new code check that goes to according to described code check switching mode and the first code check, repeats no more herein.
Then, step S4 is being described in detail with reference among the embodiment shown in Figure 1, and is contained in this by reference, repeats no more.
As one of preferred version of present embodiment, also comprise step S7 (not shown) according to the method for present embodiment, described step S3 comprises step S302 (not shown).
In step S7, the code check switching device shifter obtains the playing duration for the treatment of the data message of buffer memory in the audio/video information of current online broadcast.
Wherein, the described data message for the treatment of buffer memory comprises the audio/video information that belongs to current broadcast and is not downloaded to the data message of subscriber equipment under the code check switching device shifter.
Particularly, the code check switching device shifter obtains the total duration information of broadcast of the audio/video information of described online broadcast, and the residue playing duration that obtains among the integrating step S 1, and current reproduction time, determines to treat the playing duration of the data message of buffer memory.
For example, be 2 hours video film A for total duration, it is the 70th minute the 30th second that the code check switching device shifter obtains current reproduction time, and the residue playing duration that the code check switching device shifter obtains in step S1 is 20 minutes, and then the code check switching device shifter obtains to treat the playing duration of the data message of buffer memory=2 hours-70 minutes the 30th second-20 minutes=29 minutes 30 seconds.
In step S302, when judging that described lasting duration belongs to the described predetermined duration scope that continues, and when described residue playing duration belongs to described predetermined playing duration scope, the code check switching device shifter is according to described predetermined playing duration scope and the described predetermined duration scope that continues, and in conjunction with the described playing duration for the treatment of the data message of buffer memory, determine to cut the new code check that goes to.
For example, the first code check is the first rank code check, the code check switching device shifter according to " selecting the upper two-stage code rate of the first code check " with predetermined playing duration scope and the predetermined simultaneously corresponding code check switching mode of duration scope that continues, determines that initial new code check is the other code check of the third level first; Then, the playing duration that code check switching device shifter basis obtains in step S7 29 minutes 30 seconds, judge that this playing duration 29 minutes 30 seconds was less than playing duration threshold value 30 minutes, then the code check switching device shifter is the rule of one-level according to predetermined rank amplitude when playing duration code check switching during less than the playing duration threshold value, and be higher than two ranks of the first code check according to determined initial new code check, determine that adjusting new code check is other upper level code check of the first order, i.e. second level code check.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any when judging that described lasting duration belongs to the described predetermined duration scope that continues, and when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope and the described predetermined duration scope that continues, and in conjunction with the described playing duration for the treatment of the data message of buffer memory, definite need are cut the implementation of the new code check that goes to, all should be within the scope of the present invention.
The method according to this invention is carried out auxiliary judgment by increasing duration and reproduction time, avoids switching code rate too frequent, thereby improves user's viewing experience.
Fig. 3 has illustrated the method flow diagram of the code check of the audio/video information that a kind of computer implemented switching of a preferred embodiment of the invention is play online.Method according to present embodiment comprises step S1, step S2, step S3, step S8, step S9, step S 10 and step S4.Wherein, described step S4 further comprises step S401.
Wherein, step S1 is described in detail in reference Fig. 1 or embodiment shown in Figure 2 to step S3, and is contained in this by reference, repeats no more.
In step S8, the code check switching device shifter obtains with code check and switches relevant customized information.Preferably, described customized information includes but not limited to following at least one:
1) user's range of code rates configuration information.For example, the code check the when user arranges current displaying video is greater than 512kbps, and again for example, the code check that the user arranges audio plays is between 256kbps to 1024kbps etc.
2) historical selecteed code rate information.For example, historical maximal rate and the minimum code rate of selecting of user, again for example, the history in the predetermined amount of time is switched the minimum code rate of record in the record etc.
3) capabilities of user devices information.Preferably, the performance information of described subscriber equipment resolution, memory size, CPU handling property of including but not limited to the display unit of subscriber equipment etc. can affect the device capability information of the maximal rate that subscriber equipment can support.
4) precedence information of the broadcast process of the described audio/video information of broadcast.Wherein, described precedence information is for the system resource of determining the subscriber equipment that described broadcast process can take.
Then, in step S9, the code check switching device shifter is determined available range of code rates according to described customized information.
For example, the code check switching device shifter obtains historical selecteed maximal rate in step S8 be the other code check of the fourth stage, and minimum code rate is the second level code check, and then the code check switching device shifter determines that available range of code rates comprises " the second level code check is to the other code check of the fourth stage ".
Again for example, the code check switching device shifter obtains subscriber equipment in step S8 resolution is 800 * 600, then the code check switching device shifter judges that the code check of displaying video under this resolution should be less than 1024kbps, and then the code check switching device shifter determines that available range of code rates comprises " less than 1024kbps ".
Again for example, the precedence information that the code check switching device shifter obtains current broadcast process is the second level, and the minimum code rate that the user sets is 128kbps, then the code check switching device shifter determine that the process of second level priority can take in save as 1MB, and to leave supported maximal rate in definite 1MB be 512kbps, and then the code check switching device shifter determines that available range of code rates comprises " 128kbps to 512kbps ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any according to described customized information, determine the implementation of available range of code rates, all should be within the scope of the present invention.
What need to further specify is, described step S1 to step S3 and described step S8 between the step S9 without precedence relationship, the code check switching device shifter can first execution in step S1 to step S3, execution in step S8 is to step S9 again, perhaps first execution in step S8 is to step S9, and execution in step S1 is to step S3 again; Perhaps, concurrent execution in step S1 is to step S3, and step S8 is to step S9.
Then, in step S10, the code check switching device shifter judges whether the new code check of determining belongs to the available range of code rates of determining among the step S9 in step S3.
For example, the new code check that the code check switching device shifter is determined in step S3 is the other code check of the third level, determine that in step S9 available range of code rates comprises " the second level code check is between the other code check of the fourth stage ", then the code check switching device shifter judges that the other code check of the third level belongs to the second level code check between the other code check of the fourth stage.
Again for example, the new code check that the code check switching device shifter is determined in step S3 is 128kbps, determines that in step S9 available range of code rates comprises " 256kbps to 512kbps ", and then the code check switching device shifter judges that new code check 128kbps does not belong to available range of code rates.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, whether any judgement determined new code check in step S3 belongs to the implementation of the determined available range of code rates of step S9, all should be within the scope of the present invention.
In step S401, when judging that described new code check belongs to described available range of code rates, the code check switching device shifter obtains the data message for the treatment of buffer memory corresponding with described new code check, in order to play.
Wherein, described code check switching device shifter obtains the data message for the treatment of buffer memory corresponding with described new code check, in order to the mode of playing, obtain the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information with code check switching device shifter among the aforementioned reference step S4 embodiment illustrated in fig. 1, same or similar in order to the mode of playing, and be contained in by reference this, repeat no more.
According to the solution of the present invention, by the new code check that need switch to according to customized information adjustment, so that new code check can better meet user's request, and can reduce the new code check that switches to and exceed the supported code check of subscriber equipment, thereby cause video playback not smooth, even situation about can't play.
The structural representation of the code check switching device shifter of the code check of Fig. 4 has illustrated one aspect of the invention a kind of audio/video information that switches online broadcast.Code check switching device shifter according to the present invention comprises the first deriving means 1, the first judgment means 2, the first definite device 3 and the second deriving means 4.
The first deriving means 1 obtains the residue playing duration of the data message support to be played of buffer memory.
Wherein, described data message to be played comprise for online playing audio-video information, be downloaded to the buffer memory of subscriber equipment under the code check switching device shifter but the data message corresponding with at least a code check not yet play.Preferably, described data message is corresponding with various code rate.For example, in the data message to be played as shown in Figure 7, first paragraph data message Data1 is corresponding to rate br1, and second segment data message Data2 is corresponding to code check br2, and the 3rd segment data information D ata3 is corresponding to code check br1.Wherein, the type of described data message includes but not limited to: 1) audio class data message; 2) video class data message etc.
Particularly, the first deriving means 1 is determined the residue playing duration of the data message support to be played of described buffer memory according to the data volume of each segment data information of corresponding each code check in the data message to be played; Perhaps, the first deriving means 1 obtain obtain in the attribute information by data message to be played that this data message to be played finishes the time time point information, and in conjunction with the time point information of current broadcast, determine the residue playing duration that the data message to be played of described buffer memory is supported.
For example, data message to be played under the first deriving means 1 in the subscriber equipment buffer memory comprises the code check corresponding to 512kbps, data volume is the first paragraph data message of 1Mb, and corresponding to the 256kbps code check, data volume is the second segment data message of 2Mb, and then the first deriving means 1 is determined residue playing duration=1Mb ÷ 512kbps+2Mb ÷ 256kbps=10s.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention those skilled in the art should understand that, any implementation of the residue playing duration of the data message support to be played of buffer memory of obtaining all should be within the scope of the present invention.
Then, the first judgment means 2 judges whether described residue playing duration belongs to a predetermined playing duration scope.
Preferably, whether the first judgment means 2 belongs to this selecteed predetermined playing duration scope by selecting one by one predetermined playing duration scope at least one predetermined playing duration scope to judge described residue playing duration.
For example, totally three of predetermined playing duration scopes, be respectively " greater than 20s ", " less than 5s " and " between the 5s to 20s ", then the first judgment means 2 judges that the residue playing duration 10s that the first deriving means 1 obtains belongs to predetermined playing duration scope " between the 5s to 20s ".
Again for example, totally two of predetermined playing duration scopes are respectively " greater than 20s " and " less than 5s ", and then the first judgment means 2 judges that the residue playing duration 10s that the first deriving means 1 obtains does not belong to arbitrary predetermined playing duration scope.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly judge whether described residue playing duration belongs to the implementation of a predetermined playing duration scope, all should be within the scope of the present invention.
Then, when the first judgment means 2 judged that the residue playing duration of the first deriving means 1 acquisition belongs to predetermined playing duration scope, first determined device 3 according to described predetermined playing duration scope, determines to cut the new code check that goes to.
Wherein, described first determines device 3 according to described predetermined playing duration scope, determines that the mode that need cut the new code check that goes to includes but not limited to:
1) first determines that device 3 directly obtains the predetermined code check corresponding with described predetermined playing duration scope as described new code check.
For example, the first deriving means 1 obtains residue playing duration 25s, the first judgment means 2 judges that residue playing duration 25s belongs to a predetermined playing duration scope " less than 30s ", and then first determines that device 3 directly obtains the predetermined code check 384kbps corresponding with this predetermined playing duration scope " less than 30s " as new code check.
2) be contained in first and determine that the 3rd deriving means (not shown) in the device 3 obtains the code check switching mode of corresponding described predetermined playing duration scope; Then, the definite device (not shown) of the first son that is contained in first definite device 3 determines to cut the new code check that goes to according to described code check switching mode and the first code check, wherein, described the first code check is the code check corresponding with the data message of current download.
Wherein, described code check switching mode comprises following arbitrary class mode:
A) by selecting predetermined code check greater than the first code check as described new code check in a plurality of predetermined code checks.Particularly, when code check was divided into a plurality of rank, the upper N level bit-rate that the first son is determined Array selection the first code check was as described new code check, and wherein, described N is the natural number more than or equal to 1; When code check not being divided rank, the first son determines that device is by selecting predetermined code check greater than the first code check as described new code check in a plurality of predetermined code checks.
B) by selecting predetermined code check less than described the first code check as described new code check in a plurality of predetermined code checks.Particularly, when code check was divided into a plurality of rank, the lower M level bit-rate that the first son is determined Array selection the first code check was as described new code check, and wherein, described M is the natural number more than or equal to 1; When code check not being divided rank, the first son determines that device is by the new code check of predetermined code check conduct of selecting in a plurality of predetermined code checks less than the first code check.
Particularly, the 3rd deriving means is based on predetermined predetermined playing duration scope and the corresponding relation of code check switching mode, obtain the code check switching mode corresponding to described predetermined playing duration scope, and determine to cut the new code check that goes to by the definite device of the first son according to described code check switching mode and the first code check.
For example, the first deriving means 1 obtains residue playing duration 10s, the first judgment means 2 judges that residue playing duration 10s belongs to predetermined playing duration scope " between the 5s to 20s ", and the 3rd deriving means is determined the code check switching mode corresponding with predetermined playing duration scope " between the 5s to 20s " " by selecting at random a predetermined code check in the predetermined code check greater than the first code check as new code check ", then the definite device of the first son determines that according to the data message of current download the first code check is 512kbps, and by a plurality of predetermined code check 256kbps, 512kbps, determine among 768kbps and the 1024kbps to comprise 768kbps and 1024kbps greater than the predetermined code check of the first code check 512kbps, and select at random 1024kbps as new code check.
Again for example, the residue playing duration that the first deriving means 1 obtains is 34s, the first judgment means 2 judges that this residue playing duration 34s belongs to a predetermined playing duration scope " greater than 30s ", wherein, predetermined code check is divided into five ranks from high to low, and the code check switching device shifter determines that the first code check of the data message of current download is the other code check of the third level, then the 3rd deriving means " is selected the code check of the first code check next stage as new code check " according to the code check switching mode corresponding with this predetermined playing duration scope " less than or equal to 5s ", is determined that by the first son the second level code check of this first code check next stage of Array selection is as new code check.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, it is any when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope, the definite implementation that need cut the new code check that goes to all should be within the scope of the present invention.
Then, the second deriving means 4 obtains the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, in order to play.Wherein, the second deriving means 4 is by obtaining the described data message for the treatment of buffer memory in server or self the residing peer-to-peer network.
Particularly, described the second deriving means 4 obtains the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, includes but not limited in order to the mode of playing:
1) obtains directly that corresponding code check is the data message for the treatment of buffer memory of described new code check in the described audio/video information, in order to play.
For example, first determines that device 3 definite new code checks are 256kbps, and then the second deriving means 4 sends the request download corresponding to the data message of 256kbps code check to server.
Then, server receives the request from the second deriving means 4, and inquiry and obtain data message Data4 corresponding to the 256kbps code check in self memory device, then data message Data4 is fed back to this second deriving means 4.
The data message Data4 that this second deriving means 4 receives from server feedback is to play.
2) the second sub-deriving means (not shown) that is contained in the second deriving means 4 is obtained the reproduction time information of the data message to be played of buffer memory; And by being contained in the definite device (not shown) of the 3rd in the second deriving means 4 according to described reproduction time information, determine the initial play time of the data message of corresponding new code check to be obtained; Then, be contained in the 3rd sub-deriving means (not shown) in the second deriving means 4 and obtain and corresponding with described new code check light the data message for the treatment of buffer memory from described initial reproduction time, in order to play.
Wherein, described reproduction time information includes but not limited to: the time point information when a) described data playback to be played is complete; B) the residue playing duration information of described data to be played; C) when playing duration corresponding to each the segment data information that comprises in the described data to be played is identical, the initial play time of the one piece of data information of the current download that described data to be played comprise.
Particularly, the described second sub-deriving means obtains the reproduction time information of the data message to be played of buffer memory, the 3rd determines that device is according to described reproduction time information, determine the initial play time of the data message of corresponding new code check to be obtained, and obtained by the 3rd sub-deriving means and corresponding with described new code check to light the data message for the treatment of buffer memory from described initial reproduction time, include but not limited in order to the mode of playing:
During the residue playing duration information of the time point information when the reproduction time information that a) obtains when the second sub-deriving means comprises that data playback to be played is complete or data to be played, the 3rd determines device according to current play time and the described reproduction time information of the online audio/video information of playing, and determines the initial play time of the data message of corresponding new code check to be obtained; Then, the 3rd sub-deriving means obtains corresponding with described new code check lights the data message for the treatment of buffer memory from described initial reproduction time, in order to play.
For example, the second sub-deriving means directly obtains the residue playing duration 15 minutes 30 seconds of the data message to be played of the buffer memory that the first deriving means 1 obtains, first determines that the new code check that device 3 is determined is the second level code check, and the 3rd determines that it is the 10th minute the 0th second that device obtains current play time, then the 3rd determines that device determines that wait the initial play time corresponding to the data message of new code check of obtaining be after data message to be played finishes the 1st second, namely the 25th minute the 31st second; Then, the 3rd sub-deriving means is the 25th minute the 31st second and this time point data message afterwards by inquiring about and obtain corresponding to second level code check and initial reproduction time in the peer-to-peer network, in order to play.
B) when playing duration corresponding to each the segment data information that comprises in the described data to be played is identical, the initial play time of the data message of the current download that the data to be played that the 3rd definite device obtains according to the second sub-deriving means comprise, and the playing duration information of each segment data information, determine the corresponding newly initial play time of the data message of code check to be obtained; Then, the 3rd sub-deriving means obtains corresponding with described new code check lights the data message for the treatment of buffer memory from described initial reproduction time, in order to play.
For example, playing duration for the every segment data information that consists of described audio/video information is 5 minutes, first determines that the new code check that device 3 obtains is 512kbps, the second sub-deriving means determines that the initial reproduction time of the data message of the current download that comprises in the data to be played is the 30th minute the 1st second, then the 3rd determines that device determines that the initial reproduction time of the data message corresponding to new code check to be obtained is the playing duration 5 minutes that the initial reproduction time of the data message of current download adds every segment data information, is the 35th minute the 1st second; Then to obtain corresponding to 512kbps code check and initial reproduction time by server be data message after the 35th minute the 1st second and this time point to the 3rd sub-deriving means, in order to play.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly obtain the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, in order to the implementation of playing, all should be within the scope of the present invention.
According to the solution of the present invention, residue playing duration by data message to be played in the foundation buffer memory judges whether switching code rate, and switching code rate in residue reproduction time situation about satisfying condition only, the trouble of having avoided the user manually to adjust can be averaged out between network speed and broadcast fluency automatically.And, owing to can obtain identical but the data message that code check is different of content among the present invention, therefore, when switching code rate, can avoid causing playing and interrupt or the situations such as audio frequency and video heavy duty.
The structural representation of the code check switching device shifter of the code check of Fig. 5 has illustrated a preferred embodiment of the invention a kind of audio/video information that switches online broadcast.Code check switching device shifter according to present embodiment comprises the first deriving means 1, the first judgment means 2, the 4th deriving means 5, the second judgment means 6, is contained in the first definite device 301 of the second son and the second deriving means 4 of determining in the device 3.
Described the first deriving means 1 and the first judgment means 2 are described in detail in the described embodiment of reference Fig. 4, and are contained in this by reference, repeat no more herein.
The 4th deriving means 5 obtains the lasting duration of the data message of playing by the second code check, and wherein, described the second code check is the code check corresponding with the data message of current broadcast.
For example, to obtain the current in progress lasting duration of having play corresponding to the data message Data5 of code check 128kbps be 3 minutes to the 4th deriving means 5.
Then, the second judgment means 6 judges whether described lasting duration belongs to a predetermined duration scope that continues.
Preferably, whether the second judgment means 6 belongs to this selecteed predetermined lasting duration scope by selecting one by one the predetermined duration scope that continues at least one predetermined lasting duration scope to judge described lasting duration.
For example, the lasting duration that the 4th deriving means 5 obtains is 3 minutes, two predetermined duration scopes that continue are respectively " greater than 10 minutes " and " less than 5 minutes ", then the second judgment means 6 is selected first the predetermined duration scope " greater than 10 minutes " that continues, and judge to continue duration be not belong to this predetermined duration scope that continues in 3 minutes, then the second judgment means 6 continues to select the predetermined duration scope " less than 5 minutes " that continues, and judges that continuing duration is to belong to this predetermined duration scope that continues in 3 minutes.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention those skilled in the art should understand that, anyly judge whether described lasting duration belongs to a predetermined implementation that continues the duration scope, all should be within the scope of the present invention.
Then, judge described lasting duration when the second judgment means 6 and belong to the predetermined duration scope that continues, and when described residue playing duration belongs to predetermined playing duration scope, the definite device 301 of the second son is determined to cut the new code check that goes to according to described predetermined playing duration scope and the described predetermined duration scope that continues.
Wherein, described the second son is determined device 301 according to described predetermined playing duration scope and the described predetermined duration scope that continues, and the definite mode that need cut the new code check that goes to includes but not limited to:
1) the second son determines that device 301 directly obtains the predetermined code check corresponding with described predetermined playing duration scope and described predetermined lasting duration scope as described new code check.
2) obtain corresponding described predetermined playing duration scope and the described predetermined code check switching mode that continues the duration scope by the 5th deriving means (not shown) that is contained in the definite device 301 of the second son; And determine that by being contained in the second son the 3rd son in the device 301 determines that the device (not shown) determines to cut the new code check that goes to according to described code check switching mode and the first code check.
Wherein, described code check switching mode is with reference to the embodiment illustrated in fig. 4 first execution mode 2 of determining device 3) in described in detail, repeat no more herein.
Wherein, the second son is determined device 301 based on predetermined predetermined playing duration scope and the predetermined corresponding relation that continues duration scope and code check switching mode, obtains corresponding to described predetermined playing duration scope and the described predetermined code check switching mode that continues the duration scope.
Wherein, describedly determine the 5th deriving means=obtain corresponding described predetermined playing duration scope and the described predetermined code check switching mode that continues the duration scope in the device 301 by being contained in the second son; And determine that by being contained in the second son the 3rd son in the device 301 determines the mode that device determines to cut the new code check that goes to according to described code check switching mode and the first code check, with determine in the device 3 with reference to embodiment illustrated in fig. 4 first, determine that by being contained in first the 3rd deriving means in the device 3 obtains the code check switching mode of corresponding described predetermined playing duration scope, and determine that by being contained in first the mode that the first son in the device 3 determines that device determines to cut the new code check that goes to according to described code check switching mode and the first code check is same or similar, repeat no more herein.
Then, the second deriving means 4 is being described in detail with reference among the embodiment shown in Figure 4, and is contained in this by reference, repeats no more.
As one of preferred version of present embodiment, also comprise the 6th deriving means (not shown) according to the code check switching device shifter of present embodiment, described first determines that device 3 comprises that the 4th son determines the device (not shown).
The 6th deriving means obtains the playing duration for the treatment of the data message of buffer memory in the audio/video information of current online broadcast.
Wherein, the described data message for the treatment of buffer memory comprises the audio/video information that belongs to current broadcast and is not downloaded to the data message of subscriber equipment under the code check switching device shifter.
Particularly, the 6th deriving means obtains the total duration information of broadcast of the audio/video information of described online broadcast, and the residue playing duration that obtains in conjunction with the first deriving means 1, and current reproduction time, determines to treat the playing duration of the data message of buffer memory.
For example, be 2 hours video film A for total duration, it is the 70th minute the 30th second that the 6th deriving means obtains current reproduction time, and the residue playing duration that the first deriving means 1 obtains is 20 minutes, and then the 6th deriving means obtains to treat the playing duration of the data message of buffer memory=2 hours-70 minutes the 30th second-20 minutes=29 minutes 30 seconds.
When the second judgment means 6 judges that continuing duration belongs to the described predetermined duration scope that continues, and the first judgment means 2 is judged when the residue playing duration belongs to described predetermined playing duration scope, the 4th son determines that device is according to described predetermined playing duration scope and the described predetermined duration scope that continues, and in conjunction with the described playing duration for the treatment of the data message of buffer memory, determine to cut the new code check that goes to.
For example, the first code check is the first rank code check, the 4th son is determined device elder generation according to " selecting the upper two-stage code rate of the first code check " with predetermined playing duration scope and the predetermined simultaneously corresponding code check switching mode of duration scope that continues, and definite initial new code check is the other code check of the third level; Then, the 4th son is determined the playing duration 29 minutes 30 seconds that device obtains according to the 6th deriving means, judge that this playing duration 29 minutes 30 seconds was less than playing duration threshold value 30 minutes, then the 4th son determines that device is the rule of one-level according to predetermined rank amplitude when playing duration code check switching during less than the playing duration threshold value, and be higher than two ranks of the first code check according to determined initial new code check, determine that adjusting new code check is other upper level code check of the first order, i.e. second level code check.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any when judging that described lasting duration belongs to the described predetermined duration scope that continues, and when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope and the described predetermined duration scope that continues, and in conjunction with the described playing duration for the treatment of the data message of buffer memory, definite need are cut the implementation of the new code check that goes to, all should be within the scope of the present invention.
According to the solution of the present invention, carry out auxiliary judgment by increasing duration and reproduction time, avoid switching code rate too frequent, thereby improve user's viewing experience.
The structural representation of the code check switching device shifter of the code check of Fig. 6 has illustrated a preferred embodiment of the invention a kind of audio/video information that switches online broadcast.Comprise that according to the code check switching device shifter of present embodiment the first deriving means 1, the first judgment means 2, first determine that device 3, the 7th deriving means 8, second determine device 9, the 3rd judgment means 10 and be contained in the first sub-deriving means 401 in the second deriving means 4.
Wherein, the first deriving means 1, the first judgment means 2 and first determine that device 3 is described in detail in reference Fig. 4 or embodiment shown in Figure 5, and are contained in this by reference, repeat no more.
The 7th deriving means 8 obtains with code check and switches relevant customized information.Preferably, described customized information includes but not limited to following at least one:
1) user's range of code rates configuration information.For example, the code check the when user arranges current displaying video is greater than 512kbps, and again for example, the code check that the user arranges audio plays is between 256kbps to 1024kbps etc.
2) historical selecteed code rate information.For example, historical maximal rate and the minimum code rate of selecting of user, again for example, the history in the predetermined amount of time is switched the minimum code rate of record in the record etc.
3) capabilities of user devices information.Preferably, the performance information of described subscriber equipment resolution, memory size, CPU handling property of including but not limited to the display unit of subscriber equipment etc. can affect the device capability information of the maximal rate that subscriber equipment can support.
4) precedence information of the broadcast process of the described audio/video information of broadcast.Wherein, described precedence information is for the system resource of determining the subscriber equipment that described broadcast process can take.
Then, second definite device 9 is determined available range of code rates according to described customized information.
For example, it is the other code check of the fourth stage that the 7th deriving means 8 obtains historical selecteed maximal rate, and minimum code rate is the second level code check, and then second determines that device 9 definite available range of code rates comprise " the second level code check is to the other code check of the fourth stage ".
Again for example, the resolution that the 7th deriving means 8 obtains subscriber equipment is 800 * 600, and second determines that the code check of displaying video under device 9 these resolution of judgement should be less than 1024kbps, and then second determines that device 9 definite available range of code rates comprise " less than 1024kbps ".
Again for example, the precedence information that the 7th deriving means 8 obtains current broadcast process is the second level, and the minimum code rate that the user sets is 128kbps, then second determine that device 9 determines that the process of second level priority can take in save as 1MB, and to leave supported maximal rate in definite 1MB be 512kbps, and then second determines that device 9 determines that available range of code rates comprise " 128kbps to 512kbps ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any according to described customized information, determine the implementation of available range of code rates, all should be within the scope of the present invention.
Then, the 3rd judgment means 10 judges that whether belonging to second at first definite device 3 determined new code checks determines device 9 determined available range of code rates.
For example, first determines that device 3 determined new code checks are the other code check of the third level, second determine device 9 determine that available range of code rates comprises " the second level code check is between the other code check of the fourth stage ", then the other code check of the 3rd judgment means 10 judgement third level belongs to the second level code check between the other code check of the fourth stage.
Again for example, first determines that device 3 determined new code checks are 128kbps, second determine device 9 determine that available range of code rates comprises " 256kbps to 512kbps ", then the new code check 128kbps of the 3rd judgment means 10 judgements does not belong to available range of code rates.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly judge first determines whether device 3 determined new code checks belong to the second implementation of determining device 9 determined available range of code rates, all should be within the scope of the present invention.
When the 3rd judgment means 10 judged that described new code check belongs to described available range of code rates, the first sub-deriving means 401 obtained the data message for the treatment of buffer memory corresponding with described new code check, in order to play.
Wherein, the described first sub-deriving means 401 obtains the data message for the treatment of buffer memory corresponding with described new code check, in order to the mode of playing, second deriving means 4 embodiment illustrated in fig. 4 with aforementioned reference obtains the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, same or similar in order to the mode of playing, and be contained in by reference this, repeat no more.
According to the solution of the present invention, by the new code check that need switch to according to customized information adjustment, so that new code check can better meet user's request, and can reduce the new code check that switches to and exceed the supported code check of subscriber equipment, thereby cause video playback not smooth, even situation about can't play.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and in the situation that does not deviate from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims rather than above-mentioned explanation, therefore is intended to be included in the present invention dropping on the implication that is equal to important document of claim and all changes in the scope.Any Reference numeral in the claim should be considered as limit related claim.In addition, obviously other unit or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.A plurality of unit of stating in system's claim or device also can be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and does not represent any specific order.
Claims (19)
1. the method for the code check of the online audio/video information of playing of a computer implemented switching wherein, said method comprising the steps of:
A. obtain the residue playing duration of the data message support to be played of buffer memory;
B. judge whether described residue playing duration belongs to a predetermined playing duration scope;
C. when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope, determine to cut the new code check that goes to;
D obtains the data message for the treatment of buffer memory corresponding with described new code check in the described audio/video information, in order to play.
2. method according to claim 1, wherein, described step c may further comprise the steps:
-when described residue playing duration belongs to described predetermined playing duration scope, obtain the code check switching mode of corresponding described predetermined playing duration scope;
-determine to cut the new code check that goes to according to described code check switching mode and the first code check, wherein, described the first code check is the code check corresponding with the data message of current download.
3. method according to claim 1 and 2, wherein, described method is further comprising the steps of:
-obtain the lasting duration of the data message of playing by the second code check, wherein, described the second code check is the code check corresponding with the data message of current broadcast;
-judge whether described lasting duration belongs to a predetermined duration scope that continues;
Wherein, described step c is further comprising the steps of:
-when judging that described lasting duration belongs to the described predetermined duration scope that continues, and when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope and the described predetermined duration scope that continues, determine to cut the new code check that goes to.
4. method according to claim 3, wherein, described step c may further comprise the steps:
C1 is when judging that described lasting duration belongs to described and predeterminedly continues the duration scope, and described residue playing duration is obtained corresponding described predetermined playing duration scope and the described predetermined code check switching mode that continues the duration scope when belonging to described predetermined playing duration scope;
C2 determines to cut the new code check that goes to according to described code check switching mode and the first code check.
5. according to claim 2 or 4 described methods, wherein, described code check switching mode comprise following each:
-by selecting predetermined code check greater than the first code check as described new code check in a plurality of predetermined code checks;
-by selecting predetermined code check less than described the first code check as described new code check in a plurality of predetermined code checks.
6. each described method in 5 according to claim 1, wherein, described method is further comprising the steps of:
-obtain the playing duration for the treatment of the data message of buffer memory in the described audio/video information;
Wherein, described step c is further comprising the steps of:
-when judging that described lasting duration belongs to the described predetermined duration scope that continues, and when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope and the described predetermined duration scope that continues, and in conjunction with the described playing duration for the treatment of the data message of buffer memory, determine to cut the new code check that goes to.
7. each described method in 6 according to claim 1, wherein, described method is further comprising the steps of:
-obtain with code check and switch relevant customized information;
-according to described customized information, determine available range of code rates;
Wherein, described method is further comprising the steps of after described step c:
-judge whether described new code check belongs to described available range of code rates;
Wherein, described steps d may further comprise the steps:
-when judging that described new code check belongs to described available range of code rates, obtain the data message for the treatment of buffer memory corresponding with described new code check, in order to play.
8. method according to claim 7, wherein, described customized information comprises following at least one:
-user range of code rates configuration information;
-historical selecteed code rate information;
-capabilities of user devices information;
The precedence information of the broadcast process of the described audio/video information of-broadcast.
9. each described method in 8 according to claim 1, wherein, described steps d may further comprise the steps:
-obtain the reproduction time information of the data message to be played of buffer memory;
-according to described reproduction time information, determine the initial play time of the data message of corresponding new code check to be obtained;
-obtain and corresponding with described new code check light the data message for the treatment of buffer memory from described initial reproduction time, in order to play.
10. one kind switches the online code check switching device shifter of the code check of the audio/video information of broadcast, and wherein, described code check switching device shifter comprises:
The first deriving means is used for obtaining the residue playing duration of the data message support to be played of buffer memory;
The first judgment means is used for judging whether described residue playing duration belongs to a predetermined playing duration scope;
First determines device, is used for when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope, determines to cut the new code check that goes to;
The second deriving means is used for obtaining the described audio/video information data message for the treatment of buffer memory corresponding with described new code check, in order to play.
11. code check switching device shifter according to claim 10, wherein, described first determines that device comprises:
The 3rd deriving means is used for obtaining the code check switching mode of corresponding described predetermined playing duration scope when described residue playing duration belongs to described predetermined playing duration scope;
The first son is determined device, is used for determining to cut the new code check that goes to according to described code check switching mode and the first code check, and wherein, described the first code check is the code check corresponding with the data message of current download.
12. according to claim 10 or 11 described code check switching device shifters, wherein, described code check switching device shifter also comprises:
The 4th deriving means is used for obtaining the lasting duration by the data message of the second code check broadcast, and wherein, described the second code check is the code check corresponding with the data message of current broadcast;
The second judgment means is used for judging whether described lasting duration belongs to a predetermined duration scope that continues;
Wherein, described first determines that device also comprises:
The second son is determined device, be used for when judging that described lasting duration belongs to the described predetermined duration scope that continues, and when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope and the described predetermined duration scope that continues, determine to cut the new code check that goes to.
13. code check switching device shifter according to claim 12, wherein, described first determines that device comprises:
The 5th deriving means, be used for when judging that described lasting duration belongs to the described predetermined duration scope that continues, and when described residue playing duration belongs to described predetermined playing duration scope, obtain corresponding described predetermined playing duration scope and the described predetermined code check switching mode that continues the duration scope;
The 3rd son is determined device, is used for determining to cut the new code check that goes to according to described code check switching mode and the first code check.
14. according to claim 11 or 13 described code check switching device shifters, wherein, described code check switching mode comprise following each:
-by selecting predetermined code check greater than the first code check as described new code check in a plurality of predetermined code checks;
-by selecting predetermined code check less than described the first code check as described new code check in a plurality of predetermined code checks.
15. each described code check switching device shifter in 14 according to claim 10, wherein, described code check switching device shifter also comprises:
The 6th deriving means is used for obtaining the playing duration that described audio/video information is treated the data message of buffer memory;
Wherein, described first determines that device also comprises:
The 4th son is determined device, be used for when judging that described lasting duration belongs to the described predetermined duration scope that continues, and when described residue playing duration belongs to described predetermined playing duration scope, according to described predetermined playing duration scope and the described predetermined duration scope that continues, and in conjunction with the described playing duration for the treatment of the data message of buffer memory, determine to cut the new code check that goes to.
16. each described code check switching device shifter in 15 according to claim 10, wherein, described code check switching device shifter also comprises:
The 7th deriving means is used for obtaining with code check and switches relevant customized information;
Second determines device, is used for according to described customized information, determines available range of code rates;
The 3rd judgment means is used for judging whether described new code check belongs to described available range of code rates;
Wherein, described the second deriving means comprises:
The first sub-deriving means is used for obtaining the data message for the treatment of buffer memory corresponding with described new code check when judging that described new code check belongs to described available range of code rates, in order to play.
17. code check switching device shifter according to claim 16, wherein, described customized information comprises following at least one:
-user range of code rates configuration information;
-historical selecteed code rate information;
-capabilities of user devices information;
The precedence information of the broadcast process of the described audio/video information of-broadcast.
18. each described code check switching device shifter in 17 according to claim 10, wherein, described the second deriving means comprises:
The second sub-deriving means is used for obtaining the reproduction time information of the data message to be played of buffer memory;
The 3rd determines device, is used for according to described reproduction time information, determines the initial play time of the data message of corresponding new code check to be obtained;
The 3rd sub-deriving means is used for obtaining and corresponding with described new code check lights the data message for the treatment of buffer memory from described initial reproduction time, in order to play.
19. a computer equipment, wherein, this computer equipment comprises such as at least one described code check switching device shifter in the claim 10 to 18.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102741122A CN103002272A (en) | 2011-09-15 | 2011-09-15 | Method, device and equipment for switching code rate of audio and video information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102741122A CN103002272A (en) | 2011-09-15 | 2011-09-15 | Method, device and equipment for switching code rate of audio and video information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103002272A true CN103002272A (en) | 2013-03-27 |
Family
ID=47930344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102741122A Pending CN103002272A (en) | 2011-09-15 | 2011-09-15 | Method, device and equipment for switching code rate of audio and video information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103002272A (en) |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103414886A (en) * | 2013-08-27 | 2013-11-27 | 北京汉邦高科数字技术股份有限公司 | Network video transmission method |
CN103474080A (en) * | 2013-09-02 | 2013-12-25 | 百度在线网络技术(北京)有限公司 | Processing method, device and system of audio data based on code rate switching |
CN103826158A (en) * | 2014-02-27 | 2014-05-28 | 北京六间房科技有限公司 | Network broadcasting device and method |
CN103905897A (en) * | 2014-04-23 | 2014-07-02 | 无锡天脉聚源传媒科技有限公司 | Video playing device and method thereof |
CN104967872A (en) * | 2015-06-08 | 2015-10-07 | 青岛海信移动通信技术股份有限公司 | Live broadcasting method and server based on dynamic self-adaptive code rate transport protocol HLS streaming media |
WO2016026245A1 (en) * | 2014-08-18 | 2016-02-25 | 深圳Tcl新技术有限公司 | Method and system for switching video playback resolution |
CN105788616A (en) * | 2016-02-25 | 2016-07-20 | 广东欧珀移动通信有限公司 | Audio file play method and terminal |
CN105898406A (en) * | 2015-12-30 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Video play time control method and device |
CN106131657A (en) * | 2016-06-29 | 2016-11-16 | 乐视控股(北京)有限公司 | Video playing control method and device |
CN106851341A (en) * | 2015-12-04 | 2017-06-13 | 中国电信股份有限公司 | Method and mobile terminal for measuring Internet video delivery quality |
CN103731720B (en) * | 2013-11-25 | 2018-01-30 | 乐视致新电子科技(天津)有限公司 | The multi-medium data caching method and device of a kind of intelligent television |
CN108200470A (en) * | 2017-12-20 | 2018-06-22 | 中国联合网络通信集团有限公司 | A kind of video code rate method of adjustment and equipment |
WO2018132975A1 (en) * | 2017-01-18 | 2018-07-26 | 华为技术有限公司 | Video data processing method and device |
CN109413442A (en) * | 2018-10-12 | 2019-03-01 | 南京机器岛智能科技有限公司 | A kind of speaker self-adaption code rate adjusting method |
CN109862403A (en) * | 2019-02-19 | 2019-06-07 | 未来电视有限公司 | Self-adaption code rate switching method, device, electronic equipment and storage medium |
CN110022498A (en) * | 2018-01-08 | 2019-07-16 | 深圳市中兴微电子技术有限公司 | A kind of method and device for realizing code rate switching |
CN110198495A (en) * | 2019-06-28 | 2019-09-03 | 广州市百果园信息技术有限公司 | A kind of method, apparatus, equipment and the storage medium of video download and broadcasting |
CN110267100A (en) * | 2019-07-12 | 2019-09-20 | 北京达佳互联信息技术有限公司 | Code rate switching method, device, electronic equipment and the storage medium of FLV video |
CN111083536A (en) * | 2019-12-31 | 2020-04-28 | 广州酷狗计算机科技有限公司 | Method and device for adjusting video code rate |
CN112822536A (en) * | 2021-01-15 | 2021-05-18 | 闻泰通讯股份有限公司 | Streaming media playing control method, device, medium and computer equipment |
CN113141524A (en) * | 2020-01-17 | 2021-07-20 | 北京达佳互联信息技术有限公司 | Resource transmission method, device, terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094128A (en) * | 2006-06-22 | 2007-12-26 | 中兴通讯股份有限公司 | Method for controlling frequent switching in wireless local area network |
CN101160848A (en) * | 2005-04-11 | 2008-04-09 | 艾利森电话股份有限公司 | Technique for dynamic control data clustering transmission |
CN101945278A (en) * | 2010-09-15 | 2011-01-12 | 中国科学院深圳先进技术研究院 | Video self-adaptive transcoding method and system |
WO2011039617A1 (en) * | 2009-09-29 | 2011-04-07 | Nokia Corporation | System, method and apparatus for dynamic media file streaming |
-
2011
- 2011-09-15 CN CN2011102741122A patent/CN103002272A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101160848A (en) * | 2005-04-11 | 2008-04-09 | 艾利森电话股份有限公司 | Technique for dynamic control data clustering transmission |
CN101094128A (en) * | 2006-06-22 | 2007-12-26 | 中兴通讯股份有限公司 | Method for controlling frequent switching in wireless local area network |
WO2011039617A1 (en) * | 2009-09-29 | 2011-04-07 | Nokia Corporation | System, method and apparatus for dynamic media file streaming |
CN101945278A (en) * | 2010-09-15 | 2011-01-12 | 中国科学院深圳先进技术研究院 | Video self-adaptive transcoding method and system |
Cited By (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103414886A (en) * | 2013-08-27 | 2013-11-27 | 北京汉邦高科数字技术股份有限公司 | Network video transmission method |
CN103474080A (en) * | 2013-09-02 | 2013-12-25 | 百度在线网络技术(北京)有限公司 | Processing method, device and system of audio data based on code rate switching |
CN103731720B (en) * | 2013-11-25 | 2018-01-30 | 乐视致新电子科技(天津)有限公司 | The multi-medium data caching method and device of a kind of intelligent television |
CN103826158B (en) * | 2014-02-27 | 2017-09-26 | 北京六间房科技有限公司 | A kind of network direct broadcasting apparatus and method |
CN103826158A (en) * | 2014-02-27 | 2014-05-28 | 北京六间房科技有限公司 | Network broadcasting device and method |
CN103905897A (en) * | 2014-04-23 | 2014-07-02 | 无锡天脉聚源传媒科技有限公司 | Video playing device and method thereof |
WO2016026245A1 (en) * | 2014-08-18 | 2016-02-25 | 深圳Tcl新技术有限公司 | Method and system for switching video playback resolution |
CN104967872A (en) * | 2015-06-08 | 2015-10-07 | 青岛海信移动通信技术股份有限公司 | Live broadcasting method and server based on dynamic self-adaptive code rate transport protocol HLS streaming media |
CN104967872B (en) * | 2015-06-08 | 2019-03-12 | 青岛海信移动通信技术股份有限公司 | Live broadcasting method and server based on dynamic self-adapting code rate transport protocol HLS Streaming Media |
CN106851341B (en) * | 2015-12-04 | 2019-05-31 | 中国电信股份有限公司 | For measuring the method and mobile terminal of network video delivery quality |
CN106851341A (en) * | 2015-12-04 | 2017-06-13 | 中国电信股份有限公司 | Method and mobile terminal for measuring Internet video delivery quality |
CN105898406A (en) * | 2015-12-30 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Video play time control method and device |
CN105788616A (en) * | 2016-02-25 | 2016-07-20 | 广东欧珀移动通信有限公司 | Audio file play method and terminal |
CN105788616B (en) * | 2016-02-25 | 2018-09-21 | 广东欧珀移动通信有限公司 | A kind of audio file play method and terminal |
WO2018000624A1 (en) * | 2016-06-29 | 2018-01-04 | 乐视控股(北京)有限公司 | Video playing control method and device |
CN106131657A (en) * | 2016-06-29 | 2016-11-16 | 乐视控股(北京)有限公司 | Video playing control method and device |
WO2018132975A1 (en) * | 2017-01-18 | 2018-07-26 | 华为技术有限公司 | Video data processing method and device |
US10887639B2 (en) | 2017-01-18 | 2021-01-05 | Huawei Technologies Co., Ltd. | Video data processing method and device |
CN110169078A (en) * | 2017-01-18 | 2019-08-23 | 华为技术有限公司 | Video data handling procedure and equipment |
CN108200470A (en) * | 2017-12-20 | 2018-06-22 | 中国联合网络通信集团有限公司 | A kind of video code rate method of adjustment and equipment |
CN110022498B (en) * | 2018-01-08 | 2021-04-27 | 深圳市中兴微电子技术有限公司 | Method and device for realizing code rate switching |
CN110022498A (en) * | 2018-01-08 | 2019-07-16 | 深圳市中兴微电子技术有限公司 | A kind of method and device for realizing code rate switching |
CN109413442A (en) * | 2018-10-12 | 2019-03-01 | 南京机器岛智能科技有限公司 | A kind of speaker self-adaption code rate adjusting method |
CN109413442B (en) * | 2018-10-12 | 2020-10-09 | 南京机器岛智能科技有限公司 | Sound box self-adaptive code rate adjusting method |
CN109862403A (en) * | 2019-02-19 | 2019-06-07 | 未来电视有限公司 | Self-adaption code rate switching method, device, electronic equipment and storage medium |
CN109862403B (en) * | 2019-02-19 | 2021-07-27 | 未来电视有限公司 | Adaptive code rate switching method and device, electronic equipment and storage medium |
CN110198495A (en) * | 2019-06-28 | 2019-09-03 | 广州市百果园信息技术有限公司 | A kind of method, apparatus, equipment and the storage medium of video download and broadcasting |
CN110198495B (en) * | 2019-06-28 | 2022-03-22 | 广州市百果园信息技术有限公司 | Method, device, equipment and storage medium for downloading and playing video |
CN110267100A (en) * | 2019-07-12 | 2019-09-20 | 北京达佳互联信息技术有限公司 | Code rate switching method, device, electronic equipment and the storage medium of FLV video |
CN111083536A (en) * | 2019-12-31 | 2020-04-28 | 广州酷狗计算机科技有限公司 | Method and device for adjusting video code rate |
CN113141524A (en) * | 2020-01-17 | 2021-07-20 | 北京达佳互联信息技术有限公司 | Resource transmission method, device, terminal and storage medium |
CN113141524B (en) * | 2020-01-17 | 2023-09-29 | 北京达佳互联信息技术有限公司 | Resource transmission method, device, terminal and storage medium |
CN112822536A (en) * | 2021-01-15 | 2021-05-18 | 闻泰通讯股份有限公司 | Streaming media playing control method, device, medium and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103002272A (en) | Method, device and equipment for switching code rate of audio and video information | |
US8819754B2 (en) | Media streaming with enhanced seek operation | |
US10271112B2 (en) | System and method for dynamic adaptive video streaming using model predictive control | |
CN102298947B (en) | A kind of for carrying out the method and apparatus playing switching between multimedia player | |
CN110248247A (en) | Embedded dynamic video control method for playing back and device based on network throughput | |
CN109218847B (en) | Download control method and device and multimedia terminal | |
CN103024561A (en) | Method and device for displaying dragging progress bar | |
CN102223416B (en) | Method and system for transmitting media file | |
CN101447994A (en) | Method for downloading and playing multimedia file and equipment thereof | |
CN103369363A (en) | Method, system and device for controlling application program | |
CN103517098A (en) | Video playing method, device and terminal equipment based on video aggregation service | |
CN112153470B (en) | Video playing method and device, computer equipment and storage medium | |
CN105025351A (en) | Streaming media player buffering method and apparatus | |
CN105828158A (en) | Multi-window video playing-based playing quality adjusting method and device | |
CN104244083A (en) | Online video downloading method and electronic device | |
CN103873927B (en) | Streaming medium data processing method and electronic equipment | |
EP3375200A1 (en) | Providing an indication of highlights in a video content item | |
WO2020155960A1 (en) | Video playback method and system, computer device, and computer readable storage medium | |
WO2016209400A1 (en) | Optimized delivery of sequential content by skipping redundant segments | |
CN105453014A (en) | Adjustable video player | |
CN114286128A (en) | Live video parameter adjusting method, system, device, equipment and storage medium | |
KR20120114270A (en) | Rendering a web page comprising plug-in content | |
CN103702219A (en) | Video playing control method and equipment | |
CN103488529A (en) | Method and equipment for controlling access of video resources | |
CN102542062B (en) | Method and device for loading videos from webpage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20130327 |