CN110769282A - Short video generation method, terminal and server - Google Patents

Short video generation method, terminal and server Download PDF

Info

Publication number
CN110769282A
CN110769282A CN201810829799.3A CN201810829799A CN110769282A CN 110769282 A CN110769282 A CN 110769282A CN 201810829799 A CN201810829799 A CN 201810829799A CN 110769282 A CN110769282 A CN 110769282A
Authority
CN
China
Prior art keywords
video
request
timestamp
preview
server
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.)
Pending
Application number
CN201810829799.3A
Other languages
Chinese (zh)
Inventor
李先
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201810829799.3A priority Critical patent/CN110769282A/en
Publication of CN110769282A publication Critical patent/CN110769282A/en
Pending legal-status Critical Current

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/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/47202End-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 requesting content on demand, e.g. video on demand
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • 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/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • 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/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure relates to a short video generation method, a terminal and a server, wherein the method comprises the following steps: in the process of playing a live video, generating a first request according to a received trigger instruction, and sending the first request to a server; receiving a preview video returned by the server, and playing the preview video in a video preview interface; receiving a setting operation on a target video clip in the preview video, generating a second request according to the setting operation, and sending the second request to the server so that the server generates a short video according to the second request. By the method, the short video can be generated for the video clip in the live video, and the user can play the short video, so that the wonderful video clip can be reviewed, and the watching experience of the user can be improved.

Description

Short video generation method, terminal and server
Technical Field
The present disclosure relates to the field of video processing technologies, and in particular, to a short video generation method, a terminal, and a server.
Background
With the development of information technology and the continuous increase of network bandwidth, online video watching is becoming more and more popular. The existing video website and video application program can not only provide a video play list for a user, and the user selects a video which the user wants to watch from the video play list, but also play a live video for the user. That is, when a certain anchor is live, the user selects the live room for the anchor, and the terminal can play the live video of the anchor.
When a user watches live video, if a highlight segment in the live video is interested, the highlight segment cannot be effectively stored, highlight segment playback cannot be carried out, and watching experience of the user is influenced.
Disclosure of Invention
In order to overcome the problems in the related art, the invention discloses and provides a short video generation method, a terminal and a server.
According to a first aspect of the embodiments of the present disclosure, there is provided a short video generation method, including: in the process of playing a live video, generating a first request according to a received trigger instruction, wherein the first request carries a video interception timestamp and a video identifier; sending the first request to a server; receiving a preview video returned by the server, and playing the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video; receiving a setting operation on a target video segment in the preview video, and generating a second request according to the setting operation, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and sending the second request to the server so that the server generates a short video according to the second request.
Optionally, the step of generating the first request according to the received trigger instruction in the process of playing the live video includes: receiving selection operation of a preset button in the process of playing the live video; determining a video playing progress point corresponding to the preset button selection operation receiving moment as a video intercepting timestamp; determining a video identifier of the currently played video; and generating the first request according to the video intercepting timestamp and the video identification.
Optionally, the step of receiving a setting operation on a target video segment in the preview video and generating a second request according to the setting operation includes: receiving a selection operation of a target video segment in the preview video, and determining a starting timestamp and a duration of the target video segment according to the selection operation; and generating the second request according to the starting timestamp and the duration of the target video segment.
Optionally, after the step of receiving a selection operation on a target video segment in the preview video and determining a start timestamp and a duration of the target video segment according to the selection operation, the method further includes: receiving a cover frame selection operation in the target video clip, and determining a timestamp corresponding to the cover frame; displaying the cover frame in the video preview interface; receiving an adding operation of cover description information and short video title information, and determining the cover description information and the short video title information; generating the second request according to the starting timestamp and the duration of the target video segment, wherein the step comprises the following steps: and generating the second request according to the starting timestamp and the duration of the target video clip, the timestamp corresponding to the cover frame, the cover description information and the short video title information.
According to a second aspect of the embodiments of the present disclosure, there is provided a short video generation method, the method including: in the process of uploading live video to a terminal, receiving a first request sent by the terminal, wherein the first request carries a video interception timestamp and a video identifier; generating a preview video according to the video capture timestamp, the video identifier and the stored video data of the video; sending the preview video to the terminal; receiving a second request sent by the terminal, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and generating a short video according to the second request.
Optionally, the method further comprises: and in the process of uploading the live video to the terminal, the uploaded video data is stored in a segmented mode according to a first preset time length.
Optionally, the step of generating a preview video according to the video capture timestamp, the video identifier, and the stored video data of the video includes: determining stored video data corresponding to the video identification; according to the video intercepting timestamp, extracting target video data with a second preset time length forward by taking the video intercepting timestamp as a starting point from the video data; and generating the preview video according to the target video data.
Optionally, the step of generating a short video according to the second request includes: searching a first video frame corresponding to the starting timestamp of the target video segment in the preview video; and intercepting the video clip with the duration by taking the first video frame as a starting point to generate the short video.
Optionally, the second request further carries a timestamp corresponding to a cover frame, the cover description information, and the short video title information, and the step of generating a short video according to the second request includes: searching a first video frame corresponding to the starting timestamp of the target video segment in the preview video; intercepting the video clip of the duration by taking the first video frame as a starting point; searching a second video frame in the video clip according to the corresponding timestamp of the cover frame; and taking the second video frame as a cover page of the video clip, and adding the cover page description information and the short video title information to the second video frame to generate the short video.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including: the device comprises a first generation module, a second generation module and a display module, wherein the first generation module is configured to generate a first request according to a received trigger instruction in the process of playing a live video, and the first request carries a video interception timestamp and a video identifier; a first sending module configured to send the first request to a server; the first receiving module is configured to receive the preview video returned by the server and play the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video; a second generation module, configured to receive a setting operation on a target video segment in the preview video, and generate a second request according to the setting operation, where the second request carries a start timestamp and a duration of the target video segment, and the second request is used to request a server to generate a short video; and the second sending module is configured to send the second request to the server so that the server generates a short video according to the second request.
Optionally, the first generating module comprises: the selection operation receiving submodule is configured to receive selection operation of a preset button in the process of playing the live video; the first determining submodule is configured to determine a video playing progress point corresponding to the preset button selection operation receiving moment as a video capturing timestamp; a second determining submodule configured to determine a video identity of the video currently being played; a first request generation submodule configured to generate the first request according to the video capture timestamp and the video identifier.
Optionally, the second generating module includes: the third determining submodule is configured to receive a selection operation on a target video segment in the preview video, and determine a starting timestamp and a duration of the target video segment according to the selection operation; and the second request generation submodule is configured to generate the second request according to the starting timestamp and the duration of the target video segment.
Optionally, the second generating module further includes: a fourth determining sub-module, configured to receive a selection operation on a cover frame in the target video clip and determine a timestamp corresponding to the cover frame after the third determining sub-module receives the selection operation on the target video clip in the preview video and determines a start timestamp and a duration of the target video clip according to the selection operation; a display sub-module configured to display the cover frame in the video preview interface; the adding operation receiving submodule is configured to receive adding operation on the front cover description information and the short video title information and determine the front cover description information and the short video title information; the second request generation submodule is specifically configured to: and generating the second request according to the starting timestamp and the duration of the target video clip, the timestamp corresponding to the cover frame, the cover description information and the short video title information.
According to a fourth aspect of embodiments of the present disclosure, there is provided a server, including: the second receiving module is configured to receive a first request sent by a terminal in a process of uploading a live video to the terminal, wherein the first request carries a video interception timestamp and a video identifier; the first video generation module is configured to generate a preview video according to the video capture timestamp, the video identifier and the stored video data of the video; a third sending module configured to send the preview video to the terminal; a third receiving module, configured to receive a second request sent by the terminal, where the second request carries a start timestamp and a duration of the target video segment, and the second request is used to request a server to generate a short video; a second video generation module configured to generate a short video in accordance with the second request.
Optionally, the server further comprises: and the storage module is configured to store the uploaded video data in a segmented manner according to a first preset time length in the process of uploading the live video to the terminal.
Optionally, the first video generation module includes: a video data determination sub-module configured to determine stored video data corresponding to the video identifier; the extraction submodule is configured to extract target video data with a second preset time length forward by taking the video capture timestamp as a starting point from the video data according to the video capture timestamp; a preview video generation sub-module configured to generate the preview video according to the target video data.
Optionally, the second video generation module includes: a first searching sub-module configured to search the preview video for a first video frame corresponding to the start timestamp of the target video segment; and the intercepting submodule is configured to intercept the video segment with the duration by taking the first video frame as a starting point to generate the short video.
Optionally, the second video generation module is specifically configured to: searching a first video frame corresponding to a starting timestamp of the target video clip in the preview video, wherein the second request also carries a timestamp corresponding to a cover frame, the cover description information and the short video title information; intercepting the video clip of the duration by taking the first video frame as a starting point; searching a second video frame in the video clip according to the corresponding timestamp of the cover frame; and taking the second video frame as a cover page of the video clip, and adding the cover page description information and the short video title information to the second video frame to generate the short video.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal, including: a processor; a memory for storing processor-executable instructions; the processor is configured to generate a first request according to a received trigger instruction in a live video playing process, wherein the first request carries a video interception timestamp and a video identifier; sending the first request to a server; receiving a preview video returned by the server, and playing the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video; receiving a setting operation on a target video segment in the preview video, and generating a second request according to the setting operation, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and sending the second request to the server so that the server generates a short video according to the second request.
According to a sixth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of a terminal, enable the terminal to perform a short video generation method, the method comprising: in the process of playing a live video, generating a first request according to a received trigger instruction, wherein the first request carries a video interception timestamp and a video identifier; sending the first request to a server; receiving a preview video returned by the server, and playing the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video; receiving a setting operation on a target video segment in the preview video, and generating a second request according to the setting operation, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and sending the second request to the server so that the server generates a short video according to the second request.
According to a seventh aspect of embodiments of the present disclosure, there is provided a server comprising: a processing component; a memory for storing processing component executable instructions; the processing component is configured to receive a first request sent by a terminal in a process of uploading a live video to the terminal, wherein the first request carries a video interception timestamp and a video identifier; generating a preview video according to the video capture timestamp, the video identifier and the stored video data of the video; sending the preview video to the terminal; receiving a second request sent by the terminal, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and generating a short video according to the second request.
According to an eighth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions which, when executed by a processing component in a server, enable the server to perform a short video generation method, the method comprising: in the process of uploading live video to a terminal, receiving a first request sent by the terminal, wherein the first request carries a video interception timestamp and a video identifier; generating a preview video according to the video capture timestamp, the video identifier and the stored video data of the video; sending the preview video to the terminal; receiving a second request sent by the terminal, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and generating a short video according to the second request.
According to a ninth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein instructions which, when executed by a processor of a terminal, cause the terminal to perform a short video generation method, the method comprising: in the process of playing a live video, generating a first request according to a received trigger instruction, wherein the first request carries a video interception timestamp and a video identifier; sending the first request to a server; receiving a preview video returned by the server, and playing the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video; receiving a setting operation on a target video segment in the preview video, and generating a second request according to the setting operation, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and sending the second request to the server so that the server generates a short video according to the second request.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the short video generation scheme provided by the embodiment of the invention, in the process of playing the live video, the terminal generates a first request according to the received trigger instruction and sends the first request to the server so that the server generates the preview video according to the first request; the terminal receives the preview video returned by the server, plays the preview video in a video preview interface, receives setting operation on a target video clip in the preview video, generates a second request according to the setting operation, and sends the second request to the server, so that the server generates a short video according to the second request. This kind of mode can be for the video clip in the live broadcast video to generate short video through the operation between user and terminal, terminal and server, and the user can play short video to look back splendid video clip, can promote user's watching experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating steps of a method for short video generation in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating steps of a method for short video generation in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating steps of a method for short video generation in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating steps of a method for short video generation in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a server in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a server in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a short video generation method according to an exemplary embodiment, where the short video generation method illustrated in fig. 1 is used in a terminal, and includes the following steps:
step 101: and in the process of playing the live video, generating a first request according to the received trigger instruction.
In the embodiment of the disclosure, the terminal can be a smart phone or a computer. In the process of playing the live video by the terminal, a user can trigger the terminal to generate a trigger instruction through a touch preset button, and the trigger instruction is used for indicating the server to return a corresponding preview video.
The first request carries a video interception timestamp and a video identifier. The video capture timestamp is a playing progress point of a live video when a user touches a preset button. The video identification may include: anchor information, live channel information, time periods of live video, and the like.
Step 102: the first request is sent to a server.
And when the live video is uploaded to the terminal in the server, the video data of the video is synchronously stored. After receiving a first request sent by a terminal, the server generates a preview video according to the first request and the stored video data of the video. For the specific way of generating the preview video by the server according to the first request, refer to the relevant description in the third embodiment, which is not described in detail in this disclosure.
Step 103: and receiving the preview video returned by the server, and playing the preview video in the video preview interface.
And after the server generates the preview video, returning the preview video to the terminal, and playing the preview video in a video preview interface by the terminal. The preview video is generated by the server according to the video capture timestamp, the video identification and the stored video data of the video.
Step 104: and receiving a setting operation on a target video clip in the preview video, and generating a second request according to the setting operation.
After the preview video is played in the preview interface, the user can select the target video clip by sliding the playing progress bar of the preview video. The operation of selecting the target video clip by sliding the playing progress bar of the preview video is the setting operation of the target video clip. And according to the starting timestamp and the duration of the target video clip carried in the second request generated by the setting operation, the second request is used for requesting the server to generate the short video.
Moreover, after the target video clip is selected, the user can further select a cover page from the target video clip, add cover page description information and short video title information, and the like. Accordingly, the generated second request will carry the selected cover page information, the added cover page description information, and the short video title information.
Step 105: and sending the second request to the server so that the server generates the short video according to the second request.
The short video is a video with a duration less than a preset value, wherein the preset value can be 120 seconds, 60 seconds, 30 seconds, 10 seconds or the like.
For the specific way of generating the short video by the server according to the second request, reference may be made to the relevant description in the third embodiment, which is not described in detail in this embodiment of the disclosure.
After the server generates the short video, the generated short video can be distributed to the personal account homepage logged in by the terminal. The user can repeatedly preview the short video from the homepage, and the user can share the short video in the sharing space of the instant messaging application program, so that the communication friends of the user can view the short video.
In the method for generating a short video shown in the exemplary embodiment, a terminal generates a first request according to a received trigger instruction in a process of playing a live video, and sends the first request to a server, so that the server generates a preview video according to the first request; the terminal receives the preview video returned by the server, plays the preview video in a video preview interface, receives setting operation on a target video clip in the preview video, generates a second request according to the setting operation, and sends the second request to the server, so that the server generates a short video according to the second request. This kind of mode can be for the video clip in the live broadcast video to generate short video through the operation between user and terminal, terminal and server, and the user can play short video to look back splendid video clip, can promote user's watching experience.
Fig. 2 is a flowchart illustrating a short video generation method according to an exemplary embodiment, where the short video generation method illustrated in fig. 2 is used in a terminal, and includes the following steps.
Step 201: and receiving the selection operation of a preset button in the process of playing the live video.
The terminal can be a smart phone or a computer, and a live application program is installed on the terminal. Accordingly, the user can watch the live video through the mobile phone client and can also watch the live video through the computer client.
The preset button may be a specific button provided in the live video playing interface, and the button may be in any suitable shape, for example: square, circle, triangle, etc., and the user completes the selection operation of the preset button by clicking the button.
After receiving the selection operation of the preset button, the client for playing the live video on the terminal calls a new page, namely a video preview interface, for displaying the preview video subsequently returned by the server.
Step 202: and determining a video playing progress point corresponding to the receiving moment of the preset button selection operation as a video capturing timestamp.
For example: and when the user performs selection operation on the preset button when the live video is played for 10-zeroth 1 second, the video interception timestamp is the 10 th zeroth 1 second of the live video.
Step 203: a video identification of a currently playing video is determined.
Each video corresponds to a video identifier, and the corresponding video and further the video data corresponding to the video can be located through the video identifier server. Video identification may include, but is not limited to: anchor information, live channel information, and a time period of live video.
Step 204: and generating a first request according to the video interception timestamp and the video identification.
The first request carries a video interception timestamp and a video identifier.
Step 205: the first request is sent to a server.
And the preview video is generated by the server according to the video capturing timestamp, the video identification and the stored video data of the video. For the specific way of generating the preview video by the server according to the first request, refer to the relevant description in the third embodiment, which is not described in detail in this disclosure.
Step 206: and receiving the preview video returned by the server, and playing the preview video in the video preview interface.
And after the server generates the preview video, returning the preview video to the terminal, and displaying the preview video in a video preview interface by the terminal. And displaying the preview video, and simultaneously displaying a playing progress bar corresponding to the preview video at a specific position in the video preview interface.
Step 207: and receiving a selection operation of a target video segment in the preview video, and determining a starting timestamp and a duration of the target video segment according to the selection operation.
In a specific implementation process, a user may select a target video clip by sliding a cursor in a play progress bar corresponding to a preview video displayed in a video preview interface. The corresponding progress section of the selected target video clip in the playing progress bar can be highlighted. The convex display may be rendering the progress section in a color different from that of the entire progress bar, or thickening or highlighting the progress section.
Step 208: and generating a second request according to the starting timestamp and the duration of the target video segment.
And the starting time stamp of the target video clip is the starting progress point of the target video clip.
The second request is used for requesting the server to generate the short video, and the terminal sends the second request carrying the starting timestamp and the duration of the target video fragment to the server so that the service can generate the short video according to the second request.
One way to preferably trigger the terminal to generate the second request is: after receiving selection operation on a target video clip in the preview video and determining a starting timestamp and a time length of the target video clip according to the selection operation, receiving selection operation on a cover frame in the target video clip and determining a timestamp corresponding to the cover frame; displaying a cover frame in a video preview interface; receiving an adding operation of cover description information and short video title information, and determining the cover description information and the short video title information; and the terminal generates the second request according to the starting timestamp and the duration of the target video clip, the timestamp corresponding to the cover frame, the cover description information and the short video title information.
By the mode for generating the second request, the user can select the target video clip and can also perform personalized setting on related information of the cover page of the short video to be generated, so that the user can conveniently identify the short video.
Step 209: and sending the second request to the server so that the server generates the short video according to the second request.
For the specific way of generating the short video by the server according to the second request, reference may be made to the relevant description in the third embodiment, which is not described in detail in this embodiment of the disclosure.
In the method for generating a short video shown in the exemplary embodiment, a terminal generates a first request according to a received trigger instruction in a process of playing a live video, and sends the first request to a server, so that the server generates a preview video according to the first request; the terminal receives the preview video returned by the server, plays the preview video in a video preview interface, receives setting operation on a target video clip in the preview video, generates a second request according to the setting operation, and sends the second request to the server, so that the server generates a short video according to the second request. This kind of mode can be for the video clip in the live broadcast video to generate short video through the operation between user and terminal, terminal and server, and the user can play short video to look back splendid video clip, can promote user's watching experience.
Fig. 3 is a flowchart illustrating a short video generation method according to an exemplary embodiment, where the short video generation method illustrated in fig. 3 is used in a server, and includes the following steps:
step 301: in the process of uploading live video to a terminal, a first request sent by the terminal is received.
The first request carries a video interception timestamp and a video identifier. In the process that the terminal plays the live video through the installed client, a user can execute selection operation on a preset button in a video playing interface and trigger the terminal to generate a first request. For the specific manner of generating the first request, reference may be made to the related discussion in the foregoing first and second embodiments, which is not described in detail in this disclosure.
Step 302: and generating a preview video according to the video capture timestamp, the video identification and the stored video data of the video.
The server can store the video data of the uploaded video while uploading the live video to the terminal, and delete the stored video data of the video after the live video is finished so as to release the storage space of the server.
Specific videos can be located through video identification, and the starting point of previewing the videos can be determined through video capture time stamps. When the preview video is generated, the video clip with the second preset time length can be captured forward from the starting point of the preview video to serve as the preview video. The second preset time period may be set by a person skilled in the art according to actual needs, and is not particularly limited in the embodiment of the present disclosure. For example: the preset time period may be 120 seconds, 200 seconds, 60 seconds, or the like.
Step 303: and sending the preview video to the terminal.
After the preview video is sent to the terminal, the terminal can display the preview video in a video preview interface.
Step 304: and receiving a second request sent by the terminal.
The second request is used for requesting the server to generate a short video, and the second request may carry a start timestamp and a duration of the target video segment. Certainly, the second request may further include a timestamp video frame identifier corresponding to the cover frame, cover description information, short video title information, and the like.
For the specific generation manner of the terminal generating the second request, reference may be made to the relevant descriptions in the first and second embodiments, which are not described in detail in this disclosure.
Step 305: and generating the short video according to the second request.
The second request carries the starting timestamp and the duration of the target video segment, the server searches a first video frame corresponding to the starting timestamp of the target video segment in the preview video, captures the video segment with the duration by taking the first video frame as a starting point, and can generate a short video according to the captured video segment.
After the server generates the short video, the generated short video can be distributed to the personal account homepage logged in by the terminal. The user can repeatedly preview the short video from the homepage, and the user can share the short video in the sharing space of the instant messaging application program, so that the communication friends of the user can view the short video.
In the method for generating a short video shown in this exemplary embodiment, in the process of uploading a live video to a terminal, a server receives a first request sent by the terminal and generates a preview video according to the first request, the preview video is sent to the terminal for display, and the server receives a second request sent by the terminal and generates a short video according to the second request. According to the method, the video clips in the live video can be generated into the short video through interactive operation between the terminal and the server and are published to the personal main page of the user, and the user can play the short video, so that wonderful video clips are reviewed, and the watching experience of the user can be improved.
Fig. 4 is a flowchart illustrating a short video generation method according to an exemplary embodiment, where the short video generation method illustrated in fig. 4 is used in a server, including the following steps.
Step 401: in the process of uploading live video to a terminal, a first request sent by the terminal is received.
The first request carries a video interception timestamp and a video identifier. For the specific triggering manner of generating the first request in the process of playing the live video by the terminal, reference may be made to the relevant descriptions in the first and second embodiments, which are not described in detail in this disclosure.
In the process of uploading the live video to the terminal, the server stores the uploaded video data in a segmented manner according to the first preset time length, so that the uploaded video data can be conveniently used as basic data for generating the preview video in the follow-up process. The first preset time period may be set to 1 minute, 2 minutes, or 5 minutes, etc. Of course, the uploaded video data may be stored as a whole without being stored in segments.
Step 402: and generating a preview video according to the video capture timestamp, the video identification and the stored video data of the video.
In a specific implementation process, when a preview video is generated according to the video capture timestamp, the video identifier, and the stored video data of the video, the following operations may be performed:
firstly, determining stored video data corresponding to a video identifier;
each video corresponds to a video identifier, and one video can be uniquely located through the video identifier, so that the stored video data of the video can be located.
Secondly, extracting target video data with preset duration forward by taking the video intercepting timestamp as a starting point from the video data according to the video intercepting timestamp;
the preset time period can be set by those skilled in the art according to actual requirements, for example: the preset time period may be 60 seconds, 90 seconds, 120 seconds, 200 seconds, or the like.
And finally, generating a preview video according to the target video data.
Step 403: and sending the preview video to the terminal.
After the preview video is sent to the terminal, the terminal can display the preview video in a video preview interface.
Step 404: and receiving a second request sent by the terminal.
The second request is used for requesting the server to generate a short video, and the second request may carry a start timestamp and a duration of the target video segment. Certainly, the second request may further include a timestamp video frame identifier corresponding to the cover frame, cover description information, short video title information, and the like. For the specific generation manner of the terminal generating the second request, reference may be made to the relevant descriptions in the first and second embodiments, which are not described in detail in this disclosure.
Step 405: and searching a first video frame corresponding to the starting timestamp of the target video segment in the preview video.
Step 406: and intercepting the video clip with the duration carried in the second request by taking the first video frame as a starting point to generate a short video.
Preferably, the second request further carries a timestamp corresponding to the cover frame, cover description information, and short video title information, and the specific process when the server generates the short video according to the second request is as follows:
firstly, a server searches a first video frame corresponding to a starting timestamp of a target video segment in a preview video;
secondly, intercepting a video clip with duration carried in the second request by taking the first video frame as a starting point;
thirdly, searching a second video frame in the video clip according to the corresponding timestamp of the cover frame;
and finally, taking the second video frame as a cover of the video clip, and adding cover description information and short video title information to the second video frame to generate a short video.
According to the mode of generating the short video according to the second request, the user can select the target video clip and can also perform personalized setting on related information of the cover of the short video to be generated, so that the user can conveniently identify the short video.
In the method for generating a short video shown in this exemplary embodiment, in the process of uploading a live video to a terminal, a server receives a first request sent by the terminal and generates a preview video according to the first request, the preview video is sent to the terminal for display, and the server receives a second request sent by the terminal and generates a short video according to the second request. According to the method, the video clips in the live video can be generated into the short video through interactive operation between the terminal and the server and are published to the personal main page of the user, and the user can play the short video, so that wonderful video clips are reviewed, and the watching experience of the user can be improved.
Fig. 5 is a block diagram illustrating a terminal according to an exemplary embodiment, and with reference to fig. 5, the terminal includes: a first generating module 501, a first transmitting module 502, a first receiving module 503, a second generating module 504 and a second transmitting module 505.
A first generating module 501, configured to generate a first request according to a received trigger instruction in a process of playing a live video, where the first request carries a video capture timestamp and a video identifier; a first sending module 502 configured to send the first request to a server; a first receiving module 503, configured to receive the preview video returned by the server, and play the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video; a second generating module 504, configured to receive a setting operation on a target video segment in the preview video, and generate a second request according to the setting operation, where the second request carries a start timestamp and a duration of the target video segment, and the second request is used to request a server to generate a short video; a second sending module 505 configured to send the second request to the server, so that the server generates a short video according to the second request.
Optionally, the first generating module may include: the selection operation receiving submodule is configured to receive selection operation of a preset button in the process of playing the live video; the first determining submodule is configured to determine a video playing progress point corresponding to the preset button selection operation receiving moment as a video capturing timestamp; a second determining submodule configured to determine a video identity of the video currently being played; a first request generation submodule configured to generate the first request according to the video capture timestamp and the video identifier.
Optionally, the second generating module includes: the third determining submodule is configured to receive a selection operation on a target video segment in the preview video, and determine a starting timestamp and a duration of the target video segment according to the selection operation; and the second request generation submodule is configured to generate the second request according to the starting timestamp and the duration of the target video segment.
Optionally, the second generating module further includes: a fourth determining sub-module, configured to receive a selection operation on a cover frame in the target video clip and determine a timestamp corresponding to the cover frame after the third determining sub-module receives the selection operation on the target video clip in the preview video and determines a start timestamp and a duration of the target video clip according to the selection operation; a display sub-module configured to display the cover frame in the video preview interface; the adding operation receiving submodule is configured to receive adding operation on the front cover description information and the short video title information and determine the front cover description information and the short video title information; the second request generation submodule is specifically configured to: and generating the second request according to the starting timestamp and the duration of the target video clip, the timestamp corresponding to the cover frame, the cover description information and the short video title information.
With regard to the terminal in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating a terminal 600 for performing a short video generation step according to an example embodiment. For example, the terminal 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 6, terminal 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the terminal 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the terminal 600. Examples of such data include instructions for any application or method operating on terminal 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of terminal 600. The power components 606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 600.
The multimedia component 608 includes a screen that provides an output interface between the terminal 600 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 600 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the terminal 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the terminal 600. For example, sensor component 614 can detect an open/closed state of terminal 600, relative positioning of components, such as a display and keypad of terminal 600, change in position of terminal 600 or a component of terminal 600, presence or absence of user contact with terminal 600, orientation or acceleration/deceleration of terminal 600, and temperature change of terminal 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the terminal 600 and other devices in a wired or wireless manner. The terminal 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the short video generation method performed by the terminal in the above-described embodiments. Specifically, the method comprises the following steps:
in the process of playing a live video, generating a first request according to a received trigger instruction, wherein the first request carries a video interception timestamp and a video identifier; sending the first request to a server; receiving a preview video returned by the server, and playing the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video; receiving a setting operation on a target video segment in the preview video, and generating a second request according to the setting operation, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and sending the second request to the server so that the server generates a short video according to the second request.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the terminal 600 to perform the short video generation method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 7 is a block diagram illustrating a server according to an example embodiment, the server including, with reference to fig. 7: a second receiving module 701, a first video generating module 702, a third transmitting module 703, a third receiving module 704, and a second video generating module 705.
A second receiving module 701, configured to receive a first request sent by a terminal in a process of uploading a live video to the terminal, where the first request carries a video capture timestamp and a video identifier; a first video generating module 702 configured to generate a preview video according to the video capture timestamp, the video identifier, and the stored video data of the video; a third sending module 703 configured to send the preview video to the terminal; a third receiving module 704, configured to receive a second request sent by the terminal, where the second request carries a start timestamp and a duration of the target video segment, and the second request is used to request a server to generate a short video; a second video generating module 705 configured to generate a short video according to the second request.
Optionally, the server may further include: and the storage module is configured to store the uploaded video data in a segmented manner according to a first preset time length in the process of uploading the live video to the terminal.
Optionally, the first video generation module may include: a video data determination sub-module configured to determine stored video data corresponding to the video identifier; the extraction submodule is configured to extract target video data with a second preset time length forward by taking the video capture timestamp as a starting point from the video data according to the video capture timestamp; a preview video generation sub-module configured to generate the preview video according to the target video data.
Optionally, the second video generation module may include: a first searching sub-module configured to search the preview video for a first video frame corresponding to the start timestamp of the target video segment; and the intercepting submodule is configured to intercept the video segment with the duration by taking the first video frame as a starting point to generate the short video.
Optionally, the second video generation module is specifically configured to: searching a first video frame corresponding to a starting timestamp of the target video clip in the preview video, wherein the second request also carries a timestamp corresponding to a cover frame, the cover description information and the short video title information; intercepting the video clip of the duration by taking the first video frame as a starting point; searching a second video frame in the video clip according to the corresponding timestamp of the cover frame; and taking the second video frame as a cover page of the video clip, and adding the cover page description information and the short video title information to the second video frame to generate the short video.
With regard to the server in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating a server 1900 for generating short videos according to an example embodiment. Referring to FIG. 8, the server 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. In addition, the processing component 1922 is configured to execute the instructions to execute the short video generation method executed by the server in the foregoing embodiment, specifically including:
in the process of uploading live video to a terminal, receiving a first request sent by the terminal, wherein the first request carries a video interception timestamp and a video identifier; generating a preview video according to the video capture timestamp, the video identifier and the stored video data of the video; sending the preview video to the terminal; receiving a second request sent by the terminal, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video; and generating a short video according to the second request.
The server 1900 may further include a power component 1926 configured to perform power management of the server 1900, a wired or wireless network interface 1950 configured to connect the server 1900 to a network, and an input/output (I/O) interface 1958. Server 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (22)

1. A method of short video generation, the method comprising:
in the process of playing a live video, generating a first request according to a received trigger instruction, wherein the first request carries a video interception timestamp and a video identifier;
sending the first request to a server;
receiving a preview video returned by the server, and playing the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video;
receiving a setting operation on a target video segment in the preview video, and generating a second request according to the setting operation, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video;
and sending the second request to the server so that the server generates a short video according to the second request.
2. The method of claim 1, wherein the step of generating the first request according to the received trigger instruction during the playing of the live video comprises:
receiving selection operation of a preset button in the process of playing the live video;
determining a video playing progress point corresponding to the preset button selection operation receiving moment as a video intercepting timestamp;
determining a video identifier of the currently played video;
and generating the first request according to the video intercepting timestamp and the video identification.
3. The method of claim 1, wherein the step of receiving a setting operation for a target video segment in the preview video and generating a second request according to the setting operation comprises:
receiving a selection operation of a target video segment in the preview video, and determining a starting timestamp and a duration of the target video segment according to the selection operation;
and generating the second request according to the starting timestamp and the duration of the target video segment.
4. The method of claim 3, wherein after the step of receiving a selection operation of a target video segment in the preview video and determining a start timestamp and duration of the target video segment according to the selection operation, the method further comprises:
receiving a cover frame selection operation in the target video clip, and determining a timestamp corresponding to the cover frame;
displaying the cover frame in the video preview interface;
receiving an adding operation of cover description information and short video title information, and determining the cover description information and the short video title information;
generating the second request according to the starting timestamp and the duration of the target video segment, wherein the step comprises the following steps:
and generating the second request according to the starting timestamp and the duration of the target video clip, the timestamp corresponding to the cover frame, the cover description information and the short video title information.
5. A method of short video generation, the method comprising:
in the process of uploading live video to a terminal, receiving a first request sent by the terminal, wherein the first request carries a video interception timestamp and a video identifier;
generating a preview video according to the video capture timestamp, the video identifier and the stored video data of the video;
sending the preview video to the terminal;
receiving a second request sent by the terminal, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video;
and generating a short video according to the second request.
6. The method of claim 5, further comprising:
and in the process of uploading the live video to the terminal, the uploaded video data is stored in a segmented mode according to a first preset time length.
7. The method of claim 6, wherein the step of generating a preview video according to the video capture timestamp, the video identifier and the stored video data of the video comprises:
determining stored video data corresponding to the video identification;
according to the video intercepting timestamp, extracting target video data with a second preset time length forward by taking the video intercepting timestamp as a starting point from the video data;
and generating the preview video according to the target video data.
8. The method according to claim 7, wherein the step of generating the short video according to the second request comprises:
searching a first video frame corresponding to the starting timestamp of the target video segment in the preview video;
and intercepting the video clip with the duration by taking the first video frame as a starting point to generate the short video.
9. The method of claim 7, wherein the second request further carries a timestamp corresponding to a cover frame, the cover description information, and the short video title information, and the step of generating the short video according to the second request comprises:
searching a first video frame corresponding to the starting timestamp of the target video segment in the preview video;
intercepting the video clip of the duration by taking the first video frame as a starting point;
searching a second video frame in the video clip according to the corresponding timestamp of the cover frame;
and taking the second video frame as a cover page of the video clip, and adding the cover page description information and the short video title information to the second video frame to generate the short video.
10. A terminal, characterized in that the terminal comprises:
the device comprises a first generation module, a second generation module and a display module, wherein the first generation module is configured to generate a first request according to a received trigger instruction in the process of playing a live video, and the first request carries a video interception timestamp and a video identifier;
a first sending module configured to send the first request to a server;
the first receiving module is configured to receive the preview video returned by the server and play the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video;
a second generation module, configured to receive a setting operation on a target video segment in the preview video, and generate a second request according to the setting operation, where the second request carries a start timestamp and a duration of the target video segment, and the second request is used to request a server to generate a short video;
and the second sending module is configured to send the second request to the server so that the server generates a short video according to the second request.
11. The terminal of claim 10, wherein the first generating module comprises:
the selection operation receiving submodule is configured to receive selection operation of a preset button in the process of playing the live video;
the first determining submodule is configured to determine a video playing progress point corresponding to the preset button selection operation receiving moment as a video capturing timestamp;
a second determining submodule configured to determine a video identity of the video currently being played;
a first request generation submodule configured to generate the first request according to the video capture timestamp and the video identifier.
12. The terminal of claim 10, wherein the second generating module comprises:
the third determining submodule is configured to receive a selection operation on a target video segment in the preview video, and determine a starting timestamp and a duration of the target video segment according to the selection operation;
and the second request generation submodule is configured to generate the second request according to the starting timestamp and the duration of the target video segment.
13. The terminal of claim 12, wherein the second generating module further comprises:
a fourth determining sub-module, configured to receive a selection operation on a cover frame in the target video clip and determine a timestamp corresponding to the cover frame after the third determining sub-module receives the selection operation on the target video clip in the preview video and determines a start timestamp and a duration of the target video clip according to the selection operation;
a display sub-module configured to display the cover frame in the video preview interface;
the adding operation receiving submodule is configured to receive adding operation on the front cover description information and the short video title information and determine the front cover description information and the short video title information;
the second request generation submodule is specifically configured to: and generating the second request according to the starting timestamp and the duration of the target video clip, the timestamp corresponding to the cover frame, the cover description information and the short video title information.
14. A server, characterized in that the server comprises:
the second receiving module is configured to receive a first request sent by a terminal in a process of uploading a live video to the terminal, wherein the first request carries a video interception timestamp and a video identifier;
the first video generation module is configured to generate a preview video according to the video capture timestamp, the video identifier and the stored video data of the video;
a third sending module configured to send the preview video to the terminal;
a third receiving module, configured to receive a second request sent by the terminal, where the second request carries a start timestamp and a duration of the target video segment, and the second request is used to request a server to generate a short video;
a second video generation module configured to generate a short video in accordance with the second request.
15. The server according to claim 14, further comprising:
and the storage module is configured to store the uploaded video data in a segmented manner according to a first preset time length in the process of uploading the live video to the terminal.
16. The server according to claim 15, wherein the first video generation module comprises:
a video data determination sub-module configured to determine stored video data corresponding to the video identifier;
the extraction submodule is configured to extract target video data with a second preset time length forward by taking the video capture timestamp as a starting point from the video data according to the video capture timestamp;
a preview video generation sub-module configured to generate the preview video according to the target video data.
17. The server according to claim 16, wherein the second video generation module comprises:
a first searching sub-module configured to search the preview video for a first video frame corresponding to the start timestamp of the target video segment;
and the intercepting submodule is configured to intercept the video segment with the duration by taking the first video frame as a starting point to generate the short video.
18. The server according to claim 16, wherein the second video generation module is specifically configured to:
searching a first video frame corresponding to a starting timestamp of the target video clip in the preview video, wherein the second request also carries a timestamp corresponding to a cover frame, the cover description information and the short video title information;
intercepting the video clip of the duration by taking the first video frame as a starting point;
searching a second video frame in the video clip according to the corresponding timestamp of the cover frame;
and taking the second video frame as a cover page of the video clip, and adding the cover page description information and the short video title information to the second video frame to generate the short video.
19. A terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
the processor is configured to generate a first request according to a received trigger instruction in a live video playing process, wherein the first request carries a video interception timestamp and a video identifier;
sending the first request to a server;
receiving a preview video returned by the server, and playing the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video;
receiving a setting operation on a target video segment in the preview video, and generating a second request according to the setting operation, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video;
and sending the second request to the server so that the server generates a short video according to the second request.
20. A non-transitory computer readable storage medium in which instructions, when executed by a processor of a terminal, enable the terminal to perform a short video generation method, the method comprising:
in the process of playing a live video, generating a first request according to a received trigger instruction, wherein the first request carries a video interception timestamp and a video identifier;
sending the first request to a server;
receiving a preview video returned by the server, and playing the preview video in a video preview interface; the preview video is generated by the server according to the video intercepting timestamp, the video identification and the stored video data of the video;
receiving a setting operation on a target video segment in the preview video, and generating a second request according to the setting operation, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video;
and sending the second request to the server so that the server generates a short video according to the second request.
21. A server, comprising:
a processing component;
a memory for storing processing component executable instructions;
the processing component is configured to receive a first request sent by a terminal in a process of uploading a live video to the terminal, wherein the first request carries a video interception timestamp and a video identifier;
generating a preview video according to the video capture timestamp, the video identifier and the stored video data of the video;
sending the preview video to the terminal;
receiving a second request sent by the terminal, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video;
and generating a short video according to the second request.
22. A non-transitory computer readable storage medium having instructions therein which, when executed by a processing component in a server, enable the server to perform a method of short video generation, the method comprising:
in the process of uploading live video to a terminal, receiving a first request sent by the terminal, wherein the first request carries a video interception timestamp and a video identifier;
generating a preview video according to the video capture timestamp, the video identifier and the stored video data of the video;
sending the preview video to the terminal;
receiving a second request sent by the terminal, wherein the second request carries a starting timestamp and duration of the target video segment, and the second request is used for requesting a server to generate a short video;
and generating a short video according to the second request.
CN201810829799.3A 2018-07-25 2018-07-25 Short video generation method, terminal and server Pending CN110769282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810829799.3A CN110769282A (en) 2018-07-25 2018-07-25 Short video generation method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810829799.3A CN110769282A (en) 2018-07-25 2018-07-25 Short video generation method, terminal and server

Publications (1)

Publication Number Publication Date
CN110769282A true CN110769282A (en) 2020-02-07

Family

ID=69327320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810829799.3A Pending CN110769282A (en) 2018-07-25 2018-07-25 Short video generation method, terminal and server

Country Status (1)

Country Link
CN (1) CN110769282A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827675A (en) * 2022-04-18 2022-07-29 北京金山云网络技术有限公司 Video data processing method and device for application program
CN116017079A (en) * 2022-12-05 2023-04-25 成都兰天悠家科技有限公司 Automatic generation method, device, system and medium for field movement highlight

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647991A (en) * 2013-12-23 2014-03-19 乐视致新电子科技(天津)有限公司 Method and system for sharing video in intelligent television
CN104822099A (en) * 2015-04-30 2015-08-05 努比亚技术有限公司 Video packaging method and mobile terminal
CN106599208A (en) * 2016-12-15 2017-04-26 腾讯科技(深圳)有限公司 Content sharing method and user client
CN107147939A (en) * 2017-05-05 2017-09-08 百度在线网络技术(北京)有限公司 Method and apparatus for adjusting net cast front cover
CN107318044A (en) * 2017-06-30 2017-11-03 武汉斗鱼网络科技有限公司 A kind of live content intercept method and system
CN107682711A (en) * 2016-08-02 2018-02-09 中国电信股份有限公司 Video intercepting method, server and Online Video play system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647991A (en) * 2013-12-23 2014-03-19 乐视致新电子科技(天津)有限公司 Method and system for sharing video in intelligent television
CN104822099A (en) * 2015-04-30 2015-08-05 努比亚技术有限公司 Video packaging method and mobile terminal
CN107682711A (en) * 2016-08-02 2018-02-09 中国电信股份有限公司 Video intercepting method, server and Online Video play system
CN106599208A (en) * 2016-12-15 2017-04-26 腾讯科技(深圳)有限公司 Content sharing method and user client
CN107147939A (en) * 2017-05-05 2017-09-08 百度在线网络技术(北京)有限公司 Method and apparatus for adjusting net cast front cover
CN107318044A (en) * 2017-06-30 2017-11-03 武汉斗鱼网络科技有限公司 A kind of live content intercept method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827675A (en) * 2022-04-18 2022-07-29 北京金山云网络技术有限公司 Video data processing method and device for application program
CN116017079A (en) * 2022-12-05 2023-04-25 成都兰天悠家科技有限公司 Automatic generation method, device, system and medium for field movement highlight
CN116017079B (en) * 2022-12-05 2024-02-06 成都兰天悠家科技有限公司 Automatic generation method, device, system and medium for field movement highlight

Similar Documents

Publication Publication Date Title
CN106028166B (en) Live broadcast room switching method and device in live broadcast process
CN106791893B (en) Video live broadcasting method and device
KR101680714B1 (en) Method for providing real-time video and device thereof as well as server, terminal device, program, and recording medium
EP3174053A1 (en) Method, apparatus and system for playing multimedia data, computer program and recording medium
CN107948667B (en) Method and device for adding display special effect in live video
CN111294623B (en) Video playing method and device, electronic equipment and storage medium
CN109348239B (en) Live broadcast fragment processing method and device, electronic equipment and storage medium
CN110996121A (en) Information processing method and device, electronic equipment and storage medium
CN107193606B (en) Application distribution method and device
CN110691268B (en) Message sending method, device, server, mobile terminal and storage medium
CN107423386B (en) Method and device for generating electronic card
CN107562349B (en) Method and device for executing processing
CN109309843A (en) Video distribution method, terminal and server
CN113259226B (en) Information synchronization method and device, electronic equipment and storage medium
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN114025180A (en) Game operation synchronization system, method, device, equipment and storage medium
CN111736746A (en) Multimedia resource processing method and device, electronic equipment and storage medium
CN110636318A (en) Message display method, message display device, client device, server and storage medium
CN107247794B (en) Topic guiding method in live broadcast, live broadcast device and terminal equipment
CN113613082A (en) Video playing method and device, electronic equipment and storage medium
CN106878654B (en) Video communication method and device
CN110769282A (en) Short video generation method, terminal and server
CN106447747B (en) Image processing method and device
CN110690979B (en) Group message processing method, device, server, client and storage medium
US11284127B2 (en) Method and apparatus for pushing information in live broadcast room

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication