CN103581741B - Special effect play equipment and method - Google Patents

Special effect play equipment and method Download PDF

Info

Publication number
CN103581741B
CN103581741B CN201210262783.1A CN201210262783A CN103581741B CN 103581741 B CN103581741 B CN 103581741B CN 201210262783 A CN201210262783 A CN 201210262783A CN 103581741 B CN103581741 B CN 103581741B
Authority
CN
China
Prior art keywords
frame
video flow
special effect
value
ordinary video
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
CN201210262783.1A
Other languages
Chinese (zh)
Other versions
CN103581741A (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.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics 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 Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201210262783.1A priority Critical patent/CN103581741B/en
Publication of CN103581741A publication Critical patent/CN103581741A/en
Application granted granted Critical
Publication of CN103581741B publication Critical patent/CN103581741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Provide a kind of special effect play method and apparatus.Described method includes: download ordinary video flow;The ordinary video flow downloaded is performed I frame extract;The I frame extracted is used to produce the Media Stream for special effect play.Described method, when server end does not has specially good effect stream, still supports the special effect play of smoothness.

Description

Special effect play equipment and method
Technical field
The present invention relates to a kind of special effect play equipment and method, more particularly, it relates to one is to commonly regarding Frequently stream carries out special effect play equipment and the method for special effect play.
Background technology
At present, in the prior art, each network standard protocol gives specific Streaming Media specially good effect to broadcast The implementation method put, but for reality is applied, these implementation methods have limitation.
As a example by Http adaptive video Flow Technique, mainly study in following application: system Realize and optimize, in video playback, insertion advertisement video, increment obtain MPD(media in real time Presentation description, media presentation description) renewal, the optimization of bitstreams switching, the optimization of bandwidth Deng.But, for special effect play, existing Http adaptive video Flow Technique is only supported to comprise specially good effect (trick) special effect play of the video source flowed, and give relevant in 3GPP and DASH agreement The explanation of MPD, gives the concrete grammar of realization in OIPF agreement.
MPD is the data form of the XML of a kind of standard meeting DASH agreement.Fig. 5 is existing skill The structure chart of the MPD of art.With reference to Fig. 5, MPD according to DASH agreement, by one big section of video file It is divided into the least video segment (Segment), then its URL information is saved in segment nodes use In client-access server, and the fragment of the played in order of identical rate bit stream is placed on same Representation(states) in, carry out bitstreams switching according to different bandwidth.Wherein, exist Whether Representation element comprises@maxPlayoutRate many in order to represent that this element is mapped Whether media content supports the special effect play technology of fast forwarding and fast rewinding.Following present and support special effect play The fragment of MPD:
The specially good effect stream of support special effect play is the media file only including key frame, and wherein, key frame passes through Suitable compression, can be as the reference point of random access, it is possible to as can the unit data of imaging.Can Analyse whether to comprise specially good effect stream by MPD carries out parsing, i.e. the matchmaker that MPD is mapped can be analyzed Whether body file supports special effect play.When receiving the request of fast forwarding and fast rewinding special effect play, correspondence can be downloaded Specially good effect stream, and its timestamp and time clock are processed, thus generate that to meet fast forwarding and fast rewinding special The general video flowing of effect broadcast request is to play out.
Although above-mentioned standard agreement gives the specific implementation method of special effect play, but applies for reality For, there is following problem or deficiency: 1, special effect play need to rely on server and provides specially good effect stream. When makeing mistakes in the source of the specially good effect stream in the source or offer that lack specially good effect stream in the MPD provided, then can not support spy Effect is play.But for video playback, special effect play be relatively based on operation, therefore have the biggest Limitation.2, higher to bandwidth requirement, the fast forwarding and fast rewinding for friction speed operates, it is impossible to according to need Ask, optionally download part of media file, improve speed of download and save bandwidth resources.3, process Time is longer, consumes substantial amounts of CPU and buffer, and the fast forwarding and fast rewinding for friction speed operates, without choosing Selecting property the frame of a large amount of numbers is processed, but to a large amount of numbers for the special effect play of high speed Frame carry out processing and actually have little significance.
Summary of the invention
It is an aspect of the invention to provide a kind of special effect play equipment and method, described special effect play sets In the case of standby and method lacks specially good effect (trick) stream supporting special effect play in the video flowing of source, to general Intervisibility frequency stream carries out processing generation specially good effect stream, to support special effect play.
A kind of special effect play equipment and method, described special effect play are it is another aspect of the invention to provide Equipment and method choice ground carry out part download or all download video media stream, thus improve download Speed and saving bandwidth resources, and reduce the consumption of CPU and taking of buffer.
According to an aspect of the present invention, it is provided that a kind of special effect play method, described method includes: download Ordinary video flow;The ordinary video flow downloaded is performed I frame extract;Use extract I frame produce for The Media Stream of special effect play.
The ordinary video flow downloaded can be the ordinary video flow that rate bit stream is minimum.
The step downloading ordinary video flow comprises the steps that the reproduction time of each fragment in calculating ordinary video flow; Obtain the speed of fast forwarding and fast rewinding special effect play;The numerical value of the numerical value of described reproduction time with described speed is entered Row compares;If the numerical value of described reproduction time is more than or equal to the numerical value of described speed, then to commonly regarding Frequently stream is all downloaded;If the numerical value of described reproduction time is less than the numerical value of described speed, then to general Intervisibility frequency stream carries out part download.
The speed of fast forwarding and fast rewinding special effect play can be default value or be inputted by user.
The step of the Media Stream that generation is used for special effect play comprises the steps that and determines that the I frame to extracting replicates Quantity;The Presentation Time Stamp pts value of the I frame extracted and the I frame of duplication is modified.
The step producing the Media Stream for special effect play comprises the steps that if carried out all downloading, then basis Frame frequency, the length of image sets GOP, described speed determine the quantity replicating the I frame extracted; Download if carried out part, then determine extraction according to frame frequency, described reproduction time, described speed I frame carries out the quantity replicated;The Presentation Time Stamp pts value of the I frame extracted and the I frame of duplication is repaiied Change.
Determine that the step to the quantity that the I frame extracted replicates comprises the steps that if carried out all downloading, The most described quantity=frame frequency × (length of described speed/GOP);Download if carried out part, then described Quantity=frame frequency × (described reproduction time/described speed).
The step modifying the pts value of the I frame extracted and the I frame of duplication comprises the steps that according to formula The sequence number of pts value=initial p TS value+(clock frequency/frame frequency) × current I frame, calculates each I The pts value of frame.
Initial p TS value can be 30000, and clock frequency can be 90000Hz.
May also include that to calculate after the Media Stream of special effect play and be shown to the reality of user producing and regard Frequently content time.
Calculate the step of the actual video content time being shown to user to comprise the steps that according to carrying out specially good effect The first frame pts value of fragment of the Media Stream play and last frame pts value and the speed of special effect play Calculate the actual time of the described fragment being shown to user;Last frame by the Media Stream of normal play Pts value was added with the actual time of described fragment, it is thus achieved that be shown to the actual video content time of user.
Described ordinary video flow can be ordinary video flow based on Http adaptive video Flow Technique.
According to a further aspect in the invention, it is provided that a kind of special effect play equipment, described equipment includes: under Carrier unit, downloads ordinary video flow;I frame extraction unit, performs I frame to the ordinary video flow downloaded and extracts; Specially good effect stream generation unit, uses the I frame extracted to produce the Media Stream for special effect play.
The ordinary video flow downloaded can be the ordinary video flow that rate bit stream is minimum.
Download unit comprises the steps that comparator, calculates the reproduction time of each fragment in ordinary video flow, obtains Obtain the speed of fast forwarding and fast rewinding special effect play, and the numerical value of the numerical value of described reproduction time with described speed is entered Row compares, wherein, if the comparator determine that the numerical value of described reproduction time is more than or equal to described speed Numerical value, then ordinary video flow is all downloaded by download unit;If the comparator determine that during described broadcasting Between numerical value less than the numerical value of described speed, then download unit carries out part download to ordinary video flow.
The speed of fast forwarding and fast rewinding special effect play can be default value or can be inputted by user.
Specially good effect stream generation unit comprises the steps that duplication determiner, determines the number replicating the I frame extracted Amount;Presentation Time Stamp pts value modifier, repaiies the pts value of the I frame extracted and the I frame of duplication Change.
Specially good effect stream generation unit comprises the steps that duplication determiner, if ordinary video flow is carried out by download unit All download, then determine the I frame extracted according to frame frequency, the length of image sets GOP, described speed Carry out the quantity replicated;If download unit carries out part download to ordinary video flow, then according to frame frequency, Described reproduction time, described speed determine the quantity replicating the I frame extracted;Presentation Time Stamp Pts value modifier, modifies to the pts value of the I frame extracted and the I frame of duplication.
If ordinary video flow is all downloaded by download unit, then replicating determiner can be according to following public affairs Formula determines the quantity that replicates of I frame extracted: described quantity=frame frequency × (described speed/GOP Length);If download unit carries out part download to ordinary video flow, then replicate determiner can according to Lower formula determines the quantity that replicates of I frame extracted: described quantity=frame frequency × (described broadcasting Time/described speed).
Presentation Time Stamp pts value modifier can calculate the pts value of each I frame: PTS according to below equation The sequence number of value=initial p TS value+(clock frequency/frame frequency) × current I frame.
Initial p TS value can be 30000, and clock frequency can be 90000Hz.
Described equipment may also include that computing unit actual time, is producing the Media Stream for special effect play Afterwards, calculating is shown to the actual video content time of user.
Actual time, computing unit can be according to the first frame of the fragment of the Media Stream that will carry out special effect play The speed of pts value and last frame pts value and special effect play calculates the described fragment being shown to user Actual time, by the actual time of the last frame pts value of the Media Stream of normal play Yu described fragment It is added, it is thus achieved that be shown to the actual video content time of user.
Described ordinary video flow can be ordinary video flow based on Http adaptive video Flow Technique.
Special effect play method and apparatus according to the present invention solves and does not prop up when server end has specially good effect stream The problem holding special effect play.Special effect play method according to present invention speed as requested is come optionally The process that ground is all downloaded and part is downloaded, on the premise of ensureing higher Consumer's Experience, improves Download efficiency also reduces process complexity, has saved the consumption of CPU and taking of memorizer.
Accompanying drawing explanation
By description embodiments of the invention carried out below in conjunction with accompanying drawing, the present invention these and/or other Aspect and advantage will be made apparent from, and it is more readily appreciated that wherein
Fig. 1 is the block diagram of special effect play equipment according to an embodiment of the invention;
Fig. 2 is the flow chart of the example of the operation of the I frame extraction unit of the special effect play equipment of Fig. 1;
Fig. 3 illustrate the special effect play equipment of Fig. 1 actual time computing unit the example of operation;
Fig. 4 is the flow chart of special effect play method according to an embodiment of the invention;
Fig. 5 is the structure chart of the MPD of prior art.
Detailed description of the invention
Hereinafter, embodiments of the invention are described in detail with reference to the attached drawings so that those of ordinary skill in the art It is more readily understood.State that the inventive embodiment in this actually can comprise various forms, not office at present It is limited to example in this is shown and described.When including that known structure and function may make the common skill in this area When the present invention not could clearly understood by art personnel, in order to clearly, the description to known 26S Proteasome Structure and Function can It is omitted, and in whole description, identical label represents identical element.
Fig. 1 is the block diagram of special effect play equipment according to an embodiment of the invention.
With reference to Fig. 1, according to an embodiment of the invention special effect play equipment 100 include download unit 101, I frame extraction unit 102 and specially good effect stream generation unit 103.
Download unit 101 downloads ordinary video flow by wired or wireless connection from server (not shown). Here, ordinary video flow refers to the video flowing of normal play, and specially good effect (trick) stream is to support specially good effect Playing the video flowing of (such as fast forwarding and fast rewinding broadcasting), wherein, ordinary video flow comprises I, P, B frame, Specially good effect stream only includes I frame.
According to embodiments of the invention, it is minimum that download unit 101 can download code check in all ordinary video flow Video flowing.This strategy is conducive on the premise of not affecting Consumer's Experience, saves bandwidth, improves and downloads Speed.
According to embodiments of the invention, download unit 101 can include comparator 104.Comparator 104 is counted Calculate the reproduction time of each fragment (segment) in ordinary video flow, it is thus achieved that fast forwarding and fast rewinding special effect play Speed, and the numerical value of the numerical value of described reproduction time with described speed is compared.If comparator 104 Determine the numerical value numerical value more than or equal to described speed of described reproduction time, then download unit 101 is to general Intervisibility frequency stream is all downloaded;If comparator 104 determines that the numerical value of described reproduction time is less than described The numerical value of speed, then download unit 101 carries out part download to ordinary video flow.
Such as, the reproduction time of each fragment can be obtained according to the@duration attribute in MPD, its In, described reproduction time with the second (s) as unit.
Described speed refers to the ratio of the speed of fast forwarding and fast rewinding special effect play and the speed of normal play.Such as, One fragment reproduction time under normal playback speed is 10s, and it is under fast forwarding and fast rewinding broadcasting speed Reproduction time is 5s, then speed is 2 times.The speed of fast forwarding and fast rewinding special effect play can be inputted by user, or It can be default value.
As example, if the reproduction time of a fragment is 8s, speed is 4 times, say, that this sheet The special effect play time of section is 2s, only wraps owing to needing to generate from the ordinary video flow comprising I, P, B frame Specially good effect stream containing I frame, and in order to ensure that the specially good effect stream broadcasting pictures number per second generated is more than or equal to 1 (at least one I frame the most per second) thus do not affect Consumer's Experience, therefore, in the special effect play of this fragment Period at least needs 2 I frames the most not affect Consumer's Experience, then need all to download this fragment; If the reproduction time of a fragment is 2s, speed is 4 times, say, that during the special effect play of this fragment Between be 0.5s, according to mentioned above principle, during the special effect play of this fragment, only need 1 I frame, and Owing to the first frame of each fragment is I frame, therefore this fragment can be carried out part download.
Therefore, all download and part download policy is on the premise of ensureing not affect Consumer's Experience, can carry High speed of download has also saved bandwidth resources, and the fast forwarding and fast rewinding for friction speed operates, selectivity The frame of varying number is processed by ground, it is possible to decrease the consumption of CPU and taking of buffer.
I frame extraction unit 102 can perform I frame to the ordinary video flow downloaded and extract.Retouch referring now to Fig. 2 State the example of the operation of I frame extraction unit 102.
Fig. 2 is the flow chart of the example of the operation of the I frame extraction unit of the special effect play equipment of Fig. 1.
With reference to Fig. 2, in step 201, I frame extraction unit 102 finds video fluxion in ordinary video flow According to beginning label (such as, 0X000001E).
In step 202, I frame extraction unit 102, after the beginning label finding video stream data, finds The beginning label (such as, 0X000001B3) of image sequence.
In step 203, I frame extraction unit 102, after the beginning label finding image sequence, finds figure Beginning label (such as, 0X000001B8) as group (GOP).
In step 204, I frame extraction unit 102, after the beginning label finding image sets, finds image Beginning label (such as, 0X00000100).
In step 205, I frame extraction unit 102 after the beginning label finding image, according to Picture_coding_type field judges whether this image is I image type, if I image, then performs Step 206, otherwise continually looks for the beginning label of next image.
In step 206, I frame extraction unit 102 find slice beginning label (such as 0X00000101~ 0X000001AF), slice is resolved.
In step 207, I frame extraction unit 102 is after resolving slice, and that finds that each slice comprises is grand Blocks of data, and resolve macro block.
In step 208, I frame extraction unit 102, according to image color form, determines in each macro block and wraps The block number contained, then carries out the parsing of block.
In step 209, when running into end mark (such as, 0X000001B) of image sequence, I Frame extraction unit 102 end operation.
Referring back to Fig. 1, specially good effect stream generation unit 103 uses the I frame extracted to produce for special effect play Media Stream.In media file after extracting I frame, owing to only comprising I frame, it is therefore desirable to extract I frame replicates, and modifies the pts value of the I frame extracted and the I frame of duplication, just generates and meets The Media Stream of special effect play.
According to embodiments of the invention, specially good effect stream generation unit 103 can include replicating determiner 105 and showing Show timestamp (PTS) value modifier 106.Replicate determiner 105 and determine that the I frame to extracting replicates Quantity (that is, to the number of times that replicates of I frame extracted).The pts value modifier 106 I to extracting The pts value of the I frame of frame and duplication is modified.
According to embodiments of the invention, if ordinary video flow is all downloaded by download unit 101, Then replicate determiner 105 to determine extraction according to frame frequency, the length of image sets GOP, described speed I frame carries out the quantity replicated;If download unit 101 carries out part download to ordinary video flow, then replicate According to frame frequency, described reproduction time, described speed, determiner 105 determines that the I frame to extraction is carried out again The quantity of system.The pts value of I frame of the Presentation Time Stamp pts value modifier I frame to extracting and duplication enters Row amendment.Here, frame frequency refers to the quantity of the frame of display per second, and the length of GOP refers to an image sets In the quantity of frame.
Such as, if ordinary video flow is all downloaded by download unit 101, then replicate determiner 105 Determine the quantity that replicates of I frame extracted according to below equation: described quantity=frame frequency × (institute State the length of speed/GOP);If download unit 101 carries out part download to ordinary video flow, then multiple Determiner 105 processed determines the quantity that replicates of I frame extracted according to below equation: described quantity =frame frequency × (described reproduction time/described speed).
Such as, pts value modifier 106 calculates the pts value of each I frame: PTS according to below equation The sequence number of value=initial p TS value+(clock frequency/frame frequency) × current I frame, wherein, sets according to hardware Executing condition, initial p TS value can be 30000, and clock frequency can be 90000Hz.
According to embodiments of the invention, special effect play equipment 100 may also include computing unit actual time 107.Actual time, computing unit 107 was after producing the Media Stream being used for special effect play, and calculating is shown to The actual video content time of user.The operation of computing unit actual time 107 is described referring now to Fig. 3.
Fig. 3 be the special effect play equipment of Fig. 1 actual time computing unit the example of operation.
With reference to Fig. 3, actual time, computing unit 107 was according to the sheet of the Media Stream that will carry out special effect play The first frame pts value firstPTS and last frame pts value lastPTS of section and the speed of special effect play Calculate the actual content time of the described fragment being shown to user, normal according to before described fragment The last frame pts value inputPTS of the Media Stream play and the actual content time of described fragment, it is thus achieved that It is shown to the actual video content time of user.
Such as, (lastPTS-firstPTS) of a fragment can be changed by computing unit actual time 107 For actual time, and this actual time is multiplied by speed, it is thus achieved that the actual content time of this fragment, and will The last frame pts value inputPTS of the Media Stream of the normal play before this fragment is converted to actual time Between, and this actual time was added with the actual content time of this fragment, it is thus achieved that it is shown to the reality of user The video content time.The described actual video content time can be shown on display screen (not shown).
Fig. 4 is the flow chart of special effect play method according to an embodiment of the invention.
With reference to Fig. 4, in step 401, download unit 101 is downloaded from server by wired or wireless connection Ordinary video flow.
Alternatively, download ordinary video flow step comprise the steps that download unit 101 can download all commonly The video flowing that in video flowing, code check is minimum.This strategy is conducive on the premise of not affecting Consumer's Experience, joint Bandwidth-saving, improves speed of download.
Alternatively, the step downloading ordinary video flow comprises the steps that the comparator 104 downloading ordinary video flow Calculate the reproduction time of each fragment (segment) in ordinary video flow, it is thus achieved that fast forwarding and fast rewinding special effect play Speed, and the numerical value of the numerical value of described reproduction time with described speed is compared.If comparator 104 numerical value numerical value more than or equal to described speed determining described reproduction time, then download unit 101 Ordinary video flow is all downloaded;If the numerical value that comparator 104 determines described reproduction time is less than The numerical value of described speed, then download unit 101 carries out part download to ordinary video flow.
All download and part download policy is on the premise of ensureing not affect Consumer's Experience, download can be improved Speed has also saved bandwidth resources, and the fast forwarding and fast rewinding for friction speed operates, optionally to not Process with the frame of quantity, it is possible to decrease the consumption of CPU and taking of buffer.
In step 402, the I frame extraction unit 102 ordinary video flow to downloading performs I frame and extracts.
In step 403, specially good effect stream generation unit 103 uses the I frame extracted to produce for special effect play Media Stream.
In media file after extracting I frame, owing to only comprising I frame, it is therefore desirable to the I frame extracted is entered Row replicates, and modifies the pts value of the I frame extracted and the I frame of duplication, just generates and meets specially good effect The Media Stream play.
Alternatively, the step producing the Media Stream for special effect play comprises the steps that specially good effect stream generation unit 103 The determiner 105 that replicates determine the quantity that replicates of I frame extracted;Specially good effect stream generation unit 103 The pts value modifier 106 I frame to extracting and the pts value of I frame of duplication modify.
Alternatively, produce the step of Media Stream for special effect play and comprise the steps that if download unit 101 Ordinary video flow is all downloaded, then duplication determiner 105 basis of specially good effect stream generation unit 103 Frame frequency, the length of image sets GOP, described speed determine the quantity replicating the I frame extracted; If download unit 101 carries out part download to ordinary video flow, then the answering of specially good effect stream generation unit 103 According to frame frequency, described reproduction time, described speed, determiner 105 processed determines that the I frame to extracting is carried out The quantity replicated;The pts value of I frame of the pts value modifier I frame to extracting and duplication is modified. Here, frame frequency refers to the quantity of the frame of display per second, and the length of GOP refers to the frame in an image sets Quantity.
Such as, if ordinary video flow is all downloaded by download unit 101, then replicate determiner 105 Determine the quantity that replicates of I frame extracted according to below equation: described quantity=frame frequency × (institute State the length of speed/GOP);If download unit 101 carries out part download to ordinary video flow, then multiple Determiner 105 processed determines the quantity that replicates of I frame extracted according to below equation: described quantity =frame frequency × (described reproduction time/described speed).
Such as, pts value modifier 106 calculates the pts value of each I frame: PTS according to below equation The sequence number of value=initial p TS value+(clock frequency/frame frequency) × current I frame, wherein, sets according to hardware Executing condition, initial p TS value can be 30000, and clock frequency can be 90000Hz.
Special effect play method may also include that in step 404 according to an embodiment of the invention, actual time Computing unit 107 is after producing the Media Stream being used for special effect play, and calculating is shown to the reality of user and regards Frequently content time.
Alternatively, computing unit actual time 107 is according to the fragment of the Media Stream that will carry out special effect play The first frame pts value firstPTS and last frame pts value lastPTS and special effect play speed come Calculate the actual content time of the described fragment being shown to user, according to normally broadcasting before described fragment The last frame pts value inputPTS of the Media Stream put and the actual content time of described fragment, it is thus achieved that aobvious Show to the actual video content time of user.
Such as, (lastPTS-firstPTS) of a fragment can be changed by computing unit actual time 107 For actual time, and this actual time is multiplied by speed, it is thus achieved that the actual content time of this fragment, and will The last frame pts value inputPTS of the Media Stream of the normal play before this fragment is converted to actual time Between, and this actual time was added with the actual content time of this fragment, it is thus achieved that it is shown to the reality of user The video content time.The described actual video content time can be shown on display screen (not shown).
The invention provides a kind of special effect play equipment that ordinary video flow is carried out special effect play and method. Described equipment and method can be that ordinary video flow special effect play based on Http adaptive video Flow Technique sets Standby and method.Described special effect play equipment and method lack the specially good effect supporting special effect play in MPD (trick), in the case of stream, carry out ordinary video flow processing generation specially good effect stream, thus solve at clothes The problem that business device end does not has not support special effect play during specially good effect stream.
Although show and describe the present invention with reference to embodiments of the invention, but those skilled in the art It should be understood that in the case of without departing from the principle of the present invention and spirit, can be in these exemplary enforcement Carrying out many changes in example, the scope of the present invention is limited by claim and equivalent thereof.

Claims (22)

1. a special effect play method, described method includes:
Download ordinary video flow;
The ordinary video flow downloaded is performed I frame extract;
The I frame extracted is used to produce the Media Stream for special effect play,
Wherein, the step producing the Media Stream for special effect play includes:
Determine the quantity that the I frame extracted is replicated;
The Presentation Time Stamp pts value of the I frame extracted and the I frame of duplication is modified.
The most the method for claim 1, wherein the ordinary video flow downloaded is that rate bit stream is minimum Ordinary video flow.
3. method as claimed in claim 1 or 2, wherein, the step downloading ordinary video flow includes:
Calculate the reproduction time of each fragment in ordinary video flow;
Obtain the speed of fast forwarding and fast rewinding special effect play;
The numerical value of the numerical value of described reproduction time with described speed is compared;
If the numerical value of described reproduction time is more than or equal to the numerical value of described speed, then to ordinary video flow All download;
If the numerical value of described reproduction time is less than the numerical value of described speed, then ordinary video flow is carried out portion Divide and download.
4. method as claimed in claim 3, wherein, the speed of fast forwarding and fast rewinding special effect play is default value Or inputted by user.
5. method as claimed in claim 3, wherein it is determined that the quantity that the I frame extracted is replicated Step include:
If carried out all downloading, then determine according to frame frequency, the length of image sets GOP, described speed The quantity that the I frame extracted is replicated;
Download if carried out part, then determine carrying according to frame frequency, described reproduction time, described speed The I frame taken carries out the quantity replicated.
6. method as claimed in claim 5, wherein it is determined that the quantity that the I frame extracted is replicated Step include:
If carried out all downloading, the most described quantity=frame frequency × (length of described speed/GOP);
Download if carried out part, the most described quantity=frame frequency × (described reproduction time/described speed).
The most the method for claim 1, wherein to the I frame extracted and the PTS of the I frame of duplication The step that value is modified includes:
According to the sequence number of formula pts value=initial p TS value+(clock frequency/frame frequency) × current I frame, Calculate the pts value of each I frame.
8. method as claimed in claim 7, wherein, initial p TS value is 30000, and clock frequency is 90000Hz。
The most the method for claim 1, wherein after producing the Media Stream being used for special effect play Also include: calculate the actual video content time being shown to user.
10. method as claimed in claim 9, wherein, calculates the actual video content being shown to user The step of time includes:
First frame pts value of the fragment according to the Media Stream that will carry out special effect play and last frame PTS The speed of value and special effect play calculates the actual time of the described fragment being shown to user;
The last frame pts value of the Media Stream of normal play was added with the actual time of described fragment, obtains The actual video content time of user must be shown to.
11. the most described ordinary video flow are adaptive based on Http Answer the ordinary video flow of video stream technology.
12. 1 kinds of special effect play equipment, described equipment includes:
Download unit, downloads ordinary video flow;
I frame extraction unit, performs I frame to the ordinary video flow downloaded and extracts;
Specially good effect stream generation unit, uses the I frame extracted to produce the Media Stream for special effect play,
Wherein, specially good effect stream generation unit includes:
Replicate determiner, determine the quantity that the I frame extracted is replicated;
Presentation Time Stamp pts value modifier, repaiies the pts value of the I frame extracted and the I frame of duplication Change.
13. equipment as claimed in claim 12, wherein, the ordinary video flow of download is that rate bit stream is minimum Ordinary video flow.
14. equipment as described in claim 12 or 13, wherein, download unit includes:
Comparator, calculates the reproduction time of each fragment in ordinary video flow, it is thus achieved that fast forwarding and fast rewinding specially good effect is broadcast The speed put, and the numerical value of the numerical value of described reproduction time with described speed is compared,
Wherein, if the comparator determine that the numerical value of described reproduction time is more than or equal to the numerical value of described speed, Then ordinary video flow is all downloaded by download unit;If the comparator determine that the number of described reproduction time Value is less than the numerical value of described speed, then download unit carries out part download to ordinary video flow.
15. equipment as claimed in claim 14, wherein, the speed of fast forwarding and fast rewinding special effect play is acquiescence Value or inputted by user.
16. equipment as claimed in claim 14, wherein,
If ordinary video flow is all downloaded by download unit, then replicate determiner according to frame frequency, figure As the group length of GOP, described speed determine the quantity replicating the I frame extracted;If downloaded Unit carries out part download to ordinary video flow, then replicate determiner according to frame frequency, described reproduction time, Described speed determines the quantity replicating the I frame extracted.
17. equipment as claimed in claim 16, wherein,
If ordinary video flow is all downloaded by download unit, then replicate determiner according to below equation Determine the quantity that replicates of I frame extracted: described quantity=frame frequency × (described speed/GOP's Length);
If download unit carries out part download to ordinary video flow, then replicate determiner according to below equation Determine the quantity that replicates of I frame extracted: described quantity=frame frequency × (described reproduction time/institute State speed).
18. equipment as claimed in claim 12, wherein, Presentation Time Stamp pts value modifier according to Below equation calculates the pts value of each I frame: pts value=initial p TS value+(clock frequency/frame frequency) The sequence number of × current I frame.
19. equipment as claimed in claim 18, wherein, initial p TS value is 30000, clock frequency For 90000Hz.
20. equipment as claimed in claim 12, wherein, described equipment also includes:
Computing unit, after producing the Media Stream being used for special effect play, calculated and was shown to use actual time The actual video content time at family.
21. equipment as claimed in claim 20, wherein, actual time, computing unit was according to carrying out First frame pts value of the fragment of the Media Stream of special effect play and last frame pts value and special effect play Speed calculates the actual time of the described fragment being shown to user, last by the Media Stream of normal play One frame pts value was added with the actual time of described fragment, it is thus achieved that when being shown to the actual video content of user Between.
22. equipment as claimed in claim 12, wherein, described ordinary video flow is based on Http certainly The ordinary video flow of adaptive video Flow Technique.
CN201210262783.1A 2012-07-26 2012-07-26 Special effect play equipment and method Active CN103581741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210262783.1A CN103581741B (en) 2012-07-26 2012-07-26 Special effect play equipment and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210262783.1A CN103581741B (en) 2012-07-26 2012-07-26 Special effect play equipment and method

Publications (2)

Publication Number Publication Date
CN103581741A CN103581741A (en) 2014-02-12
CN103581741B true CN103581741B (en) 2016-08-17

Family

ID=50052504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210262783.1A Active CN103581741B (en) 2012-07-26 2012-07-26 Special effect play equipment and method

Country Status (1)

Country Link
CN (1) CN103581741B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754372A (en) * 2014-02-26 2015-07-01 苏州乐聚一堂电子科技有限公司 Beat-synchronized special effect system and beat-synchronized special effect handling method
US9866608B2 (en) * 2014-03-24 2018-01-09 Qualcomm Incorporated Processing continuous multi-period content
CN104080013A (en) * 2014-07-09 2014-10-01 三星电子(中国)研发中心 Special-effect playing method and device
CN104602117B (en) * 2015-01-31 2018-03-16 华为技术有限公司 A kind of speed plays the method and device of video
CN110072123B (en) * 2018-01-24 2022-04-15 中兴通讯股份有限公司 Video recovery playing method, video playing terminal and server
CN110062262B (en) * 2019-04-12 2022-05-03 北京字节跳动网络技术有限公司 Transcoding control method and device for video data, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1220065A (en) * 1996-04-25 1999-06-16 太阳微系统公司 System and method for creating trick play video streams from compressed normal play video bitstream
CN1883206A (en) * 2003-11-18 2006-12-20 皇家飞利浦电子股份有限公司 Reproduction of a trick play signal
CN101287099A (en) * 2007-04-10 2008-10-15 北京汉辰科技有限公司 System and method for realizing video demand-casting and push-casting by P2P technique
CN101635847A (en) * 2009-09-02 2010-01-27 中兴通讯股份有限公司 Transmission method, video display device and terminal of streaming media
CN101977326A (en) * 2010-11-22 2011-02-16 天柏宽带网络科技(北京)有限公司 Stunt stream generation method based on MPEG (Moving Picture Experts Group)-2 transmission stream

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7274862B2 (en) * 2001-09-27 2007-09-25 Sony Corporation Information processing apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1220065A (en) * 1996-04-25 1999-06-16 太阳微系统公司 System and method for creating trick play video streams from compressed normal play video bitstream
CN1883206A (en) * 2003-11-18 2006-12-20 皇家飞利浦电子股份有限公司 Reproduction of a trick play signal
CN101287099A (en) * 2007-04-10 2008-10-15 北京汉辰科技有限公司 System and method for realizing video demand-casting and push-casting by P2P technique
CN101635847A (en) * 2009-09-02 2010-01-27 中兴通讯股份有限公司 Transmission method, video display device and terminal of streaming media
CN101977326A (en) * 2010-11-22 2011-02-16 天柏宽带网络科技(北京)有限公司 Stunt stream generation method based on MPEG (Moving Picture Experts Group)-2 transmission stream

Also Published As

Publication number Publication date
CN103581741A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN103581741B (en) Special effect play equipment and method
CN104969560B (en) A kind of method and apparatus and storage medium of retrieval media data
CN102598688B (en) Streaming encoded video data
CN104885473B (en) Live timing method for the dynamic self-adapting stream transmission (DASH) via HTTP
CN105612753B (en) Switching method and apparatus during media flow transmission between adaptation is gathered
CN103200461B (en) A kind of multiple stage playback terminal synchronous playing system and player method
CN107634930B (en) Method and device for acquiring media data
CN101917613B (en) Acquiring and coding service system of streaming media
US20130173819A1 (en) System and method for providing and transmitting condensed streaming content
CN106134146A (en) Process continuous print multicycle content
BR112013002686B1 (en) METHOD AND DEVICE TO RETRIEVE MULTIMEDIA DATA, METHOD AND DEVICE TO SEND INFORMATION TO MULTIMEDIA DATA, AND COMPUTER-READABLE MEMORY
CN101292532A (en) Apparatus and method for receiving multiple streams in a mobile broadcast system
CN103517135B (en) Method, system and television capable of playing MP4-format video files continuously
JP7182727B2 (en) Method, apparatus and computer program for receiving media data of a session
CN107835424A (en) A kind of media sync transmission player method based on data perception
CN113661692B (en) Method, apparatus and non-volatile computer-readable storage medium for receiving media data
CN105900445A (en) Robust live operation of DASH
CN112770122B (en) Method and system for synchronizing videos on cloud director
CN113661680B (en) Processing method and device for receiving media data of media content
CN103618952B (en) A kind of player method and intelligent television of intelligent television boot animation
CN106454388A (en) Method and device for determining live broadcast setting information
CN112218128A (en) Advertisement video playing method, playing client and readable storage medium
CN101299709A (en) Flow type medium server system based on internet
CN106357885A (en) Processing system for requesting mobile phone song
CN104080013A (en) Special-effect playing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 5-12 / F, building 6, 57 Andemen street, Yuhuatai District, Nanjing City, Jiangsu Province

Patentee after: Samsung Electronics (China) R&D Center

Patentee after: SAMSUNG ELECTRONICS Co.,Ltd.

Address before: 17 ~ 19F, Xindi center, 188 Lushan Road, Nanjing, Jiangsu 210019

Patentee before: Samsung Electronics (China) R&D Center

Patentee before: SAMSUNG ELECTRONICS Co.,Ltd.

CP02 Change in the address of a patent holder