CN102905188B - A kind of video code flow changing method and device - Google Patents

A kind of video code flow changing method and device Download PDF

Info

Publication number
CN102905188B
CN102905188B CN201210431708.3A CN201210431708A CN102905188B CN 102905188 B CN102905188 B CN 102905188B CN 201210431708 A CN201210431708 A CN 201210431708A CN 102905188 B CN102905188 B CN 102905188B
Authority
CN
China
Prior art keywords
primitive
broadcasting
video
play
buffer area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210431708.3A
Other languages
Chinese (zh)
Other versions
CN102905188A (en
Inventor
邓治民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201210431708.3A priority Critical patent/CN102905188B/en
Publication of CN102905188A publication Critical patent/CN102905188A/en
Application granted granted Critical
Publication of CN102905188B publication Critical patent/CN102905188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of video code flow changing method.The method comprises: after receiving bitstreams switching triggering, and continue the current streaming video in playing video data buffer area first plays primitive; Before at least one first broadcasting primitive in video data buffer area does not play, linking objective streaming video file, do not play with one or do not play the first broadcasting end time of playing primitive was start time, plays primitive be loaded into video data buffer area for broadcasting from described target code stream video file by second of the target streaming video corresponding with this start time.The embodiment of the present application additionally provides a kind of video code flow switching device shifter.The scheme of the embodiment of the present application can realize taking over seamlessly of video code flow, avoids occurring " card ", " blank screen " phenomenon.

Description

A kind of video code flow changing method and device
Technical field
The application relates to technical field of information processing, particularly relates to a kind of video code flow changing method and corresponding device thereof.
Background technology
In the normal play situation ensureing video, the different factors such as computer configuration, video bandwidth, network state determines that the video code flow of player carrying is not identical yet, therefore, usual needs switch between different video code stream, be switched to target video code stream life period postpone by former video code flow.When this time delay exceedes certain threshold values, phenomenon that video playback will occur " card ", namely occur in video display process pausing, even time delay is long there is video data loss, causes " blank screen ".As can be seen here, whether video code flow switching is level and smooth will have influence on the result of broadcast of video, reduce the viewing experience that user is good.
A kind of mode realizing video code flow switching of prior art is: when receiving video code flow handover trigger, video player stops the video playback of current video code stream immediately, the physical file that linking objective video code flow is corresponding, and load the corresponding video data of this physical file, thus open the video playback of target video code stream.But, the physical file corresponding due to select target video code flow postpones with the operation life period loading video data, even if the video data that former video code flow is play docks completely with the video data that target video code stream is play, under the effect of this time delay, video data before and after switching is play does not have realization to seamlessly transit, cause " card " phenomenon, even " blank screen ".
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides the device of a kind of video code flow changing method and correspondence thereof, switches seamlessly transitting of front and back to realize video code flow, avoids occurring " card " phenomenon, even " blank screen ".
The video code flow changing method that the embodiment of the present application provides comprises:
After receiving bitstreams switching triggering, continue the current streaming video in playing video data buffer area first plays primitive;
Before at least one first broadcasting primitive in video data buffer area does not play, linking objective streaming video file, do not play with one or do not play the first broadcasting end time of playing primitive was start time, plays primitive be loaded into video data buffer area for broadcasting from described target code stream video file by second of the target streaming video corresponding with this start time.
Preferably, after receiving bitstreams switching triggering, if video data cache bank memories is at multiple the first broadcasting primitive do not play, then calculate each first and play the broadcasting end time of primitive and the difference of pre-set threshold value, with difference minimum first play broadcasting end time of primitive for start time, from described target code stream video file, play primitive by second of the target streaming video corresponding with this start time be loaded into video data buffer area for broadcasting, described pre-set threshold value was determined according to the second time of playing primitive of linking objective streaming video file and loaded targets streaming video.
Preferably, the first broadcasting end time of playing primitive do not play when selecting one from video data buffer area or do not play deletes the first broadcasting primitive that in video data buffer area, other are not play after being start time.
Preferably, described bitstreams switching triggers and comprises:
The bitstreams switching notification message that listen for user sends, triggers bitstreams switching after listening to notification message; And/or monitoring network data transmission scenarios, triggers bitstreams switching when network data transmission situation meets pre-conditioned.
Preferably, described first plays primitive, the second broadcasting primitive is video TAG.
The embodiment of the present application additionally provides a kind of video code flow switching device shifter.This device comprises: trigger receiving element, video playback unit, file linkage unit and loading unit, wherein:
Described triggering receiving element, for receiving code stream handover trigger;
Described video playback unit, for after receiving bitstreams switching triggering, continue the current streaming video in playing video data buffer area first plays primitive;
Described file linkage unit, before not playing at least one the first broadcasting primitive in video data buffer area, linking objective streaming video file;
Described loading unit, before not playing at least one the first broadcasting primitive in video data buffer area, do not play with one or do not play the first broadcasting end time of playing primitive was start time, plays primitive be loaded into video data buffer area for broadcasting from described target code stream video file by second of the target streaming video corresponding with this start time.
Preferably, after receiving bitstreams switching triggering, if video data cache bank memories is at multiple the first broadcasting primitive do not play, then described loading unit comprises computation subunit and adds subelements, wherein:
Described computation subunit, plays the broadcasting end time of primitive and the difference of pre-set threshold value for calculating each first, and described pre-set threshold value was determined according to the second time of playing primitive of linking objective streaming video file and loaded targets streaming video;
Describedly add subelements, for with difference minimum first play broadcasting end time of primitive for start time, from described target code stream video file, play primitive by second of the target streaming video corresponding with this start time be loaded into video data buffer area for broadcasting.
Preferably, described device also comprises delete cells, for after the first broadcasting end time of playing primitive selecting one not play or do not play from video data buffer area is start time, delete the first broadcasting primitive that in video data buffer area, other are not play.
Preferably, the bitstreams switching that receives of described triggering receiving element triggers and comprises: the bitstreams switching listened to after the bitstreams switching notification message that user sends triggers; And/or the bitstreams switching monitored when network data transmission situation meets pre-conditioned triggers.
Preferably, described first plays primitive, the second broadcasting primitive is video TAG.
The embodiment of the present application plays primitive receive the current streaming video in the follow-up continuous playing video data buffer area of video code flow handover trigger first, before at least one first broadcasting primitive does not play, the physical file of linking objective video code flow and second of loaded targets streaming video plays primitive for playing.Compared with prior art, because the embodiment of the present application first is play before primitive plays in video data buffer area, be loaded with target streaming video second plays primitive, thus make the broadcasting of current streaming video and target streaming video continuous, achieve and seamlessly transit, avoid appearance " card ", even " blank screen " phenomenon.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of an embodiment of the video code flow changing method of the application;
Fig. 2 is the flow chart of another embodiment of the video code flow changing method of the application;
Fig. 3 is the video data buffer area schematic diagram of the application;
Fig. 4 is the structured flowchart of the embodiment of the video code flow switching device shifter of the application.
Embodiment
Technical scheme in the application is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
For enabling above-mentioned purpose, the feature and advantage of the application more become apparent, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
See Fig. 1, the figure shows the flow process of an embodiment of the video code flow changing method of the application.This embodiment comprises:
Step S101: after receiving bitstreams switching triggering, continue the current streaming video in playing video data buffer area first plays primitive;
The data traffic of video code flow reflecting video file within the unit interval is the pith that in Video coding, image quality controls.Equal resolution, the code stream of video file is larger, and image quality is higher.In the actual play process of video, because a variety of causes may cause the switching of video code flow, to adapt to play needs.Causing the reason of bitstreams switching different, also may there is difference in the activation pattern of bitstreams switching.
Such as, when video code flow switch by user specify cause time, realization can be intercepted by arranging to the bitstreams switching notification message that user sends, when the notification message listening to user and send, then triggering bitstreams switching.Also such as, when video code flow switch be caused by factors such as network environments time, can realize the monitoring of network environmental factors by arranging, meeting pre-conditioned when monitoring network environmental factors, then triggering bitstreams switching.Here network environmental factors can be the network bandwidth, network data transmission etc.For network data transmission situation, if the current network user is more, transfer of data is comparatively blocked up, when the transmission rate of network data transmission is less than certain pre-set threshold value, then thinks and need to trigger bitstreams switching, be switched on the video code flow corresponding with this network transmission speed.It should be noted that: here pre-conditioned can be plyability condition, such as, when Internet Transmission situation is in an interval range, trigger the switching between current code stream and first object code stream, when Internet Transmission situation is in another interval range, trigger the switching between current code stream and the second target code stream.
Video data buffer area is the broadcasting primitive for buffer memory video file to be played.In actual play video file process, because video file is larger, usually need a large video file to be cut into several little " fragments ", the play start time of these " fragments " and end time form the complete playing duration of whole video file continuously.A kind of mode of cutting video file of standard is that a video file is resolved to multiple video TAG.Each " fragment " can be described as one and plays primitive, plays primitive for one and is loaded into internal memory as a whole for player plays.Can there is one or several broadcasting primitive in video data buffer area, its concrete quantity is determined by the size of a size and video data buffer area playing primitive.After receiving bitstreams switching triggering, the present embodiment does not stop the broadcasting to playing primitive, continues the broadcasting primitive do not play in playing video data buffer area in the normal fashion.Do not stop the video data buffer area realization that the broadcasting of playing primitive in video data buffer area independently controls by safeguarding oneself.If video data cache bank memories is at multiple broadcasting primitive, player is by the play start time played in order according to broadcasting primitive.
Step S102: before at least one the first broadcasting primitive in video data buffer area does not play, linking objective streaming video file, do not play with one or do not play the first broadcasting end time of playing primitive was start time, plays primitive be loaded into video data buffer area for broadcasting from described target code stream video file by second of the target streaming video corresponding with this start time;
Before playing to the whole broadcasting primitives in video data buffer area after receiving bitstreams switching and triggering during this period of time in, the present embodiment will complete two operations: one is linking objective streaming video file.Due to different video code flows, the compression factor of corresponding video file is different, usually identical video file needs to form different physical files respectively according to different code streams, after receiving bitstreams switching triggering, namely the video physical file that target code stream is corresponding is connected to, therefrom to obtain the broadcasting primitive corresponding with the consecutive new code stream of the broadcasting primitive of current broadcasting.Two is that second of loaded targets streaming video from target code stream video file plays primitive, the start time of the broadcasting primitive loaded can be the first broadcasting primitive that in video data buffer area, any one is not play, or is playing but the broadcasting end time of the do not play first broadcasting primitive.After second of target code stream video file broadcasting primitive is loaded into video data buffer area, player plays primitive accordingly by playing according to the time order and function (play start time) playing primitive itself.Switching being completed by a video code flow (i.e. aforesaid current code stream) to another video code flow (target code stream) by aforementioned two operations.
The present embodiment plays primitive receive the current streaming video in the follow-up continuous playing video data buffer area of video code flow handover trigger first, before at least one first broadcasting primitive does not play, the physical file of linking objective video code flow and second of loaded targets streaming video plays primitive for playing.Compared with prior art, because the embodiment of the present application first is play before primitive plays in video data buffer area, be loaded with target streaming video second plays primitive, thus make the broadcasting of current streaming video and target streaming video continuous, achieve and seamlessly transit, avoid appearance " card ", even " blank screen " phenomenon.
In the aforementioned embodiment, although select arbitrarily one not play in video data buffer area first plays primitive and is play the end time does not hinder the present application object realization as the mode playing the load time starting point of primitive to second, but, in actual application, if video data cache bank memories is at multiple the first broadcasting primitive do not play, if what select is time the first broadcasting primitive rearward, so after the operation completing linking objective video file and loading second broadcasting primitive, in video data buffer area first is play primitive and is not also played, cause the response that improper " delay " switches video code flow.In order to solve this problem, this application provides another embodiment, this embodiment when video data cache bank memories multiple do not play first play primitive, give the strategy that primitive is play in selection first, thus the response time that " compression " switches video code flow.
See Fig. 2, the figure shows the flow process of the video code flow changing method of this another embodiment.This embodiment comprises:
Step S201: receive code stream handover trigger;
Step S202: play primitive receive the current streaming video in the follow-up continuous playing video data buffer area of code stream triggering first;
Step S203: calculate each first and play the broadcasting end time of primitive and the difference of pre-set threshold value, described pre-set threshold value was determined according to the second time of playing primitive of linking objective streaming video file and loaded targets streaming video;
The broadcasting end time that in video data buffer area each first plays primitive is different, therefore, broadcasting end time and the pre-set threshold value that can play primitive by each first carry out asking poor, therefrom to select suitable broadcasting primitive, play the start time of primitive using its broadcasting end time as loading second.Here pre-set threshold value can empirically be arranged, and also can determine according to the second time of playing primitive of target code stream video file and loaded targets streaming video.
Step S204: selection difference is positive number and the minimum first broadcasting end time of playing primitive was defined as start time;
After aforementioned calculating, these result of calculations are compared, therefrom select the first broadcasting primitive that difference is minimum, play the end time as start time.Be positive number and minimum broadcasting primitive by selecting broadcasting end time and preset value difference, make at linking objective streaming video file and load after two operations of the second broadcasting primitive complete, the broadcasting that the residue first of original bit stream video plays primitive can terminate as early as possible, and within the shorter time interval, be transitioned into the broadcasting of second of target streaming video being play to primitive, thus shorten the response time to bitstreams switching.
Step S205: play primitive by second of the target streaming video corresponding with the start time determined and be loaded into video data buffer area for broadcasting from described target code stream video file.
The present embodiment is by calculating the difference of multiple broadcasting primitive in video data buffer area and pre-set threshold value, and then select the broadcasting end time of the minimum broadcasting primitive of difference to play the start time of primitive as loading second, shorten the time interval from receiving code stream handover trigger to the switching being really accomplished to target code stream, thus accelerate the speed of bitstreams switching.
For ease of understanding, illustrating below is described the present embodiment: see Fig. 3, the figure shows the schematic diagram of video data buffer area.Video data cache bank memories is at 3 first broadcasting primitives of original bit stream video in the figure, be labeled as A, B, C respectively, 3 first playing duration (playing the time period between the end time to play start time) playing primitive are all identical, playing the end time is followed successively by 8s, 16s, 24s (take current time as 0s be benchmark), namely according to normal play order, should be that the first broadcasting primitive A plays at first, first plays primitive C finally plays.Supposing linking objective streaming video file again and loading for the second operating time of playing primitive needs is 14s (pre-set threshold value).
The first broadcasting primitive A play by present player, supposes to receive bitstreams switching notice when being played to 1s, at this moment do not stop the broadcasting to A, but carries out linking objective streaming video file and load the operation that second plays primitive.Load second and play the start time that loading selected by primitive needs, so that on can continuing with the first broadcasting primitive play, at this moment 3 first differences play between the end time of primitive and pre-set threshold value 14s are calculated, be respectively-6s, 2s, 10s, here the first difference playing primitive A broadcasting end time and pre-set threshold value is negative, illustrate that at the end of first plays primitive A broadcasting, also have little time to play primitive by second is loaded into video data buffer area, cannot realize taking over seamlessly, the broadcasting end time of this broadcasting primitive can not be selected as load time starting point.First play primitive B in contrast to this, the difference that C plays end time and pre-set threshold value is just, illustrate at the end of these two are play primitive broadcasting, second plays primitive all can be loaded into video data buffer area, in this case, the broadcasting end time can playing primitive B using first plays primitive as second of start time loaded targets streaming video, continue after first broadcasting primitive B is played the second broadcasting primitive, also the broadcasting end time can playing primitive C using second plays primitive as second of start time loaded targets streaming video, continue after first broadcasting primitive C is played the second broadcasting primitive.But, the broadcasting end time selecting first to play primitive C obviously to need etc. until really could realize bitstreams switching after 24s as the mode of load time starting point, and selects the broadcasting end time of the first broadcasting primitive B only to need etc. until really can realize bitstreams switching after 16s as the mode of load time starting point.For shortening the response time of bitstreams switching, this example select the difference playing end time and pre-set threshold value to be positive number and numerical value minimum first play primitive, namely first play primitive B, play the end time using it and play primitive as start time loading second, thus accelerate bitstreams switching.
In the present embodiment, based on some special requirement, can also carry out improving to obtain better technique effect.Such as, if video data cache bank memories is at multiple the first broadcasting primitive do not play or do not play, after determining the first broadcasting primitive as load time starting point, load second play primitive will continue this first broadcasting primitive after play, at this moment other the first broadcasting primitives just no longer have meaning, for saving the storage resources of video data buffer area, these first broadcasting primitives do not play of the application's preferably deletion.With precedent, after the broadcasting end time that primitive B is play in selection first plays the start time of primitive as loading second, first broadcasting primitive B plays the second broadcasting primitive terminating namely to continue and play and load, at this moment video data cache bank memories first to play primitive C just no longer played, storing the second follow-up broadcasting primitive for vacateing more spaces, primitive C can be play by first and be deleted.
Above content is the description to the application's embodiment of the method, correspondingly, present invention also provides device embodiment.See Fig. 4, the structured flowchart that the video code flow that the figure shows the application switches.This device embodiment comprises: trigger receiving element 401, video playback unit 402, file linkage unit 403 and loading unit 404, wherein:
Trigger receiving element 401, for receiving code stream handover trigger;
Video playback unit 402, for after receiving bitstreams switching triggering, continue the current streaming video in playing video data buffer area first plays primitive;
File linkage unit 403, before not playing at least one the first broadcasting primitive in video data buffer area, linking objective streaming video file;
Loading unit 404, before not playing at least one the first broadcasting primitive in video data buffer area, do not play with one or do not play the first broadcasting end time of playing primitive was start time, plays primitive be loaded into video data buffer area for broadcasting from described target code stream video file by second of the target streaming video corresponding with this start time.
The course of work of this device embodiment is: after triggering receiving element 401 receives bitstreams switching triggering, video playback unit 402 continues the first broadcasting primitive of the current streaming video in playing video data buffer area, before file linkage unit 403 at least one first broadcasting primitive in video data buffer area does not play simultaneously, linking objective streaming video file, then by loading unit 404 with one do not play or do not play first play broadcasting end time of primitive for start time, from target code stream video file, play primitive by second of the target streaming video corresponding with this start time be loaded into video data buffer area for broadcasting.
This device embodiment plays primitive receive the current streaming video in the follow-up continuous playing video data buffer area of video code flow handover trigger first, before at least one first broadcasting primitive does not play, the physical file of linking objective video code flow and second of loaded targets streaming video plays primitive for playing.Compared with prior art, because this device embodiment first is play before primitive plays in video data buffer area, be loaded with target streaming video second plays primitive, thus make the broadcasting of current streaming video and target streaming video continuous, achieve and seamlessly transit, avoid appearance " card ", even " blank screen " phenomenon.
The loading unit of said apparatus embodiment in different situations its specifically composition structure may there is difference.Such as, after receiving bitstreams switching triggering, if video data cache bank memories is at multiple the first broadcasting primitive do not play, at this moment loading unit 404 can comprise computation subunit 4041 and add subelements 4042, wherein: computation subunit 4041, play the broadcasting end time of primitive and the difference of pre-set threshold value for calculating each first, described pre-set threshold value was determined according to the second time of playing primitive of linking objective streaming video file and loaded targets streaming video; Add subelements 4042, for being positive number with difference and minimum first to play broadcasting end time of primitive be start time, from described target code stream video file, playing primitive by second of the target streaming video corresponding with this start time be loaded into video data buffer area for broadcasting.The structure of this loading unit is conducive to accelerating bitstreams switching speed.
Based on the structure of above-mentioned loading unit, this device embodiment can also comprise delete cells 405, for after the first broadcasting end time of playing primitive selecting one not play or do not play from video data buffer area is start time, delete the first broadcasting primitive that in video data buffer area, other are not play.By the first useless broadcast unit is deleted in video data buffer area, more memory space buffer memory second can be vacateed and play primitive.
It should be noted that, the bitstreams switching that the triggering receiving element of said apparatus embodiment receives triggers based on different bitstreams switching reasons, can difference be there is in its concrete activation pattern, such as, it can be the component retrieval bitstreams switching triggering by arranging the bitstreams switching notification message that listen for user sends, produce bitstreams switching to trigger when these parts listen to notification message, can also be triggered by the component retrieval bitstreams switching arranging Auto Observation System network environmental factors, bitstreams switching triggering is produced when these parts monitor when network data transmission situation meets pre-conditioned.These two kinds of modes can be used alone, and also can merge use, and concrete which kind of mode that adopts can need to select according to practical application.In addition, the application is for ease of the broadcasting primitive of the broadcasting primitive and target streaming video of distinguishing current streaming video, they called respectively is that the first broadcasting primitive, second plays primitive, in fact, this differentiation only meets the word differentiation describing needs and do, two classes play the broadcasting primitive that primitive can be same nature, same alike result, and be such as video TAG, video TAG is the minimum data unit in video playback.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.System embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The application can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, the distributed computing environment (DCE) comprising above any system or equipment etc. based on microprocessor.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment (DCE), be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
The above is only the embodiment of the application; it should be pointed out that for those skilled in the art, under the prerequisite not departing from the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the protection range of the application.

Claims (6)

1. a video code flow changing method, is characterized in that, the method comprises:
After receiving bitstreams switching triggering, continue the current streaming video in playing video data buffer area first plays primitive;
Before at least one first broadcasting primitive in video data buffer area does not play, linking objective streaming video file, plays broadcasting primitive corresponding to primitive consecutive target code stream therefrom to obtain with first of current broadcasting;
Do not play with one or do not play the first broadcasting end time of playing primitive was start time, plays primitive be loaded into video data buffer area for broadcasting from described target code stream video file by second of the target streaming video corresponding with this start time;
After receiving bitstreams switching triggering, if video data cache bank memories is at multiple the first broadcasting primitive do not play, then: calculate each first and play the broadcasting end time of primitive and the difference of pre-set threshold value, described pre-set threshold value was determined according to the second time of playing primitive of linking objective streaming video file and loaded targets streaming video; Be positive number with difference and minimum first to play broadcasting end time of primitive be start time, from described target code stream video file, play primitive by second of the target streaming video corresponding with this start time be loaded into video data buffer area for broadcasting;
Wherein, the first broadcasting end time of playing primitive do not play when selecting one from video data buffer area or do not play deletes the first broadcasting primitive that in video data buffer area, other are not play after being start time.
2. method according to claim 1, is characterized in that, described bitstreams switching triggers and comprises:
The bitstreams switching notification message that listen for user sends, triggers bitstreams switching after listening to notification message; And/or monitoring network data transmission scenarios, triggers bitstreams switching when network data transmission situation meets pre-conditioned.
3. method according to claim 2, is characterized in that, described first plays primitive, the second broadcasting primitive is video TAG.
4. a video code flow switching device shifter, is characterized in that, this device comprises: trigger receiving element, video playback unit, file linkage unit and loading unit, wherein:
Described triggering receiving element, for receiving code stream handover trigger;
Described video playback unit, for after receiving bitstreams switching triggering, continue the current streaming video in playing video data buffer area first plays primitive;
Described file linkage unit, before not playing at least one the first broadcasting primitive in video data buffer area, linking objective streaming video file, plays broadcasting primitive corresponding to primitive consecutive target code stream therefrom to obtain with first of current broadcasting;
Described loading unit, before not playing at least one the first broadcasting primitive in video data buffer area, do not play with one or do not play the first broadcasting end time of playing primitive was start time, plays primitive be loaded into video data buffer area for broadcasting from described target code stream video file by second of the target streaming video corresponding with this start time;
After receiving bitstreams switching triggering, if video data cache bank memories is at multiple the first broadcasting primitive do not play, then described loading unit comprises computation subunit and adds subelements, wherein:
Described computation subunit, plays the broadcasting end time of primitive and the difference of pre-set threshold value for calculating each first, and described pre-set threshold value was determined according to the second time of playing primitive of linking objective streaming video file and loaded targets streaming video;
Describedly add subelements, for being positive number with difference and minimum first to play broadcasting end time of primitive be start time, from described target code stream video file, playing primitive by second of the target streaming video corresponding with this start time be loaded into video data buffer area for broadcasting;
Wherein, described device also comprises delete cells, for after the first broadcasting end time of playing primitive selecting one not play or do not play from video data buffer area is start time, delete the first broadcasting primitive that in video data buffer area, other are not play.
5. device according to claim 4, is characterized in that, the bitstreams switching that described triggering receiving element receives triggers and comprises:
Listen to the bitstreams switching after the bitstreams switching notification message that user sends to trigger; And/or the bitstreams switching monitored when network data transmission situation meets pre-conditioned triggers.
6. device according to claim 4, is characterized in that, described first plays primitive, the second broadcasting primitive is video TAG.
CN201210431708.3A 2012-11-01 2012-11-01 A kind of video code flow changing method and device Active CN102905188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210431708.3A CN102905188B (en) 2012-11-01 2012-11-01 A kind of video code flow changing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210431708.3A CN102905188B (en) 2012-11-01 2012-11-01 A kind of video code flow changing method and device

Publications (2)

Publication Number Publication Date
CN102905188A CN102905188A (en) 2013-01-30
CN102905188B true CN102905188B (en) 2015-09-30

Family

ID=47577193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210431708.3A Active CN102905188B (en) 2012-11-01 2012-11-01 A kind of video code flow changing method and device

Country Status (1)

Country Link
CN (1) CN102905188B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110582012A (en) * 2018-06-11 2019-12-17 腾讯科技(深圳)有限公司 Video switching method, video processing device and storage medium

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103474080A (en) * 2013-09-02 2013-12-25 百度在线网络技术(北京)有限公司 Processing method, device and system of audio data based on code rate switching
CN103686346A (en) * 2013-12-26 2014-03-26 乐视网信息技术(北京)股份有限公司 Video playing unsmoothness switching method and system
WO2015113243A1 (en) * 2014-01-29 2015-08-06 华为终端有限公司 Method, apparatus and electronic device for playing network video
CN103997680B (en) * 2014-06-06 2017-10-24 上海众源网络有限公司 The switching method and device of a kind of video code flow
CN104219579B (en) * 2014-08-20 2018-03-06 北京奇艺世纪科技有限公司 A kind of video switching method and device
US9948539B2 (en) 2014-08-29 2018-04-17 The Nielsen Company (Us), Llc Methods and apparatus to predict end of streaming media using a prediction model
CN105657520A (en) * 2014-11-18 2016-06-08 乐视网信息技术(北京)股份有限公司 Video definition switching method and video player
CN105072489B (en) * 2015-07-17 2018-08-03 成都视达科信息技术有限公司 A kind of method and system that rapid file is read
CN105025344A (en) * 2015-07-22 2015-11-04 无锡天脉聚源传媒科技有限公司 Inter-cut method and device
CN105611393B (en) * 2015-12-21 2019-04-23 深圳Tcl数字技术有限公司 Video playing control method and device
CN106375836A (en) * 2016-09-27 2017-02-01 广东小天才科技有限公司 Resolution switching method and device of video
CN106412676A (en) * 2016-10-21 2017-02-15 乐视控股(北京)有限公司 Video code stream switching method and device, and electronic device
CN106488255B (en) * 2016-10-24 2019-05-14 广州酷狗计算机科技有限公司 A kind of method and device of switching media stream
CN106375837B (en) * 2016-11-14 2017-10-10 武汉斗鱼网络科技有限公司 A kind of advertisement cut-in method and device
CN108574860B (en) * 2017-03-07 2021-12-03 阿里巴巴(中国)有限公司 Multimedia resource playing method and device
CN107396193B (en) * 2017-08-30 2018-09-04 腾讯科技(深圳)有限公司 The method and apparatus of video playing
CN107547940B (en) * 2017-09-13 2019-11-12 广州酷狗计算机科技有限公司 Video playing processing method, equipment and computer readable storage medium
CN108174280B (en) * 2018-01-18 2021-02-02 湖南快乐阳光互动娱乐传媒有限公司 Audio and video online playing method and system
CN108810582A (en) * 2018-05-25 2018-11-13 联想(北京)有限公司 A kind of information processing method, electronic equipment and computer readable storage medium
CN110545461A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Resolution switching method and device of media file and storage medium
CN110545464A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Media file resolution switching method and device and storage medium
CN110636370B (en) * 2018-06-25 2022-02-01 斑马智行网络(香港)有限公司 Video processing method and device, electronic equipment and readable medium
CN108965907B (en) * 2018-07-11 2020-03-13 北京字节跳动网络技术有限公司 Method, device and system for playing video
CN109246462B (en) * 2018-10-11 2021-08-06 苏宁易购集团股份有限公司 Seamless switching method and device for video stream
CN111479171B (en) 2019-01-23 2022-05-20 上海哔哩哔哩科技有限公司 Pseudo seamless switching method, device and medium among different video sources played by Web
CN110913257A (en) * 2019-11-29 2020-03-24 广州市百果园信息技术有限公司 Video data playing method, device, equipment and storage medium
CN113395606A (en) * 2020-03-13 2021-09-14 华为技术有限公司 URL screen projection method and device
CN112202751B (en) * 2020-09-25 2022-06-07 腾讯科技(深圳)有限公司 Animation processing method and device, electronic equipment and storage medium
CN112235642B (en) * 2020-10-15 2023-03-24 北京百度网讯科技有限公司 Video data processing method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1856911A4 (en) * 2005-03-07 2010-02-24 Ericsson Telefon Ab L M Multimedia channel switching
CN101179700B (en) * 2006-12-20 2011-05-11 腾讯科技(深圳)有限公司 Program source switch method and stream media play system
CN101521817B (en) * 2009-03-17 2011-03-16 中兴通讯股份有限公司 Method and terminal for improving mobile telephone television program broadcasting continuity
CN101917391B (en) * 2009-12-17 2013-03-06 新奥特(北京)视频技术有限公司 Method for playing network video and system for playing network video
CN102291599A (en) * 2011-05-07 2011-12-21 董友球 Network video playing method and network video playing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110582012A (en) * 2018-06-11 2019-12-17 腾讯科技(深圳)有限公司 Video switching method, video processing device and storage medium
CN110582012B (en) * 2018-06-11 2021-07-30 腾讯科技(深圳)有限公司 Video switching method, video processing device and storage medium

Also Published As

Publication number Publication date
CN102905188A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN102905188B (en) A kind of video code flow changing method and device
CN100542276C (en) A kind of implementation method of video frequency requested program broadcasting-like services, server and client
CN103997680B (en) The switching method and device of a kind of video code flow
US8301794B2 (en) Media content improved playback quality
CN105808447B (en) A kind of method for recovering internal storage and device of terminal device
CN106534952A (en) Method for continuingly playing film source after source switching and smart television
EP3028471B1 (en) Multimedia cache with dynamic segmenting
CN107547940A (en) Video playback processing method, equipment and computer-readable recording medium
CN108174280B (en) Audio and video online playing method and system
CN104077183A (en) Reminding and operating method and device for reading of new software message
CN102903377B (en) Method and device for playing video with multiple video segments
US20230285854A1 (en) Live video-based interaction method and apparatus, device and storage medium
CN105847979A (en) Method and device of downloading and providing video files
CN109587511A (en) More equipment net cast methods, equipment, system and storage medium
CN103747296A (en) Video playing method and system
CN106470350A (en) Code check adaptive approach based on dynamic bit rate and device
CN103702219A (en) Video playing control method and equipment
CN108882004B (en) Video recording method, device, equipment and storage medium
CN101635841B (en) Method and equipment for adjusting read-write performance of video service information
CN109218809B (en) Streaming media playing method and device
CN105100914A (en) Video play method and device
CN105138370A (en) Playlist refreshing method and device
CN104954388B (en) Towards the distributed more internal memory copy storage systems and method of video stream data
CN111467797B (en) Game data processing method and device, computer storage medium and electronic equipment
CN103945233A (en) Streaming media playing method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant