CN115914747B - Method and system for adjusting playing rate of multimedia fragments - Google Patents

Method and system for adjusting playing rate of multimedia fragments Download PDF

Info

Publication number
CN115914747B
CN115914747B CN202211215492.7A CN202211215492A CN115914747B CN 115914747 B CN115914747 B CN 115914747B CN 202211215492 A CN202211215492 A CN 202211215492A CN 115914747 B CN115914747 B CN 115914747B
Authority
CN
China
Prior art keywords
curve data
speed change
shift
time
target curve
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
CN202211215492.7A
Other languages
Chinese (zh)
Other versions
CN115914747A (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.)
Guangzhou Weimeng Technology Co ltd
Original Assignee
Guangzhou Weimeng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Weimeng Technology Co ltd filed Critical Guangzhou Weimeng Technology Co ltd
Priority to CN202211215492.7A priority Critical patent/CN115914747B/en
Publication of CN115914747A publication Critical patent/CN115914747A/en
Application granted granted Critical
Publication of CN115914747B publication Critical patent/CN115914747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The embodiment of the invention relates to the technical field of multimedia playing, and discloses a method and a system for adjusting the playing rate of multimedia fragments, wherein the method comprises the following steps: acquiring original custom curve data for a variable speed multimedia complete fragment and starting time and ending time of the clipped multimedia fragment; according to the original custom curve data, respectively calculating a starting variable speed value of the starting time and an ending variable speed value of the ending time; selecting all variable speed anchor points between the starting time and the ending time from the original custom curve data; all the speed change anchor points are arranged between the starting speed change anchor point and the ending speed change anchor point so as to obtain first target curve data; the first target curve data is applied to the clipped multimedia segment. By implementing the embodiment of the invention, the consistent speed change effect of the multimedia fragments before and after editing can be maintained, namely, the play speed correspondence of the multimedia fragments before and after operation at a specific time point is ensured to be unchanged.

Description

Method and system for adjusting playing rate of multimedia fragments
Technical Field
The present invention relates to the field of multimedia playing technologies, and in particular, to a method and a system for adjusting a playing rate of a multimedia clip.
Background
Currently, in existing multimedia clip editing software, a function of adjusting a video playing speed is generally provided, which includes two kinds of proportional speed change and curve speed change. In curve speed change, a user can add a plurality of speed change anchor points to the speed curve of the video according to the requirement, so that the video is fast or slow at a proper time point, the rhythm sense of the video is greatly improved, and the video speed change method is particularly suitable for the user to highlight a certain highlight moment in the video or a game fragment.
However, in practice, it is found that most multimedia editing software on the market at present continuously uses the previously set speed change curve if the video is cut after the video is subjected to curve speed change, so that the setting of the speed change anchor point is misplaced compared with the video before cutting, and the requirement that the user expects to be fast or slow at a specific time point of the video is completely changed.
Disclosure of Invention
The embodiment of the invention discloses a method and a system for adjusting the playing speed of a multimedia fragment, which can keep the consistent speed change effect of the multimedia fragment before and after editing, namely, ensure that the playing speed of the multimedia fragment before and after operation is unchanged at a specific time point.
The first aspect of the embodiment of the invention discloses a method for adjusting the playing rate of a multimedia fragment, which comprises the following steps:
Acquiring original custom curve data for a variable speed multimedia complete fragment and time information of the clipped multimedia fragment; wherein, the time information at least comprises a starting time T1 and an ending time T2 of the clipped multimedia fragment;
According to the original custom curve data, a starting speed change value P1 of the starting time T1 and an ending speed change value P2 of the ending time T2 are calculated respectively to obtain starting speed change information of the starting time T1 and ending speed change information of the ending time T2; wherein the starting speed change information at least comprises a starting speed change anchor point (T1, P1) of the starting time T1, and the ending speed change information at least comprises an ending speed change anchor point (T2, P2) of the ending time T2;
Selecting all shift information between the start time T1 and the end time T2 from the original custom curve data; wherein, all the speed change information comprises all speed change anchor points between the starting time T1 and the ending time T2;
Setting all the speed change anchor points between the starting speed change anchor points (T1, P1) and the ending speed change anchor points (T2, P2) to obtain first target curve data; wherein the start shift anchor point (T1, P1) is used as a start point of the first target curve data, and the end shift anchor point (T2, P2) is used as an end point of the first target curve data;
And applying the first target curve data to the clipped multimedia segment.
As another optional implementation manner, in the first aspect of the embodiment of the present invention, after the applying the first objective curve data to the clipped multimedia segment, the method further includes:
when the head part is restored to the clipped multimedia segment, calculating a starting point variable speed value P3 of the segment after the head is restored according to the first target curve data so as to obtain head variable speed information; wherein, the chip head speed change information at least comprises chip head speed change anchor points (T3, P3);
calculating a pre-starting speed change value P4 of the interval between the first target curve data and the starting point of the first target curve data within a first appointed time range according to the first target curve data so as to obtain pre-starting speed change information; wherein, the pre-starting-point speed change information at least comprises a pre-starting-point speed change anchor point (T4, P4);
inserting the head shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data;
and applying the second target curve data to the reduction film head rear segment.
As another optional implementation manner, in the first aspect of the embodiment of the present invention, after the applying the first target curve data to the clipped multimedia segment and before the calculating, according to the first target curve data, a start point shift value P3 of a segment after the restoring of the segment head to obtain segment head shift information, the method further includes:
when the head part is restored to the clipped multimedia fragment, setting the starting point shift value P3 and the pre-starting point shift value P4 to 1 respectively to obtain the head shift information and the pre-starting point shift information;
the operation of inserting the head-of-chip shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data is performed.
As another optional implementation manner, in the first aspect of the embodiment of the present invention, after the applying the first objective curve data to the clipped multimedia segment, the method further includes:
When the tail part is restored to the clipped multimedia segment, calculating a final variable speed value P5 of the restored tail segment according to the first target curve data so as to obtain tail variable speed information; wherein, the tail variable speed information at least comprises tail variable speed anchor points (T5, P5);
Calculating a pre-endpoint speed change value P6 of the endpoint interval with the first target curve data within a second designated time range according to the first target curve data to obtain pre-endpoint speed change information, wherein the pre-endpoint speed change information at least comprises pre-endpoint speed change anchor points (T6 and P6);
Inserting the tailstock shift anchor point (T5, P5) and the pre-endpoint shift anchor point (T6, P6) into the first target curve data in chronological order to obtain third target curve data;
and applying the third target curve data to the reduction post-segment.
As another optional implementation manner, in the first aspect of the embodiment of the present invention, after the applying the first target curve data to the clipped multimedia segment and before the calculating, according to the first target curve data, an end point shift value P5 of the reduced post-chip segment to obtain the post-chip shift information, the method further includes:
when the tail part is restored to the clipped multimedia fragment, the final speed change value P5 and the pre-final speed change value P6 are respectively set to be 1, so that the tail speed change information and the pre-final speed change information are obtained;
the operations of inserting the tailstock shift anchor (T5, P5) and the pre-endpoint shift anchor (T6, P6) into the first target curve data in chronological order are performed to obtain third target curve data.
As another optional implementation manner, in the first aspect of the embodiment of the present invention, the starting gear shift value P1 of the starting time T1 and the ending gear shift value P2 of the ending time T2 are calculated according to the original custom curve data, so as to obtain starting gear shift information of the starting time T1 and ending gear shift information of the ending time; wherein the start gear shift information at least includes a start gear shift anchor point (T1, P1) of the start time T1, the end gear shift information at least includes an end gear shift anchor point (T2, P2) of the end time T2, and the method comprises the steps of:
And respectively calculating the starting gear shift value P1 and the ending gear shift value P2 by utilizing a Bezier curve formula according to the original custom curve data so as to obtain the starting gear shift information and the ending gear shift information.
A second aspect of an embodiment of the present invention discloses an adjustment system, including:
the acquisition unit is used for acquiring original custom curve data for the variable-speed multimedia complete fragment and time information of the clipped multimedia fragment; wherein, the time information at least comprises a starting time T1 and an ending time T2 of the clipped multimedia fragment;
A first calculating unit, configured to calculate, according to the original custom curve data, a start gear shift value P1 of the start time T1 and an end gear shift value P2 of the end time T2, so as to obtain start gear shift information of the start time T1 and end gear shift information of the end time; wherein the starting speed change information at least comprises a starting speed change anchor point (T1, P1) of the starting time T1, and the ending speed change information at least comprises an ending speed change anchor point (T2, P2) of the ending time T2;
a selecting unit, configured to select all shift information between the start time T1 and the end time T2 from the original custom curve data; wherein, all the speed change information comprises all speed change anchor points between the starting time T1 and the ending time T2;
A first setting unit configured to set the all shift anchors between the start shift anchor (T1, P1) and the end shift anchor (T2, P2) to obtain first target curve data; wherein the start shift anchor point (T1, P1) is used as a start point of the first target curve data, and the end shift anchor point (T2, P2) is used as an end point of the first target curve data;
and the application unit is used for applying the first target curve data to the clipped multimedia fragments.
In a second aspect of the present embodiment, the adjusting system further includes:
The second calculating unit is used for calculating a starting point variable speed value P3 for restoring the segment behind the segment according to the first target curve data when the segment head part is restored to the segment behind the segment after the first target curve data is applied to the segment behind the segment by the application unit so as to obtain segment head variable speed information; wherein, the chip head speed change information at least comprises chip head speed change anchor points (T3, P3);
The second calculating unit is further configured to calculate, according to the first target curve data, a pre-start speed change value P4 that is spaced from a start point of the first target curve data within a first specified time range, so as to obtain pre-start speed change information; wherein, the pre-starting-point speed change information at least comprises a pre-starting-point speed change anchor point (T4, P4);
An inserting unit for inserting the head shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data;
the application unit is further configured to apply the second target curve data to the segment after the restoration segment.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the adjustment system further includes:
A second setting unit, configured to, after the application unit applies the first target curve data to the clipped multimedia segment, and before the second calculation unit calculates a start point shift value P3 of a restored post-clip segment according to the first target curve data to obtain the post-clip shift information, set the start point shift value P3 and the pre-start point shift value P4 to 1 when restoring the post-clip portion to the clipped multimedia segment, respectively, to obtain the post-clip shift information and the pre-start point shift information;
And the execution unit is used for executing the operation of inserting the head gear shift anchor point (T3, P3) and the pre-starting gear shift anchor point (T4, P4) into the first target curve data in time sequence so as to obtain second target curve data.
A third aspect of an embodiment of the present invention discloses an adjustment system, the adjustment system comprising:
a memory storing executable program code;
A processor coupled to the memory;
The processor invokes the executable program code stored in the memory to execute the method for adjusting the playing rate of the multimedia segment disclosed in the first aspect of the embodiment of the present invention.
A fourth aspect of the embodiment of the present invention discloses a computer-readable storage medium storing a computer program, where the computer program causes a computer to execute a method for adjusting a play rate of a multimedia clip disclosed in the first aspect of the embodiment of the present invention.
A fifth aspect of the embodiments of the present invention discloses a computer program product, which when run on a computer causes the computer to perform part or all of the steps of any one of the methods for adjusting the play rate of a multimedia clip of the first aspect.
A sixth aspect of the embodiments of the present invention discloses an application publishing platform, which is configured to publish a computer program product, where the computer program product, when running on the computer, causes the computer to execute part or all of the steps of any one of the methods for adjusting a playback rate of a multimedia clip according to the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
In the embodiment of the invention, the original custom curve data for the complete variable-speed multimedia segment and the time information of the clipped multimedia segment are obtained; wherein, the time information at least comprises a starting time T1 and an ending time T2 of the clipped multimedia fragment; according to the original custom curve data, a starting speed change value P1 of the starting time T1 and an ending speed change value P2 of the ending time T2 are calculated respectively to obtain starting speed change information of the starting time T1 and ending speed change information of the ending time T2; wherein the starting speed change information at least comprises a starting speed change anchor point (T1, P1) of the starting time T1, and the ending speed change information at least comprises an ending speed change anchor point (T2, P2) of the ending time T2; selecting all shift information between the start time T1 and the end time T2 from the original custom curve data; wherein, all the speed change information comprises all speed change anchor points between the starting time T1 and the ending time T2; setting all the speed change anchor points between the starting speed change anchor points (T1, P1) and the ending speed change anchor points (T2, P2) to obtain first target curve data; wherein the start shift anchor point (T1, P1) is used as a start point of the first target curve data, and the end shift anchor point (T2, P2) is used as an end point of the first target curve data; and applying the first target curve data to the clipped multimedia segment. Therefore, the embodiment of the invention can keep the consistent speed change effect of the multimedia fragments before and after editing, so that the play speed of the video at a specific time point before and after operation is corresponding to the play speed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for adjusting a play rate of a multimedia clip according to an embodiment of the present invention;
Fig. 2 is a flowchart of another method for adjusting a play rate of a multimedia clip according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an adjustment system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another adjustment system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another adjustment system according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present invention are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a method and a system for adjusting the play rate of a multimedia fragment, which can adjust the action fixed value of networked protection and obtain the self-adaptation effect of the protection fixed value and sampling synchronization conditions.
The following detailed description refers to the accompanying drawings.
Example 1
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for adjusting a play rate of a multimedia clip according to an embodiment of the present invention. As shown in fig. 1, the method for adjusting the play rate of the multimedia clip may include the following steps.
101. The adjusting system obtains original custom curve data for the variable speed multimedia complete fragment and time information of the clipped multimedia fragment; the time information at least comprises a starting time T1 and an ending time T2 of the clipped multimedia fragments.
As an optional implementation manner, in the embodiment of the present invention, after acquiring a user's speed change anchor point (Ti, pi) in a complete multimedia segment (such as a video or audio complete segment) set by a user with a custom curve speed change, and a user's clipping a required portion (such as clipping the content of the head or the content of the tail) from the complete multimedia segment, the system may start to execute step 101; where T represents the time on the video timeline corresponding to the point and P represents the set play speed.
As an optional implementation manner, in the embodiment of the present application, the initial custom curve data and the start time T1 and the end time T2 of the clipped multimedia segment of the present application may be obtained automatically by the system, or may be uploaded by the user at the initiative, which is not limited in any way.
102. The adjusting system calculates a starting speed change value P1 of a starting time T1 and an ending speed change value P2 of an ending time T2 according to original self-defined curve data so as to obtain starting speed change information of the starting time T1 and ending speed change information of the ending time; wherein, the start gear shift information at least comprises a start gear shift anchor point (T1, P1) of the start time T1, and the end gear shift information at least comprises an end gear shift anchor point (T2, P2) of the end time T2.
As an alternative implementation, in the embodiment of the present application, the shift anchor point of the present application may be obtained by calculating a third-order bezier curve, where a bezier curve is widely used in a computer aided design and a computer graphics system, such as a pen tool in Photoshop is drawn by using the third-order bezier curve.
As an alternative implementation manner, in the embodiment of the present application, a third-order bezier curve formula adopted in the present application is: pi (t) =d0×0 (1-t) 3×t0+3d1×1 (1-t) 2×t1+3d2×1 (1-t) 1×t2+d3×0×t3 (1-t) t e [0,1], where t is the curve length ratio, D0 is the shift value of the previous speed node, D1 is the shift value of the virtual control point 1, D2 is the shift value of the virtual control point 2, and D3 is the shift value of the next speed node.
103. The adjusting system selects all the speed change information between the starting time T1 and the ending time T2 from the original custom curve data; all shift anchor points between the start time T1 and the end time T2 are included in all shift information.
104. The adjusting system sets all the speed change anchor points between the starting speed change anchor points (T1, P1) and the ending speed change anchor points (T2, P2) so as to obtain first target curve data; wherein the start gear shift anchor point (T1, P1) is used as a starting point of the first target curve data, and the end gear shift anchor point (T2, P2) is used as an end point of the first target curve data.
As an optional implementation manner, in the embodiment of the present application, all the shift anchor points (Ti, pi) set by the user are recorded in the original custom curve data obtained in the present application, after the start shift value P1 and/or the end shift value P2 are calculated in step 102, the original data can be filled up, and the new custom curve data, that is, the first target curve data, is spliced.
105. The adaptation system applies the first target curve data to the clipped multimedia segment.
As an alternative implementation manner, in the embodiment of the present invention, due to the operations from step 103 to step 104, each shift anchor point (Ti, pi) after clipping is kept unchanged except for the first point and/or the last point, so that the one-to-one correspondence between the video before and after clipping and the shift anchor point on the target curve is ensured.
As an optional implementation manner, in the embodiment of the present invention, the implementation of step 105 may enable the video before and after the editing to correspond to the variable speed anchor points on the target curve one by one, so as to ensure that the variable speed corresponding to the video or the audio frame before and after the editing remains unchanged, that is, the play speed corresponding to the specific time point of the video remains unchanged.
As an alternative implementation manner, in the embodiment of the present application, other products existing in the market only lengthen or shorten the curve or truncate the curve when editing, which may cause the change of the speed change rate distribution of the segment and inconsistent time lengths before and after editing, so that the speed change effect required by the user cannot be achieved. Compared with other products, the video editing method can keep the consistent speed change effect of the video clips before and after editing, and can keep consistency even after different operations are carried out on the video for many times.
As an optional implementation manner, in the embodiment of the application, the method is mainly applied to equipment supporting video or audio playing speed to change according to a user-defined curve (namely curve changing), when the video or audio with the curve changing is subjected to operations such as clipping, dividing and the like, the system can synchronously correct the positions of key nodes on the speed changing curve, so that the playing speed of the video at a specific time point before and after the operations is corresponding to the playing speed.
In the method for adjusting the play rate of the multimedia clip shown in fig. 1, an adjustment system is described as an execution body. It should be noted that, the execution body of the method for adjusting the playing rate of the multimedia clip shown in fig. 1 may also be a separate device associated with the adjustment system, which is not limited by the embodiment of the present invention.
Therefore, implementing the method for adjusting the playing rate of the multimedia segment described in fig. 1 can maintain the consistent speed change effect of the multimedia segment before and after editing, i.e. ensure that the playing rate of the multimedia segment before and after operation is unchanged at a specific time point.
In addition, by implementing the method for adjusting the playing rate of the multimedia fragment described in fig. 1, the positions of key nodes on the variable speed curve can be synchronously corrected, so that the playing speed of the video at a specific time point before and after the operation is correspondingly unchanged.
Example two
Referring to fig. 2, fig. 2 is a flowchart illustrating another method for adjusting a play rate of a multimedia clip according to an embodiment of the invention. As shown in fig. 2, the method for adjusting the play rate of the multimedia clip may include the following steps:
201. The adjusting system obtains original custom curve data for the variable speed multimedia complete fragment and time information of the clipped multimedia fragment; the time information at least comprises a starting time T1 and an ending time T2 of the clipped multimedia fragments.
202. The adjusting system calculates a starting speed change value P1 of a starting time T1 and an ending speed change value P2 of an ending time T2 according to original self-defined curve data so as to obtain starting speed change information of the starting time T1 and ending speed change information of the ending time T2; wherein, the start gear shift information at least comprises a start gear shift anchor point (T1, P1) of the start time T1, and the end gear shift information at least comprises an end gear shift anchor point (T2, P2) of the end time T2.
203. The adjusting system selects all the speed change information between the starting time T1 and the ending time T2 from the original custom curve data; all shift anchor points between the start time T1 and the end time T2 are included in all shift information.
204. The adjusting system sets all the speed change anchor points between the starting speed change anchor points (T1, P1) and the ending speed change anchor points (T2, P2) so as to obtain first target curve data; wherein the start gear shift anchor point (T1, P1) is used as a starting point of the first target curve data, and the end gear shift anchor point (T2, P2) is used as an end point of the first target curve data.
205. The adaptation system applies the first target curve data to the clipped multimedia segment.
206. When the adjusting system restores the head part to the clipped multimedia fragment, calculating a starting point variable speed value P3 of the fragment after restoring the head according to the first target curve data so as to obtain head variable speed information; wherein, the chip head speed change information at least comprises chip head speed change anchor points (T3, P3).
As an alternative implementation, in the embodiment of the present application, step 206 of the present application may be performed after step 205, or may be performed after step 204 and before step 205, which is not limited in any way.
As an optional implementation manner, in the embodiment of the present application, the execution of step 206 may be triggered when all the head fragments are restored to the clipped multimedia fragments, or may be triggered when part of the head fragments are restored to the clipped multimedia fragments, which is not limited in any way.
207. The adjusting system calculates a pre-starting speed change value P4 of the interval between the adjusting system and the starting point of the first target curve data in a first appointed time range according to the first target curve data so as to obtain pre-starting speed change information; wherein, the pre-start shift information at least includes a pre-start shift anchor point (T4, P4), and steps 209 to 210 are executed.
208. When the head part is restored to the clipped multimedia clip, the start point shift value P3 and the pre-start shift value P4 are set to 1, respectively, to obtain head shift information and pre-start shift information, and steps 209 to 210 are performed.
As an alternative embodiment, in the embodiment of the present application, since the present application sets the start point shift value P3 and the pre-start shift value P4 to 1, and as a result, the curve rate from the start point shift value P3 to the pre-start shift value P4 is 1, the present application may directly set the start point shift value P3 and the pre-start shift value P4 to 1, and/or set the curve rate from the start point shift value P3 to the pre-start shift value P4 to 1, and the present application is not limited in any way.
As an alternative implementation manner, in the embodiment of the present invention, the start point shift value P3 may actually be set in various manners, for example, an average of P1 and P4, or bezier curve data of P3 is obtained through P1 and P4, so as to form a smooth curve.
209. The adjustment system inserts the head shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data.
210. And the adjusting system applies the second target curve data to the segment after the restoring segment head, and the current flow is ended.
As an alternative implementation manner, in the embodiment of the present application, the segment in the original custom curve cut 1 data may have been clipped, and if the user wants to restore the clipped portion of the video, the curve of the original clipped portion needs to be supplemented. For example, if the video was previously a clip, then in the user operation, the user restores the original clip of the video by dragging the slider at the front or end of the video track forward or backward to obtain a restored post-clip, then the system inserts the shift anchor 1 (b 1) at the start point of the restored post-clip and the shift anchor 2 (b 2) just before the start point of the cut 1, the distance between b2 and the start point of the cut 1 on the x-axis (the x-axis represents the play time stamp) may be 0.1s-1s, and a fast transition is made from b2 to the start point of the cut 1, and the play rate from b1 to b2 is set to 1.
As an alternative implementation manner, in the embodiment of the present application, the distance range between b2 and the start point of curve1 in the x axis may also be determined according to the length of the restored segment, or according to the screen width of the mobile phone of the user, which is not limited in any way.
As an alternative implementation manner, in the embodiment of the present invention, when playing and previewing the result of step 210, it may be seen or heard that the playing rate of the video clip at a specific time point is consistent with the playing rate before and after the clip. In addition, when the complete fragment is previewed, a complete custom curve is applied, so that the previewing effect between the complete fragment and the clipped fragment is consistent.
211. When the adjusting system restores the tail part to the clipped multimedia fragment, calculating a final variable speed value P5 of the restored tail fragment according to the first target curve data so as to obtain tail variable speed information; wherein, the tail variable speed information at least comprises tail variable speed anchor points (T5, P5).
As an alternative implementation, in the embodiment of the present application, step 211 of the present application may be performed after step 205, or may be performed after step 204 and before step 205, which is not limited in any way.
In an embodiment of the present application, the execution of step 211 may be triggered when all the tail segments are restored to the clipped multimedia segments, or may be triggered when part of the tail segments are restored to the clipped multimedia segments.
212. The adjusting system calculates a pre-endpoint shift value P6 of the endpoint interval with the first target curve data within a second specified time range according to the first target curve data to obtain pre-endpoint shift information, wherein the pre-endpoint shift information at least comprises pre-endpoint shift anchor points (T6, P6), and steps 214-215 are executed.
213. When the adjustment system restores the tail portion to the clipped multimedia segment, the end point shift value P5 and the pre-end point shift value P6 are set to 1 respectively to obtain tail shift information and pre-end point shift information, and steps 214 to 215 are executed.
214. The adjustment system inserts the tail shift anchor (T5, P5) and the pre-endpoint shift anchor (T6, P6) into the first target curve data in a time sequence to obtain third target curve data.
215. And the adjusting system applies the third target curve data to the segment after the reduction of the tail, and the process is ended.
As an alternative implementation manner, in the embodiment of the present application, the segment in the original custom curve cut 1 data may have been clipped, and if the user wants to restore the clipped portion of the video, the curve of the original clipped portion needs to be supplemented. For example, if the video was previously cut out with the tail portion, then at the level of user operation, the user restores the original segment of the video by dragging the slider at the front or end of the video track forward or backward to get the restored tail segment, then the system may insert the variable speed anchor 3 (e 1) near the end of the cut 1 and insert the critical speed section 4 (e 2) at the end of the restored segment, the distance between e1 and the end of the cut 1 on the x-axis (x-axis represents the play time stamp) may be 0.1s-1s, a fast transition is made from the end of the cut 1 to e1, and the play rate size from e1 to e2 is set to 1.
As an alternative implementation manner, in the embodiment of the present application, the distance range between e1 and the start point of curve1 in the x axis may also be determined according to the length of the restored segment, or according to the screen width of the mobile phone of the user, which is not limited in any way.
As an alternative implementation manner, in the embodiment of the present invention, when playing and previewing the result of step 215, it may be seen or heard that the playing rate of the video clip at a specific time point is consistent with the playing rate before and after the clip. In addition, when the complete fragment is previewed, a complete custom curve is applied, so that the previewing effect between the complete fragment and the clipped fragment is consistent.
It can be seen that, by implementing the method for adjusting the playing rate of the multimedia segment described in fig. 2, the consistent speed change effect of the multimedia segment before and after editing can be maintained, i.e. the playing rate of the multimedia segment before and after operation is ensured to be unchanged at a specific time point.
In addition, by implementing another method for adjusting the playing rate of the multimedia clip described in fig. 2, the positions of key nodes on the variable speed curve can be synchronously corrected, so that the playing speed of the video at a specific time point before and after the operation is unchanged.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an adjusting system according to an embodiment of the invention. As shown in fig. 3, the adjustment system 300 may include an acquisition unit 301, a first calculation unit 302, a selection unit 303, a first setting unit 304, and an application unit 305, where:
An obtaining unit 301, configured to obtain original custom curve data for a complete multimedia segment with variable speed and time information of the clipped multimedia segment; the time information at least comprises a starting time T1 and an ending time T2 of the clipped multimedia fragments.
A first calculating unit 302, configured to calculate, according to the original custom curve data, a start gear shift value P1 of the start time T1 and an end gear shift value P2 of the end time T2, respectively, so as to obtain start gear shift information of the start time T1 and end gear shift information of the end time; wherein, the start gear shift information at least comprises a start gear shift anchor point (T1, P1) of the start time T1, and the end gear shift information at least comprises an end gear shift anchor point (T2, P2) of the end time T2.
A selecting unit 303, configured to select all shift information between a start time T1 and an end time T2 from the original custom curve data; all shift anchor points between the start time T1 and the end time T2 are included in all shift information.
A first setting unit 304, configured to set all shift anchors between a start shift anchor (T1, P1) and an end shift anchor (T2, P2) to obtain first target curve data; wherein the start gear shift anchor point (T1, P1) is used as a starting point of the first target curve data, and the end gear shift anchor point (T2, P2) is used as an end point of the first target curve data.
An application unit 305 for applying the first target curve data to the clipped multimedia segment.
As an alternative implementation manner, in the embodiment of the present invention, after acquiring a user's speed change anchor point (Ti, pi) in a complete multimedia segment (such as a video or audio complete segment) set with a custom curve speed change, the user's set complete multimedia segment, and the user's clipping a desired portion (such as clipping the content of the head or the content of the tail) from the complete multimedia segment, the acquiring unit 301 may begin to perform operations for acquiring the original custom curve data for the complete multimedia segment and the start time T1 and the end time T2 of the clipped complete multimedia segment; where T represents the time on the video timeline corresponding to the point and P represents the set play speed.
As an optional implementation manner, in the embodiment of the present application, the initial custom curve data and the start time T1 and the end time T2 of the clipped multimedia segment of the present application may be obtained automatically by the system, or may be uploaded by the user at the initiative, which is not limited in any way.
As an alternative implementation, in the embodiment of the present application, the shift anchor point of the present application may be obtained by calculating a third-order bezier curve, where a bezier curve is widely used in a computer aided design and a computer graphics system, such as a pen tool in Photoshop is drawn by using the third-order bezier curve.
As an alternative implementation manner, in the embodiment of the present application, a third-order bezier curve formula adopted in the present application is: pi (t) =d0×0 (1-t) 3×t0+3d1×1 (1-t) 2×t1+3d2×1 (1-t) 1×t2+d3×0×t3 (1-t) t e [0,1], where t is the curve length ratio, D0 is the shift value of the previous speed node, D1 is the shift value of the virtual control point 1, D2 is the shift value of the virtual control point 2, and D3 is the shift value of the next speed node.
As an optional implementation manner, in the embodiment of the present application, all the shift anchor points (Ti, pi) set by the user are recorded in the original custom curve data obtained in the present application, and after the first calculating unit 302 calculates the start shift value P1 and/or the end shift value P2, the original data can be filled up and spliced into new custom curve data, that is, the first target curve data.
As an alternative implementation manner, in the embodiment of the present invention, due to the operations of the selecting unit 303 and the first setting unit 304, each shift anchor point (Ti, pi) after clipping is kept unchanged except for the first point and/or the last point, so that the one-to-one correspondence between the video before and after clipping and the shift anchor point on the target curve is ensured.
As an optional implementation manner, in this embodiment of the present invention, the application unit 305 may be implemented to enable the video before and after the editing to correspond to the variable speed anchor points on the target curve one by one, so as to ensure that the variable speed corresponding to the video or the audio frame before and after the editing remains unchanged, that is, the play speed at a specific time point of the video remains unchanged.
As an alternative implementation manner, in the embodiment of the present application, other products existing in the market only zoom in or zoom out the curve or cut off the curve when editing, which may cause the change of the speed change rate distribution of the segment and the inconsistent time length before and after editing, and cannot realize the speed change effect required by the user. Compared with other products, the video editing method can keep the consistent speed change effect of the video clips before and after editing, and can keep consistency even after different operations are carried out on the video for many times.
As an optional implementation manner, in the embodiment of the application, the method is mainly applied to equipment supporting video or audio playing speed to change according to a user-defined curve (namely curve changing), when the video or audio with the curve changing is subjected to operations such as clipping, dividing and the like, the system can synchronously correct the positions of key nodes on the speed changing curve, so that the playing speed of the video at a specific time point before and after the operations is corresponding to the playing speed.
Therefore, implementing the adjustment system described in fig. 3 can maintain the consistent speed change effect of the multimedia clips before and after editing, i.e. ensure that the play speed of the multimedia clips before and after operation is unchanged at a specific time point.
In addition, by implementing the adjustment system described in fig. 3, the positions of key nodes on the speed change curve can be synchronously corrected, so that the play speed of the video at a specific time point before and after the operation is corresponding to the play speed.
Example IV
Referring to fig. 4, fig. 4 is a schematic structural diagram of another adjusting system according to an embodiment of the invention. The adjustment system shown in fig. 4 is optimized by the adjustment system shown in fig. 3. Compared to the adjustment system shown in fig. 3, the adjustment system shown in fig. 4 further includes:
A second calculating unit 306, configured to calculate, according to the first target curve data, a start point shift value P3 for restoring the segment after the segment is restored to the clipped multimedia segment when the segment after the segment is restored to the clipped multimedia segment after the first target curve data is applied to the clipped multimedia segment by the applying unit, so as to obtain segment shift information; wherein, the chip head speed change information at least comprises chip head speed change anchor points (T3, P3).
As an alternative implementation, in the embodiment of the present application, the second calculating unit 306 calculates the start point shift value P3 of the segment after the restoration of the segment to obtain the segment shift anchor point (T3, P3), which may be performed after the application unit 305 applies the first target curve data to the clipped multimedia segment, or may be performed after the first setting unit 304 sets all shift anchor points between the start shift information and the end shift information to obtain the first target curve data and before the application unit 305 applies the first target curve data to the clipped multimedia segment, which is not limited in any way.
As an alternative implementation manner, in the embodiment of the present invention, the second calculating unit 306 is further configured to calculate, according to the first target curve data, a pre-start gear shift value P4 that is spaced from the start point of the first target curve data within a first specified time range, so as to obtain pre-start gear shift information; wherein, the shift information before the starting point at least comprises shift anchor points (T4, P4) before the starting point.
An inserting unit 307 for inserting the head shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data.
As an alternative implementation manner, in an embodiment of the present invention, the application unit 305 is further configured to apply the second target curve data to the post-restoration segment.
Compared to the adjustment system shown in fig. 3, the adjustment system shown in fig. 4 further includes:
A second setting unit 308, configured to, after the application unit applies the first target curve data to the clipped multimedia segment, and before the second calculation unit calculates the start point shift value P3 of the restored post-clip segment according to the first target curve data to obtain the post-clip shift information, set the start point shift value P3 and the pre-start shift value P4 to 1 when restoring the post-clip portion to the clipped multimedia segment, respectively, to obtain the post-clip shift information and the pre-start shift information.
An execution unit 310 for performing an operation of inserting the head shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data when the second setting unit 308 obtains the head shift information and the pre-start shift information.
As an alternative implementation manner, in the embodiment of the present application, the segments in the original custom curve data may have been clipped, and if the user wants to restore the clipped portion of the video, the original clipped portion of the curve needs to be supplemented. For example, if the video was previously a clip, then in the user operation, the user restores the original clip of the video by dragging the slider at the front or end of the video track forward or backward to obtain a restored post-clip, then the system inserts the shift anchor 1 (b 1) at the start point of the restored post-clip and inserts the shift anchor 2 (b 2) just before the start point of the cut 1, b2 may be separated from the start point of the cut 1 by a time interval ranging from 0.1s to 1s, a fast transition is made from b2 to the start point of the cut 1, and the rate P is set to 1 from b1 to b 2.
As an alternative implementation manner, in the embodiment of the present invention, when the application unit 305 plays and previews the result of applying the first target curve data to the clip after the restore header, it may be seen or heard that the play rate of the video clip at a specific time point coincides with the clip before and after. In addition, when the complete fragment is previewed, a complete custom curve is applied, so that the previewing effect between the complete fragment and the clipped fragment is consistent.
Compared to the adjustment system shown in fig. 3, the adjustment system shown in fig. 4 further includes:
A third calculation unit 309, configured to calculate, when the application unit 305 applies the first target curve data to the clipped multimedia segment and restores the tail portion to the clipped multimedia segment, a final variable speed value P5 of restoring the tail portion according to the first target curve data, so as to obtain tail variable speed information; wherein, the tail variable speed information at least comprises tail variable speed anchor points (T5, P5).
As an alternative embodiment, in the embodiment of the present application, the third calculation unit 309 calculates the end shift value P5 of the restored post-segment to obtain the post-segment shift anchor point (T5, P5), which may be performed after the application unit 305 applies the first target curve data to the clipped multimedia segment, or may be performed after the first setting unit 304 sets all shift anchor points between the start shift information and the end shift information to obtain the first target curve data and before the application unit 305 applies the first target curve data to the clipped multimedia segment, which is not limited in any way.
As an alternative implementation manner, in an embodiment of the present invention, the third calculating unit 309 is further configured to calculate, according to the first target curve data, a pre-endpoint shift value P6 with an endpoint interval from the first target curve data within a second specified time range, so as to obtain pre-endpoint shift information, where the pre-endpoint shift information includes at least a pre-endpoint shift anchor point (T6, P6).
As an alternative implementation manner, in an embodiment of the present invention, the inserting unit 307 is further configured to insert the tailstock shift anchor (T5, P5) and the pre-endpoint shift anchor (T6, P6) into the first target curve data in time sequence, so as to obtain the third target curve data.
As an alternative implementation manner, in an embodiment of the present invention, the application unit 305 is further configured to apply the third target curve data to the restored post-slice segment.
As an alternative implementation manner, in the embodiment of the present invention, after the application unit 305 applies the first target curve data to the clipped multimedia segment, and before the third calculation unit 309 calculates the end shift value P5 of the reduced post-end segment according to the first target curve data to obtain the end shift information, the second setting unit 308 sets the end shift value P5 and the pre-end shift value P6 to 1 when reducing the end portion to the clipped multimedia segment, so as to obtain the end shift information and the pre-end shift information.
As an alternative implementation manner, in the embodiment of the present invention, the executing unit 310 is further configured to execute, when the second setting unit 308 obtains the tailstock shift information and the pre-endpoint shift information, an operation of inserting the tailstock shift anchor point (T5, P5) and the pre-endpoint shift anchor point (T6, P6) into the first target curve data in time sequence to obtain the third target curve data.
As an alternative implementation manner, in the embodiment of the present application, the segments in the original custom curve data may have been clipped, and if the user wants to restore the clipped portion of the video, the original clipped portion of the curve needs to be supplemented. For example, if the video was previously cut out with the tail portion, then in the user operation plane, the user restores the original segment of the video by dragging the slider at the front or end of the video track forward or backward to obtain the restored tail segment, then the system may insert the variable speed anchor 3 (e 1) near the end point of the cut 1 and insert the critical speed section 4 (e 2) at the end point of the restored segment, the time interval between e1 and the end point of the cut 1 may be 0.1s-1s, a quick transition is made from the end point of the cut 1 to the e1, and the rate P is set to be 1 from e1 to e 2.
As an alternative implementation manner, in the embodiment of the present invention, when the application unit 305 plays and previews the result of applying the first target curve data to the clip after the clip, it may be seen or heard that the play rate of the video clip at a specific time point coincides with the clip before and after. In addition, when the complete fragment is previewed, a complete custom curve is applied, so that the previewing effect between the complete fragment and the clipped fragment is consistent.
In comparison with the adjustment system shown in fig. 3, the first calculation unit 302 shown in fig. 4 includes:
The calculating subunit 3021 is configured to calculate, according to the original custom curve data, a start gear shift value P1 and an end gear shift value P2 according to a third-order bezier curve formula, so as to obtain start gear shift information and end gear shift information.
As an alternative implementation, in the embodiment of the present application, the shift anchor point of the present application may be obtained by calculating a third-order bezier curve, where a bezier curve is widely used in a computer aided design and a computer graphics system, such as a pen tool in Photoshop is drawn by using the third-order bezier curve.
As an alternative implementation manner, in the embodiment of the present application, a third-order bezier curve formula adopted in the present application is: pi (t) =d0×0 (1-t) 3×t0+3d1×1 (1-t) 2×t1+3d2×1 (1-t) 1×t2+d3×0×t3 (1-t) t e [0,1], where t is the curve length ratio, D0 is the shift value of the previous speed node, D1 is the shift value of the virtual control point 1, D2 is the shift value of the virtual control point 2, and D3 is the shift value of the next speed node.
It can be seen that implementing the alternative adjustment system described in fig. 4 can maintain the consistent speed change effect of the multimedia segments before and after editing, i.e. ensure that the play speed of the multimedia segments before and after operation is unchanged at a specific time point.
In addition, implementing the alternative adjustment system described in fig. 4 can synchronously correct the positions of the key nodes on the speed change curve, so that the play speed of the video at a specific time point before and after the operation is unchanged correspondingly.
Example five
Referring to fig. 5, fig. 5 is a schematic structural diagram of another adjusting system according to an embodiment of the invention. As shown in fig. 5, the adjustment system may include:
A memory 501 in which executable program codes are stored;
a processor 502 coupled to the memory 501;
The processor 502 invokes executable program codes stored in the memory 501 to execute any one of the methods of adjusting the playing rate of the multimedia clip shown in fig. 1-2.
The embodiment of the invention discloses a computer readable storage medium which stores a computer program, wherein the computer program enables a computer to execute a method for adjusting the playing rate of any one of multimedia fragments in fig. 1-2.
The embodiments of the present invention also disclose a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform some or all of the steps of the method as in the method embodiments above.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the above embodiments may be implemented by hardware associated with a program that may be stored in a computer-readable storage medium, including Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM), or other optical disk Memory, magnetic disk Memory, tape Memory, or any other medium that can be used to carry or store data.
The above describes in detail a method and a system for adjusting the play rate of a multimedia clip disclosed in the embodiments of the present invention, and specific examples are applied to illustrate the principles and implementations of the present invention, where the above description of the embodiments is only for helping to understand the method and the core idea of the present invention; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the idea of the present invention, the present disclosure should not be construed as limiting the present invention in summary.

Claims (10)

1. A method for adjusting a play rate of a multimedia clip, comprising:
Acquiring original custom curve data for a variable speed multimedia complete fragment and time information of the clipped multimedia fragment; wherein, the time information at least comprises a starting time T1 and an ending time T2 of the clipped multimedia fragment;
According to the original custom curve data, a starting speed change value P1 of the starting time T1 and an ending speed change value P2 of the ending time T2 are calculated respectively to obtain starting speed change information of the starting time T1 and ending speed change information of the ending time T2; wherein the starting speed change information at least comprises a starting speed change anchor point (T1, P1) of the starting time T1, and the ending speed change information at least comprises an ending speed change anchor point (T2, P2) of the ending time T2;
Selecting all shift information between the start time T1 and the end time T2 from the original custom curve data; wherein, all the speed change information comprises all speed change anchor points between the starting time T1 and the ending time T2;
Setting all the speed change anchor points between the starting speed change anchor points (T1, P1) and the ending speed change anchor points (T2, P2) to obtain first target curve data; wherein the start shift anchor point (T1, P1) is used as a start point of the first target curve data, and the end shift anchor point (T2, P2) is used as an end point of the first target curve data;
And applying the first target curve data to the clipped multimedia segment.
2. The method of claim 1, wherein after said applying said first target curve data to said clipped multimedia segment, said method further comprises:
when the head part is restored to the clipped multimedia segment, calculating a starting point variable speed value P3 of the segment after the head is restored according to the first target curve data so as to obtain head variable speed information; wherein, the chip head speed change information at least comprises chip head speed change anchor points (T3, P3);
calculating a pre-starting speed change value P4 of the interval between the first target curve data and the starting point of the first target curve data within a first appointed time range according to the first target curve data so as to obtain pre-starting speed change information; wherein, the pre-starting-point speed change information at least comprises a pre-starting-point speed change anchor point (T4, P4);
inserting the head shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data;
and applying the second target curve data to the reduction film head rear segment.
3. The method of claim 2, wherein after said applying said first target curve data to said clipped multimedia segment and before said calculating a start point shift value P3 for restoring a post-film-head segment based on said first target curve data to obtain film-head shift information, said method further comprises:
when the head part is restored to the clipped multimedia fragment, setting the starting point shift value P3 and the pre-starting point shift value P4 to 1 respectively to obtain the head shift information and the pre-starting point shift information;
the operation of inserting the head-of-chip shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data is performed.
4. The method of claim 1, wherein after said applying said first target curve data to said clipped multimedia segment, said method further comprises:
When the tail part is restored to the clipped multimedia segment, calculating a final variable speed value P5 of the restored tail segment according to the first target curve data so as to obtain tail variable speed information; wherein, the tail variable speed information at least comprises tail variable speed anchor points (T5, P5);
Calculating a pre-endpoint speed change value P6 of the endpoint interval with the first target curve data within a second designated time range according to the first target curve data to obtain pre-endpoint speed change information, wherein the pre-endpoint speed change information at least comprises pre-endpoint speed change anchor points (T6 and P6);
Inserting the tailstock shift anchor point (T5, P5) and the pre-endpoint shift anchor point (T6, P6) into the first target curve data in chronological order to obtain third target curve data;
and applying the third target curve data to the reduction post-segment.
5. The method of claim 4, wherein after said applying said first target curve data to said clipped multimedia segment and before said calculating an end point shift value P5 for a reduced post-tailpiece segment based on said first target curve data to obtain tailpiece shift information, said method further comprises:
when the tail part is restored to the clipped multimedia fragment, the final speed change value P5 and the pre-final speed change value P6 are respectively set to be 1, so that the tail speed change information and the pre-final speed change information are obtained;
the operations of inserting the tailstock shift anchor (T5, P5) and the pre-endpoint shift anchor (T6, P6) into the first target curve data in chronological order are performed to obtain third target curve data.
6. The method according to any one of claims 1 to 5, wherein the starting gear shift value P1 of the starting time T1 and the ending gear shift value P2 of the ending time T2 are calculated according to the original custom curve data, respectively, to obtain starting gear shift information of the starting time T1 and ending gear shift information of the ending time; wherein the start gear shift information at least includes a start gear shift anchor point (T1, P1) of the start time T1, the end gear shift information at least includes an end gear shift anchor point (T2, P2) of the end time T2, and the method comprises the steps of:
And respectively calculating the starting gear shift value P1 and the ending gear shift value P2 by utilizing a Bezier curve formula according to the original custom curve data so as to obtain the starting gear shift information and the ending gear shift information.
7. An adjustment system, the adjustment system comprising:
the acquisition unit is used for acquiring original custom curve data for the variable-speed multimedia complete fragment and time information of the clipped multimedia fragment; wherein, the time information at least comprises a starting time T1 and an ending time T2 of the clipped multimedia fragment;
A first calculating unit, configured to calculate, according to the original custom curve data, a start gear shift value P1 of the start time T1 and an end gear shift value P2 of the end time T2, so as to obtain start gear shift information of the start time T1 and end gear shift information of the end time; wherein the starting speed change information at least comprises a starting speed change anchor point (T1, P1) of the starting time T1, and the ending speed change information at least comprises an ending speed change anchor point (T2, P2) of the ending time T2;
a selecting unit, configured to select all shift information between the start time T1 and the end time T2 from the original custom curve data; wherein, all the speed change information comprises all speed change anchor points between the starting time T1 and the ending time T2;
A first setting unit configured to set the all shift anchors between the start shift anchor (T1, P1) and the end shift anchor (T2, P2) to obtain first target curve data; wherein the start shift anchor point (T1, P1) is used as a start point of the first target curve data, and the end shift anchor point (T2, P2) is used as an end point of the first target curve data;
and the application unit is used for applying the first target curve data to the clipped multimedia fragments.
8. The adjustment system of claim 7, further comprising:
The second calculating unit is used for calculating a starting point variable speed value P3 for restoring the segment behind the segment according to the first target curve data when the segment head part is restored to the segment behind the segment after the first target curve data is applied to the segment behind the segment by the application unit so as to obtain segment head variable speed information; wherein, the chip head speed change information at least comprises chip head speed change anchor points (T3, P3);
The second calculating unit is further configured to calculate, according to the first target curve data, a pre-start speed change value P4 that is spaced from a start point of the first target curve data within a first specified time range, so as to obtain pre-start speed change information; wherein, the pre-starting-point speed change information at least comprises a pre-starting-point speed change anchor point (T4, P4);
An inserting unit for inserting the head shift anchor point (T3, P3) and the pre-start shift anchor point (T4, P4) into the first target curve data in time sequence to obtain second target curve data;
the application unit is further configured to apply the second target curve data to the segment after the restoration segment.
9. The adjustment system of claim 8, characterized in that the adjustment system further comprises:
A second setting unit, configured to, after the application unit applies the first target curve data to the clipped multimedia segment, and before the second calculation unit calculates a start point shift value P3 of a restored post-clip segment according to the first target curve data to obtain the post-clip shift information, set the start point shift value P3 and the pre-start point shift value P4 to 1 when restoring the post-clip portion to the clipped multimedia segment, respectively, to obtain the post-clip shift information and the pre-start point shift information;
And the execution unit is used for executing the operation of inserting the head gear shift anchor point (T3, P3) and the pre-starting gear shift anchor point (T4, P4) into the first target curve data in time sequence so as to obtain second target curve data.
10. An adjustment system, the adjustment system comprising:
a memory storing executable program code;
A processor coupled to the memory;
The processor invokes the executable program code stored in the memory to perform the method of adjusting the play rate of a multimedia clip as claimed in any one of claims 1 to 6.
CN202211215492.7A 2022-09-30 2022-09-30 Method and system for adjusting playing rate of multimedia fragments Active CN115914747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211215492.7A CN115914747B (en) 2022-09-30 2022-09-30 Method and system for adjusting playing rate of multimedia fragments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211215492.7A CN115914747B (en) 2022-09-30 2022-09-30 Method and system for adjusting playing rate of multimedia fragments

Publications (2)

Publication Number Publication Date
CN115914747A CN115914747A (en) 2023-04-04
CN115914747B true CN115914747B (en) 2024-06-14

Family

ID=86484065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211215492.7A Active CN115914747B (en) 2022-09-30 2022-09-30 Method and system for adjusting playing rate of multimedia fragments

Country Status (1)

Country Link
CN (1) CN115914747B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331824A (en) * 2016-08-31 2017-01-11 杭州当虹科技有限公司 Method of playing streaming media video file with variable rate
CN112738627A (en) * 2020-12-23 2021-04-30 上海哔哩哔哩科技有限公司 Play control method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8170396B2 (en) * 2007-04-16 2012-05-01 Adobe Systems Incorporated Changing video playback rate
US9997196B2 (en) * 2011-02-16 2018-06-12 Apple Inc. Retiming media presentations
US9014544B2 (en) * 2012-12-19 2015-04-21 Apple Inc. User interface for retiming in a media authoring tool
US20170180746A1 (en) * 2015-12-22 2017-06-22 Le Holdings (Beijing) Co., Ltd. Video transcoding method and electronic apparatus
US10897655B2 (en) * 2016-04-13 2021-01-19 Sony Corporation AV server and AV server system
US10726872B1 (en) * 2017-08-30 2020-07-28 Snap Inc. Advanced video editing techniques using sampling patterns

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331824A (en) * 2016-08-31 2017-01-11 杭州当虹科技有限公司 Method of playing streaming media video file with variable rate
CN112738627A (en) * 2020-12-23 2021-04-30 上海哔哩哔哩科技有限公司 Play control method and device

Also Published As

Publication number Publication date
CN115914747A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
US8170396B2 (en) Changing video playback rate
US8310485B1 (en) Creating animation effects
US9607655B2 (en) System and method for seamless multimedia assembly
US9852768B1 (en) Video editing using mobile terminal and remote computer
JP4727342B2 (en) Image processing apparatus, image processing method, image processing program, and program storage medium
US8233772B1 (en) Generating transitions for remapping video playback time
US7189913B2 (en) Method and apparatus for time compression and expansion of audio data with dynamic tempo change during playback
US8320743B2 (en) Dynamic variation of output media signal in response to input media signal
CN109275028B (en) Video acquisition method, device, terminal and medium
JP2007533271A (en) Audio-visual work and corresponding text editing system for television news
US20090183078A1 (en) Instant feedback media editing system
US8411876B2 (en) Preserving noise during editing of a signal
US8295687B1 (en) Indicating different video playback rates
US7890866B2 (en) Assistant editing display method for media clips
US20110052154A1 (en) Transition object free editing
EP2428957B1 (en) Time stamp creation and evaluation in media effect template
CN115914747B (en) Method and system for adjusting playing rate of multimedia fragments
CN107251014A (en) A kind of media editing method, media editor and media computer
US9251256B2 (en) System and method for maintaining cue point data structure independent of recorded time-varying content
EP2159797A1 (en) Audio signal generator, method of generating an audio signal, and computer program for generating an audio signal
CN104994433A (en) Method and device for providing video file
CN112637520B (en) Dynamic video editing method and system
US20050201724A1 (en) Method and system for effect addition in a single multimedia clip
KR102377081B1 (en) Apparatus and method for generating digital contents based on recording operation of multi-track
CN105578260A (en) Video editing method and device

Legal Events

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