CN113207027B - Video playing speed adjusting method and device - Google Patents

Video playing speed adjusting method and device Download PDF

Info

Publication number
CN113207027B
CN113207027B CN202110336967.7A CN202110336967A CN113207027B CN 113207027 B CN113207027 B CN 113207027B CN 202110336967 A CN202110336967 A CN 202110336967A CN 113207027 B CN113207027 B CN 113207027B
Authority
CN
China
Prior art keywords
video
track control
video track
point
speed change
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
CN202110336967.7A
Other languages
Chinese (zh)
Other versions
CN113207027A (en
Inventor
王星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110336967.7A priority Critical patent/CN113207027B/en
Publication of CN113207027A publication Critical patent/CN113207027A/en
Priority to PCT/CN2021/138763 priority patent/WO2022206037A1/en
Application granted granted Critical
Publication of CN113207027B publication Critical patent/CN113207027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application provides a video playing speed adjusting method, a video playing speed adjusting device, electronic equipment, a computer storage medium and a computer program product, wherein the method comprises the following steps: responding to free speed change triggering operation of a target video, and entering a free speed change adjusting interface, wherein the free speed change adjusting interface comprises a video track control and a speed change roller control; in response to the operation of adding or deleting the speed change point, adding or deleting the speed change point in the length direction of the video track control, wherein the speed change point is used for dividing the target video into a plurality of video segments; selecting a target video clip from the plurality of video clips in response to a selection operation on the video track control; and responding to the adjustment operation of the variable-speed roller control, and performing variable-speed adjustment on the target video clip. According to the method and the device, the user can conveniently adjust the scale roller in the variable-speed roller control, so that the target variable-speed value can be quickly and visually selected in one interface, the interaction mode is more convenient and visual, and the user experience is improved.

Description

Video playing speed adjusting method and device
Technical Field
Embodiments of the present application relate to the field of computer technologies, and in particular, to a method and an apparatus for adjusting a video playing speed, an electronic device, a computer storage medium, and a computer program product.
Background
Video speed change is a common function in a video playing scene, and a user can play a video quickly or slowly according to the multiplying power corresponding to the speed change value by selecting the speed change value.
In the related art, a user usually directly performs global speed change on the whole video, and if the user needs to perform speed change on one segment of the video, the user needs to segment the segment in the video through video segmentation software, select a corresponding speed change value for the extracted segment, perform global speed change on the segment, and implement speed change on the segment.
However, in the current scheme, a user needs to separately segment a segment to be shifted and then extract the segment for shifting, which leads to complicated interaction and poor user experience in the shifting process of the segment.
Disclosure of Invention
The embodiment of the application provides a video playing speed adjusting method and device, electronic equipment, a computer storage medium and a computer program product, and aims to solve the problems that in the related art, a user needs to independently segment a segment to be subjected to speed change and then extracts the segment to carry out speed change, so that the interaction of the speed change process of the segment is complicated, and the user experience degree is poor.
In a first aspect, an embodiment of the present application provides a method for adjusting a video playing speed, where the method includes:
responding to free speed change triggering operation of a target video, and entering a free speed change adjusting interface, wherein the free speed change adjusting interface comprises a video track control and a variable speed roller control;
in response to an operation of adding or deleting a speed change point, adding or deleting the speed change point in the length direction of the video track control, wherein the speed change point in the video track control is used for dividing the target video into a plurality of video segments;
selecting a target video clip from the plurality of video clips in response to a selection operation of the video track control;
and responding to the adjustment operation of the variable speed roller control, and performing variable speed adjustment on the target video clip.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the deleting the gearshift point in the length direction of the video track control in response to the deleting the gearshift point operation includes:
under the condition that the time interval between the corresponding time of the central axis in the video track control and the corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first preset time threshold, responding to the triggering operation of the speed change point management control, and deleting the existing intermediate speed change point in the video track control; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the adding of the gearshift point in the length direction of the video track control in response to the adding of the gearshift point operation includes:
under the condition that the time interval between the corresponding time of the central axis in the video track control and the corresponding time of the existing speed change point in the video track control is greater than or equal to a second time threshold, responding to the triggering operation of the speed change point management control, and establishing a new speed change point at the position where the central axis is overlapped with the video track control; the existing shift points include: a shift point already present in the video track control.
In an optional embodiment, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold, the existing intermediate speed change point is in an enlarged display form.
In an alternative embodiment, the method further comprises:
and under the condition that the distance interval between the central axis and the existing intermediate speed change point is smaller than or equal to a preset distance threshold, overlapping the central axis and the existing intermediate speed change point, and simultaneously, amplifying and displaying the existing intermediate speed change point.
In an optional implementation manner, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold, the speed change point management control is displayed as a delete speed change point control.
In an optional implementation manner, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing shift point in the video track control is greater than or equal to a second time threshold, the shift point management control is shown as an additional shift point control.
In an alternative embodiment, the method further comprises:
in the case that the shift points of the starting position and the end position in the video track control are in the displayed area of the video track control, the shift points of the starting position and the end position are displayed in a color different from the other shift points, and the shift points of the starting position and the end position cannot be processed.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the method further comprises the following steps:
under the condition that the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the variable speed point at the initial position or the variable speed point at the tail position in the video track control is less than or equal to a second time threshold, the variable speed point management control is in an inoperable state;
in an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the method further comprises the following steps:
under the condition that the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the existing intermediate speed change point in the video track control is greater than a first time threshold and smaller than a second time threshold, the speed change point management control is in an inoperable state; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
In an alternative embodiment, the first time threshold is 0.6 seconds.
In an alternative embodiment, the second time threshold is 1.2 seconds.
In an optional embodiment, a central axis is provided in the center of the displayed area of the video track control; in the video track control, an interval area formed between adjacent speed change points is used for reflecting a video clip;
the selecting a target video clip from the plurality of video clips in response to the selecting operation of the video track control comprises:
and responding to the sliding operation of the video track control in the length direction, and determining the video clip corresponding to the interval area overlapped with the central axis as the target video clip.
In an optional implementation manner, after determining the video segment corresponding to the interval region overlapping with the central axis as the target video segment, the method further includes:
and highlighting the interval area overlapped with the central axis according to a preset mode.
In an alternative embodiment, the variably adjusting the target video segment in response to the adjustment operation of the variable-speed roller control includes:
determining a target shift value in response to an adjustment operation of the shift roller control;
and adjusting the playing speed of the target video clip according to the target variable speed value.
In an alternative embodiment, the variable speed adjustment modes for the target video include a global variable speed mode and a free variable speed mode.
In a second aspect, an embodiment of the present application provides a video playing speed adjusting apparatus, where the apparatus includes:
a variable speed trigger module configured to enter a free variable speed adjustment interface in response to a free variable speed trigger operation on a target video, the free variable speed adjustment interface including a video track control and a variable speed roller control;
a shift point module configured to add or delete a shift point in a length direction of the video track control in response to an operation of adding or deleting the shift point, the shift point in the video track control being used to divide the target video into a plurality of video segments;
a selecting module configured to select a target video clip from the plurality of video clips in response to a selecting operation of the video track control;
an adjustment module configured to make a variable-speed adjustment to the target video segment in response to an adjustment operation to the variable-speed roller control.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the shift point module includes:
the deleting submodule is configured to delete an existing intermediate speed change point in the video track control in response to a triggering operation on the speed change point management control under the condition that a time interval between a corresponding time of the central axis in the video track control and a corresponding time of an existing intermediate speed change point in the video track control is less than or equal to a first preset time threshold; the existing intermediate shift point includes: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the shift point module includes:
the adding sub-module is configured to respond to triggering operation of the speed change point management control under the condition that a time interval between the corresponding time of the central axis in the video track control and the corresponding time of the existing speed change point in the video track control is greater than or equal to a second time threshold, and establish a new speed change point at a position where the central axis is overlapped with the video track control; the existing shift points include: a shift point already present in the video track control.
In an optional embodiment, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold, the existing intermediate speed change point is in an enlarged display form.
In an alternative embodiment, when the distance interval between the central axis and the existing intermediate shifting point is smaller than or equal to a preset distance threshold, the central axis and the existing intermediate shifting point are overlapped, and the existing intermediate shifting point is displayed in an enlarged manner.
In an optional implementation manner, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold, the speed change point management control is displayed as a delete speed change point control.
In an optional implementation manner, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing shift point in the video track control is greater than or equal to a second time threshold, the shift point management control is shown as an additional shift point control.
In an alternative embodiment, the apparatus further comprises:
and the grey setting module is configured to display the shifting points at the starting position and the ending position in the video track control in different colors from other shifting points when the shifting points at the starting position and the ending position in the video track control are in the displayed area of the video track control, and the shifting points at the starting position and the ending position cannot be processed.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the device further comprises:
the first state changing module is configured to enable the shifting point management control to be in an inoperable state when the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the shifting point at the starting position or the shifting point at the ending position in the video track control is less than or equal to a second time threshold;
in an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the device further comprises:
the second state changing module is configured to enable the speed change point management control to be in an inoperable state under the condition that the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the existing intermediate speed change point in the video track control is greater than a first time threshold and smaller than a second time threshold; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
In an alternative embodiment, the first time threshold is 0.6 seconds.
In an alternative embodiment, the second time threshold is 1.2 seconds.
In an optional embodiment, a central axis is provided in the center of the displayed area of the video track control; in the video track control, an interval area formed between adjacent speed change points is used for reflecting a video clip;
the selecting module further comprises:
and the selecting submodule is configured to respond to the sliding operation of the video track control in the length direction, and determine the video clip corresponding to the interval area overlapped with the central axis as the target video clip.
In an alternative embodiment, the apparatus further comprises:
and the protruding submodule is configured to highlight the interval region overlapped with the central axis according to a preset mode.
In an alternative embodiment, the adjustment module further comprises:
a determination sub-module configured to determine a target shift value in response to an adjustment operation of the shift roller control;
and the adjusting sub-module is configured to adjust the playing speed of the target video clip according to the target variable speed value.
In an alternative embodiment, the variable speed adjustment modes for the target video include a global variable speed mode and a free variable speed mode.
In a third aspect, an embodiment of the present application further provides an electronic device, including a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the video playback speed adjustment.
In a fourth aspect, the present application further provides a storage medium, where instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the video playback speed adjustment.
In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the video playing speed adjustment.
In the embodiment of the application, the application can provide the user with the free variable speed adjusting interface after responding to the free variable speed triggering operation of the target video, so that the user can conveniently and quickly adjust the scale roller in the variable speed roller control, the target variable speed value can be quickly and visually selected in one interface, and the target variable speed value can be selected by adjusting the scale roller, a new interaction mode is realized, the interaction mode is more convenient and visual compared with a fragment variable speed mode in the related technology, and the user experience is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of a video playing speed adjusting method according to an embodiment of the present application;
fig. 2 is a view of a video playback speed adjustment interface provided in an embodiment of the present application;
FIG. 3 is a diagram of another video playback speed adjustment interface provided by an embodiment of the present application;
FIG. 4 is a diagram of another video playback speed adjustment interface provided by an embodiment of the present application;
FIG. 5 is a flowchart illustrating steps of another method for adjusting a video playback speed according to an embodiment of the present application;
FIG. 6 is a diagram of another video playback speed adjustment interface provided by an embodiment of the present application;
FIG. 7 is a diagram of another video playback speed adjustment interface provided by an embodiment of the present application;
FIG. 8 is a diagram of an alternative video playback speed adjustment interface provided by an embodiment of the present application;
FIG. 9 is a diagram of another interface for adjusting video playback speed according to an embodiment of the present application;
FIG. 10 is a diagram of an alternative video playback speed adjustment interface provided by an embodiment of the present application;
FIG. 11 is a diagram of an alternative video playback speed adjustment interface provided by an embodiment of the present application;
fig. 12 is a block diagram of a video playing speed adjusting apparatus according to an embodiment of the present application;
FIG. 13 is a logical block diagram of an electronic device of one embodiment of the present application;
fig. 14 is a logic block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating steps of a video playing speed adjustment method according to an embodiment of the present application, where as shown in fig. 1, the method may include:
step 101, responding to a free speed change triggering operation of a target video, and entering a free speed change adjusting interface, wherein the free speed change adjusting interface comprises a video track control and a speed change roller control.
In the embodiment of the application, the electronic device can respond to the variable-speed trigger operation of the user on the target video, so as to enter the variable-speed adjustment interface. Specifically, referring to fig. 2, which shows a video playing speed adjustment interface diagram provided in an embodiment of the present application, fig. 2 shows an interface entered after a target video is selected and edited, including: a video preview area 10, a video track control 20, a primary navigation area 30. The video preview area 10 can perform preview playing on the target video.
In fig. 2, the primary navigation area 30 contains the buttons for the common editing functions of the target video, such as: a "shift" button; an "special effects" button; a "watermark" button; a "canvas" button, etc. In the embodiment of the present application, when a user has a demand for adjusting the playing speed of a target video, the user may trigger a "shift" button in the primary navigation area 30 to enter a shift adjustment interface as shown in fig. 3, where the shift adjustment interface shown in fig. 3 may include the video preview area 10, the video track control 20, and the shift roller control 40 is configured to select a corresponding shift value in response to an adjustment operation of the user.
Further, fig. 3 also includes a global gearshift control 51 and a free gearshift control 52, and the user can trigger the corresponding controls to enter the corresponding gearshift mode.
In this step, after the user triggers the free-shift control 52, the electronic device may enter a free-shift adjustment interface as shown in fig. 4 in response to the free-shift trigger operation on the target video. The free speed change means that a user can select any video clip in a target video and select a target speed change value corresponding to the video clip, and different video clips can have different speed change values.
Specifically, in fig. 3 and 4, the video track control 20 includes multiple video frames 21 of the target video, that is, the video track control 20 may display the target video in a frame sequential stream according to the playing time sequence of the target video, and two video frames 21 connected in the video track control 20 may be two adjacent video frames in the target video or two video frames separated by a certain time length in the target video. The user can slide the video track control 20 left and right, so as to conveniently view and select the contents of different positions of the target video.
The variable speed roller control 40 includes a scale roller capable of being slid left and right, and the scale roller has a plurality of variable speed values arranged at intervals, for example, a variable speed value of 2x indicates that a video is played at 2 times, and a variable speed value of 1/2x indicates that a video is played at 1/2 times.
It should be noted that the control refers to encapsulation of data and methods, and the control may have its own attributes and methods, where the attribute is a simple visitor of the control data, and the method is some simple and visible functions of the control.
And 102, responding to the operation of adding or deleting the speed change point, and adding or deleting the speed change point in the length direction of the video track control, wherein the speed change point in the video track control is used for dividing the target video into a plurality of video segments.
In this embodiment of the application, a plurality of shift points 21 may exist at intervals in the length direction of the video track control 20, where the shift points 21 are used to divide the target video into a plurality of video segments, where a user may add shift points at positions other than the start position and the end position in the video track control 20 by himself or delete existing intermediate shift points other than the shift points at the start position and the end position in the video track control 20 according to actual needs. In addition, if the user divides the target video into a plurality of video segments in advance, the shifting points 21 corresponding to the start times of the video segments can be automatically established in the length direction of the video track control 20 by using the start times of the video segments.
And 103, responding to the selection operation of the video track control, and selecting a target video clip from the plurality of video clips.
In the embodiment of the application, a user can slide the video track control left and right, so that the contents of different positions of the target video can be conveniently viewed and selected. Therefore, the electronic device can select the target video clip from the target video in response to the user's selection operation of the video track control.
For example, referring to fig. 4, the user selects a video clip corresponding to the interval region between the second and third shift points from the left as the target video clip by sliding the video track control 20 left and right.
And 104, responding to the adjustment operation of the variable speed roller control, and performing variable speed adjustment on the target video clip.
Specifically, referring to fig. 4, after selecting a target video segment, a user may slide a scale roller in the variable speed roller control 40 to select a target variable speed value for controlling the playing speed of the target video segment, wherein a center line 41 of the scale roller is disposed at a center position in the width direction of an area where the variable speed roller control 40 is located, and in a process of sliding the scale roller by the user, a variable speed value corresponding to a scale overlapped with the center line 41 is the target variable speed value. As in fig. 4, 4x is selected as the target shift value. The target video segment may then be 4x fast played based on the 4x fast play variable value.
In the embodiment of the application, electronic equipment can provide a user free variable speed adjusting interface after responding to the free variable speed triggering operation of a target video, so that the user can conveniently and quickly adjust the scale roller in the variable speed roller control, the target variable speed value can be quickly and visually selected in one interface, the target variable speed value is selected by adjusting the scale roller, a new interaction mode is realized, the interaction mode is more convenient and visual compared with a fragment variable speed mode in the related technology, and the user experience is improved.
To sum up, the video playing speed adjusting method provided by the embodiment of the application can provide a user free variable speed adjusting interface after responding to the free variable speed triggering operation of the target video, so that the user can conveniently and rapidly adjust the scale roller in the variable speed roller control, the target variable speed value can be rapidly and visually selected in one interface, the target variable speed value is selected by adjusting the scale roller, a new interaction mode is realized, the interaction mode is more convenient and visual than a fragment variable speed mode in the related technology, and the user experience is improved.
Fig. 5 is a flowchart illustrating steps of another video playing speed adjustment method provided in an embodiment of the present application, and as shown in fig. 5, the method may include:
step 201, responding to a free speed change triggering operation of a target video, and entering a free speed change adjusting interface, wherein the free speed change adjusting interface comprises a video track control and a variable speed roller control.
The variable-speed roller control is displayed in a preset pop-up window, the pop-up window is triggered and displayed by the variable-speed triggering operation, and a global variable-speed control and a free variable-speed control are further displayed in the pop-up window.
In an embodiment of the present application, the variable speed adjustment interface comprises: the global gearshift adjustment interface of fig. 3 and the free gearshift adjustment interface of fig. 4, when entering the gearshift adjustment interface in response to the gearshift trigger operation on the target video, may trigger the pop-up window 50 to pop-up for display, and the gearshift roller control 40 is displayed in the pop-up window 50, so that the gearshift roller control 40 and the video track control 20 may be displayed separately, having a clearer interface hierarchical relationship, and optimizing the layout of the gearshift adjustment interface.
Optionally, the variable speed adjustment mode for the target video includes a global variable speed mode and a free variable speed mode.
Further, the embodiment of the present application provides two speed changing modes: the method comprises global speed change and free speed change, wherein the global speed change refers to the speed change performed by selecting a target speed change value as the whole target video. Therefore, the embodiment of the present application may present the global shifting control 51 and the free shifting control 52 in the pop-up window 50, and the user may trigger the corresponding control to enter the corresponding shifting mode.
It should be noted that, when entering a speed change adjustment interface for a target video for the first time, the global speed change mode is entered by default, and a user may switch to the free speed change mode by selecting the free speed change control. In addition, after exiting the global speed change mode, the user can directly enter the global speed change mode when entering the speed change adjusting interface next time; after the user exits the free speed change mode, the user can directly enter the free speed change mode when entering the speed change adjusting interface next time.
And 202, in response to the operation of adding or deleting the speed change point, adding or deleting the speed change point in the length direction of the video track control, wherein the speed change point in the video track control is used for dividing the target video into a plurality of video segments.
This step may specifically refer to step 102, which is not described herein again.
Optionally, referring to fig. 4, a speed change point management control 53 is further shown in the free speed change adjustment interface, and a central axis 22 is arranged in the center of the displayed area of the video track control 20; step 202 may specifically include:
and the substep 2021, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of an existing intermediate speed change point in the video track control is less than or equal to a preset time threshold, responding to a trigger operation on the speed change point management control, and deleting the existing intermediate speed change point in the video track control.
Wherein the existing intermediate shift point comprises: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
Optionally, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a preset time threshold, the existing intermediate speed change point is in an enlarged display form.
Optionally, the first time threshold is 0.6 seconds.
In practical application, one video clip may have a minimum time length limitation, so as to avoid an invaluable video clip with too short time, and in the video track control, different positions correspond to different picture frame playing times, and since an interval region between two shift points constitutes one video clip, a time interval between a time corresponding to one shift point and a time corresponding to another shift point needs to be smaller than the minimum time length that the video clip may have, preferably, the minimum time length that the video clip may have is 1.2 seconds.
In the embodiment of the present application, a function of deleting a speed change point is provided, and referring to fig. 6, an existing intermediate speed change point selected by a central axis 22 may be determined as a speed change point to be deleted, and specifically, how to determine that the central axis 22 selects the existing intermediate speed change point, in the embodiment of the present application, based on a setting that a minimum time length that a video clip may have is 1.2 seconds, a time interval between a time instant of the central axis in a video track control and a time instant of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold of 0.6 seconds, and it is determined that the existing intermediate speed change point is selected for the central axis 22. I.e., the axis is within 0.6 seconds before and after a shift point, the axis is considered to have selected the shift point. In fig. 6, when the time interval between the time corresponding to the central axis in the video track control and the time corresponding to the existing intermediate speed change point in the video track control is less than or equal to the first time threshold of 0.6 seconds, it is determined that the existing intermediate speed change point is selected for the central axis 22.
In addition, in order to more prominently display the selected existing intermediate speed change point, in an implementation manner of the embodiment of the application, the selected existing intermediate speed change point may be displayed in an enlarged manner under the condition that a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold, so as to improve the perception of the user on the selected existing intermediate speed change point. I.e., the central axis is within 0.6 seconds before and after a shift point, the central axis is considered to select the shift point, and the shift point is displayed in an enlarged and highlighted manner.
Optionally, the speed change point management control is displayed as a speed change point deletion control when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold.
In this embodiment of the application, in order to implement a management function (deletion function) on a shift point, referring to fig. 6, a shift point management control 53 may be further shown in the pop-up window 50, and when a time interval between a corresponding time of the central axis 22 in the video track control 20 and a corresponding time of an existing intermediate shift point in the video track control 20 is less than or equal to a first time threshold, it is considered that the central axis 22 selects the existing intermediate shift point, and at this time, a file in the shift point management control 53 may become a "delete shift point", and the electronic device may delete the existing intermediate shift point in the video track control 20 in response to a triggering operation of the shift point management control 53 by a user.
Optionally, when a distance interval between the central axis and the existing intermediate speed change point is smaller than or equal to a preset distance threshold, the central axis is overlapped with the existing intermediate speed change point, and the existing intermediate speed change point is displayed in an enlarged manner.
In addition, in order to more prominently display the selected existing intermediate speed change point, in another implementation manner of the embodiment of the application, under the condition that the central axis is extremely close to the existing intermediate speed change point, the relative position relationship between the existing intermediate speed change point and the central axis can be automatically changed, the existing intermediate speed change point is absorbed to be overlapped with the central axis, the existing intermediate speed change point is displayed in an enlarged manner, and the perception of the user on the selected existing intermediate speed change point is improved.
It should be noted that, in a case that the distance interval between the central axis and the existing intermediate speed change point is less than or equal to a preset distance threshold, the central axis is considered to be very close to the existing intermediate speed change point, and preferably, the preset distance threshold may be 30 pixel distance, that is, when the central axis is within a range of 30 pixel distance before and after one speed change point, the speed change point is absorbed to be overlapped with the central axis, and the speed change point is displayed in an enlarged manner.
Optionally, referring to fig. 7, a speed change point management control 53 is further displayed in the free speed change adjustment interface, and a central axis 22 is disposed in the center of the displayed area of the video track control 20; step 202 may specifically include:
substep 2022, in a case that a time interval between a corresponding time of the central axis in the video track control and a corresponding time of an existing intermediate speed change point in the video track control is less than or equal to a first preset time threshold, responding to a trigger operation on the speed change point management control, and deleting the existing intermediate speed change point in the video track control; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
Optionally, the second time threshold is 1.2 seconds.
In the embodiment of the present application, an adding function of the shift point is provided, and referring to fig. 7, the embodiment of the present application may determine that the central axis 22 is at the position where the variable speed can be added based on the setting that the minimum time length that the video clip may have is 1.2 seconds, where a time interval between the corresponding time of the central axis in the video track control and the corresponding time of the existing intermediate shift point in the video track control is greater than or equal to the second time threshold of 1.2 seconds. That is, when the central axis is out of the range of 1.2 seconds before and after one shifting point, it is considered that the shifting point can be added at the position of the central axis to ensure that the minimum time length of the video clip is not less than 1.2 seconds.
Optionally, the speed change point management control is displayed as a speed change point addition control when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing speed change point in the video track control is greater than or equal to a second time threshold.
In this embodiment of the application, in order to implement a management function (delete function) on a shift point, referring to fig. 7, a shift point management control 53 may be further shown in the pop-up window 50, and when a time interval between a corresponding time of the central axis 22 in the video track control 20 and a corresponding time of the existing shift point in the video track control 20 is greater than or equal to a second time threshold, it is determined that the central axis 22 is at a position where a variable speed can be added, at this time, a file in the shift point management control 53 may become "add a shift point", and the electronic device may add a new shift point at the position where the central axis 22 is located in response to a triggering operation of the shift point management control 53 by a user.
According to the embodiment of the application, only one speed change point management control is used, the adding/deleting management function of the speed change point can be realized in a quick and convenient interactive mode, and the complexity of a speed change adjusting interface and operation logic is reduced.
It should be noted that, the user may also perform a dragging operation on other shift points except for the shift point at the start position and the shift point at the end position of the video track control, so as to change the position of the dragged shift point in the video track control, thereby achieving the purpose of changing the division of the video segments.
Step 203, in response to the sliding operation in the length direction of the video track control, determining a video clip corresponding to the interval area overlapped with the central axis as the target video clip.
The center of the displayed area of the video track control is provided with a central axis; in the video track control, an interval area formed between adjacent speed change points is used for reflecting a video clip.
Specifically, referring to fig. 4, selecting a target video clip may be implemented by using the video track control 20, and a user may slide the video track control 20 left and right along the length direction, so as to change a relative position relationship between a displayed region of the video track control 20 and the central axis 22, when the central axis 22 overlaps with one interval region, the video clip corresponding to the interval region is used as the target video clip, and in fig. 4, when the central axis 22 overlaps with the interval region between the second and third speed change points from the left, the video clip corresponding to the interval region may be used as the target video clip.
And step 204, highlighting the interval area overlapped with the central axis according to a preset mode.
Referring to fig. 4, in order to improve the user's perception of the selected target video segment, the embodiment of the present application may highlight the interval region corresponding to the target video segment according to a preset manner, for example, in fig. 4, the interval region overlapping with the central axis corresponds to the target video segment, and the interval region may be displayed in an enlarged manner, so as to improve the user's perception.
Step 205, determining a target gear shift value in response to an adjustment operation of the gear shift roller control.
And step 206, adjusting the playing speed of the target video clip according to the target variable speed value.
In the embodiment of the present application, referring to fig. 4, while the target video segment is selected, the user may slide the scale roller in the variable speed roller control 40, so as to select a target variable speed value for controlling the playing speed of the target video segment, for example, in fig. 4, a variable speed value 4x is selected for a video segment corresponding to an interval region between the second and third variable speed points from the left. After the shift value of 4x is selected, the video clip can be played back at a speed that is 4x times faster.
Optionally, the method may further include:
and step 207, in the case that the shift point at the starting position and the shift point at the ending position in the video track control are in the displayed area of the video track control, displaying the shift point at the starting position and the shift point at the ending position in a color different from other shift points, and enabling the shift point at the starting position and the shift point at the ending position not to be processed.
Referring to fig. 8, when the shift points at the start position and the shift points at the end position in the video track control 20 are in the displayed area of the video track control 20, they may be displayed in a color different from the other shift points, for example, black shift points may be shown in the figure, since the shift points at the start position and the shift points at the end position are considered to be inoperable, that is, they cannot be deleted or dragged, the shift point management control 53 may be set in an inoperable state when the central axis 22 overlaps with the shift points at the start position or the shift points at the end position, and the shift point management control 53 may be grayed out to inform the user that the shift point management control 53 is in an inoperable state at this time and cannot process the shift points at the start position and the shift points at the end position when the central axis 22 selects the shift points at the start position and the shift points at the end position.
Optionally, referring to fig. 8, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is disposed in the center of the displayed area of the video track control; the method may further comprise:
and 208, under the condition that the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the variable speed point at the initial position or the variable speed point at the tail position in the video track control is less than or equal to a second time threshold, the variable speed point management control is in an inoperable state.
Alternatively, the second time threshold may be 1.2 seconds.
In this embodiment, referring to fig. 8, based on the setting that the minimum time length that a video clip may have is 1.2 seconds, when the corresponding time of the central axis in the video track control is less than or equal to the second time threshold, and when the interval time between the shift point at the start position and the shift point at the end position in the video track control and the corresponding time in the video track control is less than or equal to the second time threshold, in order to avoid that the minimum time length of the video clip at the beginning and the end of the video is less than 1.2 seconds, the shift point management control may be set to the inoperable state, and may be grayed out and displayed.
Step 209, under the condition that the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the existing intermediate speed change point in the video track control is greater than a first time threshold and less than a second time threshold, the speed change point management control is in an inoperable state; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
Alternatively, the first time threshold may be 0.6 seconds, and the second time threshold may be 1.2 seconds.
In the embodiment of the present application, regarding an existing intermediate speed change point other than a speed change point at a start position and a speed change point at an end position of a video track control, when a central axis is within 0.6 seconds before and after the existing intermediate speed change point, it is considered that the existing intermediate speed change point is selected by a central axis, the existing intermediate speed change point may be further deleted by a speed change point management control, and when the central axis is within 1.2 seconds after and 0.6 seconds before and after the existing intermediate speed change point, in order to avoid that a minimum time length of a video clip obtained by dividing the existing intermediate speed change point is less than 1.2 seconds, the speed change point management control should be set to an inoperable state, and the speed change point management control should be grayed out and displayed, so as to avoid performing an adding operation of the speed change point at a position outside 0.6 seconds before and after the existing intermediate speed change point and within 1.2 seconds.
Optionally, the method may further include:
and 210, responding to global variable speed trigger operation of the target video, and entering a global variable speed adjustment interface, wherein the global variable speed adjustment interface comprises a video track control and a variable speed roller control.
And step 211, responding to the adjustment operation of the variable-speed roller control, and performing variable-speed adjustment on the target video.
In an embodiment of the present application, the variable speed adjustment interface may include: the global variable speed adjustment interface of fig. 3 may perform a global variable speed operation after entering the global variable speed adjustment interface of fig. 3 in response to a global variable speed trigger operation on a target video, where the global variable speed refers to selecting a target variable speed value as a whole target video through a variable speed roller control to perform variable speed. As in fig. 3, a 2 × variable value can be selected to perform a 2 × fast playback of the target video.
And 212, adjusting the length of the video track control according to the target variable speed value.
In the embodiment of the application, since the length of the video track control reflects the length of the playing time of the target video, and the playing time of the target video can be changed by performing variable speed adjustment on the target video, for example, the playing time of the target video can be shortened by 1/2 by performing 2x variable speed fast playing on the target video; the target video is slowly played at a speed of 1/2x, so that the playing time of the target video can be increased by 2 times.
In order to enable a user to intuitively feel the influence of the speed change operation on the target video playing time, the length of the video track control can be correspondingly adjusted according to the target speed change value, for example, referring to fig. 3, when the target speed change value is 2x, the length of the video track control can be changed to 1/2 of the length of the video track control when the speed change value is 1x (normal playing speed), so that the user can intuitively perceive that the time length for putting down the target video at 2 times of speed is shortened by 1/2 through the change of the length of the video track control; referring to fig. 9, if the target variable speed value is adjusted from 2x to 4x, the length of the video track control can be changed to 1/2 of the length of the video track control when the variable speed value is 2x, so that the purpose of dynamically adjusting the length of the video track control through the value of the target variable speed value is achieved.
Specifically, step 212 may specifically include:
and a substep 2121 of, when the target variable speed value is greater than 1, shortening the length of the video track control by taking the target variable speed value as a shortening factor.
In the embodiment of the present application, in the process of performing global speed change, when the target speed change value is greater than 1, it may be considered that a fast play operation is performed on a target video, so that a play duration of the target video is shortened, and in order to enable a user to intuitively feel an influence of the fast play operation on the play duration of the target video, the length of a video track control may be shortened by taking the target speed change value as a reduction multiple, for example, a 2x speed change fast play is performed on the target video, so that the play duration of the target video is shortened by 1/2, and the length of the video track control may be shortened by 1/2.
And a substep 2122 of extending the length of the video track control by taking the inverse of the target variable speed value as an extension multiple when the target variable speed value is greater than 0 and less than 1.
In the embodiment of the present application, in the process of performing global speed change, when the target speed change value is greater than 0 and less than 1, it may be considered that a slow play operation is performed on a target video, so that the play duration of the target video is lengthened, and in order to enable a user to intuitively feel an influence of the slow play operation on the play duration of the target video, in the embodiment of the present application, the length of a video track control may be extended by taking the reciprocal of the target speed change value as an extension multiple, for example, the target video is slowly played at a 1/2x speed change, so that the play duration of the target video is increased by 2 times, and the length of the video track control may be extended by 2 times.
Optionally, after step 206, the method may further include:
and step 213, under the condition that the target variable speed value is greater than 1, shortening the length of the area corresponding to the target video clip in the video track control by taking the target variable speed value as a shortening multiple.
In this embodiment, in the process of performing free speed change, when the target speed change value is greater than 1, it may be considered that a fast play operation is performed on the target video clip, so that the play duration of the target video clip is shortened, and in this embodiment, the length of the region corresponding to the target video clip in the video track control may be shortened by using the target speed change value as a reduction multiple, for example, in fig. 4, a 4x speed change fast play is performed on the target video clip (the video clip corresponding to the interval region overlapped with the central axis), so that the play duration of the target video clip is shortened by 1/4, and then the length of the region corresponding to the target video clip in the video track control 20 may be shortened to 1/4.
Further, referring to fig. 7, if the target video segment (the video segment corresponding to the interval region overlapping the central axis) is further adjusted from the 4x variable speed quick playback to the 2x variable speed quick playback, the length of the region corresponding to the target video segment in the video track control 20 is adjusted to be 2 times the length of the region corresponding to the target video segment in the video track control 20 during the 4x variable speed quick playback. The user can intuitively feel the influence of the variable speed operation on the playing time of the target video clip.
And 214, under the condition that the target variable speed value is greater than 0 and less than 1, extending the length of the region corresponding to the target video clip in the video track control by taking the reciprocal of the target variable speed value as an extension multiple.
In this embodiment of the present application, in the process of performing free speed change, when the target speed change value is greater than 0 and less than 1, it may be considered that a slow play operation is performed on the target video clip, so that the playing time of the target video clip is increased, and in order to enable a user to intuitively feel an influence of the slow play operation on the playing time of the target video clip, in the embodiment of the present application, the length of the region corresponding to the target video clip in the video track control may be extended by taking the reciprocal of the target speed change value as an extension multiple.
Optionally, in an implementation manner, step 205 may specifically include:
substep 2051, in response to an adjustment operation on a scale roller in the change roller control, determining a change value in the scale roller that overlaps with a center line of a display area of the change roller control as the target change value; the shift values that overlap the centerline have a highlighted background of a preset size and color.
And a substep 2052 of displaying the target gear change value at a preset position of a displayed area of the video track control.
Referring to fig. 10, in an implementation manner, in a process of selecting a target speed change value, a speed change value overlapping with a center line 41 of a display area of a speed change roller control 40 in a scale roller may be determined as the target speed change value, in order to improve a striking degree of the selected target speed change value, in an embodiment of the present application, a highlight display background 42 with a preset size and a preset color may be set for the target speed change value, and in addition, the target speed change value may be displayed at a preset position of the displayed area of a video track control, for example, in fig. 10, the target speed change value may be fixed at a lower left corner of the displayed area of the video track control to display the target speed change value. This approach may enable the critical information: the display of the target variable speed value is clearer and more stable.
Optionally, in another implementation manner, a central axis is arranged in the center of the displayed area of the video track control; step 205 may specifically include:
sub-step 2053, in response to an adjustment operation on a scale roller in the change roller control, determines a change value in the scale roller that overlaps with a center line of a display area of the change roller control as the target change value.
Substep 2054, displaying the target gear change value on one side of the central axis.
Referring to fig. 11, in another implementation manner, in the process of selecting the target speed change value, the speed change value overlapping with the center line 41 of the display area of the speed change roller control 40 in the scale roller may be determined as the target speed change value, and in order to improve the striking degree of the selected target speed change value, the target speed change value may be displayed on a fixed side of the central axis 22 in the embodiment of the present application, for example, the target speed change value may be displayed on a right side of the central axis 22 in fig. 11. This approach may enable the critical information: the display of the target shift value is visually more focused, reducing distraction.
To sum up, the video playing speed adjusting method provided by the embodiment of the application can provide a user free variable speed adjusting interface after responding to the free variable speed triggering operation of the target video, so that the user can conveniently and rapidly adjust the scale roller in the variable speed roller control, the target variable speed value can be rapidly and visually selected in one interface, the target variable speed value is selected by adjusting the scale roller, a new interaction mode is realized, the interaction mode is more convenient and visual than a fragment variable speed mode in the related technology, and the user experience is improved.
Fig. 12 is a block diagram of a video playback speed adjustment apparatus according to an embodiment of the present application, and as shown in fig. 12, the apparatus includes: a speed change triggering module 301, a speed change point module 302, a selecting module 303 and an adjusting module 304.
A variable-speed triggering module 301 configured to enter a free-variable-speed adjustment interface in response to a free-variable-speed triggering operation on a target video, the free-variable-speed adjustment interface including a video track control and a variable-speed roller control;
a shift point module 302 configured to add or delete a shift point in a length direction of the video track control in response to an operation of adding or deleting the shift point, the shift point in the video track control being used to divide the target video into a plurality of video segments;
a selecting module 303 configured to select a target video segment from the plurality of video segments in response to a selecting operation of the video track control;
an adjustment module 304 configured to make a variable-speed adjustment to the target video segment in response to an adjustment operation of the variable-speed wheel control.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the shift point module includes:
the deleting submodule is configured to delete an existing intermediate speed change point in the video track control in response to a triggering operation on the speed change point management control under the condition that a time interval between a corresponding time of the central axis in the video track control and a corresponding time of an existing intermediate speed change point in the video track control is less than or equal to a first preset time threshold; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the shift point module includes:
the adding sub-module is configured to respond to triggering operation of the speed change point management control under the condition that a time interval between the corresponding time of the central axis in the video track control and the corresponding time of the existing speed change point in the video track control is greater than or equal to a second time threshold, and establish a new speed change point at a position where the central axis is overlapped with the video track control; the existing shift points include: the existing shift points in the video track control.
In an optional implementation manner, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold, the existing intermediate speed change point is in an enlarged display form.
In an optional implementation manner, when a distance interval between the central axis and the existing intermediate speed change point is smaller than or equal to a preset distance threshold, the central axis is overlapped with the existing intermediate speed change point, and the existing intermediate speed change point is displayed in an enlarged manner.
In an optional implementation manner, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold, the speed change point management control is displayed as a delete speed change point control.
In an optional implementation manner, when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of the existing speed change point in the video track control is greater than or equal to a second time threshold, the speed change point management control is displayed as an additional speed change point control.
In an alternative implementation, the apparatus further includes:
and the grey setting module is configured to display the shifting points at the starting position and the ending position in the video track control in different colors from other shifting points when the shifting points at the starting position and the ending position in the video track control are in the displayed area of the video track control, and the shifting points at the starting position and the ending position cannot be processed.
In an optional implementation manner, a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of a displayed area of the video track control;
the device further comprises:
the first state changing module is configured to enable the shifting point management control to be in an inoperable state when the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the shifting point at the starting position or the shifting point at the ending position in the video track control is less than or equal to a second time threshold;
the second state changing module is configured to enable the speed change point management control to be in an inoperable state under the condition that the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the existing intermediate speed change point in the video track control is greater than a first time threshold and smaller than a second time threshold; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
In an alternative implementation, the first time threshold is 0.6 seconds.
In an alternative implementation, the second time threshold is 1.2 seconds.
In an optional implementation manner, a central axis is arranged in the center of the displayed area of the video track control; in the video track control, an interval area formed between adjacent speed change points is used for reflecting a video clip;
the selecting module further comprises:
the selecting submodule is configured to determine a video clip corresponding to the interval area overlapped with the central axis as the target video clip in response to the sliding operation of the video track control in the length direction.
In an alternative implementation, the apparatus further includes:
and the protruding submodule is configured to highlight the interval region overlapped with the central axis according to a preset mode.
In an optional implementation, the adjusting module further comprises:
a determination sub-module configured to determine a target shift value in response to an adjustment operation of the shift roller control;
and the adjusting sub-module is configured to adjust the playing speed of the target video clip according to the target variable speed value.
In an alternative implementation, the variable speed adjustment modes for the target video include a global variable speed mode and a free variable speed mode.
To sum up, the video broadcast speed adjusting device that this application embodiment provided, this application can be in response to the free variable speed trigger operation back to the target video, offer user's free variable speed regulation interface, make user can be convenient through adjusting the operation to scale gyro wheel in the variable speed gyro wheel controlling part, thereby quick in an interface, audio-visually select the target variable speed value, and carry out the selection of target variable speed value through adjusting the scale gyro wheel, a new interactive mode has been realized, this kind of interactive mode is compared in the fragment variable speed mode in the correlation technique more convenient directly perceived, user experience has been improved.
Fig. 13 is a block diagram illustrating an electronic device 600 in accordance with an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 13, electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is used to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, multimedia, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 606 provides power to the various components of the electronic device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense demarcations of touch or slide actions, but also detect duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 600 is in an operation mode, such as a photographing mode or a multimedia mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is used to output and/or input audio signals. For example, the audio component 610 may include a Microphone (MIC) for receiving external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the electronic device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the electronic device 600, and a change in the temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is operable to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components, for implementing a video play speed adjustment method provided by an embodiment of the present application.
In an exemplary embodiment, a non-transitory computer storage medium including instructions, such as the memory 604 including instructions, executable by the processor 620 of the electronic device 600 to perform the above-described method is also provided. For example, the non-transitory storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 14 is a block diagram illustrating an electronic device 700 according to an example embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 14, electronic device 700 includes a processing component 722 that further includes one or more processors, and memory resources, represented by memory 732, for storing instructions, such as applications, that are executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. In addition, the processing component 722 is configured to execute instructions to execute a video playing speed adjusting method provided by the embodiment of the present application.
The electronic device 700 may also include a power component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input/output (I/O) interface 758. The electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
The embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for adjusting the video playing speed is implemented.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (32)

1. A method for adjusting video playing speed, the method comprising:
responding to free speed change triggering operation of a target video, and entering a free speed change adjusting interface, wherein the free speed change adjusting interface comprises a video track control and a variable speed roller control;
in response to an operation of adding or deleting a speed change point, adding or deleting the speed change point in the length direction of the video track control, wherein the speed change point in the video track control is used for dividing the target video into a plurality of video fragments;
selecting a target video clip from the plurality of video clips in response to a selection operation of the video track control;
performing variable-speed adjustment on the target video clip in response to an adjustment operation on the variable-speed roller control;
in the case that the shift points of the starting position and the end position in the video track control are in the displayed area of the video track control, the shift points of the starting position and the end position are displayed in a color different from the other shift points, and the shift points of the starting position and the end position cannot be processed.
2. The method according to claim 1, wherein a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of the displayed area of the video track control;
the deleting the gearshift point in the length direction of the video track control in response to the deleting the gearshift point operation includes:
under the condition that the time interval between the corresponding time of the central axis in the video track control and the corresponding time of the existing intermediate speed change point in the video track control is less than or equal to a first time threshold, responding to the triggering operation of the speed change point management control, and deleting the existing intermediate speed change point in the video track control; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
3. The method according to claim 1, wherein a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of the displayed area of the video track control;
the adding of the gearshift point in the length direction of the video track control in response to the adding of the gearshift point operation includes:
under the condition that the time interval between the corresponding time of the central axis in the video track control and the corresponding time of the existing speed change point in the video track control is greater than or equal to a second time threshold, responding to the triggering operation of the speed change point management control, and establishing a new speed change point at the position where the central axis is overlapped with the video track control; the existing shift points include: a shift point already present in the video track control.
4. The method according to claim 2, wherein the existing intermediate shifting point is in an enlarged presentation form in case a time interval between a corresponding time instant of the central axis in the video track control and a corresponding time instant of the existing intermediate shifting point in the video track control is less than or equal to a first time threshold.
5. The method of claim 2, further comprising:
and under the condition that the distance interval between the central axis and the existing intermediate speed change point is smaller than or equal to a preset distance threshold, overlapping the central axis and the existing intermediate speed change point, and simultaneously displaying the existing intermediate speed change point in an amplifying way.
6. The method of claim 2, wherein the gearshift point management control is exposed as a delete gearshift point control if a time interval between a time instant corresponding to the central axis in the video track control and a time instant corresponding to the existing intermediate gearshift point in the video track control is less than or equal to a first time threshold.
7. The method of claim 3, wherein the gearshift point management control is exposed as adding a gearshift point control if a time interval between a time instant corresponding to the central axis in the video track control and a time instant corresponding to the existing gearshift point in the video track control is greater than or equal to a second time threshold.
8. The method according to claim 1, wherein a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of the displayed area of the video track control;
the method further comprises the following steps:
and under the condition that the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the variable speed point at the initial position or the variable speed point at the tail position in the video track control is less than or equal to a second time threshold, the variable speed point management control is in an inoperable state.
9. The method according to claim 1, wherein a speed change point management control is further displayed in the free speed change adjustment interface, and a central axis is arranged in the center of the displayed area of the video track control;
the method further comprises the following steps:
under the condition that the interval time between the corresponding time of the central axis in the video track control and the corresponding time of the existing intermediate speed change point in the video track control is greater than a first time threshold and less than a second time threshold, the speed change point management control is in an inoperable state; the existing intermediate shift points include: and other existing shifting points except the shifting point at the starting position and the shifting point at the ending position of the video track control.
10. The method of any of claims 2, 4, 6, and 9, wherein the first time threshold is 0.6 seconds.
11. The method of any of claims 3, 7, 8, and 9, wherein the second time threshold is 1.2 seconds.
12. The method of claim 1, wherein a central axis is provided in the center of the presented area of the video track control; in the video track control, an interval area formed between adjacent speed change points is used for reflecting a video clip;
the selecting a target video clip from the plurality of video clips in response to the selecting operation of the video track control comprises:
and responding to the sliding operation of the video track control in the length direction, and determining the video clip corresponding to the interval area overlapped with the central axis as the target video clip.
13. The method according to claim 12, wherein after determining the video segment corresponding to the interval region overlapping the central axis as the target video segment, the method further comprises:
and highlighting the interval area overlapped with the central axis according to a preset mode.
14. The method of claim 1, wherein the variably-adjusting the target video segment in response to the adjustment operation of the variable-speed roller control comprises:
determining a target shift value in response to an adjustment operation of the shift roller control;
and adjusting the playing speed of the target video clip according to the target variable speed value.
15. The method of claim 1, wherein the variable speed adjustment modes for the target video include a global variable speed mode and a free variable speed mode.
16. An apparatus for adjusting a video playback speed, the apparatus comprising:
a variable speed trigger module configured to enter a free variable speed adjustment interface in response to a free variable speed trigger operation on a target video, the free variable speed adjustment interface including a video track control and a variable speed roller control;
a shift point module configured to add or delete a shift point in a length direction of the video track control in response to an operation of adding or deleting the shift point, the shift point in the video track control being used to divide the target video into a plurality of video segments;
a selecting module configured to select a target video clip from the plurality of video clips in response to a selecting operation of the video track control;
an adjustment module configured to make a variable-speed adjustment to the target video clip in response to an adjustment operation to the variable-speed roller control;
and the grey setting module is configured to display the shifting point at the starting position and the shifting point at the ending position in a different color from other shifting points when the shifting point at the starting position and the shifting point at the ending position in the video track control are in the displayed area of the video track control, and the shifting point at the starting position and the shifting point at the ending position cannot be processed.
17. The device of claim 16, wherein a shift point management control is further displayed in the free-shift adjustment interface, and a central axis is disposed in the center of the displayed area of the video track control;
the shift point module includes:
a deletion submodule configured to delete an existing intermediate shifting point in the video track control in response to a trigger operation on the shifting point management control when a time interval between a corresponding time of the central axis in the video track control and a corresponding time of an existing intermediate shifting point in the video track control is less than or equal to a first time threshold; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
18. The device of claim 16, wherein a shift point management control is further displayed in the free-shift adjustment interface, and a central axis is disposed in the center of the displayed area of the video track control;
the shift point module includes:
the adding sub-module is configured to respond to triggering operation of the speed change point management control under the condition that a time interval between the corresponding time of the central axis in the video track control and the corresponding time of the existing speed change point in the video track control is greater than or equal to a second time threshold, and establish a new speed change point at a position where the central axis is overlapped with the video track control; the existing shift points include: a shift point already present in the video track control.
19. The apparatus of claim 17, wherein the existing intermediate gearshift point is in an enlarged display form when a time interval between a time instant corresponding to the central axis in the video track control and a time instant corresponding to the existing intermediate gearshift point in the video track control is less than or equal to a first time threshold.
20. The apparatus as claimed in claim 17, wherein in the case that the distance interval between the central axis and the existing intermediate shifting point is less than or equal to a preset distance threshold, the central axis and the existing intermediate shifting point are overlapped while the existing intermediate shifting point is displayed in an enlarged manner.
21. The apparatus of claim 17, wherein the gearshift point management control is exposed as a delete gearshift point control if a time interval between a time instant corresponding to the central axis in the video track control and a time instant corresponding to the existing intermediate gearshift point in the video track control is less than or equal to a first time threshold.
22. The apparatus of claim 18, wherein the gearshift point management control is exposed to adding a gearshift point control if a time interval between a time corresponding to the central axis in the video track control and a time corresponding to the existing gearshift point in the video track control is greater than or equal to a second time threshold.
23. The apparatus of claim 16, wherein a shift point management control is further displayed in the free-shifting adjustment interface, and a central axis is disposed in a center of a displayed area of the video track control;
the device further comprises:
the first state changing module is configured to enable the shifting point management control to be in an inoperable state when an interval time between a corresponding time of the central axis in the video track control and a corresponding time of a shifting point at a start position or a shifting point at an end position in the video track control is less than or equal to a second time threshold.
24. The device of claim 16, wherein a shift point management control is further displayed in the free-shift adjustment interface, and a central axis is disposed in the center of the displayed area of the video track control;
the device further comprises:
a second state changing module configured to set the speed change point management control to be in an inoperable state when an interval time between a corresponding time of the central axis in the video track control and a corresponding time of an existing intermediate speed change point in the video track control is greater than a first time threshold and smaller than a second time threshold; the existing intermediate shift points include: and the other existing shifting points except for the shifting point at the starting position and the shifting point at the tail position of the video track control.
25. The apparatus of any of claims 17, 19, 21, 24, wherein the first time threshold is 0.6 seconds.
26. The apparatus of any of claims 18, 22, 23, 24, wherein the second time threshold is 1.2 seconds.
27. The apparatus of claim 16, wherein a central axis is provided in the center of the presented area of the video track control; in the video track control, an interval area formed between adjacent speed change points is used for reflecting a video clip;
the selecting module further comprises:
the selecting submodule is configured to determine a video clip corresponding to the interval area overlapped with the central axis as the target video clip in response to the sliding operation of the video track control in the length direction.
28. The apparatus of claim 27, further comprising:
and the protruding submodule is configured to highlight the interval region overlapped with the central axis according to a preset mode.
29. The apparatus of claim 16, wherein the adjustment module further comprises:
a determination sub-module configured to determine a target shift value in response to an adjustment operation of the shift roller control;
and the adjusting sub-module is configured to adjust the playing speed of the target video clip according to the target variable speed value.
30. The apparatus of claim 16, wherein the variable speed adjustment modes for the target video comprise a global variable speed mode and a free variable speed mode.
31. An electronic device, comprising: a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 15.
32. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-15.
CN202110336967.7A 2021-03-29 2021-03-29 Video playing speed adjusting method and device Active CN113207027B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110336967.7A CN113207027B (en) 2021-03-29 2021-03-29 Video playing speed adjusting method and device
PCT/CN2021/138763 WO2022206037A1 (en) 2021-03-29 2021-12-16 Video playback speed adjustment method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110336967.7A CN113207027B (en) 2021-03-29 2021-03-29 Video playing speed adjusting method and device

Publications (2)

Publication Number Publication Date
CN113207027A CN113207027A (en) 2021-08-03
CN113207027B true CN113207027B (en) 2023-03-24

Family

ID=77025869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110336967.7A Active CN113207027B (en) 2021-03-29 2021-03-29 Video playing speed adjusting method and device

Country Status (2)

Country Link
CN (1) CN113207027B (en)
WO (1) WO2022206037A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113207027B (en) * 2021-03-29 2023-03-24 北京达佳互联信息技术有限公司 Video playing speed adjusting method and device
CN115474086B (en) * 2022-09-14 2023-07-18 北京字跳网络技术有限公司 Play control method, device, electronic equipment and storage medium
CN116668790B (en) * 2023-05-22 2024-07-02 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5712946A (en) * 1994-08-31 1998-01-27 Sony Corporation Recording/reproducing video signals with a plurality of playback speeds
CN108401193A (en) * 2018-03-21 2018-08-14 北京奇艺世纪科技有限公司 A kind of video broadcasting method, device and electronic equipment
CN109275028A (en) * 2018-09-30 2019-01-25 北京微播视界科技有限公司 Video acquiring method, device, terminal and medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100403238B1 (en) * 2000-09-30 2003-10-30 엘지전자 주식회사 Intelligent fast-forward video system
US7725828B1 (en) * 2003-10-15 2010-05-25 Apple Inc. Application of speed effects to a video presentation
US8472791B2 (en) * 2004-03-17 2013-06-25 Hewlett-Packard Development Company, L.P. Variable speed video playback
CN102137302A (en) * 2010-12-09 2011-07-27 华为技术有限公司 Method and device for playing video contents of streaming media
US10560734B2 (en) * 2016-08-01 2020-02-11 Microsoft Technology Licensing, Llc Video segmentation and searching by segmentation dimensions
CN112004117B (en) * 2020-09-02 2023-03-24 维沃移动通信有限公司 Video playing method and device
CN113207027B (en) * 2021-03-29 2023-03-24 北京达佳互联信息技术有限公司 Video playing speed adjusting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5712946A (en) * 1994-08-31 1998-01-27 Sony Corporation Recording/reproducing video signals with a plurality of playback speeds
CN108401193A (en) * 2018-03-21 2018-08-14 北京奇艺世纪科技有限公司 A kind of video broadcasting method, device and electronic equipment
CN109275028A (en) * 2018-09-30 2019-01-25 北京微播视界科技有限公司 Video acquiring method, device, terminal and medium

Also Published As

Publication number Publication date
CN113207027A (en) 2021-08-03
WO2022206037A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
CN109600659B (en) Operation method, device and equipment for playing video and storage medium
CN113207027B (en) Video playing speed adjusting method and device
CN109947521B (en) Interface switching method and device and storage medium
WO2020057327A1 (en) Information list display method and apparatus, and storage medium
CN110929054B (en) Multimedia information application interface display method and device, terminal and medium
US20170344192A1 (en) Method and device for playing live videos
CN106101680B (en) Acquisition parameters setting method and device
CN113268622A (en) Picture browsing method and device, electronic equipment and storage medium
KR102457864B1 (en) Method and device for processing video, terminal communication apparatus and storage medium
CN110636382A (en) Method and device for adding visual object in video, electronic equipment and storage medium
JP2017536783A (en) Video special effect processing method, apparatus, terminal device, program, and recording medium
CN104216525B (en) Method and device for mode control of camera application
WO2022199038A1 (en) Image adjustment parameter adjustment method and apparatus
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
WO2022205930A1 (en) Preview method for image effect, and preview apparatus for image effect
CN112929561A (en) Multimedia data processing method and device, electronic equipment and storage medium
CN109783171B (en) Desktop plug-in switching method and device and storage medium
CN108829473B (en) Event response method, device and storage medium
US11221734B2 (en) Punch-hole screen display method and apparatus
CN111383296B (en) Method and device for displaying drawn track and storage medium
CN117119260A (en) Video control processing method and device
US12001672B2 (en) Interface display method and apparatus for controlling interactability of simultaneously displayed user interfaces of an application
CN115963929A (en) VR display method, device and storage medium
CN113709538B (en) Multimedia data playing method and device, electronic equipment and storage medium
CN114282022A (en) Multimedia editing method and device, electronic equipment and storage medium

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
GR01 Patent grant