CN108965922B - Video cover generation method and device and storage medium - Google Patents

Video cover generation method and device and storage medium Download PDF

Info

Publication number
CN108965922B
CN108965922B CN201810961896.8A CN201810961896A CN108965922B CN 108965922 B CN108965922 B CN 108965922B CN 201810961896 A CN201810961896 A CN 201810961896A CN 108965922 B CN108965922 B CN 108965922B
Authority
CN
China
Prior art keywords
video
cover
key
video frame
progress bar
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
CN201810961896.8A
Other languages
Chinese (zh)
Other versions
CN108965922A (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 CN201810961896.8A priority Critical patent/CN108965922B/en
Publication of CN108965922A publication Critical patent/CN108965922A/en
Application granted granted Critical
Publication of CN108965922B publication Critical patent/CN108965922B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating 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/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
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8549Creating video summaries, e.g. movie trailer

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Television Signal Processing For Recording (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a video cover generation method, a video cover generation device and a storage medium, and belongs to the technical field of terminals. The method comprises the following steps: when a cover setting instruction of a video is received, determining n key time points of the video, wherein n is an integer greater than 1; acquiring a video frame of each key time point in the n key time points in the video as a key frame; displaying a progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points; when a cover selection instruction is received, determining a key frame selected by the cover selection instruction from the n key frames as a cover of the video. The invention not only improves the flexibility of the video cover setting, but also improves the representativeness of the set video cover, thereby greatly improving the display effect of the video cover.

Description

Video cover generation method and device and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for generating a video cover, and a storage medium.
Background
With the development of terminal technology, shooting videos through terminals gradually becomes a favorite activity in daily life of people. After the video is shot, in order to enable the video to be better displayed and exposed, a higher click rate is obtained, and meanwhile, in order to better express the theme of the video, a cover page can be arranged for the video.
Currently, when setting a cover for a video, a terminal may directly use a first video frame of the video as the cover for the video, or a user may manually select one image from locally stored images as the cover for the video.
However, the video cover set in the former method is relatively fixed, and the video cover set in the latter method may not be related to the content of the video, so that the video covers set in the two methods are poor in display effect.
Disclosure of Invention
The embodiment of the invention provides a video cover generation method, a video cover generation device and a storage medium, which can solve the problem of poor display effect of a video cover in the related art. The technical scheme is as follows:
in a first aspect, a method for generating a video cover is provided, where the method includes:
when a cover setting instruction of a video is received, determining n key time points of the video, wherein n is an integer greater than 1;
acquiring a video frame of each key time point in the n key time points in the video as a key frame;
displaying a progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points;
when a cover selection instruction is received, determining a key frame selected by the cover selection instruction from the n key frames as a cover of the video.
Optionally, the determining n key time points of the video includes:
equally dividing the duration of the video into n time periods, and taking a first time point of each time period in the n time periods as a key time point;
correspondingly, the displaying the acquired n key frames on the progress bar according to the n key time points includes:
determining n positions on the progress bar for indicating the n key time points one by one;
displaying an ith key time point of the n key time points and an ith key frame of the n key frames in a display area corresponding to an ith position of the n positions, wherein i is an integer greater than 1 and less than or equal to n.
Optionally, after displaying the acquired n key frames on the progress bar according to the n key time points, the method further includes:
determining a position of a slider on the progress bar;
acquiring a first video frame from the video and displaying the first video frame according to the position of a sliding block on the progress bar;
when a cover determining instruction is received, acquiring at least one second video frame from the video, wherein the at least one second video frame is at least one video frame which is positioned behind the first video frame and is continuous;
and generating a dynamic cover of the video according to the first video frame and the at least one second video frame.
Optionally, the determining the position of the slider on the progress bar includes:
when the sliding block on the progress bar is not dragged, determining the position of the sliding block on the progress bar as a preset position;
when the slider on the progress bar is dragged, determining the position of the slider on the progress bar as the dragged position.
Optionally, the obtaining and displaying a first video frame from the video according to the position of the slider on the progress bar includes:
determining a point in time of a position indication of a slider on the progress bar;
acquiring a video frame at the time point in the video as a first video frame;
displaying the first video frame.
Optionally, the method further comprises:
displaying at least one cover label when a cover setting instruction of the video is received;
selecting a cover label from the at least one cover label as a target label;
correspondingly, the generating a dynamic cover of the video according to the first video frame and the at least one second video frame includes:
synthesizing the first video frame and the at least one second video frame to obtain a target video segment;
and covering the target label on each video frame in the target video clip to obtain a dynamic cover of the video.
Optionally, after selecting one cover label from the at least one cover label as the target label, the method further includes:
displaying the target tag on the first video frame;
adjusting display parameters of the target tag on the first video frame, the display parameters including at least one of size and position;
correspondingly, the overlaying the target label on each video frame in the target video clip to obtain a dynamic cover page of the video includes:
and covering the target label on each video frame in the target video clip according to the display parameters of the target label on the first video frame to obtain the dynamic cover of the video.
Optionally, when receiving a cover setting instruction of a video, determining that n key time points of the video are ahead, further comprising:
displaying an editing page of the video, wherein a cover setting entry is displayed on the editing page, and the video is played on the editing page;
and when the preset operation of the cover setting inlet is detected, determining that the cover setting instruction of the video is received.
In a second aspect, there is provided a video cover generation apparatus, the apparatus comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining n key time points of a video when a cover setting instruction of the video is received, and n is an integer larger than 1;
a first obtaining module, configured to obtain, as a key frame, a video frame at each key time point of the n key time points in the video;
the first display module is used for displaying a progress bar of the video and displaying the acquired n key frames on the progress bar according to the n key time points;
and the second determining module is used for determining the key frame selected by the cover selecting instruction from the n key frames as the cover of the video when the cover selecting instruction is received.
Optionally, the first determining module is configured to:
equally dividing the duration of the video into n time periods, and taking a first time point of each time period in the n time periods as a key time point;
accordingly, the first display module comprises:
a first determining unit, configured to determine n positions on the progress bar, where the n positions are used to indicate the n key time points one by one;
a first display unit, configured to display an ith key time point of the n key time points and an ith key frame of the n key frames in a display area corresponding to an ith position of the n positions, where i is an integer greater than 1 and less than or equal to n.
Optionally, the apparatus further comprises:
a third determining module, configured to determine a position of a slider on the progress bar;
the third obtaining module is used for obtaining and displaying a first video frame from the video according to the position of the sliding block on the progress bar;
the fourth acquisition module is used for acquiring at least one second video frame from the video when a cover determining instruction is received, wherein the at least one second video frame is at least one video frame which is continuous behind the first video frame;
and the generating module is used for generating a dynamic cover of the video according to the first video frame and the at least one second video frame.
Optionally, the third determining module includes:
the second determination unit is used for determining the position of the sliding block on the progress bar as a preset position when the sliding block on the progress bar is not dragged;
and the third determining unit is used for determining the position of the sliding block on the progress bar as the dragged position when the sliding block on the progress bar is dragged.
Optionally, the third obtaining module includes:
a fourth determination unit for determining a time point of position indication of a slider on the progress bar;
an obtaining unit, configured to obtain a video frame at the time point in the video as a first video frame;
and the second display unit is used for displaying the first video frame.
Optionally, the apparatus further comprises:
the second display module is used for displaying at least one cover label when a cover setting instruction of the video is received;
a selection module for selecting a cover label from the at least one cover label as a target label;
accordingly, the generating module comprises:
a synthesizing unit, configured to synthesize the first video frame and the at least one second video frame to obtain a target video segment;
and the covering unit is used for covering the target label on each video frame in the target video clip to obtain a dynamic cover of the video.
Optionally, the apparatus further comprises:
a third display module, configured to display the target tag on the first video frame;
an adjustment module for adjusting display parameters of the target tag on the first video frame, the display parameters including at least one of size and position;
accordingly, the covering unit is configured to:
and covering the target label on each video frame in the target video clip according to the display parameters of the target label on the first video frame to obtain the dynamic cover of the video.
Optionally, the apparatus further comprises:
the fourth display module is used for displaying an editing page of the video, a cover setting entry is displayed on the editing page, and the video is played on the editing page;
and the fourth determining module is used for determining that the cover setting instruction of the video is received when the preset operation of the cover setting inlet is detected.
In a third aspect, there is provided a video cover generation apparatus, the apparatus includes a processor, a memory, and a program code stored in the memory and executable on the processor, and the processor executes the program code to implement the video cover generation method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, the storage medium having stored thereon instructions, which when executed by a processor, implement the steps of the video cover generation method of the first aspect.
The technical scheme provided by the embodiment of the invention can at least bring the following beneficial effects:
when a cover setting instruction of a video is received, n key time points of the video are determined, and then video frames of the video at each key time point of the n key time points are acquired as key frames. And then, displaying a progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points, wherein the user can quickly acquire the approximate content of the video through the n key frames. Finally, when a cover selection instruction is received, the key frame selected by the cover selection instruction from the n key frames is determined as the cover of the video, so that the flexibility of video cover setting is improved, the representativeness of the set video cover is improved, and the display effect of the video cover can be greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, 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 flow chart of a method for generating a video cover according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for generating a video cover according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an editing page of a video according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a cover settings page provided by an embodiment of the present invention;
FIG. 5 is a schematic view of another cover settings page provided by an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a video cover generation apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another video cover generation apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a video cover generation method according to an embodiment of the present invention, where the method is applied to a terminal. Referring to fig. 1, the method includes:
step 101: when a cover setting instruction of a video is received, n key time points of the video are determined, wherein n is an integer larger than 1.
Step 102: and acquiring a video frame of each key time point in the n key time points in the video as a key frame.
Step 103: and displaying a progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points.
Step 104: when a cover selection instruction is received, determining a key frame selected by the cover selection instruction from the n key frames as a cover of the video.
In the embodiment of the invention, when a cover setting instruction of a video is received, n key time points of the video are determined, and then a video frame of each key time point in the n key time points in the video is acquired as a key frame. And then, displaying a progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points, wherein the user can quickly acquire the approximate content of the video through the n key frames. Finally, when a cover selection instruction is received, the key frame selected by the cover selection instruction from the n key frames is determined as the cover of the video, so that the flexibility of video cover setting is improved, the representativeness of the set video cover is improved, and the display effect of the video cover can be greatly improved.
Optionally, determining n key time points of the video includes:
equally dividing the duration of the video into n time periods, and taking a first time point of each time period in the n time periods as a key time point;
correspondingly, displaying the acquired n key frames on the progress bar according to the n key time points, including:
determining n positions on the progress bar for indicating n key time points one by one;
and displaying the ith key time point of the n key time points and the ith key frame of the n key frames in a display area corresponding to the ith position of the n positions, wherein i is an integer which is greater than 1 and less than or equal to n.
Optionally, after displaying the acquired n key frames on the progress bar according to the n key time points, the method further includes:
determining a position of a slider on the progress bar;
acquiring a first video frame from the video and displaying the first video frame according to the position of a sliding block on the progress bar;
when a cover determining instruction is received, acquiring at least one second video frame from the video, wherein the at least one second video frame is at least one video frame which is positioned behind the first video frame and is continuous;
and generating a dynamic cover of the video according to the first video frame and the at least one second video frame.
Optionally, determining the position of the slider on the progress bar comprises:
when the sliding block on the progress bar is not dragged, determining the position of the sliding block on the progress bar as a preset position;
when a slider on the progress bar is dragged, the position of the slider on the progress bar is determined to be the dragged position.
Optionally, acquiring and displaying a first video frame from the video according to the position of the slider on the progress bar, including:
determining a point in time of a position indication of a slider on the progress bar;
acquiring a video frame at a time point in a video as a first video frame;
the first video frame is displayed.
Optionally, the method further comprises:
when a cover setting instruction of the video is received, displaying at least one cover label;
selecting a cover label from at least one cover label as a target label;
accordingly, generating a dynamic cover of the video from the first video frame and the at least one second video frame, comprises:
synthesizing the first video frame and at least one second video frame to obtain a target video segment;
and covering each video frame in the target video clip with a target label to obtain a dynamic cover page of the video.
Optionally, after selecting a cover label from the at least one cover label as the target label, the method further includes:
displaying the target label on the first video frame;
adjusting display parameters of the target tag on the first video frame, the display parameters including at least one of size and position;
correspondingly, covering an object label on each video frame in the object video clip to obtain a dynamic cover page of the video, comprising:
and covering the target label on each video frame in the target video clip according to the display parameters of the target label on the first video frame to obtain the dynamic cover of the video.
Optionally, when a cover setting instruction of the video is received, before determining n key time points of the video, the method further includes:
displaying an editing page of the video, wherein a cover setting inlet is displayed on the editing page, and the video is played on the editing page;
when a preset operation on a cover setting entry is detected, it is determined that a cover setting instruction of the video is received.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present invention, which is not described in detail herein.
Fig. 2 is a flowchart of a video cover generation method according to an embodiment of the present invention, where the method is applied to a terminal. Referring to fig. 2, the method includes:
step 201: and shooting a video, and displaying an editing page of the shot video when a shooting ending instruction is received, wherein a cover setting inlet is displayed on the editing page.
It should be noted that the shooting end instruction is used to instruct to end shooting, the shooting end instruction may be triggered by a user, and the user may trigger the shooting end instruction through operations such as a click operation, a slide operation, a voice operation, and a gesture operation, which is not limited in this embodiment of the present invention.
In addition, the edit page of the video is a page for setting the attribute of the video, which may include a cover page, a title, sound effects, lyrics, and the like of the video. In addition, in order to facilitate the user to watch the shot video in time, the video can be played on the editing page of the video, for example, the video can be played in the background of the editing page of the video.
Further, the cover setting entry is an entry for setting a cover of the video, and the cover setting entry may be used to jump to a cover setting page, which is a page for setting the cover of the video.
For example, fig. 3 shows an editing page of a captured video, on which various controls for setting the attributes of the video, such as controls for setting a cover page, a title input box, a sound effect setting button, a lyric switch option, and the like, are displayed, and the video is played in the background of the editing page.
Step 202: and when the preset operation on the cover setting entry is detected, determining that a cover setting instruction of the video is received.
It should be noted that the preset operation may be preset, for example, the preset operation may be preset click operation, slide operation, voice operation, gesture operation, and the like.
In addition, the video cover setting instruction is used for indicating to set the video cover, and after the video cover setting instruction is determined to be received, the user can jump to the cover setting page to set the video cover.
Step 203: when a cover setting instruction of the video is received, n key time points of the video are determined, a video frame of each key time point in the n key time points in the video is obtained as a key frame, and n is an integer greater than 1.
The operation of determining the n key time points of the video may be: randomly selecting n time points from the duration of the video, and taking each time point of the n time points as a key time point; or, equally dividing the duration of the video into n time segments, and taking the first time point of each time segment in the n time segments as a key time point.
It should be noted that, when a video frame at each key time point of the n key time points in the video is acquired as a key frame, for any key time point of the n key time points, if the video loses frames at the key time point, a video frame at a time point closest to the key time point in the video may be acquired as a key frame.
Step 204: and displaying the progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points.
It should be noted that, each position in the progress bar of the video is used to indicate each time point in the duration of the video, the progress bar has a sliding block thereon, and the sliding block on the progress bar can be dragged. The progress bar may be a line or a rectangular frame. When the progress bar is a line, the sliding block on the progress bar can be a point; when the progress bar is a rectangular frame, the slider on the progress bar may be a small rectangular frame.
It should be noted that, in the embodiment of the present invention, while the progress bar of the video is displayed, n key frames of the video may be displayed on the progress bar, and at this time, the user may quickly obtain the approximate content of the video through the n key frames, so that the user may conveniently and quickly and flexibly set the cover of the video in the following process.
The operation of displaying the acquired n key frames on the progress bar according to the n key time points may be: determining n positions on the progress bar for indicating the n key time points one by one; displaying the ith key frame in the n key frames in a display area corresponding to the ith position in the n positions, or displaying the ith key time point in the n key time points and the ith key frame in the n key frames in a display area corresponding to the ith position in the n positions, wherein i is an integer greater than 1 and less than or equal to n.
It should be noted that, the display area corresponding to the ith position in the n positions displays the ith key time point in the n key time points and the ith key frame in the n key frames, that is, the n key time points and the n key frames are displayed in a one-to-one correspondence manner.
In addition, the display area corresponding to the position in the progress bar may be preset, for example, when the progress bar is a line, the display area corresponding to the position in the progress bar may be located above or below the progress bar; when the progress bar is a rectangular frame, the display area corresponding to the position in the progress bar may be located in the progress bar.
It should be noted that, in the embodiment of the present invention, when the cover setting instruction of the video is received, not only the progress bar and the n key frames of the video may be displayed, but also at least one cover label may be displayed, and then, one cover label may be selected from the at least one cover label as the target label.
It should be noted that each cover label of the at least one cover label may be a dynamic image or a static image, and the target label is a cover label of a cover used to generate the video.
When a cover label is selected from the at least one cover label as a target label, a cover label may be randomly selected from the at least one cover label as the target label, or when a label selection instruction is received, the cover label selected from the at least one cover label as the target label by the label selection instruction may be selected.
It should be noted that the tag selection instruction is used to select the target tag from the at least one cover tag, the tag selection instruction may be triggered by a user, and the user may trigger the target tag through operations such as a click operation, a slide operation, a voice operation, and a gesture operation, which is not limited in this embodiment of the present invention.
After the progress bar and the n key frames of the video are displayed through the above step 204, the generation of the cover page of the video may be continued through the following step 205, or the generation of the cover page of the video may be continued through the following steps 206 to 208.
Step 205: when a cover page selection instruction is received, the key frame selected by the cover page selection instruction from the n key frames is determined as the cover page of the video.
It should be noted that the cover page selection instruction is used to select the cover page of the video from the n key frames, the cover page selection instruction may be triggered by a user, and the user may trigger the cover page selection instruction by operations such as a click operation, a slide operation, a voice operation, and a gesture operation, which is not limited in this embodiment of the present invention.
It is worth noting that in the embodiment of the present invention, n key frames of a video may be displayed, and at this time, a user may quickly obtain the approximate content of the video through the n key frames, and may quickly select a cover of the video from the n key frames, thereby not only improving the flexibility of setting a video cover, but also improving the representativeness of the set video cover, and further greatly improving the display effect of the video cover, so that the video may be better exposed to display, and a higher click amount may be obtained.
It is to be noted that, if the target tag is selected in the process of displaying the key frame selected by the cover selection instruction from the n key frames, the target tag may be displayed on the selected key frame, and the display parameter of the target tag on the selected key frame may be adjusted, and the display parameter may include at least one of size, position, and the like.
It should be noted that, when the display parameters of the target tag on the selected key frame are adjusted, the display parameters of the target tag on the selected key frame may be adjusted to preset display parameters; alternatively, when an adjustment operation on the target tag is detected, the display parameter of the target tag on the selected key frame may be adjusted according to the adjustment operation.
When the key frame selected by the cover selection instruction from the n key frames is determined as the cover of the video, if the target label is selected, the target label can be overlaid on the key frame selected by the cover selection instruction from the n key frames to obtain the cover of the video. Specifically, the cover page of the video may be obtained by overlaying the target tag on the selected key frame according to the display parameter of the target tag on the selected key frame.
Further, after step 205, the generated cover page of the video may also be sent to the server, and the server displays the cover page of the video when publishing the video.
Step 206: and determining the position of a sliding block on the progress bar, and acquiring and displaying a first video frame from the video according to the position of the sliding block on the progress bar.
Wherein the operation of determining the position of the slider on the progress bar may be: when the sliding block on the progress bar is not dragged, determining the position of the sliding block on the progress bar as a preset position; when the slider on the progress bar is dragged, the position of the slider on the progress bar is determined to be the dragged position.
It should be noted that the preset position may be preset, for example, the preset position may be a start position, a middle position, an end position, and the like of the progress bar, which is not limited in the embodiment of the present invention.
It should be noted that, in the embodiment of the present invention, n key frames of the video may be displayed on the progress bar, and at this time, the user may quickly obtain the approximate content of the video at n key time points through the n key frames, and accordingly, the user may flexibly and accurately drag the slider on the progress bar to display the first video frame desired by the user.
According to the position of the sliding block on the progress bar, the operation of acquiring and displaying the first video frame from the video can be as follows: determining a point in time of the position indication of the slider on the progress bar; and acquiring a video frame at the time point in the video as a first video frame, and then displaying the first video frame.
It should be noted that, when the video frame at the time point in the video is acquired as the first video frame, if the video loses frames at the time point, the video frame at the time point closest to the time point in the video may be acquired as the first video frame.
It should be noted that, in the embodiment of the present invention, the user may preview the first video frame in the video corresponding to the position of the slider on the progress bar by dragging the slider on the progress bar, so that the user may be facilitated to quickly and accurately select the video frame of the cover page used for generating the video from the video.
It is noted that when the progress bar is a rectangular frame and the slider is a small rectangular frame, the thumbnail of the first video frame can also be displayed in the slider while the first video frame is displayed. At this time, the n key frames of the video may be a background image of the progress bar, and the thumbnail of the first video frame displayed in the slider may be a foreground image of the progress bar.
For example, a first video frame, at least one cover label and a progress bar of the video are displayed in the cover setting page shown in fig. 4, a background image of the progress bar may be n key frames of the video, and a foreground image of the progress bar may be a thumbnail of the first video frame displayed in the slider. At this time, the user can change the displayed first video frame and the thumbnail displayed in the slider on the progress bar by dragging the slider on the progress bar. And, the user may select one cover label as the target label from among the displayed at least one cover label.
Further, if the target tag is selected during the displaying of the first video frame, the target tag may be displayed on the first video frame and a display parameter of the target tag on the first video frame may be adjusted, the display parameter may include at least one of a size, a position, and the like.
It should be noted that, when the display parameter of the target tag on the first video frame is adjusted, the display parameter of the target tag on the first video frame may be adjusted to be a preset display parameter; alternatively, when an adjustment operation on the target tag is detected, the display parameter of the target tag on the first video frame may be adjusted according to the adjustment operation.
For example, a cover setting page shown in fig. 5 displays a first video frame, at least one cover tab, and a progress bar of the video. If the user selects the second cover label from the displayed at least one cover label as the target label, the target label may be displayed on the displayed first video frame, and the user may adjust display parameters such as the size and the position of the target label displayed on the first video frame.
Step 207: when a cover determination instruction is received, at least one second video frame is acquired from the video.
It should be noted that the cover page determination instruction is used to instruct the cover page for generating the video, and the cover page determination instruction may be triggered by a user, and the user may trigger the cover page by operations such as a click operation, a slide operation, a voice operation, and a gesture operation, which is not limited in this embodiment of the present invention.
In addition, the at least one second video frame is at least one video frame that is located after the first video frame in the video in a consecutive manner, that is, the at least one second video frame is consecutive, and the first second video frame in the at least one second video frame is a video frame that is located after the first video frame and is adjacent to the first video frame in the video.
Step 208: and generating a dynamic cover of the video according to the first video frame and the at least one second video frame.
Specifically, the first video frame and the at least one second video frame may be synthesized to obtain a dynamic cover of the video; alternatively, when the target label is selected, the first video frame and the at least one second video frame are synthesized to obtain a target video clip, and then the target label is covered on each video frame in the target video clip to obtain a dynamic cover page of the video.
When the dynamic cover of the video is obtained by covering a target label on each video frame in the target video clip, the target label can be covered on each video frame in the target video clip according to the display parameters of the target label on the first video frame, so that the dynamic cover of the video is obtained.
It is worth noting that, in the embodiment of the present invention, a dynamic cover of the video may be generated according to the first video frame and at least one second video frame which is located after the first video frame, so that a display effect of the video cover may be greatly improved, the video may be better exposed to display, and a higher click rate may be obtained.
Further, after step 208, the generated dynamic cover of the video may also be sent to the server, and the server displays the dynamic cover of the video when the video is published.
In the embodiment of the invention, when a cover setting instruction of a video is received, n key time points of the video are determined, and then a video frame of each key time point in the n key time points in the video is acquired as a key frame. And then, displaying a progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points, wherein the user can quickly acquire the approximate content of the video through the n key frames. Finally, when a cover selection instruction is received, determining a key frame selected by the cover selection instruction from the n key frames as the cover of the video; or, first obtaining a first video frame from the video according to the position of the sliding block on the progress bar and displaying the first video frame, and then generating a dynamic cover of the video according to the first video frame and at least one second video frame which is continuous behind the first video frame when a cover determining instruction is received. So, not only improved the flexibility that the video front cover set up, improved the representativeness of the video front cover that sets up moreover, and then can improve the bandwagon effect of video front cover greatly.
Fig. 6 is a schematic structural diagram of a video cover generation apparatus according to an embodiment of the present invention. Referring to fig. 6, the apparatus includes: a first determining module 601, a first obtaining module 602, a first displaying module 603 and a second determining module 604;
the first determining module 601 is configured to determine n key time points of a video when a cover setting instruction of the video is received, where n is an integer greater than 1;
a first obtaining module 602, configured to obtain a video frame at each key time point of n key time points in a video as a key frame;
the first display module 603 is configured to display a progress bar of a video, and display the acquired n key frames on the progress bar according to the n key time points;
the second determining module 604 is configured to determine, when the cover selection instruction is received, a key frame selected by the cover selection instruction from the n key frames as a cover of the video.
Optionally, the first determining module 601 is configured to:
equally dividing the duration of the video into n time periods, and taking a first time point of each time period in the n time periods as a key time point;
accordingly, the first display module 603 includes:
the first determining unit is used for determining n positions on the progress bar for indicating n key time points one by one;
the display device comprises a first display unit, a second display unit and a display unit, wherein the first display unit is used for displaying the ith key time point in the n key time points and the ith key frame in the n key frames in a display area corresponding to the ith position in the n positions, and i is an integer which is greater than 1 and less than or equal to n.
Optionally, the apparatus further comprises:
a third determining module for determining the position of the slider on the progress bar;
the third acquisition module is used for acquiring and displaying a first video frame from the video according to the position of the sliding block on the progress bar;
the fourth acquisition module is used for acquiring at least one second video frame from the video when a cover determining instruction is received, wherein the at least one second video frame is at least one video frame which is positioned behind the first video frame and is continuous;
and the generating module is used for generating a dynamic cover of the video according to the first video frame and the at least one second video frame.
Optionally, the third determining module includes:
the second determining unit is used for determining the position of the sliding block on the progress bar as a preset position when the sliding block on the progress bar is not dragged;
and a third determination unit for determining, when the slider on the progress bar is dragged, the position of the slider on the progress bar as the dragged position.
Optionally, the third obtaining module includes:
a fourth determination unit for determining a time point of position indication of the slider on the progress bar;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a video frame at a time point in a video as a first video frame;
and the second display unit is used for displaying the first video frame.
Optionally, the apparatus further comprises:
the second display module is used for displaying at least one cover label when a cover setting instruction of the video is received;
a selection module for selecting a cover label from at least one cover label as a target label;
accordingly, the generating module comprises:
the synthesizing unit is used for synthesizing the first video frame and at least one second video frame to obtain a target video segment;
and the covering unit is used for covering the target label on each video frame in the target video clip to obtain a dynamic cover page of the video.
Optionally, the apparatus further comprises:
the third display module is used for displaying the target label on the first video frame;
an adjusting module, configured to adjust display parameters of the target tag on the first video frame, where the display parameters include at least one of size and position;
accordingly, the covering unit is configured to:
and covering the target label on each video frame in the target video clip according to the display parameters of the target label on the first video frame to obtain the dynamic cover of the video.
Optionally, the apparatus further comprises:
the fourth display module is used for displaying an editing page of the video, a cover setting inlet is displayed on the editing page, and the video is played on the editing page;
and the fourth determining module is used for determining that the cover setting instruction of the video is received when the preset operation on the cover setting inlet is detected.
In the embodiment of the invention, when a cover setting instruction of a video is received, n key time points of the video are determined, and then a video frame of each key time point in the n key time points in the video is acquired as a key frame. And then, displaying a progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points, wherein the user can quickly acquire the approximate content of the video through the n key frames. Finally, when a cover selection instruction is received, the key frame selected by the cover selection instruction from the n key frames is determined as the cover of the video, so that the flexibility of video cover setting is improved, the representativeness of the set video cover is improved, and the display effect of the video cover can be greatly improved.
It should be noted that: in the video cover generation apparatus provided in the above embodiment, only the division of the above functional modules is used for illustration when generating a video cover, and in practical applications, the above function distribution may be completed 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 above described functions. In addition, the video cover generation device and the video cover generation method provided by the above embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiment and are not described herein again.
Fig. 7 is a schematic structural diagram of a terminal 700 according to an embodiment of the present invention. The terminal 700 may be: 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 700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so on.
In general, terminal 700 includes: a processor 701 and a memory 702.
The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 701 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 701 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 701 may be integrated with a GPU (Graphics Processing Unit) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. Memory 702 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 702 is used to store at least one instruction for execution by processor 701 to implement the video cover generation method provided by the method embodiments herein.
In some embodiments, the terminal 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 704, touch screen display 705, camera 706, audio circuitry 707, positioning components 708, and power source 709.
The peripheral interface 703 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 701 and the memory 702. In some embodiments, processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or both of processor 701, memory 702, and peripherals interface 703 may be implemented on separate chips or circuit boards, which is not limited in this application.
The Radio Frequency circuit 704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 704 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 704 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 704 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, etc. The radio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 704 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to capture touch signals on or over the surface of the display screen 705. The touch signal may be input to the processor 701 as a control signal for processing. At this point, the display 705 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 705 may be one, disposed on a front panel of the terminal 700; in other embodiments, the display 705 can be at least two, respectively disposed on different surfaces of the terminal 700 or in a folded design; in still other embodiments, the display 705 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 700. Even more, the display 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display 705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 706 is used to capture images or video. Optionally, camera assembly 706 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 706 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.
The audio circuitry 707 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 701 for processing or inputting the electric signals to the radio frequency circuit 704 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 700. 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 701 or the radio frequency circuit 704 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 circuitry 707 may also include a headphone jack.
The positioning component 708 is used to locate the current geographic Location of the terminal 700 for navigation or LBS (Location Based Service). The Positioning component 708 can be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 709 is provided to supply power to various components of terminal 700. The power source 709 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When power source 709 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 700 also includes one or more sensors 710. The one or more sensors 710 include, but are not limited to: acceleration sensor 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, optical sensor 715, and proximity sensor 716.
The acceleration sensor 711 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 700. For example, the acceleration sensor 711 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 701 may control the touch screen 705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 712 may detect a body direction and a rotation angle of the terminal 700, and the gyro sensor 712 may cooperate with the acceleration sensor 711 to acquire a 3D motion of the terminal 700 by the user. From the data collected by the gyro sensor 712, the processor 701 may implement 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 713 may be disposed on a side bezel of terminal 700 and/or an underlying layer of touch display 705. When the pressure sensor 713 is disposed on a side frame of the terminal 700, a user's grip signal on the terminal 700 may be detected, and the processor 701 performs right-left hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 713. When the pressure sensor 713 is disposed at a lower layer of the touch display 705, the processor 701 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 705. 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 714 is used for collecting a fingerprint of a user, and the processor 701 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the identity of the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 701 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 714 may be disposed on the front, back, or side of the terminal 700. When a physical button or a vendor Logo is provided on the terminal 700, the fingerprint sensor 714 may be integrated with the physical button or the vendor Logo.
The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, the processor 701 may control the display brightness of the touch display 705 based on the ambient light intensity collected by the optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 705 is increased; when the ambient light intensity is low, the display brightness of the touch display 705 is turned down. In another embodiment, processor 701 may also dynamically adjust the shooting parameters of camera assembly 706 based on the ambient light intensity collected by optical sensor 715.
The proximity sensor 716, also referred to as a distance sensor, is typically disposed on a front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front surface of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually decreases, the processor 701 controls the touch display 705 to switch from the bright screen state to the dark screen state; when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually becomes larger, the processor 701 controls the touch display 705 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. 7 is not intended to be limiting of terminal 700 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.
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 for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (13)

1. A method for video cover generation, the method comprising:
when a cover setting instruction of a video is received, determining n key time points of the video, and displaying at least one cover label, wherein n is an integer greater than 1, and each cover label in the at least one cover label is a dynamic image;
selecting a cover label from the at least one cover label as a target label;
acquiring a video frame of each key time point in the n key time points in the video as a key frame, and acquiring a video frame of a time point closest to the key time point in the video as the key frame if the video loses frames at the key time point;
displaying a progress bar of the video, and displaying the acquired n key frames on the progress bar according to the n key time points;
determining a position of a slider on the progress bar; acquiring a first video frame from the video and displaying the first video frame according to the position of a sliding block on the progress bar;
when a cover determining instruction is received, acquiring at least one second video frame from the video, wherein the at least one second video frame is at least one video frame which is positioned behind the first video frame and is continuous;
synthesizing the first video frame and the at least one second video frame to obtain a target video segment;
and covering the target label on each video frame in the target video clip to obtain a dynamic cover of the video.
2. The method of claim 1, wherein said determining n key time points for the video comprises:
equally dividing the duration of the video into n time periods, and taking a first time point of each time period in the n time periods as a key time point;
correspondingly, the displaying the acquired n key frames on the progress bar according to the n key time points includes:
determining n positions on the progress bar for indicating the n key time points one by one;
displaying an ith key time point of the n key time points and an ith key frame of the n key frames in a display area corresponding to an ith position of the n positions, wherein i is an integer greater than 1 and less than or equal to n.
3. The method of claim 1, wherein said determining a position of a slider on the progress bar comprises:
when the sliding block on the progress bar is not dragged, determining the position of the sliding block on the progress bar as a preset position;
when the slider on the progress bar is dragged, determining the position of the slider on the progress bar as the dragged position.
4. The method of claim 1, wherein said obtaining and displaying a first video frame from the video based on the position of the slider on the progress bar comprises:
determining a point in time of a position indication of a slider on the progress bar;
acquiring a video frame at the time point in the video as a first video frame;
displaying the first video frame.
5. The method of claim 1, wherein after selecting a cover label from the at least one cover label as the target label, further comprising:
displaying the target tag on the first video frame;
adjusting display parameters of the target tag on the first video frame, the display parameters including at least one of size and position;
correspondingly, the overlaying the target label on each video frame in the target video clip to obtain a dynamic cover page of the video includes:
and covering the target label on each video frame in the target video clip according to the display parameters of the target label on the first video frame to obtain the dynamic cover of the video.
6. The method of claims 1-5, wherein determining n key time points of a video before when a cover setting instruction for the video is received, further comprises:
displaying an editing page of the video, wherein a cover setting entry is displayed on the editing page, and the video is played on the editing page;
and when the preset operation of the cover setting inlet is detected, determining that the cover setting instruction of the video is received.
7. A video cover creation apparatus, the apparatus comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining n key time points of a video when a cover setting instruction of the video is received, and n is an integer larger than 1;
a first obtaining module, configured to obtain a video frame at each key time point of the n key time points in the video as a key frame, and if the video loses frames at a key time point, obtain a video frame at a time point closest to the key time point in the video as the key frame;
the first display module is used for displaying a progress bar of the video and displaying the acquired n key frames on the progress bar according to the n key time points;
a third determining module, configured to determine a position of a slider on the progress bar;
the third obtaining module is used for obtaining and displaying a first video frame from the video according to the position of the sliding block on the progress bar;
the fourth acquisition module is used for acquiring at least one second video frame from the video when a cover determining instruction is received, wherein the at least one second video frame is at least one video frame which is continuous behind the first video frame;
a generating module, configured to generate a dynamic cover of the video according to the first video frame and the at least one second video frame;
the device further comprises:
the second display module is used for displaying at least one cover label when a cover setting instruction of the video is received, wherein each cover label in the at least one cover label is a dynamic image;
a selection module for selecting a cover label from the at least one cover label as a target label;
accordingly, the generating module comprises:
a synthesizing unit, configured to synthesize the first video frame and the at least one second video frame to obtain a target video segment;
and the covering unit is used for covering the target label on each video frame in the target video clip to obtain a dynamic cover of the video.
8. The apparatus of claim 7, wherein the first determination module is to:
equally dividing the duration of the video into n time periods, and taking a first time point of each time period in the n time periods as a key time point;
accordingly, the first display module comprises:
a first determining unit, configured to determine n positions on the progress bar, where the n positions are used to indicate the n key time points one by one;
a first display unit, configured to display an ith key time point of the n key time points and an ith key frame of the n key frames in a display area corresponding to an ith position of the n positions, where i is an integer greater than 1 and less than or equal to n.
9. The apparatus of claim 7, wherein the third determining module comprises:
the second determination unit is used for determining the position of the sliding block on the progress bar as a preset position when the sliding block on the progress bar is not dragged;
and the third determining unit is used for determining the position of the sliding block on the progress bar as the dragged position when the sliding block on the progress bar is dragged.
10. The apparatus of claim 7, wherein the third obtaining module comprises:
a fourth determination unit for determining a time point of position indication of a slider on the progress bar;
an obtaining unit, configured to obtain a video frame at the time point in the video as a first video frame;
and the second display unit is used for displaying the first video frame.
11. The apparatus of claim 7, wherein the apparatus further comprises:
a third display module, configured to display the target tag on the first video frame;
an adjustment module for adjusting display parameters of the target tag on the first video frame, the display parameters including at least one of size and position;
accordingly, the covering unit is configured to:
and covering the target label on each video frame in the target video clip according to the display parameters of the target label on the first video frame to obtain the dynamic cover of the video.
12. The apparatus of claims 7-11, wherein the apparatus further comprises:
the fourth display module is used for displaying an editing page of the video, a cover setting entry is displayed on the editing page, and the video is played on the editing page;
and the fourth determining module is used for determining that the cover setting instruction of the video is received when the preset operation of the cover setting inlet is detected.
13. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 1-6.
CN201810961896.8A 2018-08-22 2018-08-22 Video cover generation method and device and storage medium Active CN108965922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810961896.8A CN108965922B (en) 2018-08-22 2018-08-22 Video cover generation method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810961896.8A CN108965922B (en) 2018-08-22 2018-08-22 Video cover generation method and device and storage medium

Publications (2)

Publication Number Publication Date
CN108965922A CN108965922A (en) 2018-12-07
CN108965922B true CN108965922B (en) 2021-05-25

Family

ID=64473033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810961896.8A Active CN108965922B (en) 2018-08-22 2018-08-22 Video cover generation method and device and storage medium

Country Status (1)

Country Link
CN (1) CN108965922B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992697B (en) * 2019-03-27 2022-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN109905782B (en) * 2019-03-31 2021-05-18 联想(北京)有限公司 Control method and device
CN112015310B (en) * 2019-05-31 2025-01-14 阿里巴巴集团控股有限公司 Method, device and electronic device for obtaining cover of electronic icon and setting cover
CN112752121B (en) * 2020-05-26 2023-06-09 腾讯科技(深圳)有限公司 Video cover generation method and device
CN111970561B (en) * 2020-08-11 2022-07-22 北京达佳互联信息技术有限公司 Video cover generation method, system, device, electronic equipment and storage medium
CN112363660B (en) * 2020-11-09 2023-03-24 北京达佳互联信息技术有限公司 Method and device for determining cover image, electronic equipment and storage medium
CN112689187A (en) * 2020-12-17 2021-04-20 北京达佳互联信息技术有限公司 Video processing method and device, electronic equipment and storage medium
CN112580613B (en) * 2021-02-24 2021-06-04 深圳华声医疗技术股份有限公司 Ultrasonic video image processing method, system, equipment and storage medium
CN113784152A (en) * 2021-07-20 2021-12-10 阿里巴巴达摩院(杭州)科技有限公司 Video processing method and storage medium
CN116193198A (en) * 2023-03-02 2023-05-30 维沃移动通信有限公司 A video processing method, device, electronic equipment, storage medium and product
CN121908117A (en) * 2024-10-18 2026-04-21 华为技术有限公司 Dynamic photo processing method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6571054B1 (en) * 1997-11-10 2003-05-27 Nippon Telegraph And Telephone Corporation Method for creating and utilizing electronic image book and recording medium having recorded therein a program for implementing the method
WO2017209568A1 (en) * 2016-06-03 2017-12-07 삼성전자주식회사 Electronic device and operation method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028068A (en) * 2016-06-30 2016-10-12 乐视控股(北京)有限公司 Video progress content preview method and device, and mobile terminal
CN106572380A (en) * 2016-10-19 2017-04-19 上海传英信息技术有限公司 User terminal and video dynamic thumbnail generating method
CN106528695A (en) * 2016-11-02 2017-03-22 上海幻电信息科技有限公司 Method for showing video thumbnail through mouse dragging
CN106503693B (en) * 2016-11-28 2019-03-15 北京字节跳动科技有限公司 The providing method and device of video cover
CN106998477A (en) * 2017-04-05 2017-08-01 腾讯科技(深圳)有限公司 The front cover display methods and device of live video

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6571054B1 (en) * 1997-11-10 2003-05-27 Nippon Telegraph And Telephone Corporation Method for creating and utilizing electronic image book and recording medium having recorded therein a program for implementing the method
WO2017209568A1 (en) * 2016-06-03 2017-12-07 삼성전자주식회사 Electronic device and operation method thereof

Also Published As

Publication number Publication date
CN108965922A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108965922B (en) Video cover generation method and device and storage medium
CN108391171B (en) Video playing control method and device, and terminal
CN111065001B (en) Video production method, device, equipment and storage medium
CN108401124B (en) Video recording method and device
CN109862412B (en) Method and device for video co-shooting and storage medium
CN109346111B (en) Data processing method, device, terminal and storage medium
CN111464749B (en) Method, device, equipment and storage medium for image synthesis
CN108965757B (en) Video recording method, device, terminal and storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN111031394B (en) Video production method, device, equipment and storage medium
CN110868642B (en) Video playing method, device and storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN108922506A (en) Song audio generation method, device and computer readable storage medium
CN109635133B (en) Visual audio playing method and device, electronic equipment and storage medium
CN110839174A (en) Image processing method and device, computer equipment and storage medium
CN112565806A (en) Virtual gift presenting method, device, computer equipment and medium
CN109451248B (en) Video data processing method and device, terminal and storage medium
CN110868636B (en) Video material intercepting method and device, storage medium and terminal
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN110769313A (en) Video processing method and device and storage medium
CN110225390B (en) Method, device, terminal and computer-readable storage medium for video preview
CN109819314B (en) Audio and video processing method and device, terminal and storage medium
CN111370096A (en) Interactive interface display method, device, equipment and storage medium
CN113160031A (en) Image processing method, image processing device, electronic equipment and storage medium

Legal Events

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