Disclosure of Invention
In view of this, embodiments of the present invention provide a video request method and system, so as to implement a video request on the basis of avoiding the performance limitation of a terminal.
In order to achieve the above purpose, the technical solutions provided by the embodiments of the present invention are as follows:
a video request method, comprising:
receiving a video request sent by a terminal, wherein the video request indicates a video identifier of a requested video;
acquiring a video composite file corresponding to a video identifier based on a corresponding relation between a preset video identifier and the video composite file; the video synthesis file comprises video template information and a picture set for synthesizing a video;
generating video information according to the video template information and the picture set;
and sending the video information to the terminal.
Preferably, when the video request includes a viewing identifier, the generating video information according to the video template information and the picture set includes:
assembling a video file according to the video template information and the pictures;
the sending the video information to the terminal includes: and sending the video file to the terminal.
Preferably, when the video request includes the sharing identifier, the generating of the video information according to the video template information and the picture set includes:
assembling a video file according to the video template information and the pictures;
the video file is merged into a webpage, and a webpage link of the webpage is obtained;
the sending the video information to the terminal includes: and sending the webpage link to the terminal.
Preferably, the method further comprises the following steps:
receiving a video composite file uploaded by a terminal, wherein the uploaded video composite file comprises video template information and a picture set used for synthesizing a video;
and allocating a unique video identifier for the uploaded video composite file, and establishing a corresponding relation between the uploaded video composite file and the video identifier.
Preferably, the video template information in the uploaded video composition file is the video template information obtained by modifying the original video template downloaded from the server.
A video request system comprising: a first terminal and a server, wherein the first terminal is connected with the server,
the first terminal is used for sending a video request to a server and receiving video information returned by the server, wherein the video request indicates a video identifier of a requested video;
the server is used for acquiring a video composite file corresponding to the video identifier based on the corresponding relation between the preset video identifier and the video composite file when the video request is received; the video synthesis file comprises video template information and a picture set for synthesizing a video; and generating video information according to the video template information and the picture set, and sending the video information to the first terminal.
Preferably, when the video request includes the viewing identifier, the server generates video information according to the video template information and the picture set, and is specifically configured to:
the server assembles a video file according to the video template information and the pictures;
the server sends the video information to the first terminal, and is specifically configured to: and the server sends the video file to the first terminal.
Preferably, when the video request includes the sharing identifier, the server generates video information according to the video template information and the picture set, and is specifically configured to:
assembling a video file according to the video template information and the pictures;
the video file is merged into a webpage, and a webpage link of the webpage is obtained;
the server sends the video information to the first terminal, and is specifically configured to: and the server sends the webpage link to the first terminal.
Preferably, the system also comprises a second terminal,
the first terminal is also used for sending the webpage link to the second terminal;
and the second terminal is used for accessing the webpage corresponding to the webpage link so as to look up the video file.
Preferably, the system also comprises a second terminal,
the server is also used for sending the webpage link to the second terminal;
and the second terminal is used for accessing the webpage corresponding to the webpage link so as to look up the video file.
The embodiment of the application provides a video request method and a video request system, wherein the method comprises the steps of receiving a video request (the video request indicates a video identifier requesting a video) sent by a terminal; acquiring a video composite file corresponding to a video identifier based on a preset corresponding relation between the video identifier and the video composite file (the video composite file comprises video template information and a picture set for synthesizing a video); generating video information according to the video template information and the picture set; and the mode of sending the video information to the terminal realizes the video request on the basis of avoiding the limitation of the terminal performance.
Example (b):
fig. 1 is a flowchart of a video requesting method according to an embodiment of the present disclosure.
It should be noted that: the video request method shown in fig. 1 provided by the embodiment of the present application is applied to a server.
As shown in fig. 1, the method includes:
s101, receiving a video request sent by a terminal, wherein the video request indicates a video identifier of a requested video;
in this embodiment, preferably, the user may send a video request to the server through the terminal, and the corresponding server may receive the video request.
Optionally, the video request sent by the user to the server through the terminal indicates that there is a video identifier of the requested video.
In the embodiment of the application, preferably, the terminal can display a video list, and each video in the video list carries a video identifier; when a user determines to request one video in the video list, the video identifier carried by the video can be acquired, and a video request is generated; and the video identifier indicated by the video request is the acquired video identifier.
In the embodiment of the present application, preferably, each video corresponds to a unique video identifier.
S102, acquiring a video composite file corresponding to a video identifier based on a preset corresponding relation between the video identifier and the video composite file; the video synthesis file comprises video template information and a picture set for synthesizing a video;
in the embodiment of the present application, preferably, the server side presets a corresponding relationship between the video identifier and the video composition file; after a video request sent by a terminal is received, a video composite file corresponding to the video identifier indicated by the video request can be obtained based on the corresponding relation between the preset video identifier and the video composite file.
It should be noted that: the video composition file includes video template information for composing the video and a picture set. Optionally, the video file of the video corresponding to the video composition file may be composed according to the video template information and the image set for composing the video in the video composition file.
In the embodiment of the present application, it is preferable that the picture set includes at least one picture.
In this embodiment, preferably, the video template information includes: a video master picture file, a background music file, and/or attribute information indicating a plurality of picture arrangement rules.
Optionally, the video negative image file includes at least one video negative image; the background music file comprises at least one piece of background music.
The above is only a preferred mode of the embodiment of the present application, and the inventor can arbitrarily set the specific content included in the picture set or the video template information according to his own needs, which is not limited herein.
S103, generating video information according to the video template information and the picture set;
in the embodiment of the present application, preferably, after the server receives the video request sent by the terminal and acquires the video composite file corresponding to the video identifier indicated by the video request, the server may generate video information according to the video template and the picture set included in the video composite file.
Optionally, when the video request includes a viewing identifier, the generating video information according to the video template information and the picture set includes: and assembling a video file according to the video template information and the pictures.
When the video watching identification is included in the video request, the video request indicates the video of the watching request. At this time, the generating video information according to the video template information and the picture set includes: and aggregating the video template information and the pictures in the video synthesis file to form a video file of the video corresponding to the video synthesis file, and generating the video information according to the video template information and the picture set by using the video file.
Optionally, when the video request includes a sharing identifier, the generating video information according to the video template information and the picture set includes: assembling a video file according to the video template information and the pictures; and merging the video file into a webpage, and acquiring a webpage link of the webpage.
When the video request includes a sharing identifier, it is described that the video request indicates a video of the sharing request. At this time, the generating video information according to the video template information and the picture set includes: according to the video information template information and the pictures in the video synthesis file, video files of videos corresponding to the video synthesis file are integrated; and merging the video file into an HTML webpage through a JS code, acquiring a webpage link of the HTML webpage, and generating video information according to the video template information and the picture set by using the webpage link.
And S104, sending the video information to the terminal.
In the embodiment of the present application, preferably, after the step S103 is completed, the result (video information) of the step S103 is returned to the terminal.
Optionally, when the video request includes a viewing identifier, the generating video information according to the video template information and the picture set includes: assembling a video file according to the video template information and the pictures; the sending the video information to the terminal includes: and sending the video file to the terminal.
Optionally, when the video request includes a sharing identifier, the generating video information according to the video template information and the picture set includes: assembling a video file according to the video template information and the pictures; the video file is merged into a webpage, and a webpage link of the webpage is obtained; the sending the video information to the terminal includes: and sending the webpage link to the terminal.
The embodiment of the application provides a video request method, which comprises the steps of receiving a video request (the video request indicates a video identifier requesting a video) sent by a terminal; acquiring a video composite file corresponding to a video identifier based on a preset corresponding relation between the video identifier and the video composite file (the video composite file comprises video template information and a picture set for synthesizing a video); generating video information according to the video template information and the picture set; and the mode of sending the video information to the terminal realizes the video request on the basis of avoiding the limitation of the terminal performance.
Fig. 2 is a flowchart of another video requesting method according to an embodiment of the present application.
As shown in fig. 2, the method includes:
s201, receiving a video composite file uploaded by a terminal, wherein the uploaded video composite file comprises video template information and a picture set for synthesizing a video;
in this embodiment of the application, preferably, a user may upload a video composition file to the server through the terminal, and the corresponding server may receive the video composition file uploaded by the terminal. The uploaded video synthesis file comprises video template information for synthesizing a video and a picture set.
S202, distributing a unique video identifier for the uploaded video composite file, and establishing a corresponding relation between the uploaded video composite file and the video identifier.
In this embodiment of the present application, preferably, after receiving the uploaded video composite file, the server may allocate a unique video identifier to the uploaded video composite file, and establish a correspondence between the uploaded video composite file and the video identifier.
In this embodiment of the present application, preferably, the video template information in the uploaded video composition file is video template information obtained by modifying an original video template downloaded from the server.
Or, in this embodiment of the present application, preferably, the video template information in the uploaded video composition file is an original video template downloaded from the server.
It should be noted that: the video composite file uploaded to the server by the terminal comprises: the terminal sends a video synthesis request to the server and receives at least one piece of original video template information returned by the server in response to the video synthesis request; the terminal displays the at least one original video template information; receiving the selection operation of the user on the original video template information; prompting a user to input a picture set; synthesizing a video preview effect graph according to the picture set input by the user and the original video template information selected by the selection operation; and responding to a received video uploading request input by a user, taking the original video template information selected by the selection operation and the picture set as a video synthesis file, and uploading the video synthesis file to the server.
Before a video uploading request input by a user is received, if the terminal responds to the modification operation of the user on the original video template information selected by the selection operation according to the video preview effect picture, the modified video template information is obtained; and when a video uploading request input by a user is received, the video composite file uploaded to the service server comprises the picture set and the modified video template information.
Optionally, steps S201 to S202 provided in this embodiment of the present application are processes for presetting a correspondence between a video identifier and a video composition file in the server.
S203, receiving a video request sent by a terminal, wherein the video request indicates a video identifier of a requested video;
s204, acquiring a video composite file corresponding to the video identifier based on the corresponding relation between the preset video identifier and the video composite file; the video synthesis file comprises video template information and a picture set for synthesizing a video;
s205, generating video information according to the video template information and the picture set;
s206, sending the video information to the terminal.
The execution process of steps S203-S206 provided in this embodiment is the same as the execution process of steps S101-S104 provided in the above embodiment, and for details about the execution process of steps S203-S206, reference is made to the above description of steps S101-S104, which is not described herein again.
Through the further description of the other video request method provided by the embodiment of the present application, the video request method provided by the embodiment of the present application is clearer and more complete, which is convenient for those skilled in the art to understand.
Fig. 3 is a schematic structural diagram of a video request system according to an embodiment of the present application.
As shown in fig. 3, a video request system according to an embodiment of the present application includes a first terminal 31 and a server 32.
The first terminal 31 is configured to send a video request to a server, and receive video information returned by the server, where the video request indicates a video identifier of a requested video;
the server 32 is configured to, when receiving the video request, obtain a video composition file corresponding to the video identifier based on a preset correspondence between the video identifier and the video composition file; the video synthesis file comprises video template information and a picture set for synthesizing a video; and generating video information according to the video template information and the picture set, and sending the video information to the first terminal.
The embodiment of the application provides a video request system, which comprises a first terminal and a server, wherein the server receives a video request (the video request indicates a video identifier of a requested video) sent by the first terminal; acquiring a video composite file corresponding to a video identifier based on a preset corresponding relation between the video identifier and the video composite file (the video composite file comprises video template information and a picture set for synthesizing a video); generating video information according to the video template information and the picture set; and the mode of sending the video information to the first terminal realizes the request for the video on the basis of avoiding the limitation of the performance of the first terminal.
In this embodiment of the present application, preferably, when the video request includes a viewing identifier, the server generates video information according to the video template information and the picture set, and is specifically configured to: the server assembles a video file according to the video template information and the pictures; the server sends the video information to the first terminal, and is specifically configured to: and the server sends the video file to the first terminal.
In this embodiment of the application, preferably, when the video request includes the sharing identifier, the server generates video information according to the video template information and the picture set, and is specifically configured to: assembling a video file according to the video template information and the pictures; the video file is merged into a webpage, and a webpage link of the webpage is obtained; the server sends the video information to the first terminal, and is specifically configured to: and the server sends the webpage link to the first terminal.
Fig. 4 is a schematic structural diagram of another video request system according to an embodiment of the present application.
As shown in fig. 4, the video request system includes: a first terminal 41, a server 42 and a second terminal 43,
the first terminal 41 is configured to send a video request to a server, receive a web page link returned by the server, and send the web page link to the second terminal; the video request comprises a sharing identifier and indicates a video identifier of the requested video;
the server 42 is configured to, when receiving the video request, obtain a video composition file corresponding to the video identifier based on a preset correspondence between the video identifier and the video composition file; the video synthesis file comprises video template information and a picture set for synthesizing a video; assembling a video file according to the video template information and the pictures; the video file is incorporated into a webpage, a webpage link of the webpage is obtained, and the webpage link is sent to the first terminal;
the second terminal 43 is configured to access a web page corresponding to the web page link to refer to the video file.
In this embodiment of the application, preferably, the accessing, by the second terminal, the webpage corresponding to the webpage link to refer to the video file includes: and the second terminal accesses a webpage corresponding to the webpage link, and a video corresponding to the video file is played in the webpage. Specifically, the user views the video file by viewing the video corresponding to the video file played in the web page.
Fig. 5 is a schematic structural diagram of another video request system according to an embodiment of the present application.
As shown in fig. 5, the video request system includes: a first terminal 51, a server 52 and a second terminal 53,
the first terminal 51 is configured to send a video request to a server and receive video information returned by the server; the video request comprises a sharing identifier and indicates a video identifier of the requested video;
the server 52 is configured to, when receiving the video request, obtain a video composition file corresponding to the video identifier based on a preset correspondence between the video identifier and the video composition file; the video synthesis file comprises video template information and a picture set for synthesizing a video; assembling a video file according to the video template information and the pictures; the video file is merged into a webpage, a webpage link of the webpage is obtained, and the webpage link is respectively sent to the first terminal and the second terminal;
and the second terminal 53 is configured to access a webpage corresponding to the webpage link to refer to the video file.
The video request system according to the embodiment of the present application may further include a step of "merging the video file into a web page, acquiring a web page link of the web page, and sending the web page link to the first terminal and the second terminal, respectively", specifically, "merging the video file into the web page, acquiring the web page link of the web page, and sending the web page link to the second terminal". Therefore, the purpose that the server directly shares the webpage link with the second terminal is achieved by avoiding the mode that the server directly sends the webpage link to the first terminal and directly sends the webpage link to the second terminal, and the problem that the webpage link is sent to the second terminal to cause waste of the flow of the first terminal is avoided.
Through the further description of the other video request system provided by the embodiment of the present application, the video request system provided by the embodiment of the present application is clearer and more complete, which is convenient for those skilled in the art to understand.
The embodiments of the invention are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments can be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The foregoing are merely preferred embodiments of the present invention to enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.