CN110868636B - Video material intercepting method and device, storage medium and terminal - Google Patents

Video material intercepting method and device, storage medium and terminal Download PDF

Info

Publication number
CN110868636B
CN110868636B CN201911239220.9A CN201911239220A CN110868636B CN 110868636 B CN110868636 B CN 110868636B CN 201911239220 A CN201911239220 A CN 201911239220A CN 110868636 B CN110868636 B CN 110868636B
Authority
CN
China
Prior art keywords
video
preview area
sliding operation
intercepting
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911239220.9A
Other languages
Chinese (zh)
Other versions
CN110868636A (en
Inventor
吴晗
邹桂全
李文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201911239220.9A priority Critical patent/CN110868636B/en
Publication of CN110868636A publication Critical patent/CN110868636A/en
Application granted granted Critical
Publication of CN110868636B publication Critical patent/CN110868636B/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
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a video material intercepting method, a video material intercepting device, a storage medium and a terminal, and belongs to the technical field of video processing. The method comprises the following steps: when a video import instruction is received, displaying a video clip page, wherein the video clip page comprises a preview area and a playing progress bar; receiving a first sliding operation on the playing progress bar, positioning an intercepting position in the imported video based on the first sliding operation, and synchronously displaying the video content at the intercepting position in a preview area; and receiving a second sliding operation executed in the preview area, and intercepting the target video material based on the second sliding operation. The user can realize quick location intercepting position through the slip broadcast progress bar, after this, the user again can realize the accurate intercepting of required video material through carrying out the slip operation in previewing the region, and this kind of intercepting mode is comparatively quick and convenient, has greatly made things convenient for user operation, and efficiency is higher.

Description

Video material intercepting method and device, storage medium and terminal
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for intercepting a video material.
Background
When the video of the lower click is popular, the video is in a full network with a distinctive cool visual effect. The click video generally refers to a video in which the material changes continuously with the point of the background music. That is, such video is generally accompanied by background music having a distinct sense of tempo, so that the video also appears to have a very rhythmic sense. Illustratively, various pieces of video material that appear in a stuck point video may be cut from multiple videos.
The related art intercepts video material in the following manner. For example, a plurality of video frames of a video are laid out in equal proportion in time according to a certain scale, so that a user can conveniently intercept a required section of video material.
For the mode, if the video length is long, the user may need to slide multiple screens to complete one-time positioning for small-screen terminals such as mobile phones and the like, and a required video material is selected, so that the intercepting mode is complex and time-consuming, inconvenient for user operation and poor in efficiency.
Disclosure of Invention
The embodiment of the application provides a video material intercepting method, a video material intercepting device, a storage medium and a terminal, and solves the problems that an intercepting mode is complex and time-consuming, operation by a user is inconvenient, and efficiency is poor in the related technology. The technical scheme is as follows:
in one aspect, a method for intercepting video material is provided, where the method includes:
when a video import instruction is received, displaying a video clip page, wherein the video clip page comprises a preview area and a playing progress bar;
receiving a first sliding operation on the playing progress bar, positioning an intercepting position in an imported video based on the first sliding operation, and synchronously displaying video content at the intercepting position in the preview area;
and receiving a second sliding operation executed in the preview area, and intercepting the target video material based on the second sliding operation.
In one possible implementation, the displaying a video clip page when the video import instruction is received includes:
after the video import instruction is received, displaying the video clip page;
and if the time length of the imported video is greater than a specified threshold value, the video clip page comprises the preview area and the playing progress bar.
In one possible implementation manner, the displaying a video clip page when the video import instruction is received further includes:
if the time length of the imported video is equal to the required time length of the target video material, displaying the preview area on the video clip page and not displaying the playing progress bar;
and if a third sliding operation executed in the preview area is received, canceling the response to the third sliding operation.
In one possible implementation, the time span of the preview area is equal to the required duration of the target video material.
In a possible implementation manner, the video clip page further includes a play area, and the play area and the preview area are displayed in a video mode synchronously.
In one possible implementation, the method further includes:
when a second sliding operation executed in the preview area is received, the target video material is synchronously and circularly played in the playing area; or the like, or, alternatively,
and when the video importing instruction is received, synchronously displaying the video content in the preview area and the playing area by taking the video starting time of the imported video as a starting point and based on the required duration of the target video material.
In one possible implementation manner, the receiving a second sliding operation performed in the preview area, and intercepting the target video material based on the second sliding operation includes:
according to the playing time sequence and the position of the preview area, a plurality of video frames sampled from the imported video are spread and displayed in the video clip page;
receiving a second sliding operation executed in the preview area, and sliding and displaying the video frames displayed in the spread mode based on the second sliding operation, wherein the video content displayed in the preview area changes along with the second sliding operation;
and determining the video content positioned in the preview area when the second sliding operation is terminated as the target video material.
In another aspect, an apparatus for intercepting a video material is provided, the apparatus comprising:
the display module is used for displaying a video clip page when a video import instruction is received, wherein the video clip page comprises a preview area and a playing progress bar;
the positioning module is used for receiving a first sliding operation on the playing progress bar, positioning an intercepting position in an imported video based on the first sliding operation, and synchronously displaying video content at the intercepting position in the preview area;
and the processing module is used for receiving a second sliding operation executed in the preview area and intercepting the target video material based on the second sliding operation.
In a possible implementation manner, the display module is further configured to display the video clip page after receiving the video import instruction; and if the time length of the imported video is greater than a specified threshold value, the video clip page comprises the preview area and the playing progress bar.
In a possible implementation manner, the display module is further configured to display the preview area on the video clip page and not display the play progress bar if the time length of the imported video is equal to the required duration of the target video material;
the processing module is further configured to cancel responding to a third sliding operation executed in the preview area if the third sliding operation is received.
In one possible implementation, the time span of the preview area is equal to the required duration of the target video material.
In a possible implementation manner, the video clip page further includes a play area, and the play area and the preview area are displayed in a video mode synchronously.
In a possible implementation manner, the display module is further configured to, when receiving a second sliding operation performed in the preview area, synchronously cyclically play the target video material in the play area; or, when the video import instruction is received, the video content is synchronously displayed in the preview area and the play area by taking the video start time of the imported video as a starting point and based on the required time length of the target video material.
In a possible implementation manner, the processing module is further configured to display, in a spread manner, a plurality of video frames sampled from the imported video in the video clip page according to the playing time sequence and the position of the preview area; receiving a second sliding operation executed in the preview area, and sliding and displaying the video frames displayed in the spread mode based on the second sliding operation, wherein the video content displayed in the preview area changes along with the second sliding operation; and determining the video content positioned in the preview area when the second sliding operation is terminated as the target video material.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the above-mentioned method for intercepting video material.
In another aspect, a terminal is provided, where the terminal includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the above-mentioned method for intercepting a video material.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
when a video import instruction is received, displaying a video clip page, wherein the video clip page can comprise a preview area and a playing progress bar; further, after receiving a first sliding operation on the playing progress bar, positioning an intercepting position in the imported video based on the first sliding operation, and synchronously displaying the video content at the intercepting position in the preview area; and then, if a second sliding operation executed in the preview area is received again, the target video material is intercepted based on the second sliding operation.
Based on the above description, the video material interception is realized by combining the playing progress bar and the preview area, wherein the user can realize the quick positioning of the interception position through sliding the playing progress bar, and after the position is positioned, the user can realize the accurate interception of the required video material through executing the sliding operation in the preview area.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for intercepting video material according to an embodiment of the present application;
fig. 2 is a flowchart of a method for intercepting video material according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a video clip page provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus for intercepting a video material according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before explaining embodiments of the present application in detail, some noun terms or abbreviations that may be referred to by the embodiments of the present application are introduced.
Video click: generally refers to a video in which the material is constantly changing with the point of accent of the background music.
One card point video can be composed of a plurality of card point paragraphs, and each card point paragraph is a video material. Illustratively, for any piece of video material, the piece of video material may be from one video, i.e., the piece of video material may be a portion that is cut from one video; in addition, the video material may also be derived from a picture selected by a user, which is not specifically limited in this embodiment of the application.
In addition, the stuck point videos are usually short videos. As an example, the length of the checkpoint video may be 0 to 90 seconds, which is also not specifically limited in the embodiment of the present application.
For example, taking a length of one checkpoint video being 15 seconds and 16 video segments having 16 checkpoints as an example, the length of the 1 st video segment may be 2.7s, the length of the 2 nd video segment may be 0.8s, the length of the 3 rd to 4 th video segments may be 1.0s, the length of the 5 th video segment may be 1.1s, the length of the 6 th to 8 th video segments may be 1.0s, the length of the 9 th video segment may be 0.9s, the length of the 10 th video segment may be 1.0s, the length of the 11 th video segment may be 0.9s, the length of the 12 th to 13 th video segments may be 1.0s, the length of the 14 th to 15 th video segments may be 0.9s, and the length of the 16 th video segment may be 1.5 s.
Wherein, each of the 16 video materials can be from video capture or from a picture selected by the user. In the playing process of the click video, video materials are continuously changed along with the change of music rhythm, namely, background music with obvious rhythm is matched, so that the video looks very rhythmic. The transition between video materials is just stuck at the point of the background music's accent beat. Namely, the click video realizes the conversion of different video materials through the heavy sound shooting node.
The following describes an implementation environment related to a method for intercepting a video material provided by an embodiment of the present application.
The method for intercepting a video material provided in the embodiment of the present application is generally applied to a terminal, for example, the method may be applied to a mobile terminal or a fixed terminal, and this is not specifically limited in the embodiment of the present application. As an example, taking the application on a mobile terminal as an example, the terminal types include but are not limited to: smart phones, tablet computers, electronic readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 4), MP4 players, and the like.
Illustratively, an application program with a video clip function is installed on the terminal, and specifically, the method for intercepting the video material provided by the embodiment of the present application is executed by the application program with the video clip function installed on the terminal.
After the checkpoint video is generated, the checkpoint video may be selected to be played through another application program (for example, a video playing program), or the checkpoint video may be selected to be directly stored locally, which is not specifically limited in this application.
Based on the implementation environment, in the clipping process of the checkpoint video, the checkpoint paragraph clipping can be conveniently and quickly completed, the video paragraph needing clipping can be quickly positioned, and the clipped video paragraph can be previewed and played.
It should be noted that the method for intercepting a video material provided in the embodiment of the present application can be applied to the above mentioned clipping process of a click video, and can also be applied to any other scene that needs to intercept a video material, which is not specifically limited in the embodiment of the present application.
The following embodiments are provided to explain the method for intercepting video material in detail.
Fig. 1 is a flowchart of a method for intercepting a video material according to an embodiment of the present application. Referring to fig. 1, a method flow provided by the embodiment of the present application includes:
101. and when a video import instruction is received, displaying a video clip page, wherein the video clip page comprises a preview area and a playing progress bar.
102. And after receiving a first sliding operation on the playing progress bar, positioning a cutting position in the imported video based on the first sliding operation, and synchronously displaying the video content at the cutting position in the preview area.
103. Upon receiving a second swipe operation performed within the preview area, the target video material is intercepted based on the second swipe operation.
According to the method provided by the embodiment of the application, when a video import instruction is received, a video clip page is displayed, wherein the video clip page can comprise a preview area and a playing progress bar; further, after receiving a first sliding operation on the playing progress bar, positioning an intercepting position in the imported video based on the first sliding operation, and synchronously displaying the video content at the intercepting position in the preview area; and then, if a second sliding operation executed in the preview area is received again, the target video material is intercepted based on the second sliding operation.
Based on the above description, the video material interception is realized by combining the playing progress bar and the preview area, wherein the user can realize the quick positioning of the interception position through sliding the playing progress bar, and after the position is positioned, the user can realize the accurate interception of the required video material through executing the sliding operation in the preview area.
In one possible implementation, the displaying a video clip page when the video import instruction is received includes:
after the video import instruction is received, displaying the video clip page;
and if the time length of the imported video is greater than a specified threshold value, the video clip page comprises the preview area and the playing progress bar.
In one possible implementation manner, the displaying a video clip page when the video import instruction is received further includes:
if the time length of the imported video is equal to the required time length of the target video material, displaying the preview area on the video clip page and not displaying the playing progress bar;
and if a third sliding operation executed in the preview area is received, canceling the response to the third sliding operation.
In one possible implementation, the time span of the preview area is equal to the required duration of the target video material.
In a possible implementation manner, the video clip page further includes a play area, and the play area and the preview area are displayed in a video mode synchronously.
In one possible implementation, the method further includes:
when a second sliding operation executed in the preview area is received, the target video material is synchronously and circularly played in the playing area; or the like, or, alternatively,
and when the video importing instruction is received, synchronously displaying the video content in the preview area and the playing area by taking the video starting time of the imported video as a starting point and based on the required duration of the target video material.
In one possible implementation manner, the receiving a second sliding operation performed in the preview area, and intercepting the target video material based on the second sliding operation includes:
according to the playing time sequence and the position of the preview area, a plurality of video frames sampled from the imported video are spread and displayed in the video clip page;
receiving a second sliding operation executed in the preview area, and sliding and displaying the video frames displayed in the spread mode based on the second sliding operation, wherein the video content displayed in the preview area changes along with the second sliding operation;
and determining the video content positioned in the preview area when the second sliding operation is terminated as the target video material.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
It should be noted that descriptions such as the first, second, third, and fourth appearing in the following embodiments are only for distinguishing different description objects, and do not constitute any other limitation.
Fig. 2 is a flowchart of a method for intercepting a video material according to an embodiment of the present application. Taking an execution subject of the method as a mobile terminal, the method is applied to a clipping process of a click video as an example, referring to fig. 2, and a method flow provided by the embodiment of the application includes:
201. when receiving the video import instruction, the mobile terminal displays a video clip page.
The method can be applied to the intercepting process of any section of video material forming the checkpoint video.
As mentioned above, a stuck-point video is generally composed of multiple segments of video material. And any video material can be intercepted from the video stored locally in the mobile terminal. That is, from the user's perspective, during the editing of the checkpoint video, it may be necessary to perform the interception of multiple segments of video material.
In the embodiment of the application, the clipping process of the click video can be started based on the triggering operation of the set clipping button by the user. Illustratively, after the user triggers the displayed clip button, the mobile terminal displays a list of locally stored videos; and when the user selects any one video in the video list, the mobile terminal determines to receive the video import instruction and displays the video clip page.
In one possible implementation, referring to fig. 3, a preview area, a play area, and a play progress bar may be included in a video clip page. In fig. 3, the play progress bar is displayed at the bottom of the page, and the preview area is displayed between the play progress bar and the play area. In addition, the preview area, the play area, and the play progress bar may be displayed in other typesetting forms, which is not specifically limited in this embodiment of the application.
Wherein, being different from ordinary intercepting function, the stuck point video carries out the segmentation interception, and this needs to satisfy two conditions: firstly, the video paragraph needing to be intercepted is quickly positioned, and secondly, the intercepted video paragraph is previewed and played. In the embodiment of the application, the position needing to be intercepted can be quickly positioned through the playing progress bar; on the basis, the video paragraphs to be intercepted can be further finely adjusted through the preview area; and the playing area can repeatedly and circularly play the video paragraphs intercepted by the user, so as to realize preview playing.
The first point to be noted is that, as shown in fig. 3, in the embodiment of the present application, a plurality of video frames sampled from an imported video are displayed in a video clip page in a spread manner according to the playing time sequence and the position of the preview area. The video frames of the spread presentation may occupy multiple screens, and the spread presentation is a thumbnail presentation of the imported video in the form of video frames in the time dimension. And the playing area and the preview area are displayed simultaneously with the video, and referring to fig. 3, the meaning here is that the playing area has a large video playing window, and the preview area has a small thumbnail preview window, and the video contents for which the playing or displaying is performed are the same.
The second point to be noted is that, since the length (also referred to as a required duration) of each piece of video material constituting the checkpoint video may be different, the time span of the preview area corresponding to each piece of video material may also be different. That is, for any segment of video material, the time span of the preview area adapted to the segment of video material is equal to the required time duration of the segment of video material.
Illustratively, if the time span of the preview area shown in fig. 3 is 3s, the required duration of the video material adapted to the preview area is 3s, and accordingly, a 3 s-long video segment (17s to 20s) is also displayed in the preview area.
A third point to be noted is that the time length of the imported video can be greater than or at least equal to the required time length of the video segment to be intercepted. Illustratively, taking the required duration of a video segment to be cut as 2s as an example, the time length of the imported video is at least 2 s.
In another possible implementation manner, the present application may also selectively display a play progress bar based on the time length of the imported video, for details, see steps 2011 and 2012 below.
2011. After receiving a video import instruction, the mobile terminal displays a video clip page; if the time length of the imported video is larger than the specified threshold, the video clip page comprises a preview area, a play area and a play progress bar at the moment.
For example, the value of the predetermined threshold may be 30s, which is not specifically limited in this embodiment of the application.
2012. And if the time length of the imported video is equal to the required time length of the target video material, displaying a preview area and a play area on the video clip page and not displaying a play progress bar.
Aiming at the step, if the time length of the imported video is exactly equal to the required time length of the target material to be intercepted, the whole original video is selected, the playing progress bar cannot appear at the bottom of the page, and only the preview area and the playing area are displayed.
In addition, after receiving the video import instruction, the mobile terminal also synchronously displays the video content in the preview area and the play area by taking the video start time of the imported video as a starting point and based on the required time length of the target video material. For example, the default synchronization displays the video content between 0s in the imported video and the required duration of the target video material in the preview area and the play area.
202. The mobile terminal receives a first sliding operation of the playing progress bar, positions an intercepting position in the imported video based on the first sliding operation, and synchronously displays video content at the intercepting position in the preview area and the playing area.
In this embodiment of the application, as shown in fig. 3, the play progress bar may be composed of a slidable slider and a progress bar, and a user triggers the slider to move on the progress bar to form a first sliding operation, so as to adjust the play position. Namely, the user can realize quick positioning to the intercepting position by sliding the play progress bar left and right.
The first point to be described is that the embodiment of the present application collectively refers to a series of sliding operations performed by a user on a play progress bar as a first sliding operation.
In addition, as the first sliding operation performed on the play progress bar by the user, the video content displayed in the preview area and in the play area also changes according to the first sliding operation. When the first sliding operation of the user on the playing progress bar is stopped, the video content displayed in the preview area and the playing area is also stopped changing.
The second point to be described is that the playing progress bar is quickly positioned to the capturing position, which is the first step of capturing the required video segment in the embodiment of the present application, and besides this step, the embodiment of the present application further includes a step of accurately adjusting the required video segment through the preview area, see step 203 below.
203. And the mobile terminal receives a second sliding operation executed in the preview area and intercepts the target video material based on the second sliding operation.
In the embodiment of the present application, the preview area does not support sliding, i.e., the preview area is stationary. However, the video frames displayed in the spread-out presentation form based on the position of the preview area are sliding-supported, that is, the embodiment of the present application does not support sliding the preview area but supports sliding the video frames of the spread-out presentation.
Based on the above description, the target video material is intercepted based on the second sliding operation, including but not limited to: sliding and displaying the video frames displayed in the spread mode based on a second sliding operation, wherein the video content displayed in the preview area changes along with the second sliding operation; and determining the video content positioned in the preview area when the second sliding operation is terminated as the target video material.
In addition, the mobile terminal can also display an interception confirmation button on the video clip page, and if the user triggers the interception confirmation button after the second sliding operation is terminated, the target video material interception is completed. For example, the mobile terminal may further display an interception cancellation button, and if the user triggers the interception cancellation button in the second sliding operation process, the mobile terminal may be restored to the default state to cancel the currently intercepted target video material.
In the case shown in step 2012 above, if the mobile terminal receives the third sliding operation performed by the user in the preview area, the mobile terminal cancels the response to the third sliding operation, that is, in this case, the mobile terminal does not support the video frame displayed by the user in the sliding and spreading manner.
204. And the mobile terminal synchronously and circularly plays the target video material in the playing area.
The mobile terminal can repeatedly execute the steps to complete the selection of the multiple sections of video materials in one click video, which is not specifically limited in the embodiment of the present application.
The method provided by the embodiment of the application has at least the following beneficial effects:
this application embodiment combines broadcast progress bar and preview regional video material intercepting of having realized, and wherein, the user can realize fixing a position the intercepting position fast through the slip broadcast progress bar, and after this, the user can realize the accurate intercepting of required video material through carrying out the slip operation in previewing the region again, and this kind of intercepting mode is comparatively quick and convenient, has greatly made things convenient for user operation, and efficiency is higher.
In addition, the embodiment of the application also supports the preview playing of the video paragraph selected by the user through the playing area, and further provides convenience for the user to quickly intercept the required video material.
Fig. 4 is a schematic structural diagram of an apparatus for intercepting a video material according to an embodiment of the present application. Referring to fig. 4, the apparatus includes:
the display module 401 is configured to display a video clip page when a video import instruction is received, where the video clip page includes a preview area and a play progress bar;
a positioning module 402, configured to receive a first sliding operation on the play progress bar, position an interception position in an imported video based on the first sliding operation, and synchronously display video content at the interception position in the preview area;
and the processing module 403 is configured to receive a second sliding operation performed in the preview area, and intercept the target video material based on the second sliding operation.
The device provided by the embodiment of the application displays a video clip page when a video import instruction is received, wherein the video clip page can comprise a preview area and a play progress bar; further, after receiving a first sliding operation on the playing progress bar, positioning an intercepting position in the imported video based on the first sliding operation, and synchronously displaying the video content at the intercepting position in the preview area; and then, if a second sliding operation executed in the preview area is received again, the target video material is intercepted based on the second sliding operation.
Based on the above description, the video material interception is realized by combining the playing progress bar and the preview area, wherein the user can realize the quick positioning of the interception position through sliding the playing progress bar, and after the position is positioned, the user can realize the accurate interception of the required video material through executing the sliding operation in the preview area.
In a possible implementation manner, the display module 401 is further configured to display the video clip page after receiving the video import instruction; and if the time length of the imported video is greater than a specified threshold value, the video clip page comprises the preview area and the playing progress bar.
In a possible implementation manner, the display module 401 is further configured to display the preview area on the video clip page and not display the play progress bar if the time length of the imported video is equal to the required duration of the target video material;
the processing module 403 is further configured to cancel responding to the third sliding operation if the third sliding operation executed in the preview area is received.
In one possible implementation, the time span of the preview area is equal to the required duration of the target video material.
In a possible implementation manner, the video clip page further includes a play area, and the play area and the preview area are displayed in a video mode synchronously.
In a possible implementation manner, the display module 401 is further configured to, when receiving a second sliding operation performed in the preview area, synchronously play the video material in a loop in the play area; or, when the video import instruction is received, the video content is synchronously displayed in the preview area and the play area by taking the video start time of the imported video as a starting point and based on the required time length of the target video material.
In a possible implementation manner, the processing module 403 is further configured to display, in a spread manner, a plurality of video frames sampled from the imported video in the video clip page according to the playing time sequence and the position of the preview area; receiving a second sliding operation executed in the preview area, and sliding and displaying the video frames displayed in the spread mode based on the second sliding operation, wherein the video content displayed in the preview area changes along with the second sliding operation; and determining the video content positioned in the preview area when the second sliding operation is terminated as the target video material.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
It should be noted that: in the above-described embodiment, when the apparatus for capturing a video material captures a video material, only the division of the functional modules is used for illustration, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the video material capturing device and the video material capturing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 5 shows a block diagram of a terminal 500 according to an exemplary embodiment of the present application. The terminal 500 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 500 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, the terminal 500 includes: a processor 501 and a memory 502.
The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 501 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). The processor 501 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 called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 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 502 is used to store at least one instruction for execution by processor 501 to implement the method of intercepting video material provided by the method embodiments of the present application.
In some embodiments, the terminal 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502 and peripheral interface 503 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch screen display 505, camera 506, audio circuitry 507, positioning components 508, and power supply 509.
The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 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 circuitry 504 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 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 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 screen 505 may be one, providing the front panel of the terminal 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the terminal 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 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 506 may 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.
Audio circuitry 507 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 501 for processing, or inputting the electric signals to the radio frequency circuit 504 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 500. 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 501 or the radio frequency circuit 504 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, audio circuitry 507 may also include a headphone jack.
The positioning component 508 is used for positioning the current geographic Location of the terminal 500 for navigation or LBS (Location Based Service). The Positioning component 508 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 509 is used to power the various components in terminal 500. The power source 509 may be alternating current, direct current, disposable or rechargeable. When power supply 509 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 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.
The acceleration sensor 511 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the touch screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect a body direction and a rotation angle of the terminal 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the terminal 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: 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.
The pressure sensor 513 may be disposed on a side bezel of the terminal 500 and/or an underlying layer of the touch display screen 505. When the pressure sensor 513 is disposed on the side frame of the terminal 500, a user's holding signal of the terminal 500 may be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. 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 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be provided on the front, back, or side of the terminal 500. When a physical button or a vendor Logo is provided on the terminal 500, the fingerprint sensor 514 may be integrated with the physical button or the vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.
A proximity sensor 516, also referred to as a distance sensor, is typically disposed on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front surface of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 gradually decreases, the processor 501 controls the touch display screen 505 to switch from the bright screen state to the dark screen state; when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 becomes gradually larger, the processor 501 controls the touch display screen 505 to switch from the screen-rest state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of terminal 500 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In addition, an exemplary embodiment of the present application also provides a computer-readable storage medium, which may be a non-volatile storage medium. The computer readable storage medium has at least one instruction stored therein, and the at least one instruction is loaded and executed by a processor to implement the method for intercepting video material provided by the above method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. A method for intercepting video material, the method comprising:
when a video import instruction is received, displaying a video clip page, if the time length of the imported video is greater than a specified threshold value, simultaneously including a preview area, a play progress bar and a play area in the video clip page, wherein the play progress bar is used for quickly positioning an interception position, the preview area is used for finely adjusting a video paragraph needing to be intercepted, the play area is used for repeatedly and circularly playing the video paragraph intercepted by a user, and the time span of the preview area is equal to the required duration of a target video material;
receiving a first sliding operation on the playing progress bar, positioning an intercepting position in an imported video based on the first sliding operation, and synchronously displaying video content at the intercepting position in the preview area;
according to the playing time sequence and the position of the preview area, a plurality of video frames sampled from the imported video are spread and displayed in the video clip page;
receiving a second sliding operation executed in the preview area, and sliding and displaying the video frames displayed in the spread mode based on the second sliding operation, wherein the video content displayed in the preview area changes along with the second sliding operation;
and determining the video content positioned in the preview area when the second sliding operation is terminated as a target video material.
2. The method of claim 1, wherein displaying a video clip page when the video import instruction is received further comprises:
if the time length of the imported video is equal to the required time length of the target video material, displaying the preview area on the video clip page and not displaying the playing progress bar;
and if a third sliding operation executed in the preview area is received, canceling the response to the third sliding operation.
3. The method according to any of claims 1 to 2, wherein the play area is displayed video in synchronization with the preview area.
4. The method of claim 3, further comprising:
when a second sliding operation executed in the preview area is received, the target video material is synchronously and circularly played in the playing area; or the like, or, alternatively,
and when the video importing instruction is received, synchronously displaying the video content in the preview area and the playing area by taking the video starting time of the imported video as a starting point and based on the required duration of the target video material.
5. An apparatus for intercepting video material, the apparatus comprising:
the display module is used for displaying a video clip page when a video import instruction is received, if the time length of the imported video is greater than a specified threshold value, the video clip page simultaneously comprises a preview area, a play progress bar and a play area, the play progress bar is used for rapidly positioning an intercepting position, the preview area is used for finely adjusting a video paragraph needing to be intercepted, the play area is used for repeatedly and circularly playing the video paragraph intercepted by a user, and the time span of the preview area is equal to the required duration of a target video material;
the positioning module is used for receiving a first sliding operation on the playing progress bar, positioning an intercepting position in an imported video based on the first sliding operation, and synchronously displaying video content at the intercepting position in the preview area;
the processing module is used for spreading and displaying a plurality of video frames sampled from the imported video in the video clip page according to the playing time sequence and the position of the preview area; receiving a second sliding operation executed in the preview area, and sliding and displaying the video frames displayed in the spread mode based on the second sliding operation, wherein the video content displayed in the preview area changes along with the second sliding operation; and determining the video content positioned in the preview area when the second sliding operation is terminated as a target video material.
6. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to implement the method of intercepting a video material of any of claims 1 to 4.
7. A terminal, characterized in that it comprises a processor and a memory, in which at least one instruction is stored, which is loaded and executed by the processor to implement the method of intercepting video material according to any of claims 1 to 4.
CN201911239220.9A 2019-12-06 2019-12-06 Video material intercepting method and device, storage medium and terminal Active CN110868636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911239220.9A CN110868636B (en) 2019-12-06 2019-12-06 Video material intercepting method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911239220.9A CN110868636B (en) 2019-12-06 2019-12-06 Video material intercepting method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110868636A CN110868636A (en) 2020-03-06
CN110868636B true CN110868636B (en) 2022-03-25

Family

ID=69657927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911239220.9A Active CN110868636B (en) 2019-12-06 2019-12-06 Video material intercepting method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110868636B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697749A (en) * 2020-12-28 2022-07-01 北京小米移动软件有限公司 Video editing method, video editing device, storage medium and electronic equipment
CN115484399B (en) * 2021-06-16 2023-12-12 荣耀终端有限公司 Video processing method and electronic equipment
CN113613082A (en) * 2021-06-30 2021-11-05 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium
CN113490051B (en) * 2021-07-16 2024-01-23 北京奇艺世纪科技有限公司 Video frame extraction method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007235253A (en) * 2006-02-27 2007-09-13 Ricoh Co Ltd Edition tool, and edition and operation method
CN103986938B (en) * 2014-06-03 2016-08-24 合一网络技术(北京)有限公司 The method and system of preview based on video playback
KR20170029329A (en) * 2015-09-07 2017-03-15 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105872675A (en) * 2015-12-22 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and device for intercepting video animation
CN106028068A (en) * 2016-06-30 2016-10-12 乐视控股(北京)有限公司 Video progress content preview method and device, and mobile terminal
CN108055587A (en) * 2017-11-30 2018-05-18 星潮闪耀移动网络科技(中国)有限公司 Sharing method, device, mobile terminal and the storage medium of image file
CN110058887B (en) * 2018-01-16 2022-02-18 腾讯科技(深圳)有限公司 Video processing method, video processing device, computer-readable storage medium and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于iOS系统的短视频贴图应用的设计与实现;杨寒;《中国优秀硕士学位论文全文数据库 信息科技辑》;20170615;全文 *

Also Published As

Publication number Publication date
CN110868636A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN108391171B (en) Video playing control method and device, and terminal
CN110233976B (en) Video synthesis method and device
CN107908929B (en) Method and device for playing audio data
CN108965922B (en) Video cover generation method and device and storage medium
CN110868636B (en) Video material intercepting method and device, storage medium and terminal
CN108449641B (en) Method, device, computer equipment and storage medium for playing media stream
CN111065001B (en) Video production method, device, equipment and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110324689B (en) Audio and video synchronous playing method, device, terminal and storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN110225390B (en) Video preview method, device, terminal and computer readable storage medium
CN109451248B (en) Video data processing method and device, terminal and storage medium
CN114546227B (en) Virtual lens control method, device, computer equipment and medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN109819314B (en) Audio and video processing method and device, terminal and storage medium
CN112822544B (en) Video material file generation method, video synthesis method, device and medium
CN112866584B (en) Video synthesis method, device, terminal and storage medium
CN113377270A (en) Information display method, device, equipment and storage medium
CN110868642B (en) Video playing method, device and storage medium
CN110992268B (en) Background setting method, device, terminal and storage medium
CN111031394B (en) Video production method, device, equipment and storage medium
CN109032492B (en) Song cutting method and device
CN112616082A (en) Video preview method, device, terminal and storage medium
CN110191236B (en) Song playing queue management method and device, terminal equipment and storage medium
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