CN105323653A - Method and equipment for playing video clip - Google Patents

Method and equipment for playing video clip Download PDF

Info

Publication number
CN105323653A
CN105323653A CN201410384598.9A CN201410384598A CN105323653A CN 105323653 A CN105323653 A CN 105323653A CN 201410384598 A CN201410384598 A CN 201410384598A CN 105323653 A CN105323653 A CN 105323653A
Authority
CN
China
Prior art keywords
video
frame
fragment
original position
compensation
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.)
Granted
Application number
CN201410384598.9A
Other languages
Chinese (zh)
Other versions
CN105323653B (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.)
Founder International Co Ltd
Founder International Beijing Co Ltd
Original Assignee
Founder International Co Ltd
Founder International Beijing 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 Founder International Co Ltd, Founder International Beijing Co Ltd filed Critical Founder International Co Ltd
Priority to CN201410384598.9A priority Critical patent/CN105323653B/en
Publication of CN105323653A publication Critical patent/CN105323653A/en
Application granted granted Critical
Publication of CN105323653B publication Critical patent/CN105323653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention relates to the technical field of streaming media, in particular to a method and equipment for playing a video clip, and solves a problem in the prior art that a video clip playing manner cannot ensure that a video is played from an exact assigned position. The method comprises: requesting a compensated video and specific video data of the video clip required to be played in an entire video from a video stream media server through playing equipment according to a corresponding relation between the video clip and the compensated video; determining the length of the compensated video to be played according to the received compensated video and a specific video; and playing the specific video after the compensated video with the determined length is played. According to the method provided by the embodiment of the invention, through the combined playing manner of the specific video and the compensated video corresponding to the video clip, the problem in the prior art that through the video stream media server and a video player, the video clip in the entire video cannot be played from the exact position of an appointed reference position frame is solved.

Description

A kind of method and apparatus of plays clip video
Technical field
The present invention relates to stream media technology field, particularly relate to a kind of method and apparatus of plays clip video.
Background technology
Along with the high speed development of the Internet and the fast lifting of bandwidth, online viewing Internet video becomes important consumption pattern.In the mode of online viewing Internet video, the pattern that a class of existence is important: with the form of fragmentation play from the beginning to the end by complete broadcasting and program fragment wherein for one whole section of complete video frequency program.With news program citing, the news hookup of 30 minutes is a complete program video, and every news item wherein becomes program fragment again, and consumer can watch complete programs or only watch wherein wall scroll news.
In order to realize said process, a kind of current method is: the method for carrying out the program fragment getting notation methods ready to identify wherein on whole section of video, notation methods mark fragment is got in use ready, allow player from specify get the place of mark ready play, the method solves the problem that backstage real data needs repeated storage.But because video compression storage exists the feature of the dissimilar frame of i, b, p, wherein i frame is whole frame, be also called key frame, can reproduce by independent completion, and b frame and p frame are all variance data frames, only record the difference section data of this frame and front frame, therefore the reproduction of b frame and p frame depends on the data of previous frame, can not independently reproduce.When displaying video fragment, player directly can only use the data of i frame in starting point, directly can not use the data of b frame or p frame, and this mode getting mark broadcasting ready cannot ensure to specify starting point to be i frame, if get mark ready to b frame or p frame, just can not read the data getting position ready, nearest i frame can only be read forward or backward, the video segment play is caused to occur the phenomenon of replay or broadcast leakage, therefore also just cannot play from accurate assigned address, can only play from a general original position.
In sum, the broadcast mode of current video segment cannot ensure that video can be play from accurate assigned address.
Summary of the invention
The invention provides a kind of method and apparatus of plays clip video, cannot ensure in order to solve in prior art the broadcast mode that there is video segment the problem that video can be play from accurate assigned address.
Embodiments provide a kind of method of plays clip video, comprising:
Playback equipment is according to fragment video and the corresponding relation compensating video, the compensation video of the fragment video play is needed in video stream server request whole section of video, and particular video frequency data, wherein particular video frequency data are one section of fragment videos in whole section of video, and the original position frame of described particular video frequency is an i frame after the fragment original position frame needing to play, the end position frame of described particular video frequency is the end position frame needing the fragment video play;
Described playback equipment, according to the described compensation video received and described particular video frequency, determines the length playing described compensation video;
Described playback equipment, after the described compensation video of length is determined in broadcasting, plays described particular video frequency;
Wherein, the original position frame of the compensation video that described fragment video is corresponding is the i frame produced according to the original position frame correspondence of described fragment video, and after the video after the original position frame of described compensation video is the original position frame being positioned at described fragment video in whole section of video, and the one section video adjacent with the original position frame of described fragment video.
Due to the embodiment of the present invention broadcast mode combined that utilizes fragment video to compensate video and particular video frequency accordingly, thus solve in prior art the problem using generic video streaming media server and video player the fragment video in whole section of video accurately cannot be play from the position of the original position frame of specifying, and improve exploitativeness.
Preferably, the method also comprises:
Described playback equipment, according to fragment video and the corresponding relation compensating video, after determining to need the fragment video play not have corresponding compensation video, needs the fragment video play to described video stream server request;
The fragment video received play by described playback equipment.
Because playback equipment is according to fragment video and the corresponding relation compensating video, after determining to need the fragment video play not compensate video, is operating accordingly, decreasing the step of operation, saving the time of operation.
Preferably, the length of described compensation video is not less than N* (maximum spacing of i frame);
Wherein, N >=2.
Preferably, if the original position frame of described fragment video is p frame or b frame, then the original position frame of the compensation video that described fragment video is corresponding is the i frame generated according to these position frame data of whole section of video.
This is due to the video stream server video that can not to obtain with b frame or p frame be original position, and the data that therefore to need original position frame be b frame or p frame compensate and generate corresponding i frame.
Preferably, if the frame on the position of [needing the maximum spacing of the original position frame+i frame of the described fragment video play] is i frame, then the original position frame of described particular video frequency is the i frame on this position;
If the frame on the position of [needing the maximum spacing of original position frame+i frame of the described fragment video play] is p frame or b frame, then the original position frame of described particular video frequency is first i frame before or after described p frame or b frame.
This is due to the video stream server video that can not to obtain with b frame or p frame be original position, therefore when obtaining particular video frequency, if the frame on the position of [needing the maximum spacing of original position frame+i frame of the described fragment video play] is p frame or b frame, then the original position frame of described particular video frequency is just first i frame before or after described p frame or b frame.
Preferably, described playback equipment, according to the described compensation video received and described particular video frequency, is determined the length playing described compensation video, being comprised:
Described playback equipment by the duration between the position of the original position frame of described compensation video and the position of the original position frame of described particular video frequency, as playing the length of described compensation video.
This is owing to only having when the playout length compensating video is when compensating the duration between the position of original position frame of video and the position of the original position frame of particular video frequency, just can make to need the fragment video play to realize complete continuous print to play, and there will not be the phenomenon broadcast of replaying or break.
The equipment embodiments providing a kind of plays clip video comprises:
Request module, for the corresponding relation according to fragment video and compensation video, the compensation video of the fragment video play is needed in video stream server request whole section of video, and particular video frequency data, wherein particular video frequency data are one section of fragment videos in whole section of video, and the original position frame of described particular video frequency is an i frame after the fragment original position frame needing to play, the end position frame of described particular video frequency is the end position frame needing the fragment video play;
Determination module, for according to the described compensation video received and described particular video frequency, determines the length playing described compensation video;
Playing module, for after the described compensation video of length is determined in broadcasting, plays described particular video frequency;
Wherein, the original position frame of the compensation video that described fragment video is corresponding is the i frame produced according to the original position frame correspondence of described fragment video, and after the video after the original position frame of described compensation video is the original position frame being positioned at described fragment video in whole section of video, and the one section video adjacent with the original position frame of described fragment video.
Preferably, this equipment also comprises:
Processing module, for according to fragment video and the corresponding relation compensating video, after determining to need the fragment video play not have corresponding compensation video, needs the fragment video play to described video stream server request; Play the fragment video received.
Preferably, the length of described compensation video is not less than N* (maximum spacing of i frame);
Wherein, N >=2.
Preferably, if the original position frame of described fragment video is p frame or b frame, then the original position frame of the compensation video that described fragment video is corresponding is the i frame generated according to these position frame data of whole section of video.
Preferably, if the frame on the position of [needing the maximum spacing of the original position frame+i frame of the described fragment video play] is i frame, then the original position frame of described particular video frequency is the i frame on this position;
If the frame on the position of [needing the maximum spacing of original position frame+i frame of the described fragment video play] is p frame or b frame, then the original position frame of described particular video frequency is first i frame before or after described p frame or b frame.
Preferably, described playback equipment, according to the described compensation video received and described particular video frequency, is determined the length playing described compensation video, being comprised:
Described playback equipment by the duration between the position of the original position frame of described compensation video and the position of the original position frame of described particular video frequency, as playing the length of described compensation video.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method for the embodiment of the present invention one plays clip video;
Compensation video when Fig. 2 is N=1.5 generates situation schematic diagram;
Fig. 3 is the ad-hoc location schematic diagram of fragment video;
Fig. 4 is ad-hoc location to be generated when being [position+2* (maximum spacing of i frame) of the original position frame of this fragment video] and correspondingly compensates video situation schematic diagram;
The corresponding situation schematic diagram compensating video is generated when Fig. 5 is N=2;
Fig. 6 is the schematic flow sheet that the embodiment of the present invention two generates the method compensating video;
Fig. 7 is the schematic flow sheet of the method for the embodiment of the present invention three plays clip video;
Fig. 8 is the equipment schematic diagram of the embodiment of the present invention four plays clip video.
Embodiment
The embodiment provides a kind of method of plays clip video, playback equipment is according to fragment video and the corresponding relation compensating video, the compensation video of the fragment video play is needed in video stream server request whole section of video, and (namely [maximum spacing of the position+i frame of the original position frame of this fragment video] is if i frame position from the i frame nearest with [maximum spacing of the position+i frame of the original position frame of this fragment video] positional distance to ask whole section of video, then nearest with [maximum spacing of the position+i frame of the original position frame of this fragment video] positional distance i frame is itself, otherwise, the i frame nearest with [maximum spacing of the position+i frame of the original position frame of this fragment video] positional distance is first i frame before or after [maximum spacing of the position+i frame of the original position frame of this fragment video] position) after the particular video frequency data that start, the compensation video determining length first play by playback equipment, play particular video frequency again, wherein playing the length compensating video is compensate the duration between the position of original position frame of video and the position of the original position frame of particular video frequency.This technical scheme consider the original position frame of fragment video be b frame or p frame time, the fragment video that it is original position frame that video stream server cannot obtain with this frame, the fragment video that can only to obtain with i frame be original position frame, by compensate the mode of video can make video stream server obtain when original position frame be b frame or p frame time fragment video, thus achieve plays clip video from original position frame accurately, and improve exploitativeness.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
As shown in Figure 1, the method for the embodiment of the present invention one plays clip video, comprising:
Step 100, playback equipment is according to fragment video and the corresponding relation compensating video, the compensation video of the fragment video play is needed in video stream server request whole section of video, and particular video frequency data, wherein particular video frequency data are one section of fragment videos in whole section of video, and the original position frame of described particular video frequency is an i frame after the fragment original position frame needing to play, the end position frame of described particular video frequency is the end position frame needing the fragment video play;
Step 101, described playback equipment, according to the described compensation video received and described particular video frequency, determines the length playing described compensation video;
Step 102, described playback equipment, after the described compensation video of length is determined in broadcasting, plays described particular video frequency;
Wherein, the original position frame of the compensation video that described fragment video is corresponding is the i frame produced according to the original position frame correspondence of described fragment video, and after the video after the original position frame of described compensation video is the original position frame being positioned at described fragment video in whole section of video, and the one section video adjacent with the original position frame of described fragment video.
Play the method for sheet frequency range video according to an embodiment of the invention, two kinds of situations can be divided into, situation one: by judging whether the original position frame of the required fragment video play is i frame, if b frame or p frame then generate compensate video accordingly, if i frame does not then generate compensation video;
Situation two: no matter the original position frame of fragment video is b frame, p frame or i frame all generate and compensate video accordingly.
Wherein, the method playing segment video is situation a period of time:
Preferably, if the original position frame of described fragment video is b frame or p frame, then the original position frame of the compensation video that described fragment video is corresponding is the i frame of the data genaration according to whole section of this position frame of video.
This is because video stream server cannot obtain the broadcasting segment video that original position frame is b frame or p frame position, the fragment video that can only to obtain with i frame be original position frame, so when original position frame be b frame or p frame time, need to generate corresponding i frame according to b frame or p frame, just can make the fragment video of video stream server acquisition from original position frame.
Specifically determined by disclosed MPEG video data compaction coding standard according to the mode of b frame or p frame generation i frame.
Preferably, the length of described compensation video is not less than N* (maximum spacing of i frame);
Wherein, N >=2.
Be described with the span of concrete example to N below.
As shown in Figure 2, wherein, A point represents the original position frame b frame of fragment video or the position of p frame, B point represents the position of the end position frame of fragment video, line segment AB represents one section of fragment video, A' represents the position of the original position frame b frame of fragment video or the i frame of p frame generation correspondence, C' representative compensates the position of the end position frame of video, C is [maximum spacing of the position+i frame of the original position frame of this fragment video] position of video stream media request, and D is the position of first i frame before or after C position.
As N=1.5, if position D is the position of first i frame before C position, then after playing compensation video, plays particular video frequency, fragment video can be made to realize complete broadcasting; If position D is the position of first i frame after C position, and during i frame maximum spacing beyond 0.5 times, after playing compensation video, play particular video frequency, just there will be the discontinuous phenomenon of fragment video playback, this is due to after the position C being played to the end position frame compensating video, does not also arrive the original position D that particular video frequency is play, video between CD cannot be play, thus cause occurring the discontinuous phenomenon of fragment video playback.That is, the minimum value of N is 2.
Because the maximum spacing between the position at particular video frequency initial i frame place and [maximum spacing of the position+i frame of the original position frame of this fragment video] position C of video stream media request is no more than one [maximum spacing of i frame], so as N=2, no matter position D to be the position of first i frame before C position or the position of first i frame afterwards can make video can be continuous whole play.
Analysis according to above: 2 is the minimum value of N, and the data volume that time under the prerequisite that can reach same effect, N gets shared by 2 is minimum.
[i frame maximum spacing] is the parameter characteristic of transcoding device, represents the largest interval frame number between video two i frames that this transcoding device generates or time.[maximum spacing of i frame] can need setting according to the performance of the transcoding device for generating video data or user.Such as transcoder support setting [maximum spacing of i frame] is 2s or other times.
Concrete, generate the equipment of compensation video by the b frame in fragment video original position or p frame completion data genaration i frame, and by transcoder from the original position frame of fragment video, copy the video data of one section of N* (maximum spacing of i frame), this segment data is become can the compensation video of independent play-out.
In step 100, playback equipment needs the compensation video of the fragment video play in video stream server request whole section of video, and during particular video frequency data, can will the identification notification of the fragment video play be needed to video stream server, and the ad-hoc location that is used for the original position determining particular video frequency data is informed to video stream server.
In force, playback equipment also can only will need the identification notification of the fragment video play to video stream server, and ad-hoc location can set in advance, as long as the mark that such video stream server receives fragment video just according to the ad-hoc location preset, can determine the original position of particular video frequency data.
The mark of fragment video can be each fragment video distribution one mark when generating fragment video.
Preferably, ad-hoc location can be [maximum spacing of the position+i frame of the original position frame of this fragment video].
For Fig. 3, wherein A represents the original position frame position of fragment video, B represents the end position frame position of fragment video, line segment AB represents one section of fragment video, video stream server is after receiving ad-hoc location C, if the frame on ad-hoc location C is i frame, then the original position being set to particular video frequency with this i framing bit starts to play;
If the frame on ad-hoc location C is not i frame, then video stream server obtains an i frame nearest with the frame on ad-hoc location C forward or backward, namely this i frame is first i frame before or after ad-hoc location C, and with the position D of this i frame for original position starts to play.
Based on this, when ad-hoc location is [maximum spacing of the position+i frame of the original position frame of this fragment video], N gets any value being not less than 2 and meets the demands.If ad-hoc location is not [maximum spacing of the position+i frame of the original position frame of this fragment video], then the value of N can carry out corresponding increase according to ad-hoc location.
When ad-hoc location is not [maximum spacing of the position+i frame of the original position frame of this fragment video], be described for [position+2* (maximum spacing of i frame) of the original position frame of this fragment video] below, then ad-hoc location is [position+M* (maximum spacing of i frame) of the original position frame of this fragment video], similar when M is any multiple and the M=2 of i frame maximum spacing, do not repeat them here.
As shown in Figure 4, the corresponding situation compensating video is generated when ad-hoc location is [position+2* (maximum spacing of i frame) of the original position frame of this fragment video].
Wherein, A point represents the original position frame b frame of fragment video or the position of p frame, B point represents the position of the end position frame of fragment video, line segment AB represents one section of fragment video, A' represents the position of the original position frame b frame of fragment video or the i frame of p frame generation correspondence, C' representative compensates the position of the end position frame of video, C is [position+2* (maximum spacing of i frame) of the original position frame of this fragment video] position of video stream media request, D is the position of the immediate i frame with C position, namely D position is the position of first i frame before or after C position.
The maximum spacing of the position at first i frame place before or after [position+2* (maximum spacing of i frame) of the original position frame of this fragment video] position of the request obtained due to video stream server and [position+2* (maximum spacing of i frame) of the original position frame of this fragment video] position of asking is no more than the maximum spacing of an i frame, and play from the position that A' represents the original position frame b frame of fragment video or the i frame of p frame generation correspondence, therefore N value is minimum gets 3.
When ad-hoc location is [maximum spacing of the position+i frame of the original position frame of this fragment video], N gets any value being not less than 2 and meets the demands.
Be described for N=2 below, N be not less than 2 other values and N=2 similar, do not repeat them here.
As shown in Figure 5, the corresponding situation compensating video is generated as N=2.
Wherein, A point represents the original position frame b frame of fragment video or the position of p frame, B point represents the position of the end position frame of fragment video, line segment AB represents one section of fragment video, A' represents the position of the original position frame b frame of fragment video or the i frame of p frame completion data genaration, C' representative compensates the position of the end position frame of video, C is [maximum spacing of the position+i frame of the original position frame of this fragment video] position of video stream media request, D is the position of the immediate i frame with C position, and namely D position is the position of first i frame before or after C position.
When frame on [maximum spacing of the position+i frame of the original position frame of this fragment video] position of video stream server request is not i frame, the video data that the i frame on immediate D position with it starts will be obtained forward or backward, the video data that the position D namely obtaining first i frame before or after [maximum spacing of the position+i frame of the original position frame of this fragment video] position starts, compensate video and be then played to D position from A' position, then the video after plays clip video D position, when frame on [maximum spacing of the position+i frame of the original position frame of this fragment video] position of video stream media request is i frame, then D and C position overlaps, compensate video and be then played to C or D position from A' position, then the video after plays clip video C or D position, also can realize as N > 2, but corresponding required memory space increases, therefore be optimum situation as N=2.
Preferably, if the frame on the position of [needing the maximum spacing of the position+i frame of the original position frame of the described fragment video play] is i frame, then the original position frame of described particular video frequency is the i frame on this position;
If the frame on the position of [needing the maximum spacing of position+i frame of the original position frame of the described fragment video play] is p frame or b frame, then the original position frame of described particular video frequency is first i frame before or after described p frame or b frame.
This is that b frame or p frame start segment video because video stream server cannot obtain original position frame, can only obtain the fragment video started with i frame.
Preferably, described playback equipment, according to the described compensation video received and described particular video frequency, is determined the length playing described compensation video, being comprised:
Described playback equipment by the duration between the position of the original position frame of described compensation video and the position of the original position frame of described particular video frequency, as playing the length of described compensation video.
As can be seen from Figure 5, when frame on [maximum spacing of the position+i frame of the original position frame of this fragment video] position C of video stream media request is i frame, C and D overlaps, then play the length between position A' and C or D that the length compensating video is the original position frame b frame of fragment video or the i frame of p frame completion data genaration; When frame on [maximum spacing of the position+i frame of the original position frame of this fragment video] position C of video stream media request is not i frame, play the length compensated between position A' and D that the length of video is the original position frame b frame of fragment video or the i frame of p frame completion data genaration.
Preferably, if the original position frame of described fragment video is i frame, then compensation video is not generated.Described playback equipment, according to fragment video and the corresponding relation compensating video, after determining to need the fragment video play not have corresponding compensation video, needs the fragment video play to described video stream server request;
The fragment video received play by described playback equipment.
When the original position frame of fragment video is i frame, video stream server can obtain the segment video from this frame, therefore also can accurately play from the position of original position frame without the need to compensating video.
When the method for broadcasting segment video is situation two:
Preferably, if the original position frame of described fragment video is b frame or p frame, then the original position frame of the compensation video that described fragment video is corresponding is the i frame of the data genaration according to whole section of this position frame of video.
Situation two is to be with the difference of situation one: in situation one, generate the equipment compensating video need judge accordingly to the original position frame of segment video, when the original position frame of fragment video is i frame, this fragment video does not then compensate video accordingly, only have the original position frame when fragment video be b frame or p frame time, this fragment video just has and compensates video accordingly; In situation two, no matter the original position frame of fragment video be i frame, b frame or p frame has corresponding compensation video, therefore without the need to judging the original position frame of fragment video.
Situation one, compared with situation two, adds the step of judgement, the time run is increased, but decreases memory space used; Corresponding situation two compared with situation one, then decreases the step of judgement, has corresponding minimizing running time, but adds memory space.
Therefore, user can therefrom select, concerning preferably scheme self, as worked as limited storage space, and during not free restriction, to adopt the scheme in situation two comparatively appropriate according to demand; And when memory space is limited, when the time is urgent again, the scheme adopting situation a kind of is comparatively reasonable.
As shown in Figure 6, the method for the embodiment of the present invention two generation compensation video comprises:
Step 600, generation compensate the equipment of video from the whole section of video of editing same original video stream and multiple fragment video, record whole section of video to put and the first final position relative to the first start bit of original video stream, and each fragment video is put and the first final position relative to the first start bit of original video stream.
The equipment that step 601, generation compensate video is put and the first final position relative to the first start bit of original video stream according to whole section of video, and fragment video is put and the first final position relative to the first start bit of original video stream, determine that each fragment video is relative to the second original position of whole section of video and the second final position.
Step 602, generate compensate video equipment according to each fragment video relative to the second original position of whole section of video and the second final position, on whole section of video, marked the second original position and second final position of each fragment video by the mode getting mark ready.
Step 603, for a fragment video, generate and compensate the equipment of video and judge whether the second original position of this fragment video is i frame; If the second original position of this fragment video is b frame or p frame, then perform step 604; If the second original position of this fragment video is i frame, then perform step 606.
Step 604, generate and compensate the equipment of video by transcoder from the second original position of whole section of video, copy the video data that one section of shortest length is 2* (maximum spacing of i frame), and by the b frame on start position or p frame completion data genaration i frame, making this segment data become can the compensation video of independent play-out.(wherein i frame maximum spacing is the parameter characteristic of transcoding device, represents the largest interval frame number between video two i frames that this transcoding device generates or time)
Step 605, generate the equipment compensating video the second original position of whole section of video, compensation video that fragment video is corresponding, fragment video and the second final position are supplied to video stream server, and process ends.
Second original position of whole section of video, fragment video and the second final position are supplied to video stream server by the equipment that step 606, generation compensate video, and process ends.
As shown in Figure 7, the method for the embodiment of the present invention three plays clip video comprises:
Step 700, playback equipment, according to fragment video and the corresponding relation compensating video, judge to need the fragment video play whether to have corresponding compensation video, if had, then perform step 701; Otherwise, perform step 705.
Step 701, playback equipment need to video stream server request the compensation video that the fragment video of broadcasting is corresponding, and ask the particular video frequency data of whole section of video from the i frame that [maximum spacing of the second original position+i frame of this fragment] positional distance is nearest.
Wherein, the particular video frequency data that the i frame that [maximum spacing of the second original position+i frame of this fragment] positional distance is nearest starts are the particular video frequency data that first i frame before or after [maximum spacing of the second original position+i frame of this fragment] position starts.
Step 702, video stream server return compensation video corresponding to this fragment video and particular video frequency data according to the request received to playback equipment.
The alternate position spike of second original position relative to whole section of video of the particular video frequency data that this fragment returns relative to the second original position and the video stream server of whole section of video determined by step 703, playback equipment.As the playout length compensating video.
Step 704, playback equipment are play and are compensated after the length of video equals alternate position spike, continue to play particular video frequency data, and process ends.
Step 705, playback equipment are to the particular video frequency data of video stream server request whole section of video from this fragment second original position.
Step 706, video stream server return the video data of whole section of video from this fragment second original position according to the request received to playback equipment.
The fragment video needing to play play by step 707, playback equipment, and process ends.
Based on same inventive concept, a kind of equipment of plays clip video is additionally provided in the embodiment of the present invention, because the method that the function of the processing module of embodiment of the present invention plays clip video equipment is corresponding is generate the method compensating video, the method that the equipment of the plays clip video of the embodiment of the present invention of Fig. 8 is corresponding is the method for plays clip video, therefore the enforcement of embodiment of the present invention equipment see the enforcement of method, can repeat part and repeats no more.
As shown in Figure 8, the equipment of the embodiment of the present invention four plays clip video comprises:
Request module 800, for the corresponding relation according to fragment video and compensation video, the compensation video of the fragment video play is needed in video stream server request whole section of video, and particular video frequency data, wherein particular video frequency data are one section of fragment videos in whole section of video, and the original position frame of described particular video frequency is an i frame after the fragment original position frame needing to play, the end position frame of described particular video frequency is the end position frame needing the fragment video play;
Determination module 801, for according to the described compensation video received and described particular video frequency, determines the length playing described compensation video;
Playing module 802, for after the described compensation video of length is determined in broadcasting, plays described particular video frequency;
Wherein, the original position frame of the compensation video that described fragment video is corresponding is the i frame produced according to the original position frame correspondence of described fragment video, and after the video after the original position frame of described compensation video is the original position frame being positioned at described fragment video in whole section of video, and the one section video adjacent with the original position frame of described fragment video.
Preferably, this equipment also comprises:
Processing module 803, for according to fragment video and the corresponding relation compensating video, after determining to need the fragment video play not have corresponding compensation video, needs the fragment video play to described video stream server request; Play the fragment video received.
Preferably, the length of described compensation video is not less than N* (maximum spacing of i frame);
Wherein, N >=2.
Preferably, if the original position frame of described fragment video is p frame or b frame, then the original position frame of the compensation video that described fragment video is corresponding is the i frame generated according to these position frame data of whole section of video.
Preferably, if the frame on the position of [needing the maximum spacing of the original position frame+i frame of the described fragment video play] is i frame, then the original position frame of described particular video frequency is the i frame on this position;
If the frame on the position of [needing the maximum spacing of original position frame+i frame of the described fragment video play] is p frame or b frame, then the original position frame of described particular video frequency is first i frame before or after described p frame or b frame.
Preferably, described playback equipment, according to the described compensation video received and described particular video frequency, is determined the length playing described compensation video, being comprised:
Described playback equipment by the duration between the position of the original position frame of described compensation video and the position of the original position frame of described particular video frequency, as playing the length of described compensation video.
In addition, request module 800 can also will need the identification notification of the fragment video play to video stream server, and the ad-hoc location that is used for the original position determining particular video frequency data is informed to video stream server;
Processing module 803 can also generate compensation video.
It can be seen from the above: the method for embodiment of the present invention plays clip video according to an embodiment of the invention, utilize playback equipment according to fragment video and the corresponding relation compensating video, video is compensated accordingly to video stream server request fragments video, and (namely [maximum spacing of the position+i frame of the original position frame of this fragment video] is if i frame position from the i frame nearest with [maximum spacing of the position+i frame of the original position frame of this fragment video] positional distance to ask whole section of video, then nearest with [maximum spacing of the position+i frame of the original position frame of this fragment video] positional distance i frame is itself, otherwise, the i frame nearest with [maximum spacing of the position+i frame of the original position frame of this fragment video] positional distance is first i frame before or after [maximum spacing of the position+i frame of the original position frame of this fragment video] position) after the particular video frequency data that start, compensation video first play by playback equipment, with the duration between the position of the original position frame of the position and particular video frequency that compensate the original position frame of video for compensating video playback length, play particular video frequency afterwards.This kind of technical scheme achieves plays clip video from original position frame accurately by the mode compensating video, and improves exploitativeness, solves the problem accurately can not play from assigned address in fragment video playback.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. a method for plays clip video, is characterized in that, the method comprises:
Playback equipment is according to fragment video and the corresponding relation compensating video, the compensation video of the fragment video play is needed in video stream server request whole section of video, and particular video frequency data, wherein particular video frequency data are one section of fragment videos in whole section of video, and the original position frame of described particular video frequency is an i frame after the fragment original position frame needing to play, the end position frame of described particular video frequency is the end position frame needing the fragment video play;
Described playback equipment, according to the described compensation video received and described particular video frequency, determines the length playing described compensation video;
Described playback equipment, after the described compensation video of length is determined in broadcasting, plays described particular video frequency;
Wherein, the original position frame of the compensation video that described fragment video is corresponding is the i frame produced according to the original position frame correspondence of described fragment video, and after the video after the original position frame of described compensation video is the original position frame being positioned at described fragment video in whole section of video, and the one section video adjacent with the original position frame of described fragment video.
2. the method for claim 1, is characterized in that, the method also comprises:
Described playback equipment, according to fragment video and the corresponding relation compensating video, after determining to need the fragment video play not have corresponding compensation video, needs the fragment video play to described video stream server request;
The fragment video received play by described playback equipment.
3. the method for claim 1, is characterized in that, the length of described compensation video is not less than N* (maximum spacing of i frame);
Wherein, N >=2.
4. the method for claim 1, is characterized in that, if the original position frame of described fragment video is p frame or b frame, then the original position frame of the compensation video that described fragment video is corresponding is the i frame generated according to these position frame data of whole section of video.
5. the method for claim 1, is characterized in that, if the frame on the position of [needing the maximum spacing of the original position frame+i frame of the described fragment video play] is i frame, then the original position frame of described particular video frequency is the i frame on this position;
If the frame on the position of [needing the maximum spacing of original position frame+i frame of the described fragment video play] is p frame or b frame, then the original position frame of described particular video frequency is first i frame before or after described p frame or b frame.
6. the method for claim 1, is characterized in that, described playback equipment, according to the described compensation video received and described particular video frequency, is determined the length playing described compensation video, being comprised:
Described playback equipment by the duration between the position of the original position frame of described compensation video and the position of the original position frame of described particular video frequency, as playing the length of described compensation video.
7. an equipment for plays clip video, is characterized in that, this equipment comprises:
Request module, for the corresponding relation according to fragment video and compensation video, the compensation video of the fragment video play is needed in video stream server request whole section of video, and particular video frequency data, wherein particular video frequency data are one section of fragment videos in whole section of video, and the original position frame of described particular video frequency is an i frame after the fragment original position frame needing to play, the end position frame of described particular video frequency is the end position frame needing the fragment video play;
Determination module, for according to the described compensation video received and described particular video frequency, determines the length playing described compensation video;
Playing module, for after the described compensation video of length is determined in broadcasting, plays described particular video frequency;
Wherein, the original position frame of the compensation video that described fragment video is corresponding is the i frame produced according to the original position frame correspondence of described fragment video, and after the video after the original position frame of described compensation video is the original position frame being positioned at described fragment video in whole section of video, and the one section video adjacent with the original position frame of described fragment video.
8. equipment as claimed in claim 7, it is characterized in that, this equipment also comprises:
Processing module, for according to fragment video and the corresponding relation compensating video, after determining to need the fragment video play not have corresponding compensation video, needs the fragment video play to described video stream server request; Play the fragment video received.
9. equipment as claimed in claim 7, it is characterized in that, the length of described compensation video is not less than N* (maximum spacing of i frame);
Wherein, N >=2.
10. equipment as claimed in claim 7, is characterized in that, if the original position frame of described fragment video is p frame or b frame, then the original position frame of the compensation video that described fragment video is corresponding is the i frame generated according to these position frame data of whole section of video.
11. equipment as claimed in claim 7, is characterized in that, if the frame on the position of [needing the maximum spacing of the original position frame+i frame of the described fragment video play] is i frame, then the original position frame of described particular video frequency is the i frame on this position;
If the frame on the position of [needing the maximum spacing of original position frame+i frame of the described fragment video play] is p frame or b frame, then the original position frame of described particular video frequency is first i frame before or after described p frame or b frame.
12. equipment as claimed in claim 7, is characterized in that, described playback equipment, according to the described compensation video received and described particular video frequency, is determined the length playing described compensation video, being comprised:
Described playback equipment by the duration between the position of the original position frame of described compensation video and the position of the original position frame of described particular video frequency, as playing the length of described compensation video.
CN201410384598.9A 2014-08-05 2014-08-05 A kind of method and apparatus playing segment video Active CN105323653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410384598.9A CN105323653B (en) 2014-08-05 2014-08-05 A kind of method and apparatus playing segment video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410384598.9A CN105323653B (en) 2014-08-05 2014-08-05 A kind of method and apparatus playing segment video

Publications (2)

Publication Number Publication Date
CN105323653A true CN105323653A (en) 2016-02-10
CN105323653B CN105323653B (en) 2019-05-31

Family

ID=55250108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410384598.9A Active CN105323653B (en) 2014-08-05 2014-08-05 A kind of method and apparatus playing segment video

Country Status (1)

Country Link
CN (1) CN105323653B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197372A (en) * 2017-06-30 2017-09-22 北京金山安全软件有限公司 Method and device for shearing batch vertical screen videos and electronic equipment
CN107277606A (en) * 2017-07-06 2017-10-20 浙江华创视讯科技有限公司 Video data generation method and device in a kind of streaming storage

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572523A (en) * 2010-12-30 2012-07-11 新奥特(北京)视频技术有限公司 Method and system for downloading video by dotting on line
CN103596016A (en) * 2013-11-20 2014-02-19 韩巍 Multimedia video data processing method and device
CN104240741A (en) * 2013-06-07 2014-12-24 杭州海康威视数字技术股份有限公司 Method for performing video dotting and searching in video recording, and video recording equipment thereof
CN104980808A (en) * 2015-07-06 2015-10-14 无锡天脉聚源传媒科技有限公司 Method and device for accurately dotting video resources
CN104994435A (en) * 2015-07-06 2015-10-21 无锡天脉聚源传媒科技有限公司 Method and device for accurately dotting video resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572523A (en) * 2010-12-30 2012-07-11 新奥特(北京)视频技术有限公司 Method and system for downloading video by dotting on line
CN104240741A (en) * 2013-06-07 2014-12-24 杭州海康威视数字技术股份有限公司 Method for performing video dotting and searching in video recording, and video recording equipment thereof
CN103596016A (en) * 2013-11-20 2014-02-19 韩巍 Multimedia video data processing method and device
CN104980808A (en) * 2015-07-06 2015-10-14 无锡天脉聚源传媒科技有限公司 Method and device for accurately dotting video resources
CN104994435A (en) * 2015-07-06 2015-10-21 无锡天脉聚源传媒科技有限公司 Method and device for accurately dotting video resources

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197372A (en) * 2017-06-30 2017-09-22 北京金山安全软件有限公司 Method and device for shearing batch vertical screen videos and electronic equipment
CN107197372B (en) * 2017-06-30 2019-12-27 北京金山安全软件有限公司 Method and device for shearing batch vertical screen videos and electronic equipment
CN107277606A (en) * 2017-07-06 2017-10-20 浙江华创视讯科技有限公司 Video data generation method and device in a kind of streaming storage
CN107277606B (en) * 2017-07-06 2020-02-14 浙江华创视讯科技有限公司 Method and device for generating video data in streaming storage

Also Published As

Publication number Publication date
CN105323653B (en) 2019-05-31

Similar Documents

Publication Publication Date Title
TWI788744B (en) Dynamic reduction in playout of replacement content to help align end of replacement content with end of replaced content
EP2991341A1 (en) Video playback method, media device, playback device, and multimedia system
CN102664032B (en) A kind of playing progress rate adjustment bar of direct broadcast time-shift and control method thereof
US20060112411A1 (en) Content using apparatus, content using method, distribution server apparatus, information distribution method, and recording medium
CN105025319A (en) Video pushing method and device
CN105323653A (en) Method and equipment for playing video clip
WO2021065605A1 (en) Information processing device and information processing method
WO2019085243A1 (en) Audio and video data playback method and server and client terminal
CN101459976B (en) Method, equipment and system for stream media playing control
JP6269734B2 (en) Movie data editing device, movie data editing method, playback device, and program
CN104822087A (en) Processing method and apparatus of video segment
JP2006191186A (en) Reproduction system for content, reproducing device, and reproducing method, and distributing server
JP2012253559A (en) Recording/reproducing system and control method therefor
WO2014065165A1 (en) Information processing device, information processing method and program, and information processing system
EP2426941A1 (en) Content replay system, control device and replay device
CN112887786B (en) Video playing method and device and computer readable medium
CN104683882A (en) Generation and play method and device for multiple speed file of stream medium
KR100715496B1 (en) Method for dividing and transmitting media file and Apparatus thereof
US20090260048A1 (en) Method of providing content and content providing apparatus, and method of reproducing content and content reproducing apparatus
KR101838608B1 (en) Multi play synchronization apparatus and control method thereof, contents play program
CN110366021B (en) Multimedia resource storage method, device, equipment and computer storage medium
CN104994430A (en) Method and device for switching play mode
CN106531178B (en) A kind of audio-frequency processing method and device
JP2015064924A (en) Contents reproduction system, controller and reproducer
KR20190134542A (en) Multi window system having editor for reaction video and method for making reaction video using the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant