CN113242467A - Video editing method, device, terminal and storage medium - Google Patents

Video editing method, device, terminal and storage medium Download PDF

Info

Publication number
CN113242467A
CN113242467A CN202110483240.1A CN202110483240A CN113242467A CN 113242467 A CN113242467 A CN 113242467A CN 202110483240 A CN202110483240 A CN 202110483240A CN 113242467 A CN113242467 A CN 113242467A
Authority
CN
China
Prior art keywords
slider
target
area
video
sliding block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110483240.1A
Other languages
Chinese (zh)
Other versions
CN113242467B (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
Publication of CN113242467A publication Critical patent/CN113242467A/en
Application granted granted Critical
Publication of CN113242467B publication Critical patent/CN113242467B/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/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
    • H04N21/44016Processing 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 involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Landscapes

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

Abstract

The disclosure relates to a video editing method, a video editing device, a video editing terminal and a storage medium, and relates to the technical field of computers. The embodiment of the application provides an action bars with two regulatory function, two show parameters that correspond the video material respectively through two sliders, through the setting of action bars, can make the relation between two slider corresponding value satisfy the relation between two show parameters, the user can accomplish the accommodation process of two show parameters through an action bars, and need not the user and calculate by oneself in the accommodation process, therefore, can improve the convenience of operation greatly, improve the regulation efficiency, and be difficult to make mistakes, can effectively improve the accuracy of the show parameter that the regulation obtained.

Description

Video editing method, device, terminal and storage medium
The present application claims priority of chinese patent application entitled "video editing method, apparatus, terminal, and storage medium" with application number 202110227929.8 filed on 03/01/2021.
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a video editing method, an apparatus, a terminal, and a storage medium.
Background
With the development of computer technology, some video materials can be inserted through video clips to enable video content to be richer, and display parameters can be adjusted for the video materials, so that the display form is more interesting. When editing video, the relevant technician is often required to adjust the display parameters of the video material.
In the related art, the video clipping method generally includes displaying a joystick on a video clipping interface, where the joystick includes a slider, and a user can drag the slider to adjust a position of the slider, so as to adjust display parameters of the video material by adjusting a position of the slider on the joystick.
When a video clip is made, different presentation parameters of the video material may have a certain numerical relationship. The method can only adjust one display parameter of the video material at one time, and if the other display parameter needs to be adjusted, an operation rod needs to be provided for the other display parameter to adjust after the adjustment of the display parameter is completed, so that related technicians can repeatedly calculate whether the display parameter accords with the numerical relationship according to the two adjusted display parameters, the operation is complicated, the efficiency is low, and errors are easy to occur.
Disclosure of Invention
The present disclosure provides a video editing method, apparatus, terminal and storage medium, which improve accuracy and efficiency of determination. The technical scheme of the disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a video clipping method, including:
displaying an operating rod corresponding to a target video on a multimedia editing interface, wherein the operating rod comprises a first sliding block and a second sliding block, and the first sliding block and the second sliding block respectively correspond to a first display parameter and a second display parameter of any video material in the target video;
in response to detection of a dragging operation on a first target area, determining a target slider, wherein the first target area is an area where event areas corresponding to the first slider and the second slider are respectively overlapped, the event areas are areas where corresponding sliders can be triggered, and the target slider is a slider with the smallest distance from a starting point of the dragging operation in the first slider and the second slider;
and controlling the target slider to slide on the operating rod according to the dragging operation.
In some embodiments, the determining the target slider in response to detecting the drag operation on the first target area includes:
in response to detecting a drag operation on a first target area and the first slider and the second slider do not have an overlapping area, performing the step of determining a target slider.
In some embodiments, the event area of a slider is an area within a perimeter of the slider that is larger in size than the slider.
In some embodiments, the method further comprises:
in response to the fact that clicking operation on a second target area is detected and an overlapping area exists between the first slider and the second slider, switching the slider in the activated state, wherein the size of the second target area is larger than that of the overlapping area.
Accordingly, in these embodiments, the video clipping method comprises: displaying an operating rod corresponding to a target video on a multimedia editing interface, wherein the operating rod comprises a first sliding block and a second sliding block, and the first sliding block and the second sliding block respectively correspond to a first display parameter and a second display parameter of any video material in the target video; and switching the sliders in the activated state in response to clicking operation in a second target area, wherein the first slider and the second slider have an overlapping area, the second target area comprises the overlapping area, and the size of the second target area is larger than that of the overlapping area.
In some embodiments, the second target region is determined based on an overlap region of the first slider and the second slider; or the second target area is determined based on the areas where the first slider and the second slider are located.
In some embodiments, the acquiring of the second target region comprises: and taking the central point of the area where the first sliding block and the second sliding block are located or the overlapping area as a center, and taking the area with the size as the target size as the second target area.
In some embodiments, the method further comprises at least one of:
displaying the significance of the slider in the activated state;
and displaying the target part of the operating rod in a conspicuous manner, wherein the target part is a part from the corresponding end of the slider in the activated state to the position of the slider in the activated state.
In some embodiments, the method further comprises:
and determining the display parameters corresponding to the activated sliding block based on the position of the activated sliding block on the operating rod.
In some embodiments, the determining, based on the position of the activated slider on the operating rod, a display parameter corresponding to the activated slider includes:
and determining the display parameters corresponding to the slide block in the activated state according to the distance between the slide block in the activated state and the corresponding end of the operating rod.
In some embodiments, the sum of the first presentation parameter and the second presentation parameter is within an interval.
In some embodiments, the determining the target slider in response to detecting the drag operation on the first target area includes:
in response to the detection of the dragging operation on the first target area, acquiring the distances between the starting point of the dragging operation and the central points of the first slider and the second slider respectively;
and determining the slider with the minimum distance as the target slider.
In some embodiments, the method further comprises:
and determining the display parameters corresponding to the target slide block based on the position of the target slide block on the operating rod.
In some embodiments, the determining, based on the position of the target slider on the operating rod, a display parameter corresponding to the target slider includes:
and determining the display parameters corresponding to the target sliding block according to the distance between the target sliding block and the corresponding end of the operating rod.
In some embodiments, the slidable range of the first slider is from the corresponding end of the first slider to the position of the second slider, and the slidable range of the second slider is from the corresponding end of the second slider to the position of the first slider.
According to a second aspect of embodiments of the present disclosure, there is provided a video clipping device comprising:
the display unit is configured to execute displaying of an operating rod corresponding to a target video on a multimedia clip interface, the operating rod comprises a first sliding block and a second sliding block, and the first sliding block and the second sliding block respectively correspond to a first display parameter and a second display parameter of any video material in the target video;
a determining unit configured to perform, in response to detection of a drag operation on a first target area, determining a target slider, where the first target area is an area where event areas corresponding to the first slider and the second slider respectively overlap, the event areas are areas where corresponding sliders can be triggered, and the target slider is a slider with a smallest distance from a starting point of the drag operation among the first slider and the second slider;
a control unit configured to perform control of the target slider to slide on the operation lever in accordance with the drag operation.
In some embodiments, the determining unit is configured to perform:
in response to detecting a drag operation on a first target area and the first slider and the second slider do not have an overlapping area, performing the step of determining a target slider.
In some embodiments, the apparatus further comprises:
the switching unit is configured to execute switching of the slider in the activated state in response to detection of a clicking operation on a second target area, and an overlapping area exists between the first slider and the second slider, wherein the size of the second target area is larger than that of the overlapping area.
Accordingly, the apparatus comprises: the display unit is configured to execute displaying of an operating rod corresponding to a target video on a multimedia clip interface, the operating rod comprises a first sliding block and a second sliding block, and the first sliding block and the second sliding block respectively correspond to a first display parameter and a second display parameter of any video material in the target video; the switching unit is configured to execute switching of the sliders in the activated state in response to clicking operation in a second target area, wherein the first slider and the second slider have an overlapping area, the second target area comprises the overlapping area, and the size of the second target area is larger than that of the overlapping area.
In some embodiments, the acquiring of the second target region comprises:
and taking the central point of the area where the first sliding block and the second sliding block are located or the overlapping area as a center, and taking the area with the size as the target size as the second target area.
In some embodiments, the display unit is further configured to perform at least one of:
displaying the significance of the slider in the activated state;
and displaying the target part of the operating rod in a conspicuous manner, wherein the target part is a part from the corresponding end of the slider in the activated state to the position of the slider in the activated state.
In some embodiments, the apparatus further comprises:
the control unit is configured to execute, in response to detecting that a dragging operation is performed on a first target area, and an overlapping area exists between the first slider and the second slider, control the slider in the activated state to slide on the operating rod according to the dragging operation, wherein the first target area is an area where event areas corresponding to the first slider and the second slider respectively overlap, and the event areas are areas where corresponding sliders can be triggered.
In some embodiments, the event area of a slider is an area within a perimeter of the slider that is larger in size than the slider.
In some embodiments, the apparatus further comprises:
the determining unit is configured to determine the display parameters corresponding to the activated sliding block based on the position of the activated sliding block on the operating rod.
In some embodiments, the determining unit is configured to determine the display parameter corresponding to the activated slider according to a distance between the activated slider and the corresponding end of the operating rod.
In some embodiments, the sum of the first presentation parameter and the second presentation parameter is within an interval.
In some embodiments, the second target region is determined based on an overlap region of the first slider and the second slider; or the second target area is determined based on the areas where the first slider and the second slider are located.
The determination unit is configured to perform:
in response to the detection of the dragging operation on the first target area, acquiring the distances between the starting point of the dragging operation and the central points of the first slider and the second slider respectively;
and determining the slider with the minimum distance as the target slider.
In some embodiments, the determination unit is further configured to perform determining, based on the position of the target slider on the operating rod, a display parameter corresponding to the target slider.
In some embodiments, the determining unit is configured to determine the display parameter corresponding to the target slider according to a distance between the target slider and the corresponding end of the operating rod.
In some embodiments, the slidable range of the first slider is from the corresponding end of the first slider to the position of the second slider, and the slidable range of the second slider is from the corresponding end of the second slider to the position of the first slider.
According to a third aspect of embodiments of the present disclosure, there is provided a video clipping method, the method comprising:
displaying an operating rod corresponding to a target video on a multimedia editing interface, wherein the operating rod comprises a first sliding block and a second sliding block, and the first sliding block and the second sliding block respectively correspond to a first display parameter and a second display parameter of any video material in the target video;
in response to the detection of the clicking operation, judging whether an overlapping area exists between the first slider and the second slider;
in response to the fact that the first sliding block and the second sliding block have the overlapping area, the area where the first sliding block and the second sliding block are located is zoomed to a target size, and a second target area is obtained;
judging whether the click operation is located in the second target area;
and responding to the clicking operation in the second target area, and switching the slider in the activated state.
According to a fourth aspect of embodiments of the present disclosure, there is provided a video clipping apparatus, the apparatus comprising:
the display unit is configured to execute displaying of an operating rod corresponding to a target video on a multimedia clip interface, the operating rod comprises a first sliding block and a second sliding block, and the first sliding block and the second sliding block respectively correspond to a first display parameter and a second display parameter of any video material in the target video;
a judging unit configured to execute, in response to detection of a click operation, judging whether there is an overlapping area between the first slider and the second slider;
the zooming unit is configured to zoom the area where the first slider and the second slider are located to a target size in response to the first slider and the second slider having an overlapping area, so as to obtain a second target area;
the judging unit is further configured to execute judgment on whether the click operation is located in the second target area;
and the switching unit is configured to execute switching of the slider in the activated state in response to the clicking operation being located in the second target area.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video clipping method described above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium in which instructions, when executed by a processor of a terminal, enable the terminal to perform the above-described video clipping method.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the above-described video clipping method.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the embodiment of the application provides an action bars with double adjusting function, play time length corresponding to two animations respectively through two sliders, setting through the action bars can enable the relation between corresponding values of the two sliders to meet the relation between play time lengths of incoming animations and outgoing animations, a user can complete the determination process of the two play time lengths through one action bar, and the determination process does not need the user to calculate by oneself, therefore, the convenience of operation can be greatly improved, the adjusting efficiency is improved, errors are not easy to occur, and the accuracy of the determined play time lengths can be effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1A is a flow diagram illustrating a method of video clipping in accordance with an exemplary embodiment.
FIG. 1B is a flow diagram illustrating a method of video clipping in accordance with an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a method of video clipping in accordance with an exemplary embodiment.
FIG. 3 is a schematic diagram illustrating a video clip scene according to an example embodiment.
FIG. 4 is a terminal interface diagram shown in accordance with an example embodiment.
FIG. 5 is a schematic diagram illustrating a positional relationship of two sliders according to an exemplary embodiment.
FIG. 6 is a schematic diagram illustrating a positional relationship of two sliders according to an exemplary embodiment.
FIG. 7 is a schematic diagram illustrating a positional relationship of two sliders according to an exemplary embodiment.
FIG. 8 is a schematic diagram illustrating a positional relationship of two sliders according to an exemplary embodiment.
FIG. 9 is a schematic diagram illustrating a positional relationship of two sliders according to an exemplary embodiment.
FIG. 10 is a schematic diagram illustrating a positional relationship of two sliders according to an exemplary embodiment.
FIG. 11 is a schematic diagram illustrating a positional relationship of two sliders, according to an exemplary embodiment.
FIG. 12 is a schematic diagram illustrating a positional relationship of two sliders according to an exemplary embodiment.
FIG. 13 is a flowchart illustrating a method of video clipping in accordance with an exemplary embodiment.
FIG. 14 is a block diagram illustrating a video clipping device according to an example embodiment.
FIG. 15 is a block diagram illustrating a video clipping device according to an example embodiment.
Fig. 16 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1A is a flowchart illustrating a video clipping method, as shown in fig. 1A, for use in a terminal, according to an exemplary embodiment, including the following steps.
In step S11, displaying, on the multi-media clip interface, a joystick corresponding to the target video, where the joystick includes a first slider and a second slider, and the first slider and the second slider respectively correspond to a first display parameter and a second display parameter of any video material in the target video.
In step S12, in response to detecting a dragging operation on a first target area, a target slider is determined, where the first target area is an area where event areas corresponding to the first slider and the second slider respectively overlap, the event area is an area where a corresponding slider can be triggered, and the target slider is a slider with a smallest distance from a starting point of the dragging operation.
In step S13, the target slider is controlled to slide on the operation lever in accordance with the drag operation.
The embodiment of the application provides an action bars with two regulatory function, two show parameters that correspond the video material respectively through two sliders, through the setting of action bars, can make the relation between two slider corresponding value satisfy the relation between two show parameters, the user can accomplish the accommodation process of two show parameters through an action bars, and need not the user and calculate by oneself in the accommodation process, therefore, can improve the convenience of operation greatly, improve the regulation efficiency, and be difficult to make mistakes, can effectively improve the accuracy of the show parameter that the regulation obtained.
In some embodiments, the determining the target slider in response to detecting the drag operation on the first target area includes:
in response to detecting the drag operation on the first target area and the first slider and the second slider having no overlapping area, the step of determining the target slider is performed.
In some embodiments, the method further comprises:
and in response to detecting that the clicking operation is performed on a second target area, and an overlapping area exists between the first slider and the second slider, switching the slider in the activated state, wherein the size of the second target area is larger than that of the overlapping area.
Accordingly, the video clipping method includes: in step S21, displaying, on the multi-media clip interface, a joystick corresponding to the target video, where the joystick includes a first slider and a second slider, and the first slider and the second slider respectively correspond to a first display parameter and a second display parameter of any video material in the target video. In step S22, in response to a click operation in a second target area, the slider in the activated state is switched, wherein the first slider and the second slider have an overlapping area, the second target area includes the overlapping area, and the size of the second target area is larger than the size of the overlapping area.
In some embodiments, the second target region is determined based on an overlap region of the first slider and the second slider; or the second target area is determined based on the areas where the first slider and the second slider are located.
In some embodiments, the acquiring of the second target region comprises: and taking the central point of the area where the first sliding block and the second sliding block are located or the overlapping area as the center, and taking the area with the size as the target size as the second target area.
In some embodiments, the method further comprises at least one of:
displaying the significance of the slider in the activated state;
and displaying the target part of the operating rod in a conspicuous manner, wherein the target part is a part from the corresponding end of the slider in the activated state to the position of the slider in the activated state.
In some embodiments, the method further comprises:
and determining the display parameters corresponding to the activated sliding block based on the position of the activated sliding block on the operating rod.
In some embodiments, the determining the display parameter corresponding to the activated slider based on the position of the activated slider on the operating rod includes:
and determining the display parameters corresponding to the activated sliding block according to the distance between the activated sliding block and the corresponding end of the operating rod.
In some embodiments, the sum of the first presentation parameter and the second presentation parameter is within an interval.
In some embodiments, the determining the target slider in response to detecting the drag operation on the first target area includes:
in response to the detection of the dragging operation on the first target area, acquiring distances between a starting point of the dragging operation and center points of the first slider and the second slider respectively;
and determining the slider with the minimum distance as the target slider.
In some embodiments, the method further comprises:
and determining the display parameters corresponding to the target slide block based on the position of the target slide block on the operating rod.
In some embodiments, the determining the display parameter corresponding to the target slider based on the position of the target slider on the operating rod includes:
and determining the display parameters corresponding to the target slide block according to the distance between the target slide block and the corresponding end of the operating rod.
In some embodiments, the slidable range of the first slider is from the corresponding end of the first slider to the position of the second slider, and the slidable range of the second slider is from the corresponding end of the second slider to the position of the first slider.
In an embodiment of the present disclosure, a video clipping method is provided for determining display parameters of video material in a video. The method provides for a joystick comprising two sliders by which two presentation parameters of the video material are determined. The video may include video materials such as picture materials, text materials, audio materials, and video materials. Each video material may include one or more presentation parameters. For example, a video material may be initially presented by way of an in-scene and then gradually canceled by way of an out-scene. The method can determine the playing time of the incoming animation and the outgoing animation of any video material in the video through the two sliders. In a specific example, for a target video, one or more video materials, hereinafter referred to as materials, may be inserted into the target video, each material is usually an incoming animation of the material when being played in the target video, the outgoing animation of the material may be played after the material is continuously displayed for a period of time, and the incoming animation of the next material may be played after the outgoing animation is played, and so on. For example, as shown in fig. 2, the total playing time of the target video is 13 seconds, if three materials are to be inserted into the target video, each material is provided with a total playing time, for example, the total playing time of material 1 is 5 seconds, the total playing time of material 2 is 3 seconds, and the total playing time of material 3 is 5 seconds. The sum of the playing time lengths of the incoming animation and the outgoing animation of each material needs to be less than or equal to the total playing time length of the material. Taking material 1 as an example, assume that the playing time length of the incoming motion picture of material 1 is x1, the playing time length of the outgoing motion picture is x2, and x1+ x2 is less than or equal to 5.
Also for example, the above method can be used to adjust the fading in and out of music material. For example, the volume of the background music or the insertion music of the video can be played first from small to large (fade-in) and then from large to small (fade-out). In the method, the time lengths of the fade-in and fade-out of the music materials can be respectively adjusted through the two sliders. For example, assume that the first slider corresponds to a time period for a fade-in of a music material and the second slider corresponds to a time period for a fade-out of the music material.
The two scenes are only used as examples for explanation, and the display parameters of the video material are not specifically limited in the embodiments of the present disclosure.
In the embodiment of the present disclosure, an operating rod with a dual adjustment function is provided, and compared with an operating rod only including one sliding block, the operating rod with the dual adjustment function includes two sliding blocks, each sliding block corresponds to a different display parameter, and values of the two different display parameters are within an interval range. For example, the following description will be given taking the playback time lengths of an in-scene movie and an out-scene movie as an example, and the two sliders correspond to the playback time lengths of the in-scene movie and the out-scene movie, respectively. The following description is directed to the operating lever and the two sliders.
The operation lever corresponds to an interval range, for example, in the example where the presentation parameter is the play time length, when the play time lengths of the in-scene movie and the out-scene of the material 1 are set, the interval range corresponding to the operation lever is [0, 5 ]. The operating rod comprises a first slide block and a second slide block, and when one slide block of the two slide blocks slides on the operating rod, the other slide block can not be crossed. And the sum s of the values corresponding to the two sliders meets the condition that s > is 0.0& & s < > 5. Assuming that the first slide block is a left slide block and the second slide block is a right slide block, the left slide block cannot slide to the right of the right slide block, the value corresponding to the left slide block is determined by the distance between the left slide block and the left end of the operating rod, and the value corresponding to the right slide block is determined by the distance between the right slide block and the right end of the operating rod. Suppose that the first slider corresponds to the play duration of the incoming motion picture and the second slider corresponds to the play duration of the outgoing motion picture. At the same time, one and only one slider can be activated, which can slide on the operating rod. For example, in a video clip scene, the right slider cannot slide while sliding the left slider to set the incoming motion picture.
Fig. 3 is a flow diagram illustrating a method of video clipping, according to an example embodiment, and referring to fig. 3, the method may include the following steps.
In step S31, the terminal displays, on the multimedia clip interface, an operation rod corresponding to the target video, where the operation rod includes a first slider and a second slider, and the first slider and the second slider respectively correspond to a first display parameter and a second display parameter of any video material in the target video.
When a multimedia clip is made, a multimedia clip interface can typically be displayed in which one or more controls can be provided to implement different clipping functionality for multimedia files. In the embodiment of the present disclosure, for different display parameters of a video material in a target video, for example, the playing time of an incoming animation and an outgoing animation of the video material, one operation rod can be provided to set the two display parameters, the operation rod includes two sliders, and the two display parameters can be adjusted by the one operation rod, so that the operation rod can be called a double-adjustment operation rod.
When the operating rod comprising the two sliders is displayed, if a user wants to adjust any display parameter, the user can drag the corresponding slider to change the position of the slider on the operating rod, the position of the slider is changed, and the value of the display parameter corresponding to the slider is changed.
For example, a user may open a multimedia clip application, a target video is imported into the multimedia clip application, a terminal may display a multimedia clip interface of the multimedia clip application, the multimedia clip interface may be as shown in fig. 4, the terminal may display a video frame sequence of the target video in a region 401, for video materials, for example, material 1 and material 2, a joystick 402 for adjusting presentation parameters of the material may be displayed in a surrounding region of each material, the joystick 402 includes a first slider 403 and a second slider 404, a sliding start point of the first slider 403 is a left end of the joystick 402, and the first slider 403 slides from left to right. When determining the display parameters corresponding to the first slider 403, the scales of the operating rod 402 may be: from left to right are from 0 to 5, respectively. The starting point of the sliding of the second slider 404 is the right end of the operating rod 402, and the second slider 404 slides from right to left. When the display parameters corresponding to the second slider 404 are determined, the scales of the operating rod 402 may be: from 0 to 5 from right to left, respectively.
In some embodiments, the slidable ranges of the two sliders are correlated, that is, the value ranges of the display parameters corresponding to the two sliders are correlated. The first slider corresponds to a first display parameter of any video material in the target video, and the second slider corresponds to a second display parameter of any video material in the target video. The sum of the first presentation parameter and the second presentation parameter is within an interval. This action bars corresponds an interval scope like this, and two sliders move on this action bars, and when the slider was located different positions, the value of corresponding show parameter was different, nevertheless because two sliders can not surpass the action bars, and another slider can not be crossed to a slider when sliding. Therefore, the sum of the display parameters corresponding to the two sliders is within the range corresponding to the operating rod.
In some embodiments, the slidable ranges of the two sliders are correlated. The slidable range of the first sliding block is from the corresponding end of the first sliding block to the position of the second sliding block, and the slidable range of the second sliding block is from the corresponding end of the second sliding block to the position of the first sliding block. That is, one slider cannot pass over the other slider while sliding. For example, the two sliders are respectively a left slider and a right slider, and the left slider cannot be arranged on the right side of the right slider, so that the slidable range of the left slider is from the left end of the operating rod to the position of the right slider. The right slider can not be on the left side of the left slider, so the slidable range of the right slider is from the right end of the operating rod to the position of the left slider.
For example, as shown in fig. 5 (a), the operating rod 501 includes a first slider 502 and a second slider 503, and the operating rod 501 corresponds to a range [ a first value, a second value ] of the interval]The first slider 502 corresponds to the first end 504 of the operating rod 501, and the first end 504 indicates the starting point of the first slider 502 for the first slider 502, and the corresponding value is the first value. The second end corresponding value is the second value. The second slider 503 corresponds to the second end 505 of the operating rod 501. For the second slider 503, the second end 505 represents the beginning of the second slider 503, and the corresponding value is the first value. The first end 504 corresponds to a value of the second value. First display parameter x corresponding to first slider 5021It may be determined by the position of first end 504 and first slider 502. The second display parameter x corresponding to the second slider 5032It can be determined by the position of the second end 505 and the second slider 503. Both the two sliders slide in the operating rod, and as shown in fig. 5 (b), the sum of the display parameters corresponding to the two sliders is the largest when the two sliders coincide, and is the second numerical value. As shown in fig. 5 (c), the sum of the display parameters corresponding to the two sliders is minimum at the respective starting points of the two sliders and is a first value. That is, the sum of the first display parameter and the second display parameter lies within the interval [ first value, second value ]]And (4) the following steps.
In step S22, in response to detecting a dragging operation on a first target area, the terminal determines a target slider, where the first target area is an area where event areas corresponding to the first slider and the second slider respectively overlap, the event area is an area where a corresponding slider can be triggered, and the target slider is a slider with a smallest distance from a starting point of the dragging operation.
For two sliders, the two sliders respectively correspond to event areas, and when a user wants to drag any one of the sliders, the user needs to drag the event area of the slider, which can trigger a drag event for the slider or a sliding event for the slider, or can trigger a setting or activation state switching event for the slider, and the like. If the user drags the slider outside the event area, the slider cannot be triggered to slide. The event area corresponding to each slider is hereinafter referred to as an event block. Of course, the two sliders also correspond to display regions, and the display regions of the sliders are hereinafter referred to as "visual blocks". The event block can be larger than the visual block, i.e., the event area of each slider is larger in size than the slider, i.e., larger than the display area of the slider. The display size of this slider can set up less like this, does not occupy too much space in the interface, and the event area is certain extent around the slider, and the size is bigger than slider itself, avoids the less condition that leads to the user to be difficult to drag the operation of slider, all can reach better effect in the aspect of demonstration and operation.
In some embodiments, the event area of a slider is an area within the perimeter of the slider that is larger in size than the slider. Thus the event area is an area that includes a slider. For example, the size of the slider may be set by a person skilled in the art according to the requirement, or by a user according to the habit of using the user, which is not limited by the embodiment of the disclosure.
Assuming that the size of the slider is a first size, the size of the event area of the slider may be a second size, the second size being larger than the first size. In a specific possible embodiment, the center point of a slider may be used as the center point, and the area with the second size may be used as the event area of the slider. The shapes of the slider and the event area can be set by a related technician according to requirements, and can also be set by a user according to the use habit of the user, which is not limited by the embodiment of the disclosure.
For example, as shown in fig. 6, the operating rod 601 includes a first slide 602 and a second slide 603, the first slide 602The center point of the piece region 604 is the center point O of the first slider1. The center point of the event area 605 of the second slider 603 is the center point O of the second slider2. The second size of the event area 604 is larger than the first size of the first slider 602, and thus the event area 604 encloses the first slider 602. Similarly, the second size of the event zone 605 is larger than the first size of the second slider 603, and thus the event zone 605 encloses the second slider 603.
When the two sliders slide on the operating rod, the corresponding event areas of the two sliders may overlap or even coincide with each other as the positions of the two sliders change. In this way, when the drag operation is performed on the overlapped area of the two sliders, it is necessary to further determine whether the operation object corresponding to the drag operation is the first slider or the second slider. The position of the two sliders is explained below.
Case 1: the event areas corresponding to the first slider and the second slider are not overlapped.
In this case 1, event areas corresponding to two sliders do not overlap, and when the drag operation is detected, the terminal can determine whether the drag operation is located in the event area of the slider, and determine the activated slider according to the event area where the drag operation is located.
Specifically, the terminal may control the slider to slide on the operation rod according to the dragging operation in response to detecting the dragging operation on the event area corresponding to any one of the sliders, and the event areas corresponding to the first slider and the second slider respectively do not overlap. That is, the terminal may control the first slider to slide on the operation rod according to the dragging operation in response to detecting the dragging operation on the event area corresponding to the first slider, and the event areas corresponding to the first slider and the second slider respectively do not overlap. The terminal can respond to the detection of the dragging operation of the event area corresponding to the second sliding block, and the event areas corresponding to the first sliding block and the second sliding block are not overlapped, so that the second sliding block is controlled to slide on the operating rod according to the dragging operation.
For example, as shown in fig. 7, assume that the first slider is 701, the second slider is 702, the event area corresponding to the first slider 701 is 703, and the event area corresponding to the second slider 702 is 704. As shown in fig. 7 (a), the two sliders do not overlap, and the event area 703 and the event area 704 do not overlap. In a specific example, the first slider may also be referred to as a left slider, the second slider may also be referred to as a right slider, the Event region corresponding to the left slider is referred to as a left Event region and is referred to as L _ Event _ Rect, and the Event region corresponding to the right slider is referred to as a right Event region and is referred to as R _ Event _ Rect. The left Event area and the right Event area do not overlap, i.e. there is no intersection between the two, which can be denoted as L _ Event _ Rect ═ R _ Event _ Rect ═ false.
In some embodiments, the currently controlled slider may be referred to as an activated slider, and the terminal may further perform a highlighting display on the activated slider, so that through the display patterns of the two sliders, which slider is in the activated state and which slider is not in the activated state can be intuitively and quickly determined, and a user can accurately control the slider based on the determination.
For saliency display, saliency display means that the display style of a certain element is different from the display style of other elements. Assuming that the normal display style of the slider is the first style, when it is determined that the activated slider needs to be prominently displayed, the display style of the slider may be changed, for example, to a second style, which is easier to be found than the first style. The saliency display may also be referred to as a highlight, used to visibly distinguish an element from other elements. The saliency display can be realized by various display modes, and the embodiment of the disclosure does not limit the saliency.
In some embodiments, highlighting is a way of highlighting. The highlight display means display with higher luminance than the current luminance or display with the highest luminance. Highlighting the slider in the active state means displaying the slider in the active state with a higher brightness or the highest brightness than the current brightness. And the display brightness of the other slider which is not in the activated state is lower than that of the slider in the activated state. Thus, the activated slider is relatively prominent, and a user can quickly distinguish which slider is activated.
In other embodiments, the saliency display may be achieved by displaying in a target color. Wherein the target color may be a bright or prominent color. For example, the target color may be yellow, red, or the like, and may also be other colors, which is not limited in this disclosure.
In other embodiments, the saliency display may also be realized by a display with an enlarged size. For example, for a slider in an activated state, the terminal may place the display size of the slider, such as the original display size of the slider is a first size, and upon determining that the slider is in the activated state, the terminal may display the slider in a third size, the third size being larger than the first size.
It should be noted that the foregoing provides only a few possible implementations of the saliency display, and that the embodiments of the present disclosure may also implement the saliency display in other ways, which are not listed here. The following related significance display is similar to the above content, and will not be described in detail.
For example, as shown in fig. 8 (a), before the user performs the drag operation, the first slider is denoted by 801, and the event area of the first slider 801 is denoted by 803. The user performs a drag operation on the screen, and the start point P of the drag operation is located within the event area 803 of the first slider 801, so that it can be determined that the slider controlled by the drag operation is the first slider 801. The drag operation is a rightward drag operation, and the end point of the drag operation is P'. The terminal can control the first slider 801 to slide rightward on the operating rod according to the dragging operation, the first slider is indicated by 801 'after the sliding is finished, the position of the first slider is changed, the position of the event area is also changed correspondingly, and the event area is indicated by 803' after the sliding is finished. The display style of the first slider is different from that of the second slider, and is used for indicating that the first slider is in an activated state. Fig. 8 (a) shows the first slider in the saliency display state only by pattern filling, and does not limit the manner of saliency display.
As shown in fig. 8 (b), before the user performs the drag operation, a second slider is denoted by 802, and an event area of the second slider 802 is denoted by 804. The user performs a drag operation on the screen, and the starting point P of the drag operation is located in the event area 804 of the second slider 802, so that it can be determined that the slider controlled by the drag operation is the second slider 802. The drag operation is a leftward drag operation, and the end point of the drag operation is P'. The terminal can control the second slider 802 to slide leftwards on the operating rod according to the dragging operation, the second slider is represented by 802 'after the sliding is finished, the position of the second slider is changed, the position of an event area of the second slider is correspondingly changed, and the event area is represented by 804' after the sliding is finished. And the display style of the second slider is different from that of the first slider and is used for indicating that the second slider is in an activated state. Fig. 8 (b) shows the second slider in the saliency display state only by pattern filling, and does not limit the manner of saliency display.
As shown in fig. 8 (c), the user performs a drag operation, the start point P of which is neither within the event area 803 of the first slider 801 nor within the event area 804 of the second slider 802, and thus the drag operation is ineffective and neither slider sliding is activated.
Case 2: the event areas corresponding to the second slider and the second slider are overlapped.
This step S32 is a process of determining the target slider for this case 2. In some embodiments, there may also be an overlap region between the two sliders, and for whether or not the two sliders overlap, case two may also include the following cases 2.1 and 2.2. In some embodiments, this step S32 may be performed at case 2.1 and not at case 2.2, with reference to step S35 described below.
Case 2.1: the event areas corresponding to the second slider and the second slider are overlapped, and the first slider and the second slider do not have an overlapping area.
As shown in fig. 7 (b), the two sliders do not overlap, and there is an overlapping area between event area 703 and event area 704. In a specific example, the first slider may also be referred to as a left slider, the second slider may also be referred to as a right slider, the Event region corresponding to the left slider is referred to as a left Event region and is referred to as L _ Event _ Rect, and the Event region corresponding to the right slider is referred to as a right Event region and is referred to as R _ Event _ Rect. The left slider may also be referred to as a left Visual block, denoted L _ Visual _ Rect. The right slider may also be referred to as a right Visual block, denoted as R _ Visual _ Rect. The two sliders are not overlapped, namely the left visual block and the right visual block are not intersected. The left event area and the right event area are overlapped, namely the left event area and the right event area are intersected. This case 2.1 may be written as L _ Visual _ Rect ═ R _ Visual _ Rect ═ false & & L _ Event _ Rect ═ R _ Event _ Rect ═ true.
Case 2.2: the event areas corresponding to the second slider and the second slider are overlapped, and the first slider and the second slider have an overlapping area.
As shown in fig. 7 (c), the two sliders overlap, and an overlapping area naturally exists between the event area 703 and the event area 704. In a specific example, the first slider may also be referred to as a left slider, the second slider may also be referred to as a right slider, the Event region corresponding to the left slider is referred to as a left Event region and is referred to as L _ Event _ Rect, and the Event region corresponding to the right slider is referred to as a right Event region and is referred to as R _ Event _ Rect. The left slider may also be referred to as a left Visual block, denoted L _ Visual _ Rect. The right slider may also be referred to as a right Visual block, denoted as R _ Visual _ Rect. The two sliders are overlapped, namely the left visual block and the right visual block have intersection. Of course, since the event area is larger than the visual block, the left event area also intersects the right event area. This case 2.2 may be denoted as L _ Visual _ Rect ═ true.
In some embodiments, the terminal may perform the step of determining the target slider in response to detecting the dragging operation to the first target area and the first slider and the second slider do not have the overlapping area, that is, in the case of 2.1, the step S32 is performed, and for 2.2, the following step S35 may be performed. In other embodiments, the terminal may also execute step S35 in both case 2.1 and case 2.2, which is not limited by the embodiment of the present disclosure.
By distinguishing between the case 2.1 and the case 2.2, the step S32 is executed in the case 2.1, the distance between the starting point of the dragging operation and the two sliders can be obtained, and the target slider is determined according to the distance, so that the determined target slider is more suitable for the user' S expectation, for example, the two sliders are closer and the event areas overlap, and when the dragging operation is performed on the event areas, it is necessary to determine which slider is the slider that the user wants to drag in consideration of the fact that the two sliders cannot be triggered. It can be understood that when a user wants to drag a certain slider, the dragging operation performed by the user is generally closer to the slider that wants to drag, and therefore, by calculating the distance between the starting point of the dragging operation and the slider, the slider closest to the starting point is found out to be used as the target slider, the determined result better meets the user requirement, and the situation that the user needs to drag the slider again to the original position due to the determination error or the slider that the user does not want to drag is slid all the time is avoided, so that the method has better accuracy and higher efficiency, and the user experience is effectively improved.
In some embodiments, the terminal may obtain the distance between the starting point and the slider with reference to the center point of the slider. In step S32, the terminal may acquire distances between a start point of the drag operation and center points of the first slider and the second slider, respectively, in response to detecting the drag operation on the first target area, and then determine the slider with the smallest distance as the target slider. The distance is acquired by setting the central point of the sliding block, so that the distance acquisition step is more detailed, the precision is higher, the acquired distance is more accurate, the determined target sliding block is more accurate, and the operation precision is improved.
In some embodiments, when the distance between the starting point and the sliders is obtained, the coordinates of the starting point and the coordinates of the center points of the two sliders may be obtained, and the distances between the starting point and the center points of the two sliders are respectively obtained through the coordinates of the starting point and the coordinates of the center points of the two sliders. The terminal can obtain a first difference between the abscissa of the starting point and the abscissa of the center point of any one of the sliders, obtain a second difference between the ordinate of the starting point and the ordinate of the center point of any one of the sliders, obtain a sum of squares of the first difference and a sum of squares of the second difference, and perform square operation on the sum of squares to obtain a distance between the starting point and the center point.
The above distance can be obtained by the following procedure: assuming finger click position P (i.e., the starting point), assume p.x is the x-coordinate of finger click position P; p.y is the y coordinate of finger click position P; the abscissa of the central point of the left slider L is xL, and the ordinate is yL; the abscissa of the center point of the right slider R is xR, and the ordinate is yR. And then judging that the distances between the finger click position P and the left and right sliders are distL and disttR respectively.
When the distance between the finger click position P and the left slider L is obtained, let xLDist be p.x-xL; the distance distL is sqrt (xllist + ydlist) when ydlist is p.y-yL.
When the distance between the finger click position P and the right slider R is obtained, let xRDist be p.x-xR; rdist is p.y-yR, then distance distR is sqrt (xrist x rdist + yrist y rdist).
In some embodiments, the above process of determining the target slider may be as follows:
the determination process of the target slider is described assuming that the first slider is a left slider, the second slider is a right slider, and the start point of the drag operation is the finger position. The terminal may determine whether the above-mentioned situation 2.1 is met in response to detecting the drag event, where the determining process may include: the terminal judges whether the event areas corresponding to the left slider and the right slider respectively have overlapping areas, and in response to the fact that the event areas corresponding to the left slider and the right slider respectively have overlapping areas, the terminal can judge whether the left slider and the right slider have overlapping areas, and if the left slider and the right slider do not have overlapping areas, the situation 2.1 is determined. At this time, the terminal can judge whether the finger position falls into the overlapped area of the event areas, and if so, the terminal can acquire the distance between the finger position and the two sliders. Specifically, the terminal may obtain x, y coordinates of the finger position and x, y coordinates of the left view block, and calculate the distance from the finger to the left view block according to a formula distL ═ sqrt (xllist × ldist + ydlist × ldist). And obtaining the x and y coordinates of the right view block, and calculating the distance from the finger to the right view block according to a formula distR ═ sqrt (xrist × rdist + yrsist × rdist). And then comparing the distance between the finger and the left view block and the distance between the finger and the right view block, if the distance between the finger and the left view block is short, selecting to drag the left slider, and if the distance between the finger and the right slider is short, selecting to drag the right slider.
Specifically, when determining the target slider, the terminal may obtain a first distance and a second distance, where the first distance is a distance between the starting point and the first slider, and the second distance is a distance between the starting point and the second slider, and in response to the first distance being smaller than the second distance, the terminal may determine that the first slider is the target slider. The terminal may determine that the second slider is a target slider in response to the second distance being less than the first distance.
Of course, there is also a possibility: the starting point is equal to the distance between the first slider and the second slider respectively. In this case, the terminal may determine the slider currently in the activated state as the target slider in response to the starting point being equal to the distances between the first slider and the second slider, respectively. That is, which slider was previously activated, this time which slider was activated, with equal distance.
In some embodiments, after determining the target slider, the terminal may further perform a saliency display on the determined target slider in the multi-media clip interface, so that by performing the saliency display on the target slider, the display style of the target slider is different from that of another slider, and by using the display style, a user can intuitively and quickly determine which slider is currently controlled and quickly confirm whether the slider is consistent with the slider which the user expects to be controlled. If not, the user may not continue the drag operation to avoid sliding the currently determined target slider to other positions that are not in accordance with the user's expectations. Therefore, the saliency display mode can well assist a user in accurately controlling the two sliders.
In some embodiments, after determining the target slider, the terminal may further perform a saliency display on a target portion of the operation rod, the target portion being a portion from a corresponding end of the target slider to a position where the target slider is located. The corresponding end of the target slide block is the starting point of the target slide block, and the position of the target slide block is the end point of the current moment. From the start point and the end point, it is possible to know how far the target slider has slid from the start point. The target part is the total distance of the target sliding from the starting point, the total distance is related to the display parameters corresponding to the target slider, the target part is displayed in a significance mode, a user can clearly know the total sliding distance of the target slider, and therefore whether the target slider needs to be dragged to slide or not can be determined again to adjust the display parameters, and accurate control over the slider is achieved.
For example, as shown in fig. 9 (a), before the user performs the drag operation, the first slider is denoted by 801, and the event area of the first slider 801 is denoted by 803. The second slider is denoted by 802 and the event area of the second slider 802 is denoted by 804. There is an overlap area for the event areas of the two sliders, but there is no overlap area for the two sliders. The user performs a dragging operation on the screen, and a starting point P of the dragging operation is located in both the event area 803 of the first slider 801 and the event area 804 of the second slider 802, that is, the starting point P is located in an area where the event areas of the two sliders overlap (that is, the first target area), so that the distance between the starting point and the two sliders can be obtained.
When the distance is determined, the starting point P and the central points O of the two sliding blocks can be determined1And a center point O2The distance between them. It is assumed that the starting point P and the center point O of the first slider 8011A first distance s between1Starting point P and center point O of second slider 8022A first distance s between2. By comparison, s is found1Ratio s2Small, and thus the first slider 801 can be determined as the target slider. After the first slider 801 is determined to be the target slider, the terminal may perform saliency display on the target slider, and the terminal only indicates that the first slider is in a saliency display state in a pattern filling manner, and does not limit the saliency display manner. The terminal can also carry out the operation from the corresponding end of the target slide block to the target part of the current position of the target slide blockThe saliency display is only illustrated in the figures by the way of thickening the target portion, and the saliency display may include various ways, which is not limited by the embodiment of the present disclosure.
As shown in fig. 9 (b), it is assumed that the drag operation is a leftward drag operation, and the end point of the drag operation is P'. The terminal can control the first slider 801 (i.e. the target slider) to slide leftward on the operating rod according to the dragging operation, the first slider is denoted by 801 'after the sliding is finished, the position of the first slider changes, the position of the event area of the first slider also changes correspondingly, and the event area is denoted by 803' after the sliding is finished. As the position of the first slider is changed, the target portion is also changed.
As shown in fig. 10 (a), the start point P of the drag operation may not be in the region where the event regions overlap (the first target region), but may be in the event region of one of the sliders and not in the event region of the other slider. The starting point P is shown in the figure as being within the event area 803 of the first slider 801 and not within the event area 804 of the second slider 802. Assume that the drag operation is a leftward drag operation, and the end point of the drag operation is P'. In this case, the terminal may determine that the slider to be controlled is the first slider 801, and control the first slider 801 to slide, as shown in fig. 10 (b) after the first slider is changed. When the first slider finishes sliding, it is denoted by 801 ', and when the first slider position changes, the position of the event area changes accordingly, and when the sliding finishes, the event area is denoted by 803'. Of course, if the starting point P is in the event area of the second slider but not in the event area of the first slider, the processing manner is the same as the above process, and the second slider can be controlled to slide, which is not described herein.
For case 2.2, since there is an overlapping area between the two sliders, the slider in the activated state may be displayed above the other slider, and the terminal may control the slider in the activated state to slide on the operating rod according to the dragging operation in response to detecting the dragging operation to the first target area and the overlapping area between the first slider and the second slider. Therefore, the user can see which one is currently activated, and then continue to drag the slider, so that the requirements of the user are met, and the sliding of the slider can be accurately controlled. Of course, in view of the situation 2.2, an operation manner for switching the slider in the activated state is also provided, which may specifically refer to the following step S35, and will not be described herein again.
In step S33, the terminal controls the target slider to slide on the operation lever according to the drag operation.
And after the terminal determines the target sliding block, the target sliding block can be controlled to slide, and the sliding process is consistent with the dragging operation. Specifically, the terminal may control the target slider to slide the drag distance on the operation rod to the operation direction according to the operation direction and the drag distance of the drag operation.
In step S34, the terminal determines the display parameter corresponding to the target slider based on the position of the target slider on the operating rod.
After the target slider is controlled to slide, the position of the target slider on the operating rod is changed, and the value of the corresponding display parameter is also changed. The terminal can also calculate the adjusted display parameters and display the display parameters after determination.
In some embodiments, the starting point of the different sliders on the operating lever is different. For example, the starting point of the first slider may be a first end of the operating rod, and the starting point of the second slider may be a second end of the operating rod. Suppose the first slider is a left slider and the second slider is a right slider. The starting point of the left slide block is the left end of the operating rod, and the starting point of the right slide block is the right end of the operating rod. The terminal can determine the display parameters corresponding to the target slider according to the distance between the target slider and the corresponding end of the operating rod. Different sliding block corresponding values are calculated through different ends, when the two sliding block corresponding values have a numerical value relationship, the numerical value relationship can be embodied through sliding of the sliding blocks, a user does not need to repeatedly calculate to determine, and the adjusting efficiency is effectively improved.
Specifically, in response to that the target slider is a first slider, the terminal may determine, according to a distance between the first slider and the first end of the operating rod, a first display parameter corresponding to the first slider. In response to the target slide being the second slide, the terminal may determine a second display parameter corresponding to the second slide according to a distance between the second slide and the second end of the operating rod.
In step S35, in response to detecting a drag operation on the first target area and the first slider and the second slider having an overlapping area, the terminal controls the slider in the activated state to slide on the operation lever according to the drag operation.
For case 2.2, since there is an overlapping area between the two sliders, the slider in the activated state may be displayed above the other slider, and the terminal may control the slider in the activated state to slide on the operating rod according to the dragging operation in response to detecting the dragging operation to the first target area and the overlapping area between the first slider and the second slider. Therefore, the user can see which one is currently activated, and then continue to drag the slider, so that the requirements of the user are met, and the sliding of the slider can be accurately controlled. That is, for the drag event or the sliding event, who is in the activated state, who is activated to perform sliding at this time. In response to the fact that the left sliding block is currently in the activated state, controlling the left sliding block to slide; and controlling the right slider to slide in response to the right slider which is currently in the activated state.
In some embodiments, the terminal controls the target slider to slide, the position of the target slider is changed, and the position relationship between the two sliders may also be changed. For example, before sliding, the positional relationship of the first slider and the second slider corresponds to the above case 2.1, and there is overlap of the event regions, but the two sliders do not overlap. After the target slider slides, the first slider and the second slider also have an overlapping area, and the terminal can perform significance display on the slider in the activated state in response to the overlapping area of the first slider and the second slider after the target slider slides. Therefore, the two sliders are overlapped, one slider is in the activated state, and a user can clearly know which slider is in the activated state through the prominence display of the two sliders, so that whether the slider is the slider which the user wants to control or not is judged according to the requirement of the user, and if not, the slider in the activated state can be switched through switching operation.
For example, as shown in fig. 11 (a), before the user performs the drag operation, the first slider is denoted by 801, and the event area of the first slider 801 is denoted by 803. The second slider is denoted by 802 and the event area of the second slider 802 is denoted by 804. When the target slider is determined to be the first slider 801, the first slider is controlled to slide in accordance with the drag operation. Assuming that the drag operation is a rightward drag operation, the target slider will correspondingly slide rightward. As shown in fig. 11 (b), the end point of the drag operation after the sliding is P'. When the first slider finishes sliding, it is denoted by 801 ', and when the first slider position changes, the position of the event area changes accordingly, and when the sliding finishes, the event area is denoted by 803'. There is an overlapping area of the first slider 801' and the second slider 802. The slider currently in the active state is the first slider 801', which can be prominently displayed, which is only shown in pattern fill.
In some embodiments, a mode of how to switch the slider in the activated state is also provided, namely a click switching mode. When the two sliders overlap, the user can click on a certain area where the two sliders are located to switch the activated slider. Specifically, a second target area may be provided, and the terminal may switch the activated slider in response to detecting a click operation on the second target area, where an overlapping area exists between the first slider and the second slider, and a size of the second target area is larger than a size of the overlapping area. Through the click switching mode, the activated sliding blocks are switched, a more flexible control mode is provided for sliding block control, user operation is more convenient, the sliding blocks can be switched randomly according to self requirements, and display parameters are accurately set. And the second target area is larger than the overlap area, considering that the sliding block is smaller, the overlap area may be smaller, if the area for triggering the sliding block switching is smaller, the user may operate the sliding block less conveniently and the sliding block switching cannot be freely performed, therefore, the sliding block switching is performed through the second target area larger than the overlap area, and the switching efficiency can be improved.
Specifically, the activated slider switching process corresponding to the above case 2.2 may be: the terminal can respond to the detection of the clicking operation, judge whether the first slider and the second slider have an overlapping region, respond to the first slider and the second slider having the overlapping region, and can zoom the region where the first slider and the second slider are located (namely, the union of the two sliders) to a target size to obtain a second target region; the terminal can judge whether the clicking operation is located in the second target area, and in response to the clicking operation being located in the second target area, the terminal can switch the slider in the activated state. For example, in a specific example, the target size may be 44, which is to determine whether the above case is 2.2 when the click operation is detected, and if so, a union of the left view block and the right view block may be obtained and compressed or enlarged to 44 (i.e., the second target area). Then, it is judged whether or not the finger position falls within the range of the size 44, and if so, the following switching is performed. The switching process is that if the current left slider is in the activated state, the right slider is switched to the activated state, and if the current right slider is in the activated state, the left slider is switched to the activated state.
In some embodiments, the second target region is determined based on an overlap region (intersection) of the first slider and the second slider. Or the second target region is determined based on the region (union) where the first slider and the second slider are located.
The setting and acquisition process of the second target area will be explained below.
If the overlapping area of two sliders is used as the area for switching sliders, that is, the intersection of two sliders is used as the area for switching sliders, the following example is used to explain the overlapping area.
a) When the visible blocks of the two sliders overlap a little: if the size of both sliders is 20.0 and the positions on the x-coordinate are [10.0, 30.0] # 25.0, 45.0, respectively, then the intersection in the x-direction is [25.0, 30.0] and the width (width) of the intersection is 30.0-25.0 ═ 5.0.
b) The visual blocks of the two sliding blocks are overlapped together, and when the two sliding blocks are overlapped quickly: if the size of both sliders is 20.0 and the positions on the x-coordinate are [10.0, 30.0] # 11.0, 31.0, respectively, then the intersection in the x-direction is [11.0, 30.0 ]. The width (width) of the intersection is 30.0-11.0 ═ 19.0.
In the two cases, the intersection area is small, the user wants to click the intersection area, the operation is complex, and switching is not easy to perform.
If the area where two sliders are located is taken as the area where the sliders are switched, that is, the union of the two sliders is taken as the area where the sliders are switched, the following example is used to explain the area.
a) If the visible block sizes of both sliders are 20.0 and the positions in the x direction are [10.0, 30.0 ]. sup.25.0, 45.0], respectively, then the union in the x direction is [10.0, 45.0], and the width of the union is 45.0-10.0 ═ 35.0.
b) If the visible block sizes of both sliders are 20.0 and the positions in the x direction are [10.0, 30.0 ]. sup.11.0, 31.0], respectively, then the union in the x direction is [10.0, 31.0], and the width of the union is 31.0-10.0 ═ 21.0.
c) If the visible block sizes of both sliders are 50.0 and the positions in the x direction are [10.0, 60.0 ]. sup.61.0, 111.0], respectively, the union in the x direction is [10.0, 111.0], and the width of the union is 111.0-10.0 ═ 101.0.
It is found from the above example that the union of the areas where the slider is switched may be large, so if an operation is performed on a boundary point of a certain slider, it may be considered as a switching operation, but the user may want to drag that slider, and the excessively large union range may result in that it is particularly easy to switch the slider.
Thus, combining the two cases, a way is provided to determine the second target area based on the overlap area (intersection) of the two sliders, with the area larger than the overlap area and of the target size as the switched area. Specifically, the terminal may use a center point of an overlapping area of two sliders as a center position and an area having a target size as the second target area. In other embodiments, the second target region is determined based on a region (union) where the first slider and the second slider are located. In the following, the second target region is determined based on the regions where the two sliders are located. The terminal can obtain the area where the first slider and the second slider are located, and the area is zoomed to the target size to obtain a second target area.
For example, the target size may be 44 pixels by union. In this way, when the second target region is determined, the union of the Visual blocks of the left and right sliders is taken out, that is, CGRect (L _ Visual _ Rect, R _ Visual _ Rect) is called to obtain a union block uRect, then uRect is compressed or amplified to 44.0, and when the intersection exists between the left and right blocks, the hot area where the left and right blocks are activated is switched, that is, the second target region is also used. Since the size of the slider is limited to 44.0, the slider can be applied to the case where the sizes of the visible blocks of the left and right sliders are different. This ensures that the area (second target area) that can be activated by the trigger switch is 44.0 if there is an intersection between the left and right sliders, regardless of their sizes. And under the general display condition, the size of the finger of the user on the screen is also about 44.0, so that the best user experience can be ensured.
In other embodiments, the second target area may also be an area elsewhere, such as an edge area disposed on the interface, or an area around the operation rod, which is not limited by the embodiments of the disclosure.
In some embodiments, the second target region determined above may be used not only to trigger slider switching, but also to trigger slider sliding. Specifically, the terminal controls the slider in the activated state to slide on the operating rod according to the dragging operation in response to the fact that the dragging operation of the second target area is detected and the first slider and the second slider have the overlapping area.
As will be described in connection with this case 2.2, the terminal can display the joystick corresponding to the target video on the multimedia clip interface. The terminal can respond to the clicking operation in a second target area, and switch the sliders in the activated state, wherein the first slider and the second slider have an overlapping area, the second target area comprises the overlapping area, and the size of the second target area is larger than that of the overlapping area.
In some embodiments, the terminal may be centered at a center point of an area where the first slider and the second slider are located or the overlapping area, and an area having a target size is used as the second target area. That is, the terminal may determine the second target region based on the union or intersection of the two sliders.
In some embodiments, the terminal may also display the activated slider in a highlighted manner, in the same way as the target slider is processed. The terminal can also display the target part of the operating rod in a conspicuous manner, wherein the target part is a part from the corresponding end of the slider in the activated state to the position of the slider in the activated state.
In some embodiments, the terminal may also determine the display parameter corresponding to the activated slider based on the position of the activated slider on the operating rod, similarly to the processing manner of the target slider. Wherein the presentation parameter may be determined based on a distance between the slider and the corresponding end. Specifically, the terminal may determine the display parameter corresponding to the activated slider according to a distance between the activated slider and the corresponding end of the operating rod.
For example, as shown in fig. 12 (a), a first slider is denoted by 801, and an event area of the first slider 801 is denoted by 803. The second slider is denoted by 802 and the event area of the second slider 802 is denoted by 804. There is an overlapping area for the two sliders and naturally there is also an overlapping area for the event areas of the two sliders. The slider currently in the activated state is the first slider 801. If the user wants to drag the second slider, the slider in the active state needs to be switched, and the second slider 802 is switched to the slider in the active state. In one specific example, taking the second target area determined by the union of the two sliders as an example, the area where the two sliders are located may be scaled to the target size. The second target area is identified at 805 in the figure. When the user performs a click operation on the screen and the drop point of the click operation is in the second target area 805, the terminal may switch the activated slider, and after the switch, as shown in fig. 12 (b), the second slider 802 is in the activated state. The display style of the slider in the activated state is a saliency display, and is only shown in a pattern filling manner in the figure. For the slider in the activated state, the terminal may perform a saliency display (shown in bold as an example) on the target portion corresponding to the slider, since the slider in the activated state is switched from the first slider 801 to the second slider 802, and the saliency display in (a) is the target portion corresponding to the first slider 801. (b) Shown in prominence is the target portion corresponding to the second slider 802.
A specific example is provided below, and as shown in fig. 13, the cases of case 1, case 2.1, and case 2.2 described above are collectively explained. Wherein, the Visual block is expressed by Visual, and the Event area is expressed by Event. L and R respectively represent a left slider and a right slider, and P is a starting point of the dragging operation. In case 1, there is no intersection between the two sliders, it is determined whether there is an intersection between the two Event regions, that is, whether P falls within the Event range of LR at the same time, and if so, that is, in case 2.1, it is possible to determine the activated slider according to the distance between P and L and R, and who is close to it, who is activated. L is activated when L is close, and R is activated when R is close. In case 1, if the Event regions intersect, and P does not fall within the LR's Event range at the same time, then P falls in whose Event region and activates who. In case 2.2, i.e. the visual blocks intersect, it is possible to determine who the currently activated slider is, and then determine that P is determined to be in the event area of the currently activated slider, and activate the slider. If not, the trigger is discarded, i.e., the trigger operation is not valid.
The embodiment of the application provides an action bars with two regulatory function, two show parameters that correspond the video material respectively through two sliders, through the setting of action bars, can make the relation between two slider corresponding value satisfy the relation between two show parameters, the user can accomplish the accommodation process of two show parameters through an action bars, and need not the user and calculate by oneself in the accommodation process, therefore, can improve the convenience of operation greatly, improve the regulation efficiency, and be difficult to make mistakes, can effectively improve the accuracy of the show parameter that the regulation obtained.
FIG. 14 is a block diagram of a video clipping device, shown in accordance with an example embodiment. Referring to fig. 14, the apparatus includes:
a display unit 1401 configured to execute displaying, on a multimedia clip interface, a joystick corresponding to a target video, where the joystick includes a first slider and a second slider, and the first slider and the second slider respectively correspond to a first presentation parameter and a second presentation parameter of any video material in the target video;
a determining unit 1402 configured to perform determining a target slider in response to detecting a dragging operation on a first target area, where the first target area is an area where event areas corresponding to the first slider and the second slider respectively overlap, the event area is an area where a corresponding slider can be triggered, and the target slider is a slider with a smallest distance from a starting point of the dragging operation;
a control unit 1403 configured to perform control of the target slider to slide on the operation lever in accordance with the drag operation.
In some embodiments, the determining unit 1402 is configured to perform:
in response to detecting the drag operation on the first target area and the first slider and the second slider having no overlapping area, the step of determining the target slider is performed.
In some embodiments, the apparatus further comprises:
and the switching unit is configured to execute switching of the slider in the activated state in response to the detection of the clicking operation on a second target area, wherein the first slider and the second slider have an overlapping area, and the size of the second target area is larger than that of the overlapping area.
Accordingly, as shown in fig. 15, the video clipping device includes: a display unit 1401 configured to execute displaying, on a multimedia clip interface, a joystick corresponding to a target video, where the joystick includes a first slider and a second slider, and the first slider and the second slider respectively correspond to a first presentation parameter and a second presentation parameter of any video material in the target video; a switching unit 1404 configured to perform switching of the slider in the activated state in response to a click operation within a second target area, wherein the first slider and the second slider have an overlapping area, the second target area includes the overlapping area, and a size of the second target area is larger than a size of the overlapping area.
In some embodiments, the acquiring of the second target region comprises:
and taking the central point of the area where the first sliding block and the second sliding block are located or the overlapping area as the center, and taking the area with the size as the target size as the second target area.
In some embodiments, the display unit is further configured to perform at least one of:
displaying the significance of the slider in the activated state;
and displaying the target part of the operating rod in a conspicuous manner, wherein the target part is a part from the corresponding end of the slider in the activated state to the position of the slider in the activated state.
In some embodiments, the apparatus further comprises:
and the control unit is configured to execute the operation of responding to the detection of the dragging operation on a first target area, wherein the first slider and the second slider have an overlapping area, and the slider in the activated state is controlled to slide on the operating rod according to the dragging operation, the first target area is an area where event areas corresponding to the first slider and the second slider respectively overlap, and the event area is an area where the corresponding slider can be triggered.
In some embodiments, the event area of a slider is an area within the perimeter of the slider that is larger in size than the slider.
In some embodiments, the apparatus further comprises:
the determining unit is configured to determine the display parameters corresponding to the activated sliding block based on the position of the activated sliding block on the operating rod.
In some embodiments, the determining unit is configured to determine the presentation parameter corresponding to the activated slider according to a distance between the activated slider and the corresponding end of the operating rod.
In some embodiments, the sum of the first presentation parameter and the second presentation parameter is within an interval.
In some embodiments, the slidable range of the first slider is from the corresponding end of the first slider to the position of the second slider, and the slidable range of the second slider is from the corresponding end of the second slider to the position of the first slider.
In some embodiments, the second target region is determined based on an overlap region of the first slider and the second slider; or the second target area is determined based on the areas where the first slider and the second slider are located.
The determining unit 1402 is configured to perform:
in response to the detection of the dragging operation on the first target area, acquiring distances between a starting point of the dragging operation and center points of the first slider and the second slider respectively;
and determining the slider with the minimum distance as the target slider.
In some embodiments, the determining unit 1402 is further configured to determine the presentation parameter corresponding to the target slider based on the position of the target slider on the operating rod.
In some embodiments, the determining unit 1402 is configured to determine the display parameter corresponding to the target slider according to a distance between the target slider and the corresponding end of the operating rod.
The embodiment of the application provides an action bars with two regulatory function, two show parameters that correspond the video material respectively through two sliders, through the setting of action bars, can make the relation between two slider corresponding value satisfy the relation between two show parameters, the user can accomplish the accommodation process of two show parameters through an action bars, and need not the user and calculate by oneself in the accommodation process, therefore, can improve the convenience of operation greatly, improve the regulation efficiency, and be difficult to make mistakes, can effectively improve the accuracy of the show parameter that the regulation obtained.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
For example, fig. 16 is a block diagram of a terminal according to an embodiment of the present disclosure. The terminal 1600 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4) player, a notebook computer or a desktop computer. Terminal 1600 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
Generally, terminal 1600 includes: a processor 1601, and a memory 1602.
Processor 1601 may include one or more processing cores, such as a 4-core processor, a 16-core processor, and so on. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1602 is used to store at least one instruction for execution by processor 1601 to implement a video clip method provided by method embodiments herein.
In some embodiments, the terminal 1600 may also optionally include: peripheral interface 1603 and at least one peripheral. Processor 1601, memory 1602 and peripheral interface 1603 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1603 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1604, a display 1605, a camera assembly 1606, audio circuitry 1607, a positioning assembly 1608, and a power supply 1609.
Peripheral interface 1603 can be used to connect at least one I/O (Input/Output) related peripheral to processor 1601 and memory 1602. In some embodiments, processor 1601, memory 1602, and peripheral interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602 and the peripheral device interface 1603 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 1604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1604 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 1604 converts the electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1604 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 1605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1605 is a touch display screen, the display screen 1605 also has the ability to capture touch signals on or over the surface of the display screen 1605. The touch signal may be input to the processor 1601 as a control signal for processing. At this point, the display 1605 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1605 can be one, disposed on the front panel of the terminal 1600; in other embodiments, the display screens 1605 can be at least two, respectively disposed on different surfaces of the terminal 1600 or in a folded design; in other embodiments, display 1605 can be a flexible display disposed on a curved surface or a folded surface of terminal 1600. Even further, the display 1605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 1605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 1606 is used to capture images or video. Optionally, camera assembly 1606 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1606 can also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1607 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1601 for processing or inputting the electric signals to the radio frequency circuit 1604 to achieve voice communication. For stereo sound acquisition or noise reduction purposes, the microphones may be multiple and disposed at different locations of terminal 1600. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1601 or the radio frequency circuit 1604 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1607 may also include a headphone jack.
The positioning component 1608 is configured to locate a current geographic Location of the terminal 1600 for purposes of navigation or LBS (Location Based Service). The Positioning component 1608 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1609 is used to provide power to the various components of terminal 1600. Power supply 1609 may be alternating current, direct current, disposable or rechargeable. When power supply 1609 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1600 also includes one or more sensors 1610. The one or more sensors 1610 include, but are not limited to: acceleration sensor 1611, gyro sensor 1612, pressure sensor 1613, fingerprint sensor 1614, optical sensor 1615, and proximity sensor 1616.
Acceleration sensor 1611 may detect acceleration in three coordinate axes of a coordinate system established with terminal 1600. For example, the acceleration sensor 1611 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1601 may control the display screen 1605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1611. The acceleration sensor 1611 may also be used for acquisition of motion data of a game or a user.
Gyroscope sensor 1612 can detect the organism direction and the turned angle of terminal 1600, and gyroscope sensor 1612 can gather the 3D action of user to terminal 1600 with acceleration sensor 1611 in coordination. From the data collected by the gyro sensor 1612, the processor 1601 may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1613 may be disposed on the side frames of terminal 1600 and/or underlying display 1605. When the pressure sensor 1613 is disposed on the side frame of the terminal 1600, a user's holding signal of the terminal 1600 can be detected, and the processor 1601 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1613. When the pressure sensor 1613 is disposed at the lower layer of the display 1605, the processor 1601 controls the operability control on the UI interface according to the pressure operation of the user on the display 1605. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1614 is configured to collect a fingerprint of the user, and the processor 1601 is configured to identify the user based on the fingerprint collected by the fingerprint sensor 1614, or the fingerprint sensor 1614 is configured to identify the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1601 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 1614 may be disposed on the front, back, or side of the terminal 1600. When a physical key or vendor Logo is provided on the terminal 1600, the fingerprint sensor 1614 may be integrated with the physical key or vendor Logo.
The optical sensor 1615 is used to collect ambient light intensity. In one embodiment, the processor 1601 may control the display brightness of the display screen 1605 based on the ambient light intensity collected by the optical sensor 1615. Specifically, when the ambient light intensity is high, the display luminance of the display screen 1605 is increased; when the ambient light intensity is low, the display brightness of the display screen 1605 is adjusted down. In another embodiment, the processor 1601 may also dynamically adjust the shooting parameters of the camera assembly 1606 based on the ambient light intensity collected by the optical sensor 1615.
A proximity sensor 1616, also referred to as a distance sensor, is typically disposed on the front panel of terminal 1600. The proximity sensor 1616 is used to collect the distance between the user and the front surface of the terminal 1600. In one embodiment, the processor 1601 controls the display 1605 to switch from the light screen state to the clear screen state when the proximity sensor 1616 detects that the distance between the user and the front surface of the terminal 1600 is gradually decreased; when the proximity sensor 1616 detects that the distance between the user and the front surface of the terminal 1600 is gradually increased, the display 1605 is controlled by the processor 1601 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 16 is not intended to be limiting of terminal 1600, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
In an exemplary embodiment, a computer-readable storage medium, such as a memory including at least one computer program, executable by a processor to perform the video clipping method in the above embodiments, is also provided. For example, the computer-readable storage medium can be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, which comprises one or more program codes, which are stored in a computer-readable storage medium. The one or more program codes can be read from a computer-readable storage medium by one or more processors of the electronic device, and the one or more processors execute the one or more program codes to enable the electronic device to perform the video clipping method described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.

Claims (10)

1. A video clipping method, comprising:
displaying an operating rod corresponding to a target video on a multimedia editing interface, wherein the operating rod comprises a first sliding block and a second sliding block, and the first sliding block and the second sliding block respectively correspond to a first display parameter and a second display parameter of any video material in the target video;
and switching the sliders in the activated state in response to clicking operation in a second target area, wherein the first slider and the second slider have an overlapping area, the second target area comprises the overlapping area, and the size of the second target area is larger than that of the overlapping area.
2. The video clipping method according to claim 1, wherein the acquisition process of the second target area comprises:
and taking the central point of the area where the first sliding block and the second sliding block are located or the overlapping area as a center, and taking the area with the size as the target size as the second target area.
3. The video clipping method of claim 1, wherein the method further comprises at least one of:
displaying the significance of the slider in the activated state;
and displaying the target part of the operating rod in a conspicuous manner, wherein the target part is a part from the corresponding end of the slider in the activated state to the position of the slider in the activated state.
4. The video clipping method of claim 1, wherein the method further comprises:
in response to the detection of the dragging operation on the first target area, and the first slider and the second slider have an overlapping area, controlling the slider in the activated state to slide on the operating rod according to the dragging operation, wherein the first target area is an area where event areas corresponding to the first slider and the second slider respectively overlap, and the event areas are areas where corresponding sliders can be triggered.
5. The video clipping method according to claim 4, wherein the event area of one slider is an area within a range around the slider that is larger in size than the slider.
6. The video clipping method of claim 4, wherein the method further comprises:
and determining the display parameters corresponding to the activated sliding block based on the position of the activated sliding block on the operating rod.
7. A video clipping apparatus, comprising:
the display unit is configured to execute displaying of an operating rod corresponding to a target video on a multimedia clip interface, the operating rod comprises a first sliding block and a second sliding block, and the first sliding block and the second sliding block respectively correspond to a first display parameter and a second display parameter of any video material in the target video;
the switching unit is configured to execute switching of the sliders in the activated state in response to clicking operation in a second target area, wherein the first slider and the second slider have an overlapping area, the second target area comprises the overlapping area, and the size of the second target area is larger than that of the overlapping area.
8. A terminal, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video clipping method of any of claims 1 to 6.
9. A computer-readable storage medium in which instructions, when executed by a processor of a terminal, enable the terminal to perform the video clipping method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the video clipping method of any one of claims 1-6.
CN202110483240.1A 2021-03-01 2021-04-30 Video editing method, device, terminal and storage medium Active CN113242467B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110227929 2021-03-01
CN2021102279298 2021-03-01

Publications (2)

Publication Number Publication Date
CN113242467A true CN113242467A (en) 2021-08-10
CN113242467B CN113242467B (en) 2023-09-05

Family

ID=77131720

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110483240.1A Active CN113242467B (en) 2021-03-01 2021-04-30 Video editing method, device, terminal and storage medium
CN202110480907.2A Active CN113242466B (en) 2021-03-01 2021-04-30 Video editing method, device, terminal and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110480907.2A Active CN113242466B (en) 2021-03-01 2021-04-30 Video editing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (2) CN113242467B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040212601A1 (en) * 2003-04-24 2004-10-28 Anthony Cake Method and apparatus for improving accuracy of touch screen input devices
US20110239145A1 (en) * 2010-03-26 2011-09-29 Samsung Electronics Co. Ltd. Mobile terminal and icon control method for the same
CN110868631A (en) * 2018-08-28 2020-03-06 腾讯科技(深圳)有限公司 Video editing method, device, terminal and storage medium
CN111158492A (en) * 2019-12-31 2020-05-15 维沃移动通信有限公司 Video editing method and head-mounted device
CN112306332A (en) * 2020-10-29 2021-02-02 腾讯科技(深圳)有限公司 Method, device and equipment for determining selected target and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6181339B1 (en) * 1998-07-27 2001-01-30 Oak Technology, Inc. Method and system for determing a correctly selected button via motion-detecting input devices in DVD content with overlapping buttons

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040212601A1 (en) * 2003-04-24 2004-10-28 Anthony Cake Method and apparatus for improving accuracy of touch screen input devices
US20110239145A1 (en) * 2010-03-26 2011-09-29 Samsung Electronics Co. Ltd. Mobile terminal and icon control method for the same
CN110868631A (en) * 2018-08-28 2020-03-06 腾讯科技(深圳)有限公司 Video editing method, device, terminal and storage medium
CN111158492A (en) * 2019-12-31 2020-05-15 维沃移动通信有限公司 Video editing method and head-mounted device
CN112306332A (en) * 2020-10-29 2021-02-02 腾讯科技(深圳)有限公司 Method, device and equipment for determining selected target and storage medium

Also Published As

Publication number Publication date
CN113242467B (en) 2023-09-05
CN113242466A (en) 2021-08-10
CN113242466B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN109308205B (en) Display adaptation method, device, equipment and storage medium of application program
CN112492097B (en) Audio playing method, device, terminal and computer readable storage medium
CN108965922B (en) Video cover generation method and device and storage medium
CN109859102B (en) Special effect display method, device, terminal and storage medium
CN109324739B (en) Virtual object control method, device, terminal and storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN110225390B (en) Video preview method, device, terminal and computer readable storage medium
CN110868636B (en) Video material intercepting method and device, storage medium and terminal
CN113157172A (en) Barrage information display method, transmission method, device, terminal and storage medium
CN111880888B (en) Preview cover generation method and device, electronic equipment and storage medium
CN110941375A (en) Method and device for locally amplifying image and storage medium
KR20180045338A (en) Portable apparatus and method for controlling a screen
CN113936699B (en) Audio processing method, device, equipment and storage medium
CN107656794B (en) Interface display method and device
CN114546227A (en) Virtual lens control method, device, computer equipment and medium
CN112381729B (en) Image processing method, device, terminal and storage medium
CN108509127B (en) Method and device for starting screen recording task and computer equipment
CN108664300B (en) Application interface display method and device in picture-in-picture mode
CN111857793A (en) Network model training method, device, equipment and storage medium
CN110992268B (en) Background setting method, device, terminal and storage medium
CN111158575B (en) Method, device and equipment for terminal to execute processing and storage medium
CN110868642B (en) Video playing method, device and storage medium
CN110263695B (en) Face position acquisition method and device, electronic equipment and storage medium
CN109032492B (en) Song cutting method and device
CN108966026B (en) Method and device for making video file

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