WO2022028151A1 - 视频的制作方法及其装置、视频的共享方法及其装置 - Google Patents

视频的制作方法及其装置、视频的共享方法及其装置 Download PDF

Info

Publication number
WO2022028151A1
WO2022028151A1 PCT/CN2021/102985 CN2021102985W WO2022028151A1 WO 2022028151 A1 WO2022028151 A1 WO 2022028151A1 CN 2021102985 W CN2021102985 W CN 2021102985W WO 2022028151 A1 WO2022028151 A1 WO 2022028151A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
resource package
resource
server
browsed
Prior art date
Application number
PCT/CN2021/102985
Other languages
English (en)
French (fr)
Inventor
昝晓飞
曾凡平
马运南
Original Assignee
北京达佳互联信息技术有限公司
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 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022028151A1 publication Critical patent/WO2022028151A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • 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/488Data services, e.g. news ticker

Definitions

  • the present disclosure relates to the technical fields of data processing and terminals, and in particular, to a video production method and device, and a video sharing method and device.
  • the present disclosure provides a video production method and device, and a video sharing method and device, so as to at least solve the problem in the related art that only the same video can be shot in the same APP, and only the shared video can be browsed in different APPs. It is not possible to produce the same video, and the applicability is not high.
  • a video production method applied to a first server, including:
  • the video browsing request includes a first identifier of the video to be browsed
  • resource package information of the video to be browsed based on the first identifier, wherein the resource package information is used to determine whether the video to be browsed can be edited or the same video can be shot;
  • a video sharing method applied to a second server, including:
  • a video production apparatus which is applied to the first server, including:
  • a first acquiring module configured to perform acquiring a video browsing request of the first client, wherein the video browsing request includes a first identifier of the video to be browsed;
  • the second obtaining module is configured to execute obtaining the resource package information of the video to be browsed from the middle server based on the first identifier, wherein the resource package information is used to determine whether the video to be browsed can be edited or shot at the same time video;
  • a first sending module configured to execute sending the video to be browsed and the resource package information to the first client
  • a receiving module configured to perform receiving a second request from the first client, wherein the second request includes a request for editing the video to be viewed or a video request for shooting the same video of the video to be viewed;
  • a third acquiring module configured to perform acquiring the resource package corresponding to the video to be browsed based on the resource package information, in response to the second request;
  • the second sending module is configured to execute sending the resource package to the first client.
  • a video sharing apparatus applied to a second server, including:
  • an acquisition module configured to perform acquisition of the video reported by the second client, and determine a resource package corresponding to the video
  • an uploading module configured to upload the resource package to the middle-end server
  • a receiving module configured to receive the second identifier of the resource package information of the resource package returned by the middle-end server
  • a sending module configured to execute sending the first identification of the video and the second identification of the resource package information to the first server.
  • an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to achieve The video production method proposed by the embodiment of the first aspect of the present disclosure.
  • another electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to The video sharing method proposed by the embodiments of the second aspect of the present disclosure is implemented.
  • a storage medium which enables the electronic device to execute the video provided by the embodiments of the first aspect of the present disclosure when the instructions in the storage medium are executed by a processor of the electronic device production method.
  • another storage medium which enables the electronic device to execute the instructions provided by the embodiments of the second aspect of the present disclosure when the instructions in the storage medium are executed by the processor of the electronic device. How to share videos.
  • a computer program product is provided.
  • the computer program When the computer program is executed by a processor of an electronic device, the computer program enables the electronic device to execute the video production method provided by the embodiments of the first aspect of the present disclosure.
  • another computer program product is provided.
  • the computer program When the computer program is executed by a processor of an electronic device, the computer program enables the electronic device to execute the video sharing method provided by the embodiments of the second aspect of the present disclosure.
  • FIG. 1 is a flowchart of a method for producing a video according to an exemplary embodiment 1;
  • Figure 2 is a schematic diagram of a page of a short video APP
  • FIG. 3 is a flowchart of a method for producing a video according to an exemplary embodiment 2;
  • FIG. 4 is a flowchart of a method for producing a video according to an exemplary embodiment 3;
  • FIG. 5 is a schematic diagram of the system architecture of the present disclosure.
  • FIG. 6 is a schematic diagram of a processing flow of the first client in the present disclosure.
  • FIG. 7 is a flowchart of a video sharing method according to an exemplary embodiment 4.
  • FIG. 8 is a block diagram of an apparatus for producing a video according to an exemplary embodiment 5;
  • FIG. 9 is a block diagram of a video sharing apparatus according to an exemplary embodiment 6;
  • Fig. 10 is a block diagram of an electronic device according to an exemplary embodiment.
  • short video APPs have a simple function of shooting the same style.
  • a button to shoot the same style will be displayed on the page. Click this button to shoot the same video, for example, to shoot a video with the same audio and special effects as the video you are browsing.
  • the button for shooting the same model will be displayed, and if the video being browsed is not a video shot by the APP, the button such as shooting the same model cannot be displayed.
  • it is difficult to shoot the same type of video for different APPs that is, different users can only shoot the same type of video in the same APP, and can only browse the video in different APPs, and cannot achieve the same type of video production, suitable for Sex is not high.
  • the present disclosure mainly aims at the technical problem of low applicability that only videos are shared in the related art, and different applications can only browse videos but cannot make videos of the same type as the browsed videos, and propose a video production method.
  • the video production method according to the embodiment of the present disclosure in the case of sharing the video, the resource package corresponding to the video is shared on the middle-end server side at the same time, so that different application clients can create the same video based on the resource package stored on the middle-end server side. It realizes the production of the same video across application clients and improves the applicability of this method.
  • Fig. 1 is a flowchart of a method for producing a video according to an exemplary embodiment 1.
  • the execution body of the embodiment of the present disclosure may be a background server corresponding to the first client, which is referred to as the first server in the present disclosure.
  • the background server corresponding to the first client is referred to as the first server
  • the background server corresponding to the second client is referred to as the second server
  • the first client and the second client are different
  • the client corresponding to the application for example, the first client may be the client corresponding to the application A, and the second client may be the client corresponding to the application B.
  • the first client may be the client corresponding to the application A
  • the second client may be the client corresponding to the application B.
  • other naming manners can also be used, which are only used as an exemplary expression in the present disclosure.
  • the client side refers to a program corresponding to the server side and providing local services for the user.
  • the first server may communicate with the second server, or, the first server may also communicate with the second server through the middle server.
  • the middle server is used to store and manage the shared data of each server.
  • the video production method may include the following steps:
  • step S101 a video browsing request of the first client is obtained, wherein the video browsing request includes a first identifier of the video to be browsed.
  • the first identifier is used to uniquely identify the video to be browsed.
  • the first identifier may be an identity identifier (Identity, ID for short) of the video.
  • the video to be viewed may be a video shared between different servers, for example, a video shared between a first server and a second server.
  • the video to be browsed can be stored in the first server, or the video to be browsed can also be stored in the second server, or the video to be browsed can also be stored in the middle server, which is not limited in the present disclosure.
  • the video to be browsed when the video to be browsed is stored in the first server, the video to be browsed may be shot or edited by the first client or other clients (other clients and the first client are clients corresponding to the same application). and upload the video to the first server.
  • the first server can share the video to be viewed to the second server, so that the video to be viewed can be displayed on the pages of the first client and the second client at the same time.
  • the video to be viewed may be a video shot or edited by the second client or other clients (other clients and the second client are clients corresponding to the same application), and the second server may The to-be-viewed video is shared to the first server, so that the to-be-viewed video can be displayed on the pages of the first client and the second client at the same time.
  • the page of the first client can display videos, and the user can browse the corresponding videos by clicking on the videos.
  • FIG. 2 which is a schematic diagram of a page of a short video APP.
  • each video cover can be displayed on the page, and the user can click on the video cover shown in area 21 to browse the corresponding video.
  • the user can also browse the next video or the previous video by sliding the video left and right, or by sliding the video up and down.
  • the first client can detect the user's operation, and when it is detected that the user triggers the operation of browsing the video, for example, the user clicks on the video, or the user browses the video by sliding the video, the first client A client may generate a video browsing request and send the video browsing request to the first server, and correspondingly, the first server may receive the video browsing request sent by the first client.
  • step S102 the resource package information of the video to be browsed is obtained from the middle server based on the first identifier, wherein the resource package information is used to determine whether the video to be browsed can be edited or the same video can be shot.
  • the resource package information may include the storage address of the resource package corresponding to the video to be browsed, such as a uniform resource identifier (Uniform Resource Identifier, URL for short), the type of the video to be browsed, version information, and other information.
  • a uniform resource identifier Uniform Resource Identifier, URL for short
  • the storage address of the resource package may be the address of the resource package on the mid-stage server, and the resource package may include various resources used in the video to be browsed, such as special effects resources, editing mode resources, and the like.
  • the types of videos to be viewed may include shooting, editing, and the like.
  • the version information may include a high version and a low version, wherein the video of the low version can be displayed on the application client of the high version, and some functions may be difficult to reflect when the video of the high version is displayed on the application client of the low version.
  • the resource package corresponding to the video to be browsed may be stored in the middle server, and the first server may obtain resource package information of the resource package corresponding to the video to be browsed from the middle server.
  • the middle-end server may correspondingly store the video between each server, the resource package corresponding to the video, and the first identification information of the video. Therefore, in the present disclosure, the first server may query the middle-end server side according to the first identification. Identify the resource package corresponding to the video to be browsed to which it belongs, and determine the corresponding resource package information according to the resource package.
  • the acquired resource package information includes the address of the resource package on the middle-end server, or, when the acquired resource package information includes the address of the resource package on the middle-end server, the type of the video to be browsed , or, when the obtained resource package information includes the address and version information of the resource package on the middle-end server, or, when the obtained resource package information includes the address of the resource package on the middle-end server, to be browsed
  • the type and version information of the video it can be determined that the video to be viewed can be edited or the same video can be shot, but the obtained resource package information does not include the address of the resource package on the mid-end server, or the resource package information cannot be obtained. In this case, it can be determined that the video to be viewed cannot be edited or the same video can be shot.
  • step S103 the video to be browsed and the resource package information are sent to the first client.
  • the first server may receive the video to be browsed sent by the middle-end server, and store the resources of the resource package corresponding to the video to be browsed to which the first identifier belongs.
  • the package information and the video to be viewed are sent to the first client.
  • the first server may receive the video to be browsed sent by the second server, or the first server may receive the video to be browsed forwarded by the second server through the middle server, Afterwards, the first server may send the resource package information of the resource package corresponding to the to-be-viewed video to which the first identifier belongs and the to-be-viewed video to the first client.
  • the first server may receive the video to be browsed reported by the user, and combine the resource bundle information of the resource bundle corresponding to the video to be browsed to which the first identifier belongs and the video to be browsed. sent to the first client.
  • the first client can determine that the video to be browsed is editable or shoots the same video. For example, when it is determined that the video to be viewed is editable or the same type of video is shot, the first client can display the option to shoot the same type or the entry to shoot the same type on the play page, or it can display the same type of video clip on the play page. option or clip the same entry.
  • step S104 a second request from the first client is received, where the second request includes a request for editing a video to be viewed or a request for shooting a video of the same genre of the video to be viewed.
  • the first client after receiving the video to be browsed and the resource package information of the video to be browsed, the first client can determine, according to the resource package information, that the video to be browsed is an edited or shot video of the same genre, and is playing the video to be browsed when playing the video to be browsed.
  • the first client can detect whether the user triggers the operation of editing the video to be browsed, or whether the user triggers the operation of shooting the same video of the video to be browsed, and after detecting that the user triggers the operation of editing the video to be browsed, or , when an operation of shooting a video of the same type as the video to be viewed is triggered, a second request may be generated, and the second request may be sent to the first server.
  • the first client can display the option of shooting the same style or the entry for shooting the same style on the playback page, and the user can trigger or click the shooting option or the entry for shooting the same style displayed on the playback interface to trigger the shooting to be viewed.
  • the operation of the same video of the video when the first client detects that the user has triggered the operation of shooting the same video of the video to be viewed, it can generate a request to shoot the same video of the video to be viewed, and send it to the first server. Shoot the same video request of the video to be viewed.
  • the first client can display the option of editing the same paragraph or the entry for editing the same paragraph on the play page, and the user can trigger or click on the option for editing the same paragraph or the entry for editing the same paragraph displayed on the play interface to trigger the editing of the video to be viewed.
  • the first client when detecting that the user triggers an operation of editing the video to be browsed, the first client can generate a request to edit the video to be browsed, and send the request to edit the video to be browsed to the first server.
  • step S105 the resource package corresponding to the video to be browsed is acquired based on the resource package information, and the second request is responded to.
  • step S106 the resource package is sent to the first client.
  • the first server may, in response to the second request, obtain a resource package corresponding to the video to be browsed based on the resource package information, and send the resource package corresponding to the video to be browsed to the first server.
  • a client the first client receives the resource package corresponding to the video to be browsed, during the process of recording the video by the user, it can produce the same type of video according to the resource package, for example, edit or shoot the same type of video as the to-be-viewed video.
  • the resource package information may include the storage address of the resource package corresponding to the video to be browsed on the middle-end server. Therefore, in the present disclosure, when the second request from the first client is obtained, the first server may send a request to the middle-end server. The server sends a query request carrying the storage address. After receiving the query request, the middle server can query the corresponding resource package according to the storage address, and provide the resource package to the first server, so that the first server can provide the resource package. For the first client, correspondingly, after receiving the resource package, the first client can edit or shoot the same video of the video to be viewed according to the resource package.
  • the middle-end server can obtain the resources corresponding to the video according to the storage address of the resource package in the resource package information on the middle-end server. package, so that the same video can be produced according to the resource package, such as editing or shooting the same video of the video to be browsed, thereby realizing the production of the same video across application clients and improving the applicability of the method.
  • the resource package corresponding to the video is not shared. Therefore, the resource package information cannot be obtained from the middle server side, that is, the same video cannot be produced.
  • the resource package corresponding to the video is shared on the middle-end server side, so that different application clients can produce the same video based on the resource package stored on the middle-end server side, realizing the production of the same video across application clients. Improve the applicability of this method.
  • user 1 can open the second client on the terminal device, such as APP_A, and after shooting a video in APP_A, the video can be published or shared to other APPs, such as APP_B, so that when the user 2.
  • APP_B After browsing the video shared by user 1 on the first client, such as the page of APP_B, you can create the same video.
  • user 2 browses and clicks on the video shared by user 1 on the page of APP_B, the entry for taking pictures of the same style can be displayed on the play page, and user 2 can shoot the same video by clicking on the entry for taking pictures of the same style. , for example, to shoot a video with the same audio and special effects as the video you browsed. In this way, it is possible to create the same video across applications.
  • the terminal device may be a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a vehicle-mounted device, and other hardware devices with various operating systems, touch screens and/or display screens.
  • the video when user 1 shoots a video in APP_A, the video can be published, and when user 3 browses the video posted by user 1 on the page of APP_A, the same video can also be produced. In this way, it is possible to shoot the same video in the same APP.
  • a video browsing request of a first client is obtained through a first server, wherein the video browsing request includes a first identifier of the video to be browsed, and resource package information of the video to be browsed is obtained based on the first identifier , and send the video to be browsed and the resource package information to the first client, where the resource package information is used to determine whether the video to be browsed can be edited or the same video can be shot, and then receive the second request from the first client, wherein the first The second request includes a request for editing a video to be viewed or a request for shooting a video of the same type as the video to be viewed.
  • a resource package corresponding to the video to be viewed is obtained based on the resource package information, and the resource package is sent to the first client.
  • the resource package corresponding to the video is shared on the server side of the middle platform at the same time, so that different application clients can produce the same video based on the resource package stored on the server side of the middle platform, realizing cross-application The client produces the same video to improve the applicability of this method.
  • the first server can communicate with the second server. After the user shoots or edits the video on the second client, if the user wants to share the video, for example, share the video to the first client , the user can trigger the sharing operation, and when the second client detects the sharing operation triggered by the user, it can generate a video sharing request and send the video sharing request to the second server, and the second server can send the video sharing request to The first server, correspondingly, the first server may obtain a video sharing request from the second server, where the video sharing request includes the video to be shared and a corresponding resource package. After acquiring the video sharing request, the first server may generate a first identifier of the video to be shared according to the video sharing request, and send the video to be shared, the corresponding resource package, and the first identifier to the middle server for storage.
  • the second client terminal may also automatically push popular videos, videos with high hit rates, videos of interest, etc. to the first client terminal.
  • the second server can automatically select the video released by the user from the locally stored data as the video to be shared, and obtain the resource package corresponding to the video to be shared. the resource package, generate a video sharing request, and send the video sharing request to the first server.
  • the first server can obtain the video sharing request of the second server, wherein the video sharing request includes the video to be shared and the corresponding resources. Bag.
  • the first server can generate a first identifier of the video to be shared according to the video sharing request, and send the to-be-shared video, the corresponding resource package and the first identifier to the middle server for storage.
  • the first server may perform steps S101 to S106 to produce, edit or shoot the same video of the video to be shared.
  • the first server may also communicate with the second server through the middle-end server, and the second server may send a video sharing request to the middle-end server, where the video sharing request includes the video to be shared and the corresponding resource package.
  • the middle-stage server can generate a corresponding first identifier for the video to be shared, and send the video to be shared and the first identifier of the video to be shared to the first server.
  • the first server can receive the video to be shared and the first identifier of the video to be shared, to display the video to be shared on the first client, thereby triggering steps S101 to S106, to make the same video, edit or shoot the video to be shared of the same video.
  • the middle server may store the shared data of each server, and the first server may obtain the resource package information of the resource package corresponding to the video to be browsed to which the first identifier belongs.
  • Fig. 3 is a flowchart of a method for producing a video according to an exemplary embodiment 2.
  • the production method of the video may include the following steps:
  • step S201 a video browsing request of the first client is obtained, wherein the video browsing request includes a first identifier of the video to be browsed.
  • step S201 For the execution process of step S201, reference may be made to the execution process of step S101 in the foregoing embodiment, and details are not described herein again.
  • step S202 a second identifier of the resource package information is determined based on the first identifier.
  • the second identifier is used to uniquely identify the resource package information
  • the second identifier may be a header ID (Thead ID, TID for short) of the resource package information.
  • step S203 the resource package information is acquired from the middle server based on the second identifier.
  • the resource package information is used to determine whether the video to be browsed can be edited or the same video can be shot.
  • the first server may generate the second identifier of the resource package information according to the video to be shared and the corresponding resource package in the video sharing request, and establish an association relationship between the first identification and the second identification, so that in the present disclosure, after determining the first identification of the video to be browsed, the first server can obtain the second identification associated with the first identification, based on the second identification Get resource bundle information from the middle server.
  • the first server may send the resource package information query request carrying the second identifier to the middle-end server.
  • the middle-end server may directly obtain the corresponding resource package information according to the second identifier. resource package information, and send the acquired resource package information to the first server.
  • the middle-stage server may also generate the second identifier of the resource package information corresponding to the video to be browsed, and return the resource package information corresponding to the video to be browsed to the first server.
  • the second identifier so that the first server can establish an association relationship between the first identifier and the second identifier.
  • the first server determines the first identifier of the video to be browsed, it can obtain the second identifier associated with the first identifier.
  • Based on The second identifier obtains the resource package information from the middle server.
  • the first server may send the resource package information query request carrying the second identifier to the middle-end server.
  • the middle-end server may directly obtain the corresponding resource package information according to the second identifier. resource package information, and send the acquired resource package information to the first server.
  • the client can upload the video to the backend server
  • the server can determine the resource package corresponding to the video, and upload the resource package to the middle server
  • the middle server can store the resource package, and Determine the address of the resource package on the middle server, the type and version information of the video to be viewed, and generate the resource package information of the resource package according to the address of the resource package on the middle server, the type and version information of the video to be viewed
  • the resource package information is assigned a second identifier.
  • the client may be a first client, other clients belonging to the same application as the first client, a second client, or other clients belonging to the same application as the second client, and the background server corresponding to the client may be The first server, the second server.
  • step S204 the video to be browsed and the resource package information are sent to the first client.
  • step S205 a second request from the first client is received, where the second request includes a request for editing a video to be viewed or a request for shooting a video of the same genre of the video to be viewed.
  • step S206 the resource package corresponding to the video to be browsed is obtained based on the resource package information, and the second request is responded to.
  • step S207 the resource package is sent to the first client.
  • the video displayed by the first client may be a video shot or edited based on the first client, or the video displayed by the first client may also be a video shared by other clients.
  • the first server since the first server has stored the resource package information corresponding to the video, in order to improve processing efficiency, in the present disclosure, the first server can directly store data from the local In the data, the resource package information corresponding to the video is obtained, and when the user wants to browse the video shared by other clients, since the first server side does not store the resource package information corresponding to the video, at this time, the first server The server can obtain the resource package information corresponding to the video from the middle-end server side. The above process will be described in detail below with reference to the third embodiment.
  • Fig. 4 is a flowchart of a method for producing a video according to an exemplary embodiment 3.
  • the production method of the video may include the following steps:
  • step S301 a video browsing request of the first client is obtained, wherein the video browsing request includes a first identifier of the video to be browsed.
  • the video to be browsed is the video that the user wants to browse.
  • the page of the first client can display various videos, and the user can click on a video to browse according to their own needs.
  • the first client can detect the user's operation, and monitor the click page triggered by the user.
  • a video browsing request can be generated.
  • step S302 the storage database of the local server is queried according to the first identifier, and it is determined whether the resource package information of the local resource package corresponding to the video to be browsed is obtained.
  • the local resource package may include address information on the local server of the resource used in the video.
  • the resource package information of the local resource package may include the storage address of the local resource package, such as URL, version information, type of video to be browsed, and other information.
  • the resource package information is used to determine whether the video to be browsed can be edited or the same video can be shot.
  • the first client after receiving the video browsing request, can first determine whether the video to be browsed is a video shot or edited based on the first client, and the video to be browsed is based on the first client.
  • the resource package information corresponding to the video to be browsed can be obtained directly from the locally stored data, if the video to be browsed is not a video shot or edited based on the first client , indicating that the video to be browsed is not a video shot based on the first client, in this case, step S303 can be executed.
  • the first server may, according to the first identifier, query whether there is resource bundle information of the local resource bundle corresponding to the first identifier in the storage database of the local server, and if there is resource bundle information of the local resource bundle corresponding to the first identifier
  • the resource package information of the local resource package may be directly obtained, and if there is no resource package information of the local resource package corresponding to the first identifier, step S303 may be performed.
  • step S303 in the case where the resource bundle information of the local resource bundle corresponding to the video to be browsed is not obtained, the second identifier of the resource bundle information is determined based on the first identifier.
  • step S304 the resource package information is acquired from the middle server based on the second identifier.
  • step S305 the video to be browsed and the resource package information are sent to the first client.
  • step S306 a second request from the first client is received, where the second request includes a request for editing a video to be viewed or a request for shooting a video of the same genre of the video to be viewed.
  • step S307 the resource package corresponding to the video to be browsed is obtained based on the resource package information, and the second request is responded to.
  • step S308 the resource package is sent to the first client.
  • the video can also be shared to the client corresponding to the other application, so that the client corresponding to the other application can perform the video recording.
  • the first server may acquire videos to be shared uploaded by the user and corresponding resource packages, wherein the videos to be shared may be recommended videos, popular videos, videos with high hit rate, videos of interest, and the like. For example, after different users shoot or edit videos based on the first client or other clients belonging to the same application as the first client and publish them, the first server can automatically select the videos published by the users as the videos to be shared, and determine the videos to be shared.
  • the resource package corresponding to the video is corresponding to the video.
  • the resource package includes resources used by the video to be shared, and the resources can be obtained according to the address information. Therefore, in the above-mentioned embodiments of the present disclosure, after the first server obtains the video to be shared, the local resource package corresponding to the video to be shared may be determined, wherein the local resource package may include: special effects resources used in the video to be shared are locally From the address information on the server, the special effect resource can be obtained according to the address information of the special effect resource on the local server, and the resource package can be generated according to the special effect resource used in the video to be shared.
  • the first server may generate a video sharing request according to the video to be shared and the corresponding resource package and send it to the server to be shared, so that the server to be shared generates the first video sharing request according to the video sharing request.
  • identification and send the video to be shared, the corresponding resource package and the first identification to the middle-end server for storage.
  • the first server may also send a video sharing request to the middle-stage server, so that the middle-stage server generates the first identifier of the video to be shared according to the video sharing request, and sends the video to be shared and the video to be shared to the server to be shared. the first identification.
  • the server to be shared and the first server share the same middle-end server.
  • step S101 to S106 After the server to be shared generates the first identification of the video to be shared, or, after receiving the first identification of the video to be shared and the video to be browsed sent by the middle-stage server, operations similar to steps S101 to S106 can be performed to perform the same procedure. Video production.
  • the click rate of the user on the client side can be increased, the user stickiness can be increased, and the user experience can be improved.
  • the first server when sending the video to be browsed and the resource package information to the first client, the first server may also send an instruction to display the option of shooting the same item to the first client, wherein, the first server determines in response to the resource package information that the video to be browsed can shoot the same video. Therefore, the first client can display the same option on the playback page in response to the display instruction of the option to shoot the same, and the user can trigger the option to shoot the same option to shoot the same video as the video to be viewed.
  • the first server when the second request includes a request to shoot a video of the same genre as the video to be browsed, the first server responds to the second request, that is, in response to the request to shoot the video to be browsed.
  • the resource package obtained based on the resource package information may include a first special effect resource, and the first special effect resource includes at least one of the following special effect resources: music resources, camera configuration parameters, beauty resources, beauty makeup resources, body beauty resources Assets, Refinement Assets, Filter Assets, Magic Expression Assets, and Scale Assets.
  • beauty resources can include whitening, skin resurfacing, nose thinning, long nose, face shaving, face thinning, narrow face, big eyes, bright eyes, dark circles, thin jawbone, thin jawbone, eye opening, sharp chin, lips Thickening, whitening teeth, removing nasolabial folds and other resources; beauty resources can include adding lipstick, eye makeup, eyebrows, color contacts, contouring, blush, hair coloring and other resources; body beauty resources can include slimming, swan neck, thin waist, beauty Hip, long legs and other resources.
  • Camera configuration parameters may include camera front and/or rear, flash, etc., and fine-tuned resources include brightness, color temperature, saturation, contrast, sharpening, and other resources.
  • the process for the first client to shoot the same video as the video to be viewed may include:
  • an entry for shooting the same style can be displayed on the playback page of the first client, the user can click the entry for shooting the same style to shoot a video, and the first client can obtain the video shot by the user.
  • the user in the case of shooting video, the user does not need to manually adjust the camera configuration parameters, which can improve the user experience; It can also improve the imaging effect and meet the actual shooting needs of users.
  • the video to be viewed as an example produced by the APP_A client so that the APP_B client can shoot and generate a video similar to the to-be-viewed video.
  • the implementation process can be shown in Figure 5, where 1 is the generation The process of the resource package, 2 is the process of generating the video to be viewed, 3 is the process of making the same video in APP_A, 4 is the process of importing the video to be viewed from APP_A to APP_B, and 5 is the process of making the same video in APP_B.
  • rickon represents the software development kit (Software Development Kit, SDK for short) component
  • token represents the permission
  • Meta represents the basic information of the video
  • the TID can be stored in the basic information.
  • the middle-end client and the APP_A client are located on the same application.
  • the middle-end client implements basic functions
  • the APP_A client implements non-basic functions.
  • user A can shoot a video in APP_A (production end) and publish the video.
  • the middle-end client can generate a resource package according to the resources uploaded by APP_A, and upload the resource package to the middle-end server, and the middle-end server can send to APP_A's
  • the server returns the unique identifier TID of the resource package, and the middle server can store the TID, the storage address (URL) of the resource package, and version information (appver, including high and low).
  • APP_A may send the TID to the server of APP_A, and the server of APP_A stores the TID and the video identifier photo_ID correspondingly.
  • APP_B When user B browses the video shot by user A on the APP_B (consumer) side, APP_B sends a request to the server of APP_B through the video identification photo_ID, and the server of APP_B queries the corresponding TID according to the photo_ID carried in the request, and passes Query the resource package information from the middle-end server, that is, the address information (URL), video type (type), and version information (appver) of the resource package, and send the resource package information to APP_B, so that APP_B can determine the resource package information according to the resource package information.
  • the video can shoot the same video, and can display the entry for shooting the same model, so that user B can click the entry for shooting the same model to make the same video.
  • the first server may also send the display instruction of editing the same option to the first client , wherein the first server determines that the video to be browsed can edit the same video in response to the resource package information. Therefore, the first client can display the same option on the play page in response to the display instruction for editing the same option, and the user can trigger the same option to edit the same video as the video to be viewed.
  • the first server when the second request includes a request to edit the video to be browsed, responds to the second request, that is, in response to the request to edit the video to be browsed, based on the resource package
  • the resource package obtained by the information may include editing mode resources and second special effect resources; wherein, the editing mode resources include at least one of the following editing resources: background editing resources and cropping mode resources; the second special effect resources include at least one of the following special effect resources One: Beauty resources, filter resources, music resources, variable speed resources, sticker resources, text resources.
  • music resources can include resources such as adding music, adding recordings, whether there is original video sound, video volume, music volume, voice change type, clipping music and other resources
  • background editing resources can include resources such as background clipping
  • clipping method resources can include duration clipping, Divide, copy, freeze, rotate, zoom and crop the canvas, scale and other resources
  • sticker resources can include lyrics sticker resources.
  • the process of editing the same video by the first client may include:
  • the video to be edited is the video to be edited.
  • the video to be edited may be a video shot by the user using the first client terminal, or may also be a video pre-downloaded or shot by the user, which is not limited in the present disclosure.
  • the first client terminal may detect a user operation, and obtain the video to be edited selected by the user according to the user operation.
  • the above 5 short videos can be synthesized according to the clip mode resources to obtain the processed video, or the user selects a longer video and the video can be cropped , select one of the clips of the video.
  • user A can edit the original video in APP_A.
  • the original video can be shot by user A, or it can also be a video imported by user A, and the edited video can be published.
  • resource package and upload the resource package to the middle-end server
  • the middle-end server returns the unique identifier TID of the resource package to the server of APP_A
  • the middle-end server can store the TID, the storage address (URL) of the resource package, and the version information (appver ).
  • APP_A can send the TID to the server of APP_A
  • the server of APP_A stores the TID and photo_ID correspondingly.
  • APP_B When user B browses the video shot by user A on the APP_B (consumer) side, APP_B sends a request to the server of APP_B by identifying the photoID of the video.
  • the server of APP_B queries the corresponding TID according to the photo_ID carried in the request, and passes Query the resource package information from the middle-end server, that is, the address information (URL), video type (type), and version information (appver) of the resource package, and send the resource package information to APP_B, so that APP_B can determine the resource package information according to the resource package information.
  • the video can be edited with the same type of video, and the entry for cutting the same type of video can be displayed, so that user B can click on the same type of cut entry to make the same type of video.
  • FIG. 6 is a schematic diagram of a processing flow of the first client in the present disclosure.
  • the user when the first client (consumer) pulls the page information stream, the user can obtain the photo_ID list corresponding to the recommended video from the database storing the video through the gateway, and the gateway can query the TID according to each photo_ID in the photo_ID list.
  • the database can return the recommended video basic information meta and URL to the gateway, and assemble the information flow according to the obtained information, and return the corresponding information flow to the user.
  • the corresponding special effect resource can be obtained according to the URL, so that the special effect resource can be used to perform special effect processing on each frame image in the video.
  • the present disclosure also provides a video sharing method.
  • FIG. 7 is a flowchart of a video sharing method according to an exemplary embodiment 4.
  • the execution body of the embodiment of the present disclosure may be a background server corresponding to the second client, which is referred to as the second server in the present disclosure.
  • the production method of the video may include the following steps:
  • step S401 the video uploaded by the second client is acquired, and the resource package corresponding to the video is determined.
  • the video uploaded by the second client may be a video edited or shot by the user based on the second client.
  • the resource package corresponding to the video may include various resources used in the video, such as audio resources, special effects resources, editing mode resources, and the like.
  • the second server may determine the resource package corresponding to the video in the case of receiving the uploaded video.
  • step S402 the resource package is uploaded to the middle-stage server.
  • the resource package may be uploaded to the middle-end server.
  • step S403 the second identifier of the resource package information of the resource package returned by the middle-end server is received.
  • the resource package information may include information such as the storage address of the resource package corresponding to the video, the type of the video, and version information.
  • the storage address of the resource package may be the address of the resource package on the middle-end server, and the type of the video to be browsed may include shooting, editing, and the like.
  • the version information may include a high version and a low version, wherein the video of the low version can be displayed on the application client of the high version, and some functions may be difficult to reflect when the video of the high version is displayed on the application client of the low version.
  • the middle-end server may store the resource package, generate resource package information according to the resource package, assign a second identifier to the resource package information, and send the resources of the resource package to the second server
  • the second identifier of the package information correspondingly, the second server may receive the second identifier of the resource package information of the resource package returned by the middle-stage server.
  • the middle-end server may determine the address of the resource package on the middle-end server, the type of video, and the version information, and store the resource package on the middle-end server according to the resource package. address, video type and version information, generate resource pack information of the resource pack, and assign a second identifier to the resource pack information.
  • step S404 the first identifier of the video and the second identifier of the resource package information are sent to the first server.
  • the second server may send the first identifier of the video and the second identifier of the resource package to the first server, and correspondingly, the first server may receive the video Therefore, when the first client is playing the video, the first server can obtain the resource package information from the middle server based on the second identifier of the resource package information, and according to the resource package information , such as the address of the resource package on the middle-end server, obtain the resource package from the middle-end server, and use the resource package to edit or shoot the same video of the video. As a result, the same video can be produced across application clients, which improves the applicability of the method.
  • the video browsing request includes The first identifier of the video to be browsed
  • the resource package information of the video to be browsed can be obtained from the middle server based on the first identifier, for example, the second identifier of the resource package information is determined based on the first identifier, and the resource package is obtained from the middle server based on the second identifier.
  • the resource package information in which the resource package information is used to determine whether the video to be viewed can be edited or shot of the same video; send the video to be viewed and resource package information to the first client; receive the second request from the first client, where the second request Including the request to edit the video to be viewed or the same video request to shoot the video to be viewed; obtain the resource pack corresponding to the video to be viewed based on the resource pack information, and send the resource pack to the first client in response to the second request.
  • the second server may directly communicate with the first server, and at this time, the second server may The identifier and the second identifier of the resource package information are sent directly to the first server.
  • the second server may also communicate with the first server through the middle-end server.
  • the second server may combine the first identifier of the video with the first identifier of the resource package information.
  • the second identifier is forwarded to the first server through the middle-end server. Therefore, data forwarding through the middle-end server can improve the reliability of data transmission.
  • the second server obtains the video uploaded by the second client, determines the resource package corresponding to the video, uploads the resource package to the middle-end server, and receives the resources of the resource package returned by the middle-end server.
  • the second identifier of the package information sending the first identifier of the video and the second identifier of the resource package information to the first server.
  • the first server can obtain the resource pack information from the middle-stage server based on the second identifier of the resource pack information, and obtain the resource pack information from the middle-stage server according to the resource pack information Resource package, in order to use the resource package to edit or shoot the same video, it is possible to create the same video across application clients and improve the applicability of this method.
  • an embodiment of the present disclosure proposes a video production apparatus.
  • Fig. 8 is a block diagram of an apparatus for producing a video according to an exemplary embodiment 5.
  • the video production apparatus 100 applied to the first server, may include: a first acquisition module 101, a second acquisition module 102, a first transmission module 103, a reception module 104, a third acquisition module 105, and a first acquisition module 101. 2.
  • the sending module 106 The sending module 106.
  • the first obtaining module 101 is configured to execute obtaining a video browsing request of a first client, wherein the video browsing request includes a first identifier of a video to be browsed.
  • the second obtaining module 102 is configured to obtain resource package information of the video to be browsed from the middle server based on the first identifier, wherein the resource package information is used to determine whether the video to be browsed can be edited or the same video can be shot.
  • the first sending module 103 is configured to execute sending the video to be browsed and resource package information to the first client.
  • the receiving module 104 is configured to receive a second request from the first client, where the second request includes a request to edit a video to be viewed or a request to shoot a video of the same genre of the video to be viewed.
  • the third obtaining module 105 is configured to execute the obtaining of the resource pack corresponding to the video to be browsed based on the resource pack information, in response to the second request.
  • the second sending module 106 is configured to execute sending the resource package to the first client.
  • the first acquiring module 101 is configured to perform: determining a second identifier of the resource bundle information based on the first identifier; and acquiring the resource bundle information from the middle server based on the second identifier.
  • the resource package information includes the address of the resource package on the middle-end server, the type and version information of the video to be browsed.
  • the first sending module 103 is further configured to execute sending an instruction to display the option of shooting the same item to the first client, and determine in response to the resource package information that the video to be browsed can shoot the same item. paragraph video.
  • the first sending module 103 is further configured to execute sending a display instruction for editing the same style option to the first client, and in response to the resource package information, it is determined that the video to be browsed can be edited for the same style video.
  • the resource package corresponding to the video to be browsed includes a first special effect resource, and the first special effect resource includes at least one of the following special effect resources One: music resources, camera configuration parameters, beauty resources, beauty resources, body beauty resources, fine-tuning resources, filter resources, magic expression resources and scale resources.
  • a resource package corresponding to the video to be browsed in response to a request for editing a video to be browsed, includes an edit mode resource and a second special effect resource.
  • the editing mode resources include at least one of the following editing resources: background editing resources and cropping mode resources.
  • the second special effect resource includes at least one of the following special effect resources: beauty resource, filter resource, music resource, variable speed resource, sticker resource, and text resource.
  • the acquisition method of the video to be browsed is: receiving the video to be browsed forwarded by the middle-end server; or, receiving the video to be browsed sent by the second server; or, receiving the video reported by the user.
  • Video to be viewed is: receiving the video to be browsed forwarded by the middle-end server; or, receiving the video to be browsed sent by the second server; or, receiving the video reported by the user.
  • the video production apparatus obtains a video browsing request of a first client through a first server, wherein the video browsing request includes a first identifier of the video to be browsed, and acquires resource package information of the video to be browsed based on the first identifier , and send the video to be browsed and the resource package information to the first client, where the resource package information is used to determine whether the video to be browsed can be edited or the same video can be shot, and then receive the second request from the first client, wherein the first The second request includes a request for editing a video to be viewed or a request for shooting a video of the same type as the video to be viewed.
  • a resource package corresponding to the video to be viewed is obtained based on the resource package information, and the resource package is sent to the first client.
  • the resource package corresponding to the video is shared on the server side of the middle platform at the same time, so that different application clients can produce the same video based on the resource package stored on the server side of the middle platform, realizing cross-application The client makes the same video to improve applicability.
  • the embodiments of the present disclosure provide a video sharing apparatus.
  • Fig. 9 is a block diagram of a video sharing apparatus according to an exemplary embodiment 6.
  • the video sharing apparatus 200 applied to the second server, may include: an obtaining module 201 , an uploading module 202 , a receiving module 203 , and a sending module 204 .
  • the obtaining module 201 is configured to execute obtaining the video reported by the second client, and determine the resource package corresponding to the video.
  • the uploading module 202 is configured to upload the resource package to the middle-end server.
  • the receiving module 203 is configured to receive the second identifier of the resource package information of the resource package returned by the middle-end server.
  • the sending module 204 is configured to execute sending the first identifier of the video and the second identifier of the resource package information to the first server.
  • the resource package information includes an address of the resource package on the middle-end server, video type and version information.
  • the process of acquiring the second identifier by the middle-end server is: storing the resource package; determining the address of the resource package on the middle-end server, video type and version information; The address, video type and version information on the server in the middle stage are used to generate resource package information of the resource package; and a second identifier is allocated to the resource package information.
  • the sending module 204 is configured to perform: sending the first identifier of the video and the second identifier of the resource package information directly to the first server; or, sending the first identifier of the video and the second identifier of the resource package information to the first server; An identifier and the second identifier of the resource package information are forwarded to the first server through the middle server.
  • the video sharing apparatus obtains the video uploaded by the second client through the second server, determines the resource package corresponding to the video, uploads the resource package to the middle-end server, and receives the resources of the resource package returned by the middle-end server.
  • the second identifier of the package information sending the first identifier of the video and the second identifier of the resource package information to the first server.
  • the first server can obtain the resource pack information from the middle-stage server based on the second identifier of the resource pack information, and obtain the resource pack information from the middle-stage server according to the resource pack information Resource package, to use the resource package to edit or shoot the same video, you can create the same video across application clients and improve the applicability.
  • the embodiments of the present disclosure further provide an electronic device.
  • electronic equipment includes:
  • memory for storing processor-executable instructions
  • the processor is configured to execute the instructions to implement the aforementioned method for producing a video, or to implement the aforementioned method for sharing a video.
  • FIG. 10 is a block diagram of an electronic device 2000 according to an exemplary embodiment. As shown in FIG. 10 , the above-mentioned electronic device 2000 may further include:
  • Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect ( PCI) bus.
  • Electronic device 2000 typically includes a variety of electronic device-readable media. These media can be any available media that can be accessed by electronic device 2000, including volatile and nonvolatile media, removable and non-removable media.
  • Memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and/or cache memory 250 .
  • Electronic device 2000 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 260 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 10, commonly referred to as a "hard drive”).
  • disk drives for reading and writing to removable non-volatile magnetic disks eg "floppy disks”
  • removable non-volatile optical disks eg CD-ROM, DVD-ROM
  • each drive may be connected to bus 230 through one or more data media interfaces.
  • the memory 210 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present disclosure.
  • Program modules 270 generally perform the functions and/or methods in the embodiments described in this disclosure.
  • the electronic device 2000 may also communicate with one or more external devices 290 (eg, keyboard, pointing device, display 291, etc.), with one or more devices that enable a user to interact with the electronic device 2000, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 2000 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 292 . Also, the electronic device 2000 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 293 . As shown, network adapter 293 communicates with other modules of electronic device 2000 via bus 230 . It should be appreciated that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 2000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.
  • the processor 220 executes various functional applications and data processing by executing programs stored in the memory 210 .
  • the embodiments of the present disclosure further provide a storage medium.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the aforementioned method for producing a video, or execute the aforementioned method for sharing a video.
  • the present disclosure also provides a computer program product, when the computer program is executed by the processor of the electronic device, the electronic device can execute the above-mentioned video production method, or execute the above-mentioned video production method. video sharing method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开关于一种视频的制作方法及其装置、视频的共享方法及其装置,涉及数据处理技术领域,其中,视频的制作方法应用于第一服务器,包括:获取第一客户端的视频浏览请求,其中,视频浏览请求包括待浏览视频的第一标识;基于第一标识从中台服务器获取待浏览视频的资源包信息,其中,资源包信息用于确定待浏览视频是否可以编辑或者拍摄同款视频;发送待浏览视频和资源包信息至第一客户端;接收第一客户端的第二请求,其中,第二请求包括编辑待浏览视频请求或者拍摄待浏览视频的同款视频请求;基于资源包信息获取待浏览视频对应的资源包,响应于第二请求;发送资源包至第一客户端。

Description

视频的制作方法及其装置、视频的共享方法及其装置
相关申请的交叉引用
本公开要求于2020年08月03日提交中国专利局、申请号为202010768811.1、发明名称为“视频的制作方法、共享方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及数据处理和终端技术领域,尤其涉及一种视频的制作方法及其装置、视频的共享方法及其装置。
背景技术
随着终端技术以及移动互联网技术的不断发展,各种应用(Application,简称APP)如雨后春笋般不断出现,用户可以根据自身需求在终端设备上安装不同类别的APP,例如视频类APP、社交类APP、支付类APP等等。
目前,对于短视频类APP,用户可以根据自身需求拍摄或者编辑视频并进行发布,当其他用户浏览到该用户发布的视频后,可以点赞、评论、转发或者拍摄同款视频。
发明内容
本公开提供一种视频的制作方法及其装置、视频的共享方法及其装置,以至少解决相关技术中仅能在同一APP中拍摄同款视频,而在不同的APP中仅能浏览共享视频,并不能实现制作同款视频,适用性不高的问题。
本公开的技术方案如下:
根据本公开实施例的第一方面,提供一种视频的制作方法,应用于第一服务器,包括:
获取第一客户端的视频浏览请求,其中,所述视频浏览请求包括待浏览视频的第一标识;
基于所述第一标识从中台服务器获取所述待浏览视频的资源包信息,其中,所述资源包信息用于确定所述待浏览视频是否可以编辑或者拍摄同款视频;
发送所述待浏览视频和所述资源包信息至所述第一客户端;
接收所述第一客户端的第二请求,其中,所述第二请求包括编辑所述待浏览视频请求或者拍摄所述待浏览视频的同款视频请求;
基于所述资源包信息获取所述待浏览视频对应的资源包,响应于所述第二请求;
发送所述资源包至所述第一客户端。
根据本公开实施例的第二方面,提供一种视频的共享方法,应用于第二服务器,包括:
获取第二客户端上传的视频,并确定所述视频对应的资源包;
上传所述资源包至中台服务器;
接收所述中台服务器返回的所述资源包的资源包信息的第二标识;
将所述视频的第一标识和所述资源包信息的所述第二标识发送至第一服务器。
根据本公开实施例的第三方面,提供一种视频的制作装置,应用于第一服务器,包括:
第一获取模块,被配置为执行获取第一客户端的视频浏览请求,其中,所述视频浏览请求包括待浏览视频的第一标识;
第二获取模块,被配置为执行基于所述第一标识从中台服务器获取所述待浏览视频的 资源包信息,其中,所述资源包信息用于确定所述待浏览视频是否可以编辑或者拍摄同款视频;
第一发送模块,被配置为执行发送所述待浏览视频和所述资源包信息至所述第一客户端;
接收模块,被配置为执行接收所述第一客户端的第二请求,其中,所述第二请求包括编辑所述待浏览视频请求或者拍摄所述待浏览视频的同款视频请求;
第三获取模块,被配置为执行基于所述资源包信息获取所述待浏览视频对应的资源包,响应于所述第二请求;
第二发送模块,被配置为执行发送所述资源包至所述第一客户端。
根据本公开实施例的第四方面,提供一种视频的共享装置,应用于第二服务器,包括:
获取模块,被配置为执行获取第二客户端上报的视频,并确定所述视频对应的资源包;
上传模块,被配置为执行上传所述资源包至中台服务器;
接收模块,被配置为执行接收所述中台服务器返回的所述资源包的资源包信息的第二标识;
发送模块,被配置为执行将所述视频的第一标识和所述资源包信息的所述第二标识发送至第一服务器。
根据本公开实施例的第五方面,提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现本公开第一方面实施例提出的视频的制作方法。
根据本公开实施例的第六方面,提供另一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现本公开第二方面实施例提出的视频的共享方法。
根据本公开实施例的第七方面,提供一种存储介质,在所述存储介质中的指令由电子设备的处理器执行的情况下,使得电子设备能够执行本公开第一方面实施例提出的视频的制作方法。
根据本公开实施例的第八方面,提供另一种存储介质,在所述存储介质中的指令由电子设备的处理器执行的情况下,使得电子设备能够执行本公开第二方面实施例提出的视频的共享方法。
根据本公开实施例的第九方面,提供一种计算机程序产品,该计算机程序由电子设备的处理器执行时,使得电子设备能够执行本公开第一方面实施例提出的视频的制作方法。
根据本公开实施例的第十方面,提供另一种计算机程序产品,该计算机程序由电子设备的处理器执行时,使得电子设备能够执行本公开第二方面实施例提出的视频的共享方法。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。
图1是根据一示例性实施例一所示出的视频的制作方法的流程图;
图2为短视频类APP的页面示意图;
图3是根据一示例性实施例二所示出的视频的制作方法的流程图;
图4是根据一示例性实施例三所示出的视频的制作方法的流程图;
图5是本公开的系统架构示意图;
图6是本公开中第一客户端的处理流程示意图;
图7是根据一示例性实施例四所示出的视频的共享方法的流程图;
图8是根据一示例性实施例五所示出的视频的制作装置的框图;
图9是根据一示例性实施例六所示出的视频的共享装置的框图;
图10是根据一示例性实施例示出的一种电子设备的框图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
目前短视频类APP具有简单的拍同款功能,用户在APP页面中浏览某一个视频时,在浏览的视频为该APP拍摄的视频的情况下,页面上会显示一个拍同款的按钮,用户点击该按钮,可以拍摄同款视频,例如,拍摄与浏览的视频具有相同音频、特效的视频。
然而上述方式,仅在浏览的视频为该APP拍摄的视频的情况下,才会显示拍同款等按钮,而在浏览的视频不是该APP拍摄的视频的情况下,无法显示拍同款等按钮,难以对不同APP拍摄的视频进行拍同款等制作,即不同的用户仅能在同一APP中拍摄同款视频,而在不同的APP中仅能浏览视频,并不能实现制作同款视频,适用性不高。
本公开主要针对相关技术中仅共享了视频,不同应用之间仅能浏览视频而不能实现制作与浏览的视频同款的视频,适用性不高的技术问题,提出一种视频的制作方法。本公开实施例的视频的制作方法,在共享视频的情况下,同时在中台服务器侧共享了视频对应的资源包,从而不同应用客户端可以基于中台服务器侧存储的资源包进行同款视频的制作,实现了跨应用客户端制作同款视频,提升该方法的适用性。
图1是根据一示例性实施例一所示出的视频的制作方法的流程图。
本公开实施例的执行主体可以为第一客户端对应的后台服务器,本公开中记为第一服务器。
为了便于区别,本公开中将第一客户端对应的后台服务器称为第一服务器,将第二客户端对应的后台服务器称为第二服务器,其中,第一客户端与第二客户端为不同应用对应的客户端,比如,第一客户端可以为应用A对应的客户端,第二客户端可以为应用B对应的客户端。当然,也可以以其他命名方式进行命名,本公开中仅作为一种示例性表述。
其中,客户端是指与服务器端相对应,为用户提供本地服务的程序。
其中,第一服务器可以与第二服务器进行通信,或者,第一服务器也可以通过中台服务器与第二服务器进行通信。中台服务器,用于对各服务器的共享数据进行存储以及管理等。
如图1所示,视频的制作方法可以包括以下步骤:
在步骤S101中,获取第一客户端的视频浏览请求,其中,视频浏览请求包括待浏览视频的第一标识。
本公开实施例中,第一标识,用于唯一标识该待浏览视频。例如,该第一标识可以为视频的身份标识符(Identity,简称ID)。
本公开实施例中,待浏览视频可以为不同服务器之间共享的视频,比如第一服务器和第二服务器之间共享的视频。其中,待浏览视频可以存储在第一服务器,或者,待浏览视 频也可以存储在第二服务器,或者,待浏览视频还可以存储在中台服务器,本公开对此并不作限制。例如,在待浏览视频存储在第一服务器的情况下,该待浏览视频可以为第一客户端或其他客户端(其他客户端与第一客户端为同一应用对应的客户端)拍摄或编辑的视频,并上传至第一服务器,第一服务器可以将待浏览视频分享至第二服务器,从而可以同时在第一客户端以及第二客户端的页面中显示该待浏览视频,或者,在待浏览视频存储在第二服务器的情况下,该待浏览视频可以为第二客户端或其他客户端(其他客户端与第二客户端为同一应用对应的客户端)拍摄或者编辑的视频,第二服务器可以将待浏览视频分享至第一服务器,从而可以同时在第一客户端以及第二客户端的页面中显示该待浏览视频。
本公开实施例中,第一客户端的页面可以显示视频,用户可以通过点击视频,来浏览对应的视频,例如,参见图2,图2为短视频类APP的页面示意图。其中,在页面上可以显示各视频封面,用户可以点击如区域21所示的视频封面,来浏览相应的视频。当然,用户在播放视频的情况下,还可以通过左右滑动视频的方式,或者,通过上下滑动视频的方式,来实现浏览下一个视频或者上一个视频。
因此,本公开中,第一客户端可以对用户操作进行探测,在监测到用户触发了浏览视频的操作的情况下,比如用户点击了视频,或者,用户通过滑动视频的方式浏览视频,该第一客户端可以生成视频浏览请求,并向第一服务器发送该视频浏览请求,相应的,第一服务器可以接收第一客户端发送的视频浏览请求。
在步骤S102中,基于第一标识从中台服务器获取待浏览视频的资源包信息,其中,资源包信息用于确定待浏览视频是否可以编辑或者拍摄同款视频。
本公开实施例中,资源包信息可以包括待浏览视频对应的资源包的存储地址,例如统一资源标识符(Uniform Resource Identifier,简称URL)、待浏览视频的类型、版本信息等信息。
其中,资源包的存储地址可以为资源包在中台服务器上的地址,资源包可以包括待浏览视频中所使用的各资源,例如特效资源、编辑模式资源等等。
待浏览视频的类型可以包括拍摄、编辑等类型。
版本信息可以包括高版本和低版本,其中,低版本的视频在高版本的应用客户端上可体现,高版本的视频在低版本应用客户端上展现的情况下,部分功能可能难以体现。
本公开实施例中,待浏览视频对应的资源包可存储在中台服务器中,第一服务器可以从中台服务器获取待浏览视频对应的资源包的资源包信息。例如,中台服务器可以对应存储各个服务器之间的视频、视频对应的资源包以及视频的第一标识信息,从而,本公开中,第一服务器可以根据第一标识,从中台服务器侧查询第一标识所属的待浏览视频对应的资源包,根据该资源包,确定对应的资源包信息。
本公开实施例中,在获取的资源包信息包括资源包在中台服务器上的地址的情况下,或者,在获取的资源包信息包括资源包在中台服务器上的地址、待浏览视频的类型的情况下,或者,在获取的资源包信息包括资源包在中台服务器上的地址、版本信息的情况下,或者,在获取的资源包信息包括资源包在中台服务器上的地址,待浏览视频的类型以及版本信息的情况下,可以确定待浏览视频可以编辑或者拍摄同款视频,而在获取的资源包信息不包括资源包在中台服务器上的地址,或者,无法获取资源包信息的情况下,可以确定待浏览视频不可以编辑或者拍摄同款视频。
在步骤S103中,发送待浏览视频和资源包信息至第一客户端。
本公开实施例中,在待浏览视频存储在中台服务器侧的情况下,第一服务器可以接收中台服务器发送的待浏览视频,并将第一标识所属的待浏览视频对应的资源包的资源包信息和待浏览视频发送至第一客户端。或者,在待浏览视频存储在第二服务器侧的情况下,第一服务器可以接收第二服务器发送的待浏览视频,或者,第一服务器可以接收第二服务器通过中台服务器转发的待浏览视频,之后,第一服务器可以将第一标识所属的待浏览视 频对应的资源包的资源包信息和待浏览视频发送至第一客户端。或者,在待浏览视频存储在第一服务器侧的情况下,第一服务器可以接收用户上报的待浏览视频,并将第一标识所属的待浏览视频对应的资源包的资源包信息和待浏览视频发送至第一客户端。
相应的,第一客户端在接收到资源包信息后,可以确定待浏览视频为可编辑或者拍摄同款视频。例如,在确定待浏览视频为可编辑或者拍摄同款视频的情况下,第一客户端可以在播放页面上显示拍摄同款选项或拍同款的入口,或者,可以在播放页面上显示剪辑同款选项或剪辑同款的入口。
在步骤S104中,接收第一客户端的第二请求,其中,第二请求包括编辑待浏览视频请求或者拍摄待浏览视频的同款视频请求。
本公开实施例中,当第一客户端在接收到待浏览视频和待浏览视频的资源包信息后,根据资源包信息可以确定待浏览视频为编辑或者拍摄同款视频,在播放待浏览视频的过程中,第一客户端可以探测用户是否触发编辑待浏览视频的操作,或者,探测用户是否触发拍摄待浏览视频的同款视频的操作,在探测到用户触发了编辑待浏览视频的操作,或者,触发了拍摄待浏览视频的同款视频的操作的情况下,可以生成第二请求,并向第一服务器发送上述第二请求。
举例而言,第一客户端可以在播放页面上显示拍摄同款选项或拍同款的入口,用户可以触发或者点击播放界面上显示的拍摄同款选项或拍同款的入口,触发拍摄待浏览视频的同款视频的操作,第一客户端在探测到用户触发了拍摄待浏览视频的同款视频的操作的情况下,可以生成拍摄待浏览视频的同款视频请求,并向第一服务器发送拍摄待浏览视频的同款视频请求。或者,第一客户端可以在播放页面上显示剪辑同款选项或剪辑同款的入口,用户可以触发或者点击播放界面上显示的剪辑同款选项或剪辑同款的入口,触发编辑待浏览视频的操作,第一客户端在探测到用户触发了编辑待浏览视频的操作的情况下,可以生成编辑待浏览视频请求,并向第一服务器发送编辑待浏览视频请求。
在步骤S105中,基于资源包信息获取待浏览视频对应的资源包,响应于第二请求。
在步骤S106中,发送资源包至第一客户端。
本公开实施例中,当第一服务器接收到第二请求后,可以响应于第二请求,基于资源包信息,获取待浏览视频对应的资源包,并将待浏览视频对应的资源包发送至第一客户端。相应的,第一客户端在接收到待浏览视频对应的资源包后,在用户录制视频的过程中,可以根据该资源包进行同款视频的制作,例如编辑或者拍摄待浏览视频的同款视频。
例如,资源包信息中可以包括待浏览视频对应的资源包在中台服务器上的存储地址,因此,本公开中,在获取到第一客户端的第二请求的情况下,第一服务器可以向中台服务器发送携带存储地址的查询请求,中台服务器在接收到查询请求后,可以根据存储地址,查询对应的资源包,并将资源包提供给第一服务器,从而第一服务器可以将资源包提供给第一客户端,相应的,第一客户端在接收到资源包后,可以根据该资源包,编辑或者拍摄待浏览视频的同款视频。由此,针对不同应用客户端拍摄的视频,只要该视频对应的资源包共享到中台服务器,即可根据资源包信息中资源包在中台服务器的存储地址,从中台服务器获取视频对应的资源包,从而即可根据资源包进行同款视频的制作,比如编辑或者拍摄待浏览视频的同款视频,由此,实现了跨应用客户端制作同款视频,提升该方法的适用性。
也就是说,现有技术中,仅共享了视频,而未共享视频对应的资源包,因此,从中台服务器侧获取不到资源包信息,即无法制作同款视频,而本公开中,在共享视频的同时,在中台服务器侧共享了视频对应的资源包,从而不同应用客户端可以基于中台服务器侧存储的资源包进行同款视频的制作,实现了跨应用客户端制作同款视频,提升该方法的适用性。
作为一种应用场景,用户1可以打开终端设备上的第二客户端,比如APP_A,并在 APP_A中拍摄视频后,可以将该视频进行发布,或者共享到其他APP,比如APP_B中,从而当用户2在第一客户端,比如APP_B的页面中浏览到用户1分享的视频后,可以进行同款视频的制作。例如,用户2在APP_B的页面中浏览并点击用户1共享的视频的情况下,可以在播放页面上可以显示拍同款的入口,用户2可以通过点击该拍同款的入口,拍摄同款视频,例如,拍摄与浏览的视频具有相同音频、特效的视频。由此,可以实现跨应用制作同款视频。
其中,终端设备可以为手机、平板电脑、个人数字助理、穿戴式设备、车载设备等具有各种操作系统、触摸屏和/或显示屏的硬件设备。
作为另一种应用场景,当用户1在APP_A中拍摄视频后,可以将该视频进行发布,当用户3在APP_A的页面中浏览到用户1发布的视频后,同样可以进行同款视频的制作。由此,可以实现在同一APP中拍摄同款视频。
本公开实施例的视频的制作方法,通过第一服务器获取第一客户端的视频浏览请求,其中,视频浏览请求包括待浏览视频的第一标识,并基于第一标识获取待浏览视频的资源包信息,并发送待浏览视频和资源包信息至第一客户端,其中,资源包信息用于确定待浏览视频是否可以编辑或者拍摄同款视频,之后,接收第一客户端的第二请求,其中,第二请求包括编辑待浏览视频请求或者拍摄待浏览视频的同款视频请求,响应于第二请求,基于资源包信息获取待浏览视频对应的资源包,并发送资源包至第一客户端。由此,在共享视频的情况下,同时在中台服务器侧共享了视频对应的资源包,从而不同应用客户端可以基于中台服务器侧存储的资源包进行同款视频的制作,实现了跨应用客户端制作同款视频,提升该方法的适用性。
作为一种可能的实现方式,第一服务器可以与第二服务器进行通信,当用户在第二客户端拍摄或者编辑的视频后,若用户想要对该视频进行共享,比如分享至第一客户端中,则用户可以触发共享操作,当第二客户端探测到用户触发的共享操作后,可以生成视频共享请求,并向第二服务器发送视频共享请求,第二服务器可以将该视频共享请求发送至第一服务器,相应的,第一服务器可以获取第二服务器的视频共享请求,其中,视频共享请求包括待共享视频以及对应的资源包。第一服务器在获取到视频共享请求后,可以根据该视频共享请求,生成待共享视频的第一标识,并将待共享视频、对应的资源包以及第一标识发送给中台服务器进行存储。
应当理解的是,为了提高用户的点击率,第二客户端还可以自动向第一客户端推送热门视频、命中率较高的视频、感兴趣视频等,在一些实施例中,不同用户基于第二客户端拍摄或者编辑视频并发布后,第二服务器可以从本地存储的数据中,自动选取用户发布的视频,作为待共享视频,并获取待共享视频对应的资源包,根据待共享视频以及对应的资源包,生成视频共享请求,并将该视频共享请求发送至第一服务器,相应的,第一服务器可以获取第二服务器的视频共享请求,其中,视频共享请求包括待共享视频以及对应的资源包。第一服务器在获取到视频共享请求后,可以根据该视频共享请求,生成待共享视频的第一标识,并将待共享视频、对应的资源包以及第一标识发送给中台服务器进行存储。
本公开实施例中,第一服务器在生成待共享视频的第一标识后,可以执行步骤S101至S106,以进行同款视频的制作,编辑或者拍摄待共享视频的同款视频。
作为另一种可能的实现方式,第一服务器也可以通过中台服务器与第二服务器进行通信,第二服务器可以向中台服务器发送视频共享请求,其中,视频共享请求包括待共享视频以及对应的资源包,相应的,中台服务器在接收到该视频共享请求后,可以为待共享视频生成对应的第一标识,并向第一服务器发送待共享视频以及待共享视频的第一标识,相应的,第一服务器可以接收待共享视频以及待共享视频的第一标识,以在第一客户端显示待共享视频,从而触发步骤S101至S106,以进行同款视频的制作,编辑或者拍摄待共享视频的同款视频。
作为一种可能的实现方式,中台服务器可以对各服务器的共享数据进行存储,第一服务器可以从中台服务器获取第一标识所属的待浏览视频对应的资源包的资源包信息。下面结合实施例二,对上述过程进行详细说明。
图3是根据一示例性实施例二所示出的视频的制作方法的流程图。
如图3所示,该视频的制作方法可以包括以下步骤:
在步骤S201中,获取第一客户端的视频浏览请求,其中,视频浏览请求包括待浏览视频的第一标识。
步骤S201的执行过程可以参见上述实施例中步骤S101的执行过程,在此不再赘述。
在步骤S202中,基于第一标识确定资源包信息的第二标识。
本公开实施例中,第二标识用于唯一标识该资源包信息,例如,第二标识可以为资源包信息的表头ID(Thead ID,简称TID)。
在步骤S203中,基于第二标识从中台服务器获取资源包信息。
其中,资源包信息用于确定待浏览视频是否可以编辑或者拍摄同款视频。
在本公开实施例的一种可能的实现方式中,第一服务器在接收到视频共享请求后,可以根据视频共享请求中的待共享视频和对应的资源包,生成资源包信息的第二标识,并建立第一标识与第二标识之间的关联关系,从而本公开中,第一服务器在确定待浏览视频的第一标识后,可以获取与第一标识关联的第二标识,基于第二标识从中台服务器获取资源包信息。例如,第一服务器可以将携带第二标识的资源包信息查询请求发送给中台服务器,相应的,中台服务器在接收到资源包信息查询请求后,可以直接根据该第二标识,获取对应的资源包信息,并将获取的资源包信息发送至第一服务器。
在本公开实施例的另一种可能的实现方式中,还可以由中台服务器生成待浏览视频对应的资源包信息的第二标识,并向第一服务器返回待浏览视频对应的资源包信息的第二标识,从而第一服务器可以建立第一标识与第二标识之间的关联关系,当第一服务器确定待浏览视频的第一标识后,可以获取与第一标识关联的第二标识,基于第二标识从中台服务器获取资源包信息。例如,第一服务器可以将携带第二标识的资源包信息查询请求发送给中台服务器,相应的,中台服务器在接收到资源包信息查询请求后,可以直接根据该第二标识,获取对应的资源包信息,并将获取的资源包信息发送至第一服务器。
例如,当各客户端拍摄或编辑视频后,客户端可以将视频上传至后台服务器,服务器可以确定视频对应的资源包,并将资源包上传至中台服务器,中台服务器可以存储资源包,并确定资源包在中台服务器上的地址、待浏览视频的类型以及版本信息,根据资源包在中台服务器上的地址,待浏览视频的类型以及版本信息,生成资源包的资源包信息,并为资源包信息分配第二标识。
其中,客户端可以为第一客户端、与第一客户端属于同一应用的其他客户端、第二客户端、与第二客户端属于同一应用的其他客户端,客户端对应的后台服务器可以为第一服务器、第二服务器。
在步骤S204中,发送待浏览视频和资源包信息至第一客户端。
在步骤S205中,接收第一客户端的第二请求,其中,第二请求包括编辑待浏览视频请求或者拍摄待浏览视频的同款视频请求。
在步骤S206中,基于资源包信息获取待浏览视频对应的资源包,响应于第二请求。
在步骤S207中,发送资源包至第一客户端。
步骤S204至S207的执行过程可以参见上述实施例中步骤S103至S106的执行过程,在此不再赘述。
可以理解的是,第一客户端显示的视频可以为基于该第一客户端拍摄或者编辑的视频,或者,第一客户端显示的视频还可以为其他客户端共享的视频,在用户想要浏览的为基于该第一客户端拍摄或者编辑的视频的情况下,由于第一服务器已存储了视频对应的资源包 信息,因此,为了提升处理效率,本公开中,第一服务器可直接从本地存储的数据中,获取视频对应的资源包信息,而在用户想要浏览的为其他客户端共享的视频的情况下,由于第一服务器侧并未存储视频对应的资源包信息,此时,第一服务器可以从中台服务器侧获取视频对应的资源包信息。下面结合实施例三,对上述过程进行详细说明。
图4是根据一示例性实施例三所示出的视频的制作方法的流程图。
如图4所示,该视频的制作方法可以包括以下步骤:
在步骤S301中,获取第一客户端的视频浏览请求,其中,视频浏览请求包括待浏览视频的第一标识。
本公开实施例中,待浏览视频为用户想要浏览的视频。
本公开实施例中,第一客户端的页面可以显示各视频,用户可以根据自身需求点击一个视频进行浏览,相应的,第一客户端可以对用户操作进行探测,在监测到用户触发的点击页面上的视频操作的情况下,可以生成视频浏览请求。
在步骤S302中,根据第一标识查询本地服务器的存储数据库,判断是否获取到待浏览视频对应的本地资源包的资源包信息。
本公开实施例中,本地资源包中可包括视频中所使用的资源在本地服务器上的地址信息。本地资源包的资源包信息可以包括本地资源包的存储地址,例如URL、版本信息、待浏览视频的类型等信息。其中,资源包信息用于确定待浏览视频是否可以编辑或者拍摄同款视频。
本公开实施例中,第一客户端在接收到视频浏览请求后,可以先判断该待浏览视频是否为基于该第一客户端拍摄或编辑的视频,在该待浏览视频为基于该第一客户端拍摄或编辑的视频的情况下,可以直接从本地存储的数据中,获取待浏览视频对应的资源包信息,在该待浏览视频不为基于该第一客户端拍摄或编辑的视频的情况下,表明该待浏览视频并非为基于该第一客户端拍摄的视频,此时,可执行步骤S303。
在一些实施例中,第一服务器可以根据第一标识,查询本地服务器的存储数据库中是否存在第一标识对应的本地资源包的资源包信息,在存在第一标识对应的本地资源包的资源包信息的情况下,可直接获取本地资源包的资源包信息,在不存在第一标识对应的本地资源包的资源包信息的情况下,可以执行步骤S303。
在步骤S303中,在未获取到待浏览视频对应的本地资源包的资源包信息的情况下,基于第一标识确定资源包信息的第二标识。
在步骤S304中,基于第二标识从中台服务器获取资源包信息。
在步骤S305中,发送待浏览视频和资源包信息至第一客户端。
在步骤S306中,接收第一客户端的第二请求,其中,第二请求包括编辑待浏览视频请求或者拍摄待浏览视频的同款视频请求。
在步骤S307中,基于资源包信息获取待浏览视频对应的资源包,响应于第二请求。
在步骤S308中,发送资源包至第一客户端。
步骤S303至S308的执行过程可以参见上述实施例的执行过程,在此不做赘述。
实际应用时,第一客户端或者与第一客户端属于同一应用的其他客户端在拍摄或者编辑视频后,也可以将视频分享至其他应用对应的客户端,以使其他应用对应的客户端进行同款视频的制作。在一些实施例之中,第一服务器可以获取用户上传的待共享视频以及对应的资源包,其中,待共享视频可以为推荐视频、热门视频、命中率较高的视频、感兴趣视频等。例如,不同用户基于第一客户端或者与第一客户端属于同一应用的其他客户端拍摄或者编辑视频并发布后,第一服务器可以自动选取用户发布的视频,作为待共享视频,并确定待共享视频对应的资源包。
其中,资源包中包括待共享视频所使用的资源,资源可以根据地址信息获取。因此,在本公开上述实施例中,在第一服务器获取待共享视频后,可以确定该待共享视频对应的 本地资源包,其中,本地资源包可以包括:待共享视频所采用的特效资源在本地服务器上的地址信息,可以根据特效资源在本地服务器上的地址信息,获取特效资源,根据待共享视频所采用的特效资源,生成资源包。
本公开实施例中,第一服务器可以根据待共享视频以及对应的资源包,生成视频共享请求并发送给待共享的服务器,以使待共享的服务器根据视频共享请求,生成待共享视频的第一标识,并将待共享视频、对应的资源包以及第一标识发送给中台服务器进行存储。或者,第一服务器还可以向中台服务器发送视频共享请求,以使中台服务器根据视频共享请求,生成待共享视频的第一标识,并向待共享的服务器发送的待共享视频以及待共享视频的第一标识。其中,待共享的服务器与第一服务器共用同一个中台服务器。
在待共享的服务器生成待共享视频的第一标识,或者,接收到中台服务器发送的待共享视频以及待浏览视频的第一标识后,可以执行类似步骤S101至S106的操作,以进行同款视频的制作。
本公开实施例中,通过自动向待共享的服务器或者中台服务器推送视频,可以提升用户在客户端侧的点击率,增加用户粘性,改善用户的使用体验。
在本公开实施例的一种可能的实现方式中,第一服务器在向第一客户端发送待浏览视频和资源包信息的情况下,还可以向第一客户端发送拍摄同款选项显示指令,其中,第一服务器响应于资源包信息确定待浏览视频可以拍摄同款视频。从而第一客户端可以响应于拍摄同款选项显示指令,在播放页面上显示拍摄同款选项,用户可以触发该拍摄同款选项,拍摄待浏览视频的同款视频。
在本公开实施例的一种可能的实现方式中,在第二请求包括拍摄待浏览视频的同款视频请求的情况下,第一服务器响应于第二请求时,即响应于拍摄待浏览视频的同款视频请求,基于资源包信息获取的资源包可以包括第一特效资源,第一特效资源包括以下特效资源中的至少一种:音乐资源、摄像头配置参数、美颜资源、美妆资源、美体资源、细调资源、滤镜资源、魔法表情资源和比例资源。
其中,美颜资源可以包括美白、磨皮、瘦鼻、长鼻、削脸、瘦脸、窄脸、大眼、亮眼、黑眼圈、瘦颌骨、瘦下颌骨、开眼角、尖下巴、唇厚、白牙、去法令纹等资源,美妆资源可以包括添加口红、眼妆、眉毛、美瞳、修容、腮红、染发等资源,美体资源可以包括瘦身、天鹅颈、瘦腰、美胯、长腿等资源。摄像头配置参数可以包括摄像头前置和/或后置、闪光灯等、细调资源包括亮度、色温、饱和度、对比度、锐化等资源。
第一客户端拍摄待浏览视频的同款视频的过程可以包括:
1、获取用户拍摄得到的视频。
例如,在第一客户端的播放页面上可以显示拍同款的入口,用户可以通过点击该拍同款的入口,拍摄视频,第一客户端可以获取用户拍摄的视频。
2、调用资源包中的第一特效资源,对视频中的各帧图像进行特效处理,得到特效处理后的视频。
3、将特效处理后的视频,确定为待浏览视频的同款视频。
由此,一方面,在拍摄视频的情况下,无需用户手动调整摄像头配置参数,可以改善用户的使用体验,另一方面,使用与待浏览视频中同样的摄像头配置参数,对摄像头进行自动设置,还可以改善成像效果,满足用户的实际拍摄需求,再一方面,可以使用与待浏览视频同样的音乐、美颜、美体等资源进行拍摄,可以进一步提升用户的使用体验。
作为一种示例,以待浏览视频为APP_A客户端制作的进行示例,从而可在APP_B客户端中拍摄生成与该待浏览视频类似的视频,实现流程可以如图5所示,其中,1为生成资源包的过程,2为生成待浏览视频的过程,3为APP_A制作同款视频的过程,4为APP_A向APP_B导入待浏览视频的过程,5为APP_B制作同款视频的过程。其中,rickon表示软件开发工具包(Software Development Kit,简称SDK)组件,token表示权限,Meta表示 视频的基础信息,可以将TID存放在基础信息里。中台客户端和APP_A客户端是位于同一个应用上,中台客户端实现基础的功能,APP_A客户端实现非基础的功能。
其中,用户A可在APP_A(生产端)拍摄视频,并发布该视频,中台客户端可以根据APP_A上传的资源,生成资源包,并将资源包上传至中台服务器,中台服务器向APP_A的服务器返回资源包的唯一标识TID,并且,中台服务器可以存储TID、资源包的存储地址(URL)、版本信息(appver,包括高、低)。其中,在上传视频的情况下,APP_A可以向APP_A的服务器发送TID,APP_A的服务器对TID和视频标识photo_ID进行对应存储。
用户B在APP_B(消费端)侧浏览用户A拍摄的视频的情况下,APP_B通过视频标识photo_ID,向APP_B的服务器发送请求,APP_B服务器根据请求中携带的photo_ID,查询对应的TID,并通过TID,从中台服务器端查询得到资源包信息,即资源包的地址信息(URL)、视频类型(type)、版本信息(appver),并向APP_B发送资源包信息,从而APP_B根据该资源包信息,可以确定该视频可以拍摄同款视频,可以显示拍同款的入口,从而用户B可以点击该拍同款入口,进行同款视频的制作。
在本公开实施例的另一种可能的实现方式中,第一服务器在向第一客户端发送待浏览视频和资源包信息的情况下,还可以向第一客户端发送编辑同款选项显示指令,其中,第一服务器响应于资源包信息确定待浏览视频可以编辑同款视频。从而第一客户端可以响应于编辑同款选项显示指令,在播放页面上显示编辑同款选项,用户可以触发该编辑同款选项,编辑待浏览视频的同款视频。
在本公开实施例的一种可能的实现方式中,在第二请求包括编辑待浏览视频请求的情况下,第一服务器响应于第二请求时,即响应于剪辑待浏览视频请求,基于资源包信息获取的资源包可以包括编辑模式资源和第二特效资源;其中,编辑模式资源包括以下编辑资源中的至少一种:背景编辑资源以及裁剪方式资源;第二特效资源包括以下特效资源中的至少一种:美颜资源、滤镜资源、音乐资源、变速资源、贴纸资源、文字资源。
其中,音乐资源可以包括添加音乐、添加录音、是否有原始视频声音、视频音量、音乐音量、变声类型、裁剪音乐等资源,背景编辑资源可以包括背景裁剪等资源,裁剪方式资源可以包括时长裁剪、分割、复制、定格、旋转、画布缩放裁剪、比例等资源,贴纸资源可以包括歌词贴纸资源。
第一客户端编辑同款视频的过程可以包括:
1、获取用户所选择的待剪辑视频。
其中,待剪辑视频为需要进行剪辑的视频。待剪辑的视频可以为用户采用第一客户端拍摄的视频,或者,还可以为用户预先下载或拍摄的视频,本公开对此并不做限制。
本公开实施例中,第一客户端可以探测用户操作,根据用户操作,获取用户所选择的待剪辑视频。
2、获取资源包中的编辑模式资源。
3、按照编辑模式资源对待剪辑视频进行剪辑以及合成处理,得到处理后的视频。
举例而言,用户选择了5个小段的视频,可以按照剪辑模式资源,对上述5个小视频进行合成,得到处理后的视频,或者,用户选择了一个较长的视频,可以对视频进行裁剪,选取其中一个小段的视频。
4、调用资源包中的第二特效资源对处理后的视频中的各帧图像进行特效处理,得到特效处理后的视频。
5、将特效处理后的视频,确定为待浏览视频的同款视频。
作为一种示例,以待浏览视频为APP_A客户端制作的进行示例,从而可在第一客户端APP_B中编辑生成与该待浏览视频类似的视频,实现流程可以如图5所示:
其中,用户A可在APP_A编辑原始视频,该原始视频可以为用户A拍摄的,或者也可以为用户A导入的视频,并发布编辑后的视频,中台客户端可以根据APP_A上传的资 源,生成资源包,并将资源包上传至中台服务器,中台服务器向APP_A的服务器返回资源包的唯一标识TID,并且,中台服务器可以存储TID、资源包的存储地址(URL)、版本信息(appver)。其中,在上传视频的情况下,APP_A可以向APP_A的服务器发送TID,APP_A的服务器对TID和photo_ID进行对应存储。
用户B在APP_B(消费端)侧浏览用户A拍摄的视频的情况下,APP_B通过视频标识photoID,向APP_B的服务器发送请求,APP_B服务器根据请求中携带的photo_ID,查询对应的TID,并通过TID,从中台服务器端查询得到资源包信息,即资源包的地址信息(URL)、视频类型(type)、版本信息(appver),并向APP_B发送资源包信息,从而APP_B根据该资源包信息,可以确定该视频可以编辑同款视频,可以显示剪同款的入口,从而用户B可以点击该剪同款入口,进行同款视频的制作。
作为一种应用场景,参见图6,图6是本公开中第一客户端的处理流程示意图。其中,用户在第一客户端(消费端)拉取页面信息流的情况下,可以通过网关从存储视频的数据库中获取推荐视频对应的photo_ID列表,网关可以根据photo_ID列表中的各photo_ID,查询TID,根据TID,从数据库中查询资源包的存储路径,数据库可向网关返回推荐视频基础信息meta和URL,并根据获取到的信息组装得到信息流,并向用户返回对应的信息流。在用户想要制作同款视频的情况下,可以根据URL可以获取对应的特效资源,从而可以采用特效资源对视频中的各帧图像进行特效处理。
为了实现上述实施例,本公开还提供一种视频的共享方法。
图7是根据一示例性实施例四所示出的视频的共享方法的流程图。
本公开实施例的执行主体可以为第二客户端对应的后台服务器,本公开中记为第二服务器。
如图7所示,该视频的制作方法可以包括以下步骤:
在步骤S401中,获取第二客户端上传的视频,并确定视频对应的资源包。
本公开实施例中,第二客户端上传的视频可以为用户基于第二客户端编辑或拍摄的视频。视频对应的资源包可以包括视频中所使用的各资源,例如音频资源、特效资源、编辑模式资源等等。
本公开实施例中,当第二客户端上传视频后,第二服务器在接收到上传的视频的情况下,可以确定该视频对应的资源包。
在步骤S402中,上传资源包至中台服务器。
本公开实施例中,当第二服务器确定视频对应的资源包后,可以将资源包上传至中台服务器。
在步骤S403中,接收中台服务器返回的资源包的资源包信息的第二标识。
本公开实施例中,资源包信息可以包括视频对应的资源包的存储地址、视频的类型、版本信息等信息。其中,资源包的存储地址可以为资源包在中台服务器上的地址,待浏览视频的类型可包括拍摄、编辑等类型。版本信息可以包括高版本和低版本,其中,低版本的视频可以在高版本的应用客户端上可体现,高版本的视频在低版本应用客户端上展现的情况下,部分功能可能难以体现。
本公开实施例中,中台服务器在接收到资源包后,可以存储该资源包,并根据资源包生成资源包信息,为资源包信息分配第二标识,并向第二服务器发送资源包的资源包信息的第二标识,相应的,第二服务器可以接收中台服务器返回的资源包的资源包信息的第二标识。
在本公开实施例的一种可能的实现方式中,中台服务器在存储资源包后,可以确定资源包在中台服务器上的地址,视频的类型以及版本信息,根据资源包在中台服务器上的地址,视频的类型以及版本信息,生成资源包的资源包信息,并为资源包信息分配第二标识。
在步骤S404中,将视频的第一标识和资源包信息的第二标识发送至第一服务器。
本公开实施例中,第二服务器在接收到资源包信息的第二标识后,可以将视频的第一标识和资源包的第二标识发送至第一服务器,相应的,第一服务器可以接收视频的第一标识和资源包信息,由此,在第一客户端在播放该视频的情况下,第一服务器可以基于资源包信息的第二标识,从中台服务器获取资源包信息,根据资源包信息,比如资源包在中台服务器上的地址,从中台服务器上获取资源包,以利用资源包编辑或者拍摄该视频的同款视频。由此,可以实现跨应用客户端制作同款视频,提升该方法的适用性。
在一些实施例中,第一服务器在接收到视频的第一标识和资源包信息的第二标识后,在第一服务器接收到第一客户端的视频浏览请求的情况下,其中,视频浏览请求包括待浏览视频的第一标识,可基于第一标识从中台服务器获取待浏览视频的资源包信息,例如,基于第一标识确定资源包信息的第二标识,基于第二标识从中台服务器获取资源包信息,其中,资源包信息用于确定待浏览视频是否可以编辑或者拍摄同款视频;发送待浏览视频和资源包信息至第一客户端;接收第一客户端的第二请求,其中,第二请求包括编辑待浏览视频请求或者拍摄待浏览视频的同款视频请求;基于资源包信息获取待浏览视频对应的资源包,响应于第二请求,发送资源包至第一客户端,相应的,第一客户端在接收到待浏览视频对应的资源包后,在用户录制视频的过程中,可以根据该资源包进行同款视频的制作,例如编辑或者拍摄待浏览视频的同款视频。
需要说明的是,前述图1至图4实施例对视频的制作方法的解释说明,也适用于该实施例,此处将不做详细阐述说明。
在本公开实施例的一种可能的实现方式中,为了简化数据传输链路,节省数据传输时间,第二服务器可以直接与第一服务器进行通信,此时,第二服务器可以将视频的第一标识和资源包信息的第二标识直接发送至第一服务器。
在本公开实施例的另一种可能的实现方式中,第二服务器还可以通过中台服务器与第一服务器进行通信,此时,第二服务器可以将视频的第一标识和资源包信息的第二标识通过中台服务器转发至第一服务器。由此,通过中台服务器进行数据的转发,可以提升数据传输的可靠性。
本公开实施例的视频的共享方法,通过第二服务器获取第二客户端上传的视频,并确定视频对应的资源包,上传资源包至中台服务器,并接收中台服务器返回的资源包的资源包信息的第二标识,将视频的第一标识和资源包信息的第二标识发送至第一服务器。由此,在第一服务器对应的客户端在播放该视频的情况下,第一服务器可以基于资源包信息的第二标识,从中台服务器获取资源包信息,根据资源包信息,从中台服务器上获取资源包,以利用资源包编辑或者拍摄同款视频,可以实现跨应用客户端制作同款视频,提升该方法的适用性。
为了实现上述实施例,本公开实施例提出了一种视频的制作装置。
图8是根据一示例性实施例五所示出的视频的制作装置的框图。
参照图8,该视频的制作装置100,应用于第一服务器,可以包括:第一获取模块101、第二获取模块102、第一发送模块103、接收模块104、第三获取模块105,以及第二发送模块106。
其中,第一获取模块101,被配置为执行获取第一客户端的视频浏览请求,其中,视频浏览请求包括待浏览视频的第一标识。
第二获取模块102,被配置为执行基于第一标识从中台服务器获取待浏览视频的资源包信息,其中,资源包信息用于确定待浏览视频是否可以编辑或者拍摄同款视频。
第一发送模块103,被配置为执行发送待浏览视频和资源包信息至第一客户端。
接收模块104,被配置为执行接收第一客户端的第二请求,其中,第二请求包括编辑待浏览视频请求或者拍摄待浏览视频的同款视频请求。
第三获取模块105,被配置为执行基于资源包信息获取待浏览视频对应的资源包,响 应于第二请求。
第二发送模块106,被配置为执行发送资源包至第一客户端。
在本公开实施例的一种可能的实现形式中,第一获取模块101,被配置为执行:基于第一标识确定资源包信息的第二标识;基于第二标识从中台服务器获取资源包信息。
在本公开实施例的一种可能的实现形式中,资源包信息包括资源包在中台服务器上的地址,待浏览视频的类型以及版本信息。
在本公开实施例的一种可能的实现形式中,第一发送模块103,还被配置为执行向第一客户端发送拍摄同款选项显示指令,响应于资源包信息确定待浏览视频可以拍摄同款视频。
第一发送模块103,还被配置为执行向第一客户端发送编辑同款选项显示指令,响应于资源包信息确定待浏览视频可以编辑同款视频。
在本公开实施例的一种可能的实现形式中,响应于拍摄待浏览视频的同款视频请求,待浏览视频对应的资源包包括第一特效资源,第一特效资源包括以下特效资源中的至少一种:音乐资源、摄像头配置参数、美颜资源、美妆资源、美体资源、细调资源、滤镜资源、魔法表情资源和比例资源。
在本公开实施例的一种可能的实现形式中,响应于编辑待浏览视频请求,待浏览视频对应的资源包包括编辑模式资源和第二特效资源。
其中,编辑模式资源包括以下编辑资源中的至少一种:背景编辑资源以及裁剪方式资源。第二特效资源包括以下特效资源中的至少一种:美颜资源、滤镜资源、音乐资源、变速资源、贴纸资源、文字资源。
在本公开实施例的一种可能的实现形式中,待浏览视频的获取方式为,接收中台服务器转发的待浏览视频;或者,接收第二服务器发送的待浏览视频;或者,接收用户上报的待浏览视频。
需要说明的是,关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本公开实施例的视频的制作装置,通过第一服务器获取第一客户端的视频浏览请求,其中,视频浏览请求包括待浏览视频的第一标识,并基于第一标识获取待浏览视频的资源包信息,并发送待浏览视频和资源包信息至第一客户端,其中,资源包信息用于确定待浏览视频是否可以编辑或者拍摄同款视频,之后,接收第一客户端的第二请求,其中,第二请求包括编辑待浏览视频请求或者拍摄待浏览视频的同款视频请求,响应于第二请求,基于资源包信息获取待浏览视频对应的资源包,并发送资源包至第一客户端。由此,在共享视频的情况下,同时在中台服务器侧共享了视频对应的资源包,从而不同应用客户端可以基于中台服务器侧存储的资源包进行同款视频的制作,实现了跨应用客户端制作同款视频,提升适用性。
为了实现上述实施例,本公开实施例提出了一种视频的共享装置。
图9是根据一示例性实施例六所示出的视频的共享装置的框图。
参照图9,该视频的共享装置200,应用于第二服务器,可以包括:获取模块201、上传模块202、接收模块203,以及发送模块204。
其中,获取模块201,被配置为执行获取第二客户端上报的视频,并确定视频对应的资源包。
上传模块202,被配置为执行上传资源包至中台服务器。
接收模块203,被配置为执行接收中台服务器返回的资源包的资源包信息的第二标识。
发送模块204,被配置为执行将视频的第一标识和资源包信息的第二标识发送至第一服务器。
在本公开实施例的一种可能的实现形式中,资源包信息包括资源包在中台服务器上的 地址,视频的类型以及版本信息。
在本公开实施例的一种可能的实现形式中,中台服务器获取第二标识的过程为,存储资源包;确定资源包在中台服务器上的地址,视频的类型以及版本信息;根据资源包在中台服务器上的地址,视频的类型以及版本信息,生成资源包的资源包信息;为资源包信息分配第二标识。
在本公开实施例的一种可能的实现形式中,发送模块204,被配置为执行:将视频的第一标识和资源包信息的第二标识直接发送至第一服务器;或者,将视频的第一标识和资源包信息的第二标识通过中台服务器转发至第一服务器。
需要说明的是,关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本公开实施例的视频的共享装置,通过第二服务器获取第二客户端上传的视频,并确定视频对应的资源包,上传资源包至中台服务器,并接收中台服务器返回的资源包的资源包信息的第二标识,将视频的第一标识和资源包信息的第二标识发送至第一服务器。由此,在第一服务器对应的客户端在播放该视频的情况下,第一服务器可以基于资源包信息的第二标识,从中台服务器获取资源包信息,根据资源包信息,从中台服务器上获取资源包,以利用资源包编辑或者拍摄同款视频,可以实现跨应用客户端制作同款视频,提升适用性。
为了实现上述实施例,本公开实施例还提出了一种电子设备。
其中,电子设备包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,处理器被配置为执行指令,以实现如前所述的视频的制作方法,或者,实现如前所述的视频的共享方法。
作为一种示例,图10是根据一示例性实施例示出的一种电子设备2000的框图,如图10所示,上述电子设备2000,还可以包括:
存储器210及处理器220,连接不同组件(包括存储器210和处理器220)的总线230,存储器210存储有计算机程序,在处理器220执行所述程序的情况下实现本公开实施例所述的视频的制作方法,或者,实现本公开实施例所述的视频的共享方法。
总线230表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。
电子设备2000典型地包括多种电子设备可读介质。这些介质可以是任何能够被电子设备2000访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。
存储器210还可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)240和/或高速缓存存储器250。电子设备2000可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统260可以用于读写不可移动的、非易失性磁介质(图10未显示,通常称为“硬盘驱动器”)。尽管图10中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线230相连。存储器210可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本公开各实施例的功能。
具有一组(至少一个)程序模块270的程序/实用工具280,可以存储在例如存储器210中,这样的程序模块270包括——但不限于——操作系统、一个或者多个应用程序、其它 程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块270通常执行本公开所描述的实施例中的功能和/或方法。
电子设备2000也可以与一个或多个外部设备290(例如键盘、指向设备、显示器291等)通信,还可与一个或者多个使得用户能与该电子设备2000交互的设备通信,和/或与使得该电子设备2000能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口292进行。并且,电子设备2000还可以通过网络适配器293与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器293通过总线230与电子设备2000的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备2000使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。
处理器220通过运行存储在存储器210中的程序,从而执行各种功能应用以及数据处理。
需要说明的是,本实施例的电子设备的实施过程和技术原理参见前述对本公开实施例的视频的制作方法或者视频的共享方法的解释说明,此处不再赘述。
为了实现上述实施例,本公开实施例还提出了一种存储介质。
其中,在存储介质中的指令由电子设备的处理器执行的情况下,使得电子设备能够执行如前所述的视频的制作方法,或者,执行如前所述的视频的共享方法。
为了实现上述实施例,本公开还提供一种计算机程序产品,该计算机程序由电子设备的处理器执行时,使得电子设备能够执行如前所述的视频的制作方法,或者,执行如前所述的视频的共享方法。
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。
本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (26)

  1. 一种视频的制作方法,其中,应用于第一服务器,包括:
    获取第一客户端的视频浏览请求,其中,所述视频浏览请求包括待浏览视频的第一标识;
    基于所述第一标识从中台服务器获取所述待浏览视频的资源包信息,其中,所述资源包信息用于确定所述待浏览视频是否可以编辑或者拍摄同款视频;
    发送所述待浏览视频和所述资源包信息至所述第一客户端;
    接收所述第一客户端的第二请求,其中,所述第二请求包括编辑所述待浏览视频请求或者拍摄所述待浏览视频的同款视频请求;
    基于所述资源包信息获取所述待浏览视频对应的资源包,响应于所述第二请求;
    发送所述资源包至所述第一客户端。
  2. 如权利要求1所述的视频的制作方法,其中,所述基于所述第一标识从中台服务器获取所述待浏览视频的资源包信息,包括:
    基于所述第一标识确定所述资源包信息的第二标识;
    基于所述第二标识从所述中台服务器获取所述资源包信息。
  3. 如权利要求1或2所述的视频的制作方法,其中,所述资源包信息包括所述资源包在所述中台服务器上的地址,所述待浏览视频的类型以及版本信息。
  4. 如权利要求1-3任一项所述的视频的制作方法,其中,所述发送所述待浏览视频和所述资源包信息至所述第一客户端还包括:
    向所述第一客户端发送拍摄同款选项显示指令,响应于所述资源包信息确定所述待浏览视频可以拍摄同款视频;
    向所述第一客户端发送编辑同款选项显示指令,响应于所述资源包信息确定所述待浏览视频可以编辑同款视频。
  5. 如权利要求1-4任一项所述的视频的制作方法,其中,响应于拍摄所述待浏览视频的同款视频请求,所述待浏览视频对应的资源包包括第一特效资源,所述第一特效资源包括以下特效资源中的至少一种:音乐资源、摄像头配置参数、美颜资源、美妆资源、美体资源、细调资源、滤镜资源、魔法表情资源和比例资源。
  6. 如权利要求1-5任一项所述的视频的制作方法,其中,响应于编辑所述待浏览视频请求,所述待浏览视频对应的资源包包括编辑模式资源和第二特效资源;
    所述编辑模式资源包括以下编辑资源中的至少一种:背景编辑资源以及裁剪方式资源;
    所述第二特效资源包括以下特效资源中的至少一种:美颜资源、滤镜资源、音乐资源、变速资源、贴纸资源、文字资源。
  7. 如权利要求1-6任一项所述的视频的制作方法,其中,所述待浏览视频的获取方式为,
    接收中台服务器转发的所述待浏览视频;或者,
    接收第二服务器发送的所述待浏览视频;或者,
    接收用户上报的所述待浏览视频。
  8. 一种视频的共享方法,其中,应用于第二服务器,包括:
    获取第二客户端上传的视频,并确定所述视频对应的资源包;
    上传所述资源包至中台服务器;
    接收所述中台服务器返回的所述资源包的资源包信息的第二标识;
    将所述视频的第一标识和所述资源包信息的所述第二标识发送至第一服务器。
  9. 如权利要求8所述的视频的共享方法,其中,所述资源包信息包括所述资源包在所述中台服务器上的地址,所述视频的类型以及版本信息。
  10. 如权利要求8或9所述的视频的共享方法,其中,所述中台服务器获取所述第二标识的过程为,
    存储所述资源包;
    确定所述资源包在所述中台服务器上的地址,所述视频的类型以及版本信息;
    根据所述资源包在所述中台服务器上的地址,所述视频的类型以及版本信息,生成所述资源包的资源包信息;
    为所述资源包信息分配所述第二标识。
  11. 如权利要求8-10任一项所述的视频的共享方法,其中,所述将所述视频的第一标识和所述资源包信息的所述第二标识发送至第一服务器,包括:
    将所述视频的第一标识和所述资源包信息的所述第二标识直接发送至所述第一服务器;
    或者,
    将所述视频的第一标识和所述资源包信息的所述第二标识通过所述中台服务器转发至所述第一服务器。
  12. 一种视频的制作装置,其中,应用于第一服务器,包括:
    第一获取模块,被配置为执行获取第一客户端的视频浏览请求,其中,所述视频浏览请求包括待浏览视频的第一标识;
    第二获取模块,被配置为执行基于所述第一标识从中台服务器获取所述待浏览视频的资源包信息,其中,所述资源包信息用于确定所述待浏览视频是否可以编辑或者拍摄同款视频;
    第一发送模块,被配置为执行发送所述待浏览视频和所述资源包信息至所述第一客户端;
    接收模块,被配置为执行接收所述第一客户端的第二请求,其中,所述第二请求包括编辑所述待浏览视频请求或者拍摄所述待浏览视频的同款视频请求;
    第三获取模块,被配置为执行基于所述资源包信息获取所述待浏览视频对应的资源包,响应于所述第二请求;
    第二发送模块,被配置为执行发送所述资源包至所述第一客户端。
  13. 如权利要求12所述的视频的制作装置,其中,所述第一获取模块被配置为执行,
    基于所述第一标识确定所述资源包信息的第二标识;
    基于所述第二标识从中台服务器获取所述资源包信息。
  14. 如权利要求12或13所述的视频的制作装置,其中,所述资源包信息包括所述资源包在所述中台服务器上的地址,所述待浏览视频的类型以及版本信息。
  15. 如权利要求12-14任一项所述的视频的制作装置,其中,
    所述第一发送模块,还被配置为执行向所述第一客户端发送拍摄同款选项显示指令,响应于所述资源包信息确定所述待浏览视频可以拍摄同款视频;
    所述第一发送模块,还被配置为执行向所述第一客户端发送编辑同款选项显示指令,响应于所述资源包信息确定所述待浏览视频可以编辑同款视频。
  16. 如权利要求12-15任一项所述的视频的制作装置,其中,响应于拍摄所述待浏览视频的同款视频请求,所述待浏览视频对应的资源包包括第一特效资源,所述第一特效资源包括以下特效资源中的至少一种:音乐资源、摄像头配置参数、美颜资源、美妆资源、美体资源、细调资源、滤镜资源、魔法表情资源和比例资源。
  17. 如权利要求12-16任一项所述的视频的制作装置,其中,响应于编辑所述待浏览视频请求,所述待浏览视频对应的资源包包括编辑模式资源和第二特效资源;
    所述编辑模式资源包括以下编辑资源中的至少一种:背景编辑资源以及裁剪方式资源;
    所述第二特效资源包括以下特效资源中的至少一种:美颜资源、滤镜资源、音乐资源、变速资源、贴纸资源、文字资源。
  18. 如权利要求12-17任一项所述的视频的制作装置,其中,所述待浏览视频的获取方式为,
    接收中台服务器转发的所述待浏览视频;或者,
    接收第二服务器发送的所述待浏览视频;或者,
    接收用户上报的所述待浏览视频。
  19. 一种视频的共享装置,其中,应用于第二服务器,包括:
    获取模块,被配置为执行获取第二客户端上报的视频,并确定所述视频对应的资源包;
    上传模块,被配置为执行上传所述资源包至中台服务器;
    接收模块,被配置为执行接收所述中台服务器返回的所述资源包的资源包信息的第二标识;
    发送模块,被配置为执行将所述视频的第一标识和所述资源包信息的所述第二标识发送至第一服务器。
  20. 如权利要求19所述的视频的共享装置,其中,所述资源包信息包括所述资源包在所述中台服务器上的地址,所述视频的类型以及版本信息。
  21. 如权利要求19或20所述的视频的共享装置,其中,所述中台服务器获取所述第二标识的过程为,
    存储所述资源包;
    确定所述资源包在所述中台服务器上的地址,所述视频的类型以及版本信息;
    根据所述资源包在所述中台服务器上的地址,所述视频的类型以及版本信息,生成所述资源包的资源包信息;
    为所述资源包信息分配所述第二标识。
  22. 如权利要求19-21任一项所述的视频的共享装置,其中,所述发送模块被配置为执行,
    将所述视频的第一标识和所述资源包信息的所述第二标识直接发送至所述第一服务器;
    或者,
    将所述视频的第一标识和所述资源包信息的所述第二标识通过所述中台服务器转发至所述第一服务器。
  23. 一种电子设备,其中,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    获取第一客户端的视频浏览请求,其中,所述视频浏览请求包括待浏览视频的第一标识;
    基于所述第一标识从中台服务器获取所述待浏览视频的资源包信息,其中,所述资源包信息用于确定所述待浏览视频是否可以编辑或者拍摄同款视频;
    发送所述待浏览视频和所述资源包信息至所述第一客户端;
    接收所述第一客户端的第二请求,其中,所述第二请求包括编辑所述待浏览视频请求或者拍摄所述待浏览视频的同款视频请求;
    基于所述资源包信息获取所述待浏览视频对应的资源包,响应于所述第二请求;
    发送所述资源包至所述第一客户端。
  24. 一种电子设备,其中,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    获取第二客户端上传的视频,并确定所述视频对应的资源包;
    上传所述资源包至中台服务器;
    接收所述中台服务器返回的所述资源包的资源包信息的第二标识;
    将所述视频的第一标识和所述资源包信息的所述第二标识发送至第一服务器。
  25. 一种存储介质,在所述存储介质中的指令由电子设备的处理器执行的情况下,使得电子设备能够执行以下步骤:
    获取第一客户端的视频浏览请求,其中,所述视频浏览请求包括待浏览视频的第一标识;
    基于所述第一标识从中台服务器获取所述待浏览视频的资源包信息,其中,所述资源包信息用于确定所述待浏览视频是否可以编辑或者拍摄同款视频;
    发送所述待浏览视频和所述资源包信息至所述第一客户端;
    接收所述第一客户端的第二请求,其中,所述第二请求包括编辑所述待浏览视频请求或者拍摄所述待浏览视频的同款视频请求;
    基于所述资源包信息获取所述待浏览视频对应的资源包,响应于所述第二请求;
    发送所述资源包至所述第一客户端。
  26. 一种存储介质,在所述存储介质中的指令由电子设备的处理器执行的情况下,使得电子设备能够执行以下步骤:
    获取第二客户端上传的视频,并确定所述视频对应的资源包;
    上传所述资源包至中台服务器;
    接收所述中台服务器返回的所述资源包的资源包信息的第二标识;
    将所述视频的第一标识和所述资源包信息的所述第二标识发送至第一服务器。
PCT/CN2021/102985 2020-08-03 2021-06-29 视频的制作方法及其装置、视频的共享方法及其装置 WO2022028151A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010768811.1 2020-08-03
CN202010768811.1A CN112087652A (zh) 2020-08-03 2020-08-03 视频的制作方法、共享方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022028151A1 true WO2022028151A1 (zh) 2022-02-10

Family

ID=73735252

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/102985 WO2022028151A1 (zh) 2020-08-03 2021-06-29 视频的制作方法及其装置、视频的共享方法及其装置

Country Status (2)

Country Link
CN (1) CN112087652A (zh)
WO (1) WO2022028151A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378901A (zh) * 2022-08-23 2022-11-22 北京达佳互联信息技术有限公司 作品发送方法、显示方法、终端和服务器
CN115396716A (zh) * 2022-08-23 2022-11-25 北京字跳网络技术有限公司 一种直播视频处理方法、装置、设备及介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087652A (zh) * 2020-08-03 2020-12-15 北京达佳互联信息技术有限公司 视频的制作方法、共享方法、装置、电子设备及存储介质
CN113411667A (zh) * 2021-06-19 2021-09-17 杭州影笑科技有限责任公司 一种应用于智能手机app视频片段编辑系统和优化方法
CN115623145A (zh) * 2021-07-12 2023-01-17 华为技术有限公司 视频拍摄方法及装置、电子设备和存储介质
CN113542902B (zh) * 2021-07-13 2023-02-24 北京字跳网络技术有限公司 一种视频处理方法、装置、电子设备和存储介质
CN113784173B (zh) * 2021-07-30 2023-04-28 北京达佳互联信息技术有限公司 视频播放方法、装置和电子设备
CN114528433B (zh) * 2022-01-14 2023-10-31 抖音视界有限公司 一种模板选择方法、装置、电子设备及存储介质
CN117891456A (zh) * 2022-10-08 2024-04-16 北京字跳网络技术有限公司 多媒体编辑文件的转换方法、装置、设备及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150221000A1 (en) * 2007-05-31 2015-08-06 Dynamic Video LLC System and method for dynamic generation of video content
CN108881766A (zh) * 2018-07-12 2018-11-23 北京微播视界科技有限公司 视频处理方法、装置、终端和存储介质
CN108900768A (zh) * 2018-07-12 2018-11-27 北京微播视界科技有限公司 视频拍摄方法、装置、终端、服务器和存储介质
CN109963171A (zh) * 2017-12-14 2019-07-02 腾讯科技(深圳)有限公司 多媒体信息传输方法、传输设备及存储介质
CN110870975A (zh) * 2019-11-18 2020-03-10 网易(杭州)网络有限公司 游戏直播的处理方法、装置、设备及计算机可读存储介质
CN112087652A (zh) * 2020-08-03 2020-12-15 北京达佳互联信息技术有限公司 视频的制作方法、共享方法、装置、电子设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776012B (zh) * 2016-11-28 2020-06-23 武汉秀宝软件有限公司 一种虚拟资源的管理方法及系统
CN108737903B (zh) * 2017-04-25 2020-12-25 腾讯科技(深圳)有限公司 一种多媒体处理系统及多媒体处理方法
CN109640173B (zh) * 2019-01-11 2020-09-15 腾讯科技(深圳)有限公司 一种视频播放方法、装置、设备及介质
CN110266971B (zh) * 2019-05-31 2021-10-08 上海萌鱼网络科技有限公司 一种短视频制作方法和系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150221000A1 (en) * 2007-05-31 2015-08-06 Dynamic Video LLC System and method for dynamic generation of video content
CN109963171A (zh) * 2017-12-14 2019-07-02 腾讯科技(深圳)有限公司 多媒体信息传输方法、传输设备及存储介质
CN108881766A (zh) * 2018-07-12 2018-11-23 北京微播视界科技有限公司 视频处理方法、装置、终端和存储介质
CN108900768A (zh) * 2018-07-12 2018-11-27 北京微播视界科技有限公司 视频拍摄方法、装置、终端、服务器和存储介质
CN110870975A (zh) * 2019-11-18 2020-03-10 网易(杭州)网络有限公司 游戏直播的处理方法、装置、设备及计算机可读存储介质
CN112087652A (zh) * 2020-08-03 2020-12-15 北京达佳互联信息技术有限公司 视频的制作方法、共享方法、装置、电子设备及存储介质

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378901A (zh) * 2022-08-23 2022-11-22 北京达佳互联信息技术有限公司 作品发送方法、显示方法、终端和服务器
CN115396716A (zh) * 2022-08-23 2022-11-25 北京字跳网络技术有限公司 一种直播视频处理方法、装置、设备及介质
CN115396716B (zh) * 2022-08-23 2024-01-26 北京字跳网络技术有限公司 一种直播视频处理方法、装置、设备及介质
CN115378901B (zh) * 2022-08-23 2024-03-26 北京达佳互联信息技术有限公司 作品发送方法、显示方法、终端和服务器

Also Published As

Publication number Publication date
CN112087652A (zh) 2020-12-15

Similar Documents

Publication Publication Date Title
WO2022028151A1 (zh) 视频的制作方法及其装置、视频的共享方法及其装置
JP7112508B2 (ja) 動画スタンプの生成方法並びにそのコンピュータプログラム及びコンピュータ装置
EP3713159B1 (en) Gallery of messages with a shared interest
US8965271B1 (en) Method and mechanism for coordinated capture and organization of multimedia data
WO2017177768A1 (zh) 一种信息处理方法及终端、计算机存储介质
CN105528427B (zh) 媒体文件处理方法、社交应用中的分享方法和装置
US11196962B2 (en) Method and a device for a video call based on a virtual image
WO2023045710A1 (zh) 多媒体显示及匹配方法、装置、设备及介质
CN109857311A (zh) 生成人脸三维模型的方法、装置、终端及存储介质
CN110956691A (zh) 一种三维人脸重建方法、装置、设备及存储介质
CN116458150A (zh) 屏幕记录摄像装置模式
CN116547717A (zh) 面部动画合成
CN110278140B (zh) 通讯方法及装置
CN108737903B (zh) 一种多媒体处理系统及多媒体处理方法
CN116783575A (zh) 媒体内容检测和管理
CN117043863A (zh) 在眼镜装置上记录增强现实内容
CN109218630A (zh) 一种多媒体信息处理方法及装置、终端、存储介质
Tolosana et al. An introduction to digital face manipulation
CN114880062B (zh) 聊天表情展示方法、设备、电子设备及存储介质
CN107872713A (zh) 短视频处理系统、方法及装置
CN109874024A (zh) 一种基于动态视频海报的弹幕处理方法、系统及存储介质
CN107733874A (zh) 信息处理方法、装置、计算机设备和存储介质
CN112597320A (zh) 社交信息生成方法、设备及计算机可读介质
CN108320331A (zh) 一种生成用户场景的增强现实视频信息的方法与设备
CN108600614A (zh) 一种图像处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21852707

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21852707

Country of ref document: EP

Kind code of ref document: A1