WO2023185488A1 - 素材包的生成方法、视频编辑方法、装置、设备及介质 - Google Patents

素材包的生成方法、视频编辑方法、装置、设备及介质 Download PDF

Info

Publication number
WO2023185488A1
WO2023185488A1 PCT/CN2023/081849 CN2023081849W WO2023185488A1 WO 2023185488 A1 WO2023185488 A1 WO 2023185488A1 CN 2023081849 W CN2023081849 W CN 2023081849W WO 2023185488 A1 WO2023185488 A1 WO 2023185488A1
Authority
WO
WIPO (PCT)
Prior art keywords
package
video
material package
target
editing
Prior art date
Application number
PCT/CN2023/081849
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 WO2023185488A1 publication Critical patent/WO2023185488A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • 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/439Processing of audio elementary streams
    • 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/439Processing of audio elementary streams
    • H04N21/4398Processing of audio elementary streams involving reformatting operations of audio signals
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Definitions

  • This application is based on the Chinese application with application number 202210320553.
  • the present disclosure relates to the field of data processing technology, and in particular, to a material package generation method, video editing method, device, equipment and medium.
  • Embodiments of the present disclosure provide a method for generating a material package.
  • the method is applied to a first client and includes: obtaining an editing record file of a target video, wherein the target video is synthesized into an initial version of the specified material through an editing operation.
  • the video obtained from the video, the editing record file includes editing record information used to record the editing operation, the initial video and the specified material; the target material and the application information of the target material are obtained based on the editing record file , wherein the application information includes editing record information of the target material in the target video, and the target material belongs to the designated material; and based on the target material and its application information, it is generated for video editing material pack.
  • Embodiments of the present disclosure also provide a video editing method.
  • the method is applied to a second client and includes: obtaining a video to be edited; and in response to receiving a material package application instruction, obtaining specified materials corresponding to the material package application instruction. package, wherein the specified material package is generated using any of the above material package generation methods; and the video to be edited is edited based on the designated material package.
  • Embodiments of the present disclosure also provide a device for generating a material package.
  • the device is applied to the first client and includes: a file acquisition module for acquiring the editing record file of the target video, wherein the target video is obtained through The editing operation synthesizes the designated material onto the original video to obtain the video.
  • the editing record file includes the editing record information used to record the editing operation as well as the initial video and the designated material; an information acquisition module is used to obtain the video based on the Editing the record file to obtain the target material and the application information of the target material, wherein the application information includes the editing record information of the target material in the target video, and the target material belongs to the specified material; and
  • a material package generation module configured to generate a material package for video editing based on the target material and its application information.
  • Embodiments of the present disclosure also provide a video editing device, which is applied to a second client and includes: a video acquisition module for acquiring the video to be edited; a material package acquisition module for responding to receiving the material package application Instruction to obtain the designated material package corresponding to the material package application instruction, wherein the designated material package is generated by using the material package generation method described in any of the above; and a video editing module for based on the designated The material package edits the video to be edited.
  • An embodiment of the present disclosure also provides an electronic device.
  • the electronic device includes: a processor; a memory used to store instructions executable by the processor; and the processor is used to read the instruction from the memory.
  • the instructions can be executed, and the instructions are executed to implement the material package generation method or the video editing method provided by the embodiments of the present disclosure.
  • An embodiment of the present disclosure also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to execute the method for generating a material package or the video editing method provided by the embodiment of the present disclosure.
  • An embodiment of the present disclosure also provides a computer program, including: instructions, which when executed by a processor cause the processor to execute the method for generating a material package or the video editing method provided by the embodiment of the present disclosure.
  • Figure 1 is a schematic flowchart of a method for generating a material package provided by an embodiment of the present disclosure
  • Figure 2 is a schematic diagram of a material package protocol provided by an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of a material package generation process provided by an embodiment of the present disclosure.
  • Figure 4 is a schematic diagram of a local material processing flow provided by an embodiment of the present disclosure.
  • Figure 5 is a schematic flowchart of a video editing method provided by an embodiment of the present disclosure.
  • Figure 6 is a schematic diagram of a material package application process provided by an embodiment of the present disclosure.
  • Figure 7 is a schematic structural diagram of a device for generating a material package provided by an embodiment of the present disclosure.
  • Figure 8 is a schematic structural diagram of a video editing device provided by an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the inventor of the present disclosure found that in related technologies, the way for creators to make material packages is relatively cumbersome, such as first making an effect video and then deducting materials from the effect video to obtain a material package.
  • the present disclosure provides a method for generating a material package to simplify the production process of the material package.
  • Figure 1 is a schematic flowchart of a method for generating a material package provided by an embodiment of the present disclosure.
  • This method can be applied to the first client, which can be implemented through a mobile phone, a computer, etc.
  • the embodiments of this disclosure do not limit the implementation of the first client.
  • a production-side user (such as a creator of a material package) can generate a material package using the first client.
  • the method mainly includes the following steps S102 to S106.
  • Step S102 Obtain the editing record file of the target video.
  • the target video is a video obtained by synthesizing the specified material onto the original video through editing operations.
  • the editing record file of the target video may be obtained in response to receiving a user-initiated material package generation instruction.
  • the target video is a video obtained by synthesizing the specified material onto the initial video through editing operations. That is, the target video may be a video obtained by editing the initial video by the user (the creator of the material package) using specified materials of the material package to be produced.
  • the target video may also be called the sample video of the package.
  • the edit record file includes edit record information for recording the editing operation as well as the initial video and the specified material.
  • the editing process of the user's video production can be completely recorded to obtain the editing operation sequence for the initial video, the materials used for each editing operation in the editing operation sequence, and the materials.
  • the specific usage method in the initial video, etc. thus forming an editing record file.
  • the editing record file is a protocol used by video editing software to record the video editing status. It can store all the information of the user during the video editing process, such as elements added by the user during the video editing process and parameters adjusted. , user operations, etc., when the user reopens the video, the editing record file corresponding to the video can be automatically read, thereby restoring the last editing state.
  • the creator of the material package does not need to extract materials from the video, but can directly obtain the editing record file of the video to generate the material package by editing the record file.
  • Step S104 Obtain the target material and the application information of the target material based on the editing record file.
  • the application information includes editing record information of the target material in the target video.
  • the target material belongs to the specified material.
  • all materials in the specified materials may be used as target materials.
  • the target material can be determined according to user needs, and there is no restriction here.
  • the application information of the target material can be directly extracted from it.
  • the application information includes editing record information of the target material in the target video.
  • the editing record information may include one or more of the following: position information, rotation information, zoom information, and track information.
  • the application information can also include the acquisition path of the target material.
  • the acquisition path is used to indicate how to obtain the material. For example, when the material is uploaded locally, the acquisition path of the material can be a file acquisition path, and when the material is downloaded from the Internet, the acquisition path of the material can be a network acquisition path.
  • the materials in the embodiments of the present disclosure include but are not limited to one or more of videos, pictures, stickers, text, music, special effects, and filters.
  • the editing record information includes, for example, one or more of the position information of the material in the video, zoom information, and track information, which may be specifically determined according to the material category.
  • the corresponding application information can include location information, zoom information, and track information.
  • the material when it is a picture, sticker, or text, it can further include rotation information. ;
  • the corresponding application information can include track information.
  • the above are examples only and should not be considered a limitation.
  • Step S106 Generate a material package for video editing based on the target material and its application information.
  • the first client can automatically package the target material and its application information to generate a material package for video editing.
  • the generated material package can be sent to the server, so that the server can send the material package Posted on designated platform.
  • the material package is shared through the designated platform, and other users can download and use the material package on the designated platform.
  • embodiments of the present disclosure provide a method for generating the above-mentioned material package.
  • the method is applied to the first client and includes: obtaining an editing record file of a target video, wherein the target video is composed of specified materials through editing operations.
  • the video obtained from the initial video, the editing record file includes the editing record information used to record the editing operation, the initial video and the specified material; the target material and the target material are obtained based on the editing record file
  • Application information wherein the application information includes the editing record information of the target material in the target video, and the target material belongs to the specified material; and generate a user-defined application based on the target material and its application information.
  • Video editing package For material package generators, there is no need to extract materials one by one from the video to create a material package. The material package can be generated directly based on the target material and application information in the video editing record file, which simplifies the production process of the material package.
  • the step of obtaining the target material and the application information of the target material based on editing the record file may include the following two main steps (1) to (2).
  • Step (1) use all materials in the specified materials as target materials, or use the materials carrying the publishing license logo among the target materials as target materials. That is to say, in practical applications, it can be implemented with reference to the following two implementation examples:
  • Implementation example 1 Use all materials in the specified materials as target materials. If not specified, all specified materials can be used as target materials by default.
  • Implementation example 2 Use the material that carries the publishing license mark in the target material as the target material.
  • creators can be provided with material check options. The creator can check the specified materials used to produce the target video, and assign a publishing license mark to the selected specified materials. This method fully considers the needs of creators and only releases materials that the creator allows. Some private materials that the creator does not want to be widely used may not be released.
  • the above implementation example one and/or implementation example two can be flexibly selected according to the actual situation, or the user can be provided with the option of "publish all materials” or “publish only some materials”.
  • the user selects "publish all materials”
  • the above implementation example 2 can be adopted.
  • the user the creator of the material package
  • the material check option can assign a publishing license mark to the specified material that he wants to publish.
  • the user's wishes can be fully respected and only the user's Package the materials you want to upload.
  • the local materials are materials uploaded by the user through the first client, such as images uploaded by the creator in a local photo album, or stickers, videos and other materials uploaded by the creator in a local folder.
  • local materials are not materials publicly downloaded from the Internet. It is the material stored locally in the terminal. Creators can specify the materials that can be packaged into the material package according to their needs, which provides greater flexibility.
  • Step (2) use the editing record information of the target material in the target video recorded in the editing record file as the application information of the target material, where the editing record information includes one or more of the following: position information, rotation information, Zoom information, orbit information.
  • the editing record information corresponding to different types of materials may be different. Each material can correspond to one or more types of editing record information, which is not limited here.
  • the application information of the target material also includes the acquisition path of the target material.
  • the target material can not be packaged directly in the material package, but the identification and application information of the target material ( (including the acquisition path and editing record information of the target material) are stored in the material package so that users of the material package can clearly know how to obtain the target material and how to use the target material.
  • the target materials usually contain At least one local material.
  • the creators of the material package will not only use local materials, but also use remote materials. That is to say, the material package they produce not only contains the creator's local materials, but also contains the creator's downloaded materials through the Internet.
  • remote material original remote material
  • the remote material is material stored in the server and can be publicly downloaded.
  • the embodiment of the present disclosure can directly identify the material type (local/remote) in the target material and perform corresponding processing.
  • embodiments of the present disclosure provide specific implementation methods for generating a material package for video editing based on the target material and its application information, which can be implemented with reference to the following steps A to C.
  • Step A Upload local materials in the target material to the server, so that the server converts the local materials into new remote materials, where the remote materials are materials stored in the server and can be publicly downloaded.
  • the local materials in the target materials can be automatically uploaded to the designated server, and then the server will publish the local materials on the designated platform.
  • the published local materials will be the new remote materials.
  • the storage and publishing of materials can be performed through the same server or through different servers. For example, local materials are uploaded to the storage server, and then the storage server further sends the local materials to the material server on the basis of storing the local materials, and the material server publishes the local materials on the designated platform.
  • Step B Receive the remote material identifier corresponding to the new remote material returned by the server, replace the acquisition path recorded in the application information of the local material with the remote material identifier of the new remote material, and use the replaced application information As the application information corresponding to the new remote material.
  • the server When the server publishes local materials as remote materials, it will assign a corresponding material identifier to the remote material.
  • This material identifier can be called a remote material identifier or a resource ID.
  • the remote material identifier is also the identity of the remote material.
  • the remote material identifiers corresponding to different remote materials are different. It is understandable that for the creator of the material package, he uses the materials stored locally to create the material package. Therefore, the file acquisition path is recorded for the local materials in the editing record file, and if the local materials are publicly released as For new remote materials, when other users download the material package, they only need to know the remote material identification of the remote material in the material package. Through the remote material identification, they can download the corresponding remote material from the server. Through the above This way, other users can easily use the local materials of the material package creator.
  • the editing record information in the application information remains unchanged, that is, for the local material in the target material, the corresponding application information includes the editing record information of the local material in the target video (referred to as Material editing record information) and the file acquisition path of the local material.
  • the application information corresponding to the remote material includes the above material editing record information and the remote material identification corresponding to the remote material.
  • both the remote material identifier and the file acquisition path can be used to characterize the specific acquisition method of the material, and both belong to the expression form of the acquisition path of the target material contained in the application information.
  • Step C Generate a material package for video editing based on the new remote material and its application information, as well as the original remote material and its application information in the target material.
  • the original remote material is the material downloaded from the server by the first client in the process of generating the target video.
  • the local material and application information can be obtained directly based on the editing record file, and the local material can be published as a new remote material.
  • the acquisition path in the application information of the local material can be replaced with the remote material identifier, and the application information The rest of the content remains unchanged, and finally a material package can be generated based on the new remote material and its application information.
  • For the generator of the material package there is no need to extract materials one by one from the video to make the material package, which simplifies the The production process of the package, and there is no need to store materials in the material package. It only needs to store the acquisition path of the materials and the editing and recording information.
  • the memory required is very small, making it easy to download and disseminate.
  • the embodiments of the present disclosure redefine a material package protocol, and the material package protocol clearly indicates the application method of materials.
  • the material package protocol can also be understood as the integrated content of the above-mentioned material application information
  • the material package provided by the embodiment of the present disclosure includes a material collection and a material package protocol (that is, the application information of the material).
  • Figure 2 for a schematic diagram of a material package protocol, which illustrates the application information corresponding to various materials that the material package may contain.
  • Figure 2 briefly illustrates the material types such as videos, pictures, stickers, text, music, special effects, etc., as well as the application information corresponding to each material type.
  • the file path is the acquisition path of the aforementioned local material
  • the resource ID is the aforementioned remote material identification
  • the file path/resource ID both indicate the acquisition method of the material.
  • Figure 2 is only a simple example and should not be regarded as a limitation. In actual applications, the materials are not limited to this, and may also include filters, sound effects, etc.
  • the elements listed in Figure 2 are all optional and can be assembled, and may not be available at the same time. They can be customized according to actual needs and specific video editing software. All in all, the material package needs to record all the information of the material so that the effect of each material can be fully restored in subsequent applications.
  • the material package listed in Figure 2 is the original material package of the creator, which has not yet been released, and the file path of the local material has not been replaced, so it is shown that some materials can correspond to the file path (that is, local material). Once the local material is released, its corresponding file path will be replaced by the remote material ID of the corresponding remote material. All materials included in the final material package will correspond to the resource ID and will no longer correspond to the file path. .
  • the material package provided by the embodiment of the present disclosure also includes the above-mentioned material package protocol on the basis of containing the material collection, that is, it includes the materials and the corresponding Application information.
  • the application information indicates how to use the materials and how to obtain the materials, so that the downloader of the material package clearly knows how each material is used in the video, and can completely restore the effect of the material package's creator using the material in the video.
  • the original editing record file can be kept unchanged, a copy of the editing record file can be created, and then the resulting material can be directly processed on the basis of the copy.
  • Package that is, transform the editing record file into a material package, so that the downloader of the material package can directly apply the material package (the modified editing record file).
  • the downloader of the material package no longer needs to add each material in the material package to the video one by one. Instead, after downloading the material package, the material package can be directly used as an editing record file in the video that needs to be edited. Completely restore the specific ways in which creators use materials in videos (such as position, rotation, scaling, orbit, etc.).
  • Step a Copy the edit record file to obtain a copy of the edit record file.
  • Step b perform the following processing on the copy: delete the local material contained in the copy, replace the acquisition path recorded in the application information of the local material with the remote material identifier of the new remote material, and replace the replaced application
  • the information is used as the application information corresponding to the new remote material recorded in the copy.
  • the local material and related information can be deleted, and the acquisition path corresponding to the local material can be replaced with the remote material identifier according to the mapping relationship, and the rest can remain unchanged.
  • the steps of generating a material package for video editing based on the new remote material and its application information include: generating a material package for video editing based on the processed copy, where the processed copy contains The remote material identification and corresponding application information of the new remote material. For example, it can be implemented with reference to the following steps (1) to (3).
  • Step (1) Obtain the specified material package cover and upload the material package cover to the server.
  • the package cover can be specified by the creator. If not specified, the default package cover can be used.
  • the target video is a sample video edited with multiple materials. You can confirm whether to put the target video in the material package according to actual needs.
  • the target video may be placed in a material package.
  • the target video may not be included in the material package, but the target video may be used as a material independent of and associated with the material package, thereby making the capacity of the material package as small as possible. Other users can simply download the package and then download or view the target video associated with it online when they want to see examples of its use.
  • the above material version information and material compatibility information can be considered as extra.json extension files, which are used to record some special logic for processing material packages, such as the specific application methods of material packages on different terminals.
  • the size of the material that can be used normally under iOS is 200*200
  • the size that can be used normally under Android is 300*300.
  • Step (3) Pack and compress the material package cover, the processed copy and the obtained material package optional information to obtain a compressed package, and use the compressed package as a material package for video editing.
  • the material package cover, the processed copy, and the obtained material package optional information can be packaged to generate a Zip package, and then published to the backend server, thereby realizing the release and distribution of the material package.
  • embodiments of the present disclosure provide a technical implementation method of replacing the acquisition path recorded in the application information of the local material with the remote material identifier of the new remote material, including: replacing the acquisition path recorded in the application information of the local material. Path deletion; and in the application information of the local material, change the identification field of the local material to the new remote element.
  • the remote material identifier of the material In order to be able to identify the download source of each remote material, in some embodiments of the present disclosure, the remote material in the target material carries a material source identifier, and the material source identifier is used to indicate the material storage location of the remote material. Material source identification can be used to distinguish the platform from which remote material is downloaded.
  • the remote material identification of the new remote material can also be obtained through the server.
  • the target platform to which the remote material is to be downloaded can be determined based on the material source identifier, and then the corresponding remote material can be downloaded from the target platform based on the remote material identifier. That is, an additional field for identifying the download source can be added to each remote material in the material package.
  • the material source identification field is set to source_plaform, and the value of source_plaform can be, for example, 0, 1, 2, 3, 4, etc. Different values represent different download platforms.
  • the material acquisition platform can be determined based on source_platform, and the corresponding remote materials can be downloaded from the material acquisition platform according to remote_id to obtain all the materials in the material package, and the material package can be directly applied based on the material package protocol. .
  • embodiments of the present disclosure provide an example of converting the creator's existing editing record file into a new material package for release.
  • FIG 3 illustrates the process of converting the editing record file into a new material package.
  • the specific method of converting files into material packages, and the execution subjects involved in each part are clearly marked.
  • the figure shows that the terminal can parse the editing record file to obtain the local materials, original remote materials and material package videos, covers, etc. used by the creator to edit the video; the local materials will be published as remote materials through the server, and then After obtaining the remote material identifier fed back by the server, modify the draft protocol (that is, edit the record file).
  • the modification method is as described above.
  • the acquisition path of local materials is modified to the remote material identification corresponding to the published remote material, and the material package video, cover, etc. can be packaged with the original remote material and the modified draft protocol after being uploaded to the server. Get a new material package, and finally publish the new material package through the server.
  • the focus of Figure 3 is to illustrate that different types of materials (local materials, remote materials, material package videos or covers) will use different processing methods in the process of generating material packages. For example, local materials need to be published to remote materials through the server.
  • the original remote material can be directly involved in the packaging without any other processing; the material package video and cover are After uploading to the server for storage, it participates in packaging.
  • the material package video and cover are After uploading to the server for storage, it participates in packaging.
  • not all of the above three types of materials are available.
  • some creators only use local materials (such as local videos, local music, local stickers, text, etc.) for video editing, so there will be no such materials in the material package.
  • Original remote materials such as stickers, special effects, filters, text templates, music, sound effects, etc.
  • some creators may choose not to package the material package videos in the material package, so there may not be material package videos, etc. But in any case, for creators to produce material packages, local materials will be involved in the material package.
  • embodiments of the present disclosure provide a schematic flow diagram of local material processing as shown in Figure 4, illustrating a schematic flow diagram of publishing local materials as new remote materials.
  • the editing record file contains local materials (local pictures, local audio) and original remote materials (remote stickers, special effects, etc.).
  • Local materials can be uploaded to the storage server and published to the material server for public use. For example, after local materials are uploaded to the storage server, the corresponding URL and KEY can be determined, and then published to the material server based on the URL and KEY to form remote materials. After being published by the server, the remote material identification (remote_id) of the server can be obtained, and the remote material is used to replace the local material.
  • remote material identification remote material identification
  • the generated material package contains all remote materials, specifically, the original local pictures. has been replaced with remote pictures, and local audio has been replaced with remote music.
  • Figure 4 illustrates that a new material source identifier (source_platform) can also be added for new remote materials to identify the source of the material.
  • the above method further includes: in response to receiving the material package title information and the material package summary information, associating the material package title information and the material package summary information with the material package.
  • a material package title box and a material package overview box can be provided on the user terminal interface, so that the creator of the material package can enter the title of the material package he created in the material package title box, and in the material package title box Enter the theme description of the material package in the package overview box so that other users who download the material package can more clearly understand the theme style of the material package and quickly determine whether they need to download the material package based on their needs.
  • the above-mentioned material package generation method provided by the embodiments of the present disclosure eliminates the need for the material package generator to extract materials one by one from the video to create the material package, which simplifies the production process of the material package and improves the quality of the material package. wrapped Generation efficiency, and for users of material packages, it is more convenient to use material packages because the material packages carry application information of the materials.
  • the material package not only records the material collection, but also contains the material package protocol. Specifically, it records the location information, zoom information, track information and other usage record information of each material, as well as the specific acquisition method of the material (such as remote material identification). ).
  • the material package is directly based on editing the record file. Other users can directly apply the material package as a whole. Unlike related technologies, the material package only contains a collection of materials. Users of the material package do not know the specific details of each material after getting the material package. In terms of application and the need for repeated adjustments, the above methods provided by the embodiments of the present disclosure improve the convenience of use of the material package.
  • the inventor of the present disclosure also found that in related technologies, the material package produced is only a collection of various materials. After other users get the material package, they do not know how to specifically apply the materials in it, and it is also very inconvenient to use the material package.
  • embodiments of the present disclosure also provide a video editing method to improve the ease of use of the material package.
  • embodiments of the present disclosure provide a video editing method.
  • This method applies to the second client.
  • the second client can be implemented by, for example, a mobile phone, a computer, etc., and the embodiment of the present disclosure does not limit the implementation manner of the second client.
  • Consumer users (such as users of material packages) can use the second client to obtain the material package, and use the material package to perform video editing.
  • the method mainly includes the following steps S502 to S506.
  • Step S502 Obtain the video to be edited.
  • the video to be edited may be the original video uploaded by the user to be edited.
  • Step S504 in response to receiving the material package application instruction, obtain the designated material package corresponding to the material package application instruction.
  • the specified material package is generated using any of the material package generating methods mentioned above in the embodiments of this disclosure, and will not be described again here.
  • multiple target videos may be displayed on the interface of the second client in response to detecting the trigger operation of the material package function, and each target video corresponds to a material package; and in response to detecting the trigger operation of the target video Select the operation to confirm that the material package application instruction is received, and use the material package corresponding to the selected target video as the designated material package corresponding to the material package application instruction.
  • the video editing software can provide users with video editing functions, and display logos of multiple video editing functions on the interface of the second client.
  • the video editing function includes the material package function.
  • the target video is the video generated and published by the creator of the material package.
  • the target video is a video obtained by synthesizing the target material onto the original video through editing operations. Each target video corresponds to a material package.
  • the creator of one material package can generate and publish multiple material packages, and the different target videos presented by the video editing software on the interface of the second client may be generated and published by the creators of different material packages.
  • users of the material package can intuitively feel the effect of the material package applied to the video, and thus select the desired material package.
  • the material package corresponding to the target video can be directly used as the designated material package corresponding to the material package application instruction. Very convenient, fast and easy to implement.
  • obtaining the designated material package corresponding to the material package application instruction includes: sending the identifier of the designated material package to the server, so as to download the designated material package corresponding to the material package application instruction through the server.
  • the actual contents of the material package can be stored on the server side.
  • the second client can directly download the contents of the designated material package from the server.
  • the material package can Directly contains material and application information.
  • Step S506 Edit the video to be edited based on the specified material package.
  • editing the video to be edited based on the specified material package includes: synthesizing the materials in the specified material package onto the video to be edited according to the application information of the materials in the designated material package.
  • the second client can automatically synthesize the materials in the material package into the video to be edited based on the content contained in the specified material package according to the application information, without requiring users of the material package to use the materials in the material package one by one. Edit videos with materials, improving the convenience of using the material package.
  • embodiments of the present disclosure provide a video editing method, wherein the method is applied to the second client and includes: obtaining the video to be edited; in response to receiving the material package application instruction, obtaining the material Package the designated material package corresponding to the application instruction, wherein the designated material package is generated using the material package generation method as described above; and edit the video to be edited based on the designated material package.
  • the embodiment of the present disclosure further provides a schematic diagram of the material package application process as shown in Figure 6, illustrating the specific application process of other users after downloading the designated material package.
  • Figure 6 further illustrates that the material server can be requested to download the remote pictures and remote music according to the picture remote_id and the music remote_id, thereby realizing the restoration of the edited record file.
  • Figure 6 is only an illustrative illustration. The focus is on showing the restoration process of local pictures/local audio published as new remote materials during the use of the material package. Therefore, the original remote materials (such as remote stickers) are not shown. , special effects) and other materials application process.
  • the original remote materials of the material package also need to request the material server to download specific remote materials with the corresponding remote_id.
  • the editing record file records "local pictures” and "local audio", which are mainly used to represent the local pictures/audio provided by the creator.
  • the obtained The materials in the material package are remote materials.
  • the material package obtained by the downloader of the material package is essentially an editing record file. As shown in Figures 3 and 4, it only replaces the local material with the remote material and replaces the identification field of the editing record file. It is a remote material identifier. In essence, the format of the edit record file has not been changed. Therefore, the format of the edit record file restored from the material package is the same as the original edit record file. It can be applied with one click and directly in the material. The downloader of the package needs to restore the effect of each material in the target video on the edited video. In this way, it can improve the convenience for users to use material packages for video editing.
  • FIG. 7 for a schematic structural diagram of a device for generating a material package. It mainly includes: file acquisition module 702, information acquisition module 704 and material package generation module 706.
  • the file acquisition module 702 is used to obtain the editing record file of the target video, wherein the target video is a video obtained by synthesizing the specified material onto the initial video through editing operations, and the editing record file includes a file for recording the editing operations. Edit record information as well as the initial video and the specified material.
  • the information acquisition module 704 is configured to obtain the target material and the application information of the target material based on the editing record file, where the application information includes the editing record information of the target material in the target video, and the The target material belongs to the specified material.
  • the material package generation module 706 is used to generate a material package for video editing based on the target material and its application information.
  • the information acquisition module 704 is specifically configured to: use all the materials in the designated materials as target materials, or use the materials carrying a publishing permission identification in the target materials as target materials; and use the editing Record the editing record information of the target material in the target video recorded in the file as the target Application information of the material, wherein the editing record information includes one or more of the following: position information, rotation information, zoom information, and track information.
  • the application information of the target material also includes an acquisition path of the target material.
  • the material package generation module 706 is specifically used to: upload local materials in the target materials to the server, so that the server converts the local materials into new remote materials, where the remote materials are stored in Materials in the server that can be publicly downloaded; receiving the remote material identification corresponding to the new remote material returned by the server, and replacing the acquisition path recorded in the application information of the local material with the new The remote material identification of the remote material, and use the replaced application information as the application information corresponding to the new remote material; and based on the new remote material and its application information, and the target The original remote material and its application information in the material are used to generate a material package for video editing.
  • the material package generation module 706 is specifically configured to: copy the editing record file to obtain a copy of the editing record file; and process the copy as follows: convert the content contained in the copy. Deleting the local material, and replacing the acquisition path recorded in the application information of the local material with the remote material identifier of the new remote material, and using the replaced application information as all records recorded in the copy. Describe the application information corresponding to the new remote material.
  • the material package generation module 706 is configured to generate a material package for video editing based on the processed copy, wherein the processed copy contains the remote material of the new remote material. Identification and corresponding application information.
  • the material package generation module 706 is specifically used to: obtain a specified material package cover, and upload the material package cover to the server; obtain preset material package optional information, wherein the material package
  • the package optional information includes one or more of the following: the target video, material version information, and material compatibility information; and the cover of the material package, the processed copy, and the acquired material package. Select the information for packaging and compression processing to obtain a compressed package, and use the compressed package as a material package for video editing.
  • the material package generation module 706 is specifically configured to: delete the acquisition path recorded in the application information of the local material; and change the identification field of the local material in the application information of the local material. is the remote material identifier of the new remote material.
  • the remote material in the target material carries a material source identifier, and the material source identifier is used to indicate the material storage location of the remote material.
  • the device further includes an association module configured to: in response to receiving the material package title information and the material package summary information, associate the material package title information and the material package summary information with the material package Make an association.
  • the device further includes a sending module, configured to send the generated material package to a server, so that the server publishes the material package on a designated platform.
  • the device for generating a material package provided by an embodiment of the present disclosure can execute the method for generating a material package provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method.
  • the video editing device includes: a video acquisition module 802 , a material package acquisition module 804 and a video editing module 806 .
  • Video acquisition module 802 is used to acquire the video to be edited.
  • the material package acquisition module 804 is configured to obtain the designated material package corresponding to the material package application instruction in response to receiving the material package application instruction, wherein the designated material package adopts any of the above materials provided by the embodiment of the present disclosure. Generated by the package generation method.
  • the video editing module 806 is used to edit the video to be edited based on the specified material package.
  • the device further includes: a determining module, configured to display multiple target videos on the interface of the second client in response to detecting a triggering operation of the material package function, each of the target videos corresponding to A material package; and in response to monitoring the selection operation of the target video, determining that the material package application instruction is received, and using the material package corresponding to the selected target video as the designated material package corresponding to the material package application instruction.
  • a determining module configured to display multiple target videos on the interface of the second client in response to detecting a triggering operation of the material package function, each of the target videos corresponding to A material package.
  • the material package acquisition module 804 is specifically configured to send the identification of the designated material package to a server, so as to download the designated material package corresponding to the material package application instruction through the server.
  • the video editing module 806 is specifically configured to synthesize the materials in the specified material package onto the video to be edited according to the application information of the materials in the designated material package.
  • the video editing device provided by the embodiments of the present disclosure can execute the video editing method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
  • An embodiment of the present disclosure provides an electronic device.
  • the electronic device includes: a processor; a memory for storing executable instructions by the processor; and a processor for reading executable instructions from the memory and executing the instructions to implement any of the above.
  • a method of generating a material package or a video editing method That is to say, both the above-mentioned first client and the second client can be implemented through the electronic device.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. As shown in FIG. 9 , electronic device 900 includes one or more processors 901 and memory 902 .
  • the processor 901 may be a central processing unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 900 to perform desired functions.
  • CPU central processing unit
  • the processor 901 may be a central processing unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 900 to perform desired functions.
  • Memory 902 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory.
  • the volatile memory may include, for example, random access memory (RAM) and/or cache memory (cache), etc.
  • the non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
  • One or more computer program instructions can be stored on the computer-readable storage medium, and the processor 901 can run the program instructions to implement the material package generation method or video editing of the embodiments of the present disclosure described above. method or other desired functionality.
  • Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
  • the electronic device 900 may further include an input device 903 and an output device 904, and these components are interconnected through a bus system and/or other forms of connection mechanisms (not shown).
  • the input device 903 may also include, for example, a keyboard, a mouse, and the like.
  • the output device 904 can output various information to the outside, including determined distance information, direction information, etc.
  • the output device 904 may include, for example, a display, a speaker, a printer, a communication network and remote output devices connected thereto, and the like.
  • the electronic device 900 may also include any other appropriate components depending on the specific application.
  • embodiments of the present disclosure may also be computer program products, which include computer program instructions that, when run by a processor, cause the processor to execute the materials provided by the embodiments of the present disclosure.
  • Package generation method or video editing method include
  • the computer program product may be written with program code for performing operations of embodiments of the present disclosure in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc. , also includes conventional procedural programming languages, such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
  • embodiments of the present disclosure may also be a computer-readable storage medium (eg, a non-transitory computer-readable storage medium) having computer program instructions stored thereon, which when executed by a processor cause the The processor executes the method for generating a material package provided by an embodiment of the present disclosure.
  • a computer-readable storage medium eg, a non-transitory computer-readable storage medium
  • the computer-readable storage medium may be any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may include, for example, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • An embodiment of the present disclosure also provides a computer program product, which includes a computer program/instruction.
  • the computer program/instruction is executed by a processor, the method for generating a material package or the video editing method in the embodiment of the present disclosure is implemented.
  • An embodiment of the present disclosure also provides a computer program, including: instructions, which when executed by a processor, cause the processor to perform the method of generating a material package as described above, or to perform the video processing as described above. Edit method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本公开实施例涉及一种素材包的生成方法、视频编辑方法、装置、设备及介质。素材包的生成方法包括:获取目标视频的编辑记录文件,其中,目标视频是通过编辑操作将指定素材合成到初始视频上而得到的视频,编辑记录文件包括用于记录编辑操作的编辑记录信息以及初始视频和指定素材;基于编辑记录文件获取目标素材以及目标素材的应用信息,其中,应用信息包含有目标素材在目标视频中的编辑记录信息,且目标素材属于指定素材;和基于目标素材及其应用信息生成用于视频编辑的素材包。

Description

素材包的生成方法、视频编辑方法、装置、设备及介质
相关申请的交叉引用
本申请是以申请号为202210320553.X,申请日为2022年3月29日的中国申请为基础,并主张其优先权,该中国申请的公开内容在此作为整体引入本申请中。
技术领域
本公开涉及数据处理技术领域,尤其涉及一种素材包的生成方法、视频编辑方法、装置、设备及介质。
背景技术
视频创作者为了增强视频表现力,在制作视频的过程中通常会借助诸如文字、贴纸、音乐、特效等素材,而且为了保证效果,同一视频所采用的素材尽量都采取同一主题或同一风格,但由于同一主题或风格的素材比较难找,素材包应运而生,创作者可以把属于同一主题或风格的素材打包,分享给其它用户。
发明内容
本公开实施例提供了一种素材包的生成方法,所述方法应用于第一客户端,包括:获取目标视频的编辑记录文件,其中,所述目标视频是通过编辑操作将指定素材合成到初始视频上而得到的视频,编辑记录文件包括用于记录所述编辑操作的编辑记录信息以及所述初始视频和所述指定素材;基于所述编辑记录文件获取目标素材以及所述目标素材的应用信息,其中,所述应用信息包含有所述目标素材在所述目标视频中的编辑记录信息,且所述目标素材属于所述指定素材;和基于所述目标素材及其应用信息生成用于视频编辑的素材包。
本公开实施例还提供了一种视频编辑方法,所述方法应用于第二客户端,包括:获取待编辑视频;响应于接收到素材包应用指令,获取所述素材包应用指令对应的指定素材包,其中,所述指定素材包是采用上述任一项素材包的生成方法生成的;和基于所述指定素材包对所述待编辑视频进行编辑。
本公开实施例还提供了一种素材包的生成装置,所述装置应用于第一客户端,包括:文件获取模块,用于获取目标视频的编辑记录文件,其中,所述目标视频是通过 编辑操作将指定素材合成到初始视频上而得到的视频,编辑记录文件包括用于记录所述编辑操作的编辑记录信息以及所述初始视频和所述指定素材;信息获取模块,用于基于所述编辑记录文件获取目标素材以及所述目标素材的应用信息,其中,所述应用信息包含有所述目标素材在所述目标视频中的编辑记录信息,且所述目标素材属于所述指定素材;和素材包生成模块,用于基于所述目标素材及其应用信息生成用于视频编辑的素材包。
本公开实施例还提供了一种视频编辑装置,所述装置应用于第二客户端,包括:视频获取模块,用于获取待编辑视频;素材包获取模块,用于响应于接收到素材包应用指令,获取所述素材包应用指令对应的指定素材包,其中,所述指定素材包是采用上述任一项所述的素材包的生成方法生成的;和视频编辑模块,用于基于所述指定素材包对所述待编辑视频进行编辑。
本公开实施例还提供了一种电子设备,所述电子设备包括:处理器;用于存储所述处理器可执行指令的存储器;所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现如本公开实施例提供的素材包的生成方法或者视频编辑方法。
本公开实施例还提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行如本公开实施例提供的素材包的生成方法或者视频编辑方法。
本公开实施例还提供了一种计算机程序,包括:指令,所述指令当由处理器执行时使所述处理器执行如本公开实施例提供的素材包的生成方法或者视频编辑方法。
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的一种素材包的生成方法的流程示意图;
图2为本公开实施例提供的一种素材包协议示意图;
图3为本公开实施例提供的一种素材包生成流程示意图;
图4为本公开实施例提供的一种本地素材处理流程示意图;
图5为本公开实施例提供的一种视频编辑方法的流程示意图;
图6为本公开实施例提供的一种素材包应用流程示意图;
图7为本公开实施例提供的一种素材包的生成装置的结构示意图;
图8为本公开实施例提供的一种视频编辑装置的结构示意图;
图9为本公开实施例提供的一种电子设备的结构示意图。
具体实施方式
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。
本公开的发明人发现,在相关技术中,创作者制作素材包的方式较为繁琐,诸如需要先制作效果视频,再从效果视频中扣取素材得到素材包。
鉴于此,本公开提供了一种素材包的生成方法,以简化素材包的制作过程。
图1为本公开实施例提供的一种素材包的生成方法的流程示意图。该方法可应用于第一客户端,第一客户端诸如可以通过手机、计算机等实现。本公开实施例对第一客户端的实现方式不进行限制。生产端用户(诸如素材包的创作者)可以利用第一客户端生成素材包。如图1所示,该方法主要包括如下步骤S102至步骤S106。
步骤S102,获取目标视频的编辑记录文件。目标视频是通过编辑操作将指定素材合成到初始视频上而得到的视频。
在一些实施方式中,可以响应于接收到用户发起的素材包生成指令,获取目标视频的编辑记录文件。其中,目标视频是通过编辑操作将指定素材合成到初始视频上而得到的视频。也即,目标视频可以是用户(素材包的创作者)采用待制作素材包的指定素材对初始视频进行编辑得到的视频。目标视频也可称为素材包的示例视频。
在本公开的一些实施例中,编辑记录文件包括用于记录编辑操作的编辑记录信息以及初始视频和指定素材。诸如,在本公开实施例中的视频编辑软件中,可以将用户制作视频的编辑过程进行完整记录,得到针对初始视频的剪辑操作序列,在剪辑操作序列中的每个剪辑操作所用的素材以及素材在初始视频中的具体使用方式等,从而形成编辑记录文件。例如,编辑记录文件是视频编辑软件为了记录视频编辑状态而使用的一种协议,其可存储用户在编辑视频过程中的所有信息,诸如,用户在视频编辑过程中所添加的元素、调整的参数、用户的操作等,当用户重新打开视频时,即可自动读取该视频对应的编辑记录文件,从而还原上一次的编辑状态。
在本公开实施例中,无需素材包的创作者从视频中抠取素材,而是可直接获取视频的编辑记录文件,以通过编辑记录文件生成素材包。
步骤S104,基于编辑记录文件获取目标素材以及目标素材的应用信息。应用信息包含有目标素材在目标视频中的编辑记录信息。
这里,目标素材属于指定素材。在一些实施示例中,可以将指定素材中的全部素材均作为目标素材。考虑到素材包的创作者可能不希望将所有素材都打包分享,因此也可以仅将素材包的创作者从指定素材中选择的部分素材作为目标素材。目标素材可以根据用户需求而确定,在此不进行限制,在已知编辑记录文件的基础上,可以直接从中提取目标素材的应用信息。应用信息包含目标素材在目标视频中的编辑记录信息。编辑记录信息诸如可以包括以下中的一种或多种:位置信息、旋转信息、缩放信息、轨道信息。在此基础上,应用信息还可以包含目标素材的获取路径。该获取路径用于指示获取素材的方式。诸如素材是本地上传的素材时,该素材的获取路径可以为文件获取路径,而素材是从网络上下载的素材时,该素材的获取路径可以为网络获取路径。
另外,本公开实施例中的素材包括但不限于视频、图片、贴纸、文字、音乐、特效、滤镜中的一种或多种。编辑记录信息诸如包括素材在视频中的位置信息、缩放信息、轨道信息中的一种或多种,具体可根据素材类别确定。诸如,素材为视频、图片、贴纸或文字时,对应的应用信息都可包含有位置信息、缩放信息和轨道信息,在此基础上,素材为图片、贴纸和文字时,还可以进一步包含旋转信息;素材为音乐或特效时,对应的应用信息则可包含有轨道信息。以上仅为示例,不应当被视为限制。
步骤S106,基于目标素材及其应用信息生成用于视频编辑的素材包。已知目标素材及其应用信息后,第一客户端可以自动基于目标素材及其应用信息进行打包,生成用于视频编辑的素材包。后续可以将生成的素材包发送给服务器,以使服务器将该素材包发 布在指定平台。通过指定平台实现素材包分享,其他用户可以在指定平台上下载并使用该素材包。
综上,本公开实施例提供的上述素材包的生成方法,所述方法应用于第一客户端,包括:获取目标视频的编辑记录文件,其中,所述目标视频是通过编辑操作将指定素材合成到初始视频上而得到的视频,编辑记录文件包括用于记录所述编辑操作的编辑记录信息以及所述初始视频和所述指定素材;基于所述编辑记录文件获取目标素材以及所述目标素材的应用信息,其中,所述应用信息包含有所述目标素材在所述目标视频中的编辑记录信息,且所述目标素材属于所述指定素材;和基于所述目标素材及其应用信息生成用于视频编辑的素材包。对于素材包的生成者而言,无需再从视频中逐一抠取素材制作素材包,直接根据视频编辑记录文件中的目标素材及应用信息即可生成素材包,简化了素材包的制作过程。
在一些实施方式中,基于编辑记录文件获取目标素材以及目标素材的应用信息的步骤,可以包括如下两个主要步骤(1)至(2)。
步骤(1),将指定素材中的所有素材均作为目标素材,或者,将目标素材中携带有发布许可标识的素材作为目标素材。也即,在实际应用中,可以参照如下两种实施示例实现:
实施示例一:将指定素材中的所有素材均作为目标素材。倘若没有指定,可以默认将所有的指定素材均作为目标素材。
实施示例二:将目标素材中携带有发布许可标识的素材作为目标素材。在实际应用中,可以为创作者提供素材勾选项,创作者可以对其制作目标视频所使用的指定素材进行勾选,为勾选的指定素材赋予发布许可标识。这种方式充分考虑到创作者的需求,仅发布创作者允许的素材,对于一些创作者并不希望被广泛使用的私人素材则可不发布。
可以根据实际情况灵活选用上述实施示例一和/或实施示例二实现,也可以为用户提供“将所有素材均发布”或者“仅发布部分素材”的选项,在用户选择“将所有素材均发布”时,则可采用上述实施示例一实现,在用户选择“仅发布部分素材”的选项时,则可采用上述实施示例二实现。尤其对于目标素材中包含有创作者的本地素材的情况下,用户(素材包的创作者)可以通过素材勾选项为想要发布的指定素材赋予发布许可标识,可以充分尊重用户意愿,仅将用户想要上传的素材进行打包。其中,本地素材即为用户通过第一客户端上传的素材,诸如,为创作者在本地相册中上传的图像,或者创作者在某本地文件夹中上传的贴纸、视频等素材。换言之,本地素材并非网络公开下载的素材, 而是终端本地存储的素材。创作者可以根据需求而指定可以打包进素材包的素材,灵活性更强。
步骤(2),将编辑记录文件中记录的目标素材在目标视频中的编辑记录信息作为目标素材的应用信息,其中,编辑记录信息包括以下中的一种或多种:位置信息、旋转信息、缩放信息、轨道信息。在实际应用中,不同类型的素材所对应的编辑记录信息可能并不相同,每种素材都可以对应一种或多种编辑记录信息,在此不进行限制。
为了充分有效地节约素材包的内存,目标素材的应用信息还包含目标素材的获取路径,在此基础上可以不将目标素材直接打包在素材包中,而是将目标素材的标识以及应用信息(包含有该目标素材的获取路径以及编辑记录信息)存放在素材包中,以便于素材包的使用者可以清楚获知如何获取目标素材,以及如何使用目标素材。
素材包的创作者在创作素材包的过程中,大多会使用个人独创的本地素材,诸如独创的图片、贴纸、音乐、小视频等,从而为其它用户提供新鲜素材,因此目标素材通常都会包含有至少一种本地素材。而且在很多情况下,素材包的创作者不仅会利用本地素材,还会利用远端素材,也即其所制作的素材包中不仅包含有创作者的本地素材,还包含有创作者通过网络下载的远端素材(原有远端素材),其中,远端素材为存储在服务器中且可被公开下载的素材。本公开实施例可直接识别出目标素材中的素材类型(本地/远端),并进行相应处理。诸如,为了节约素材包的内存,可以不在素材包中存放本地素材,而是先将本地素材发布在服务器处,将本地素材作为新的远端素材,之后素材包中只需存放原有远端素材以及新的远端素材(本地素材)的标识以及包含有素材获取路径和编辑记录信息的应用信息。这种处理方式所需的素材包容量很小,非常便于下载以及传播。
在上述基础上,本公开实施例给出了基于目标素材及其应用信息生成用于视频编辑的素材包的具体实施方式,具体可参照如下步骤A至步骤C实现。
步骤A,将目标素材中的本地素材上传至服务器,以使服务器将本地素材转换为新的远端素材,其中,远端素材为存储在服务器中且可被公开下载的素材。
在实际应用中,可以将目标素材中的本地素材自动上传至指定的服务器,然后由服务器将本地素材在指定平台上发布,发布后的本地素材即为新的远端素材。素材的存储以及发布可以均通过同一服务器执行,也可通过不同的服务器执行。诸如,将本地素材上传至存储服务器,然后由存储服务器在存储本地素材的基础上,进一步将本地素材发送给素材服务器,由素材服务器将本地素材在指定平台上发布。
步骤B,接收服务器返回的新的远端素材对应的远端素材标识,将本地素材的应用信息中记录的获取路径替换为新的远端素材的远端素材标识,并将替换后的应用信息作为新的远端素材对应的应用信息。
服务器在将本地素材发布为远端素材时,会为远端素材新赋予相应的素材标识,该素材标识可以称为远端素材标识或者资源ID,远端素材标识也即远端素材的身份标识,不同远端素材对应的远端素材标识不同。可以理解的是,对于素材包的创作者而言,其使用存储在本地的素材进行素材包创作,因此在编辑记录文件中针对本地素材记录的是文件获取路径,而倘若将本地素材公开发布为新的远端素材,其他用户在下载素材包时只需要获知素材包中的远端素材的远端素材标识即可,通过远端素材标识便可从服务器下载到相应的远端素材,通过上述方式即可使得其他用户能够便捷地利用到素材包创作者的本地素材。
另外应当注意的是,应用信息中的编辑记录信息仍旧保持不变,也即,对于目标素材中的本地素材而言,其对应的应用信息包括本地素材在目标视频中的编辑记录信息(简称为素材编辑记录信息)和本地素材的文件获取路径,在通过服务器将本地素材转变为远端素材后,该远端素材对应的应用信息包括上述素材编辑记录信息和远端素材对应的远端素材标识。在本公开实施例中,远端素材标识和文件获取路径均可用于表征素材的具体获取方式,均属于应用信息中所包含的目标素材的获取路径的表达形式。
步骤C,基于新的远端素材及其应用信息,以及目标素材中原有远端素材及其应用信息生成用于视频编辑的素材包。其中,原有远端素材为第一客户端在生成目标视频的过程中从服务器下载的素材。
由于已将创作者的本地素材转为他人均可使用的远端素材,在此基础上则可基于新的远端素材及其应用信息,以及原有远端素材及其应用信息可直接生成用于视频编辑的素材包。可以理解的是,通过上述方式所得的素材包中的素材均为远端素材,一部分是创作者将本地素材通过服务器发布而成的新的远端素材,一部分为创作者通过网络下载的原有远端素材。
在上述方式中,可以直接基于编辑记录文件获取本地素材以及应用信息,并将本地素材发布为新的远端素材,将本地素材的应用信息中的获取路径替换为远端素材标识,而应用信息的其余内容保持不变,最后基于新的远端素材及其应用信息即可生成素材包。对于素材包的生成者而言,无需再从视频中逐一抠取素材制作素材包,简化了素材 包的制作过程,而且素材包中无需存储素材,只需存储素材的获取路径以及编辑记录信息即可,所需内存很小,便于下载和传播。
在前述基础上,可认为本公开实施例重新定义了一种素材包协议,素材包协议清楚指示了素材的应用方式。换言之,素材包协议也可以理解为上述素材应用信息的集成内容,而本公开实施例提供的素材包则包含素材集合以及素材包协议(即素材的应用信息)。可参见图2所示的一种素材包协议示意图,示意出了素材包可能包含的多种素材对应的应用信息。图2简单示意出了视频、图片、贴纸、文字、音乐、特效等素材类型,以及每种素材类型对应的应用信息。其中,文件路径即为前述本地素材的获取路径,资源ID即为前述远端素材标识,文件路径/资源ID都指示了素材的获取方式。应当注意的是,图2仅是简单示例,不应当被视为限制,在实际应用中素材不局限于此,诸如可能还包含滤镜、音效等。而且在图2中列出的元素都是可选可组装的,不一定同时具备,具体可根据实际需求以及具体的视频编辑软件进行定制。总而言之,素材包需要记录素材的所有信息,以便后续应用时可完全还原各素材的效果。另外,图2中列出的素材包是创作者最初的素材包,还未经发布,本地素材的文件路径还未经替换,因此显示有一些素材可对应文件路径(即可为本地素材),一旦本地素材发布,则其对应的文件路径则被替换为相应的远端素材的远端素材标识,最终形成的素材包中所包含的所有素材对应的都是资源ID,不会再对应文件路径。在实际应用中,相比于现有素材包仅是素材集合,本公开实施例提供的素材包,在包含素材集合的基础上还包含有上述素材包协议,也即,包含有素材以及相应的应用信息。应用信息指示了如何使用素材以及素材的获取方式,从而使素材包的下载者清楚获知各素材在视频中的应用方式,能够完全还原素材包的创作者在视频中使用素材的效果。
在一些实施方式中,为了进一步提升素材包的生成效率以及使用便捷性,可以保留原有编辑记录文件不被更改,而为编辑记录文件创建副本,然后直接在副本的基础上进行处理得到的素材包,也即将编辑记录文件改造为素材包,以便素材包的下载者可以直接应用该素材包(改造后的编辑记录文件)。具体的,素材包的下载者无需再逐一将素材包中各个素材添加至视频中,而是下载了该素材包后,即可直接将素材包作为编辑记录文件使用在所需编辑的视频中,将创作者在视频中使用素材的具体方式(诸如位置、旋转、缩放、轨道等)达到完全还原。基于此,上述将本地素材的应用信息中记录的获取路径替换为新的远端素材的远端素材标识,并将替换后的应用信息作为新的远端素材对应的应用信息的步骤,可以参照如下步骤a至步骤b执行。
步骤a,对编辑记录文件进行复制,得到编辑记录文件的副本。
步骤b,对副本进行如下处理:将副本中所包含的本地素材删除,以及将本地素材的应用信息中记录的获取路径替换为新的远端素材的远端素材标识,并将替换后的应用信息作为副本中记录的新的远端素材对应的应用信息。在一些具体的实施方式中,可以删除本地素材及相关信息,并根据映射关系将本地素材对应的获取路径替换为远端素材标识,其余均可保持不变。通过这种简单巧妙的方式,无需重写应用逻辑,即可利用已有的编辑记录文件更改为可直接应用的素材包。
在前述基础上,基于新的远端素材及其应用信息生成用于视频编辑的素材包的步骤,包括:基于处理后的副本生成用于视频编辑的素材包,其中,处理后的副本包含有新的远端素材的远端素材标识及相应的应用信息。示例性地,可以参照如下步骤(1)至(3)实现。
步骤(1),获取指定的素材包封面,并将素材包封面上传至服务器。素材包封面可以由创作者指定,如果未指定则可选用默认素材包封面。
步骤(2),获取预设的素材包可选信息,其中,素材包可选信息包括以下中的一种或多种:目标视频、素材版本信息、素材兼容信息。目标视频即为经多种素材编辑得到的示例视频,可以根据实际需求确认是否将目标视频放在素材包中。在一些实施方式中,可以将目标视频放在素材包中。另一些实施方式中,可以令素材包中不包含目标视频,而是将目标视频作为独立于素材包并与素材包关联的材料,从而使素材包的容量尽可能小。其他用户可以仅下载素材包,然后在需要查看素材包的使用示例时再下载或在线查看与其关联的目标视频。上述素材版本信息和素材兼容信息均可认为属于extra.json扩展文件,用于记录一些处理素材包的特殊逻辑,诸如素材包在不同终端下的具体应用方式。示例性地,素材在iOS下可正常使用的大小为200*200,但在android下可正常使用的大小则为300*300。
步骤(3),将素材包封面、处理后的副本和获取到的素材包可选信息进行打包压缩处理以得到压缩包,将压缩包作为用于视频编辑的素材包。示例性地,可以将素材包封面、处理后的副本和获取到的素材包可选信息打包生成Zip包,然后发布至后台服务器,从而实现素材包的发布与分发。
进一步,本公开实施例提供了将本地素材的应用信息中记录的获取路径替换为新的远端素材的远端素材标识的一种技术实现方式,包括:将本地素材的应用信息中记录的获取路径删除;和在本地素材的应用信息中,将本地素材的标识字段更改为新的远端素 材的远端素材标识。为了能够标识每个远端素材的下载来源,在本公开一些实施例中,目标素材中的远端素材携带有素材来源标识,素材来源标识用于指示远端素材的素材存储位置。素材来源标识可用于区分下载远端素材的平台。在将目标素材中的本地素材通过服务器转换为新的远端素材后,新的远端素材的远端素材标识也可通过服务器获取。在实际应用中,可以根据素材来源标识确定待下载该远端素材的目标平台,然后再根据远端素材标识从目标平台上下载相应的远端素材。也即,可以在素材包中为每个远端素材附加用于标识下载来源的额外字段,示例性地,将素材来源标识字段设为source_plaform,source_plaform的取值诸如可以为0、1、2、3、4等,不同的取值代表不同的下载平台。在实际应用中可用于下载素材的平台(或服务器)可以有多种,该取值可作为素材下载平台的标识。为便于理解,以下对将目标本地素材的标识字段更改为远端素材标识(remote_id)以及新增素材来源标识(source_platform)进行示例性说明:
1)video(视频)素材:使用remote_id替换原materials.videos中的material_id,增加source_platform=1;
2)audio(音乐)素材:使用remote_id替换原materials.audios中的music_id,增加source_platform=2;
3)image(图片)素材:使用remote_id替换原materials.image中的image_id,增加source_platform=1;
4)sticker(贴纸)素材:使用remote_id替换原materials.image中的sticker_id,增加source_platform=1;
5)text(文本)素材:先删除文本片段,新增文字模板片段,source_platform=1。
上述以上仅为示例性说明,不应当被视为限制。在素材包的应用过程中,可根据source_platform确定素材获取平台,根据remote_id从素材获取平台下载相应的远端素材,即可得到素材包中的所有素材,并基于素材包协议对素材包进行直接应用。
在前述基础上,本公开实施例提供了将创作者现有的编辑记录文件转换为新素材包进行发布的示例,参见图3所示的一种素材包生成流程示意图,示意出了将编辑记录文件转换为素材包的具体方式,且清楚标注了各部分涉及的执行主体。在该图中示意出终端可基于编辑记录文件解析,得到创作者编辑视频所采用的本地素材、原远端素材和素材包视频、封面等;本地素材会通过服务器发布为远端素材,然后再在获取到服务器反馈的远端素材标识后修改草稿协议(即为编辑记录文件),具体的,修改方式即为前述将 本地素材的获取路径修改为经发布得到的远端素材对应的远端素材标识,而素材包视频、封面等则可以在上传至服务器后,与原远端素材、修改后的草稿协议进行打包,得到新素材包,最后再通过服务器发布该新素材包。应当注意的是,图3重点在于阐述不同类型的材料(本地素材、远端素材、素材包视频或封面)在生成素材包过程中会采用不同的处理方式,诸如本地素材需要通过服务器发布为远端素材,以及针对该本地素材修改协议(将编辑记录文件中该本地素材的获取路径修改为远端素材标识);原远端素材直接参与打包即可,无需其它处理;素材包视频、封面则在上传至服务器进行存储后再参与打包。在实际应用中,不一定以上三种类型材料全部都具备,诸如,部分创作者仅采用本地素材(诸如本地视频、本地音乐、本地贴纸、文本等)进行视频编辑,因此素材包中不会有原远端素材(诸如贴纸、特效、滤镜、文字模板、音乐、音效等);部分创作者可能选择不将素材包视频打包在素材包中,因此也可能不会有素材包视频等。但无论何种情况,对于创作者制作素材包而言,素材包中会涉及到本地素材。
进一步,在前述基础上,本公开实施例提供了如图4所示的一种本地素材处理流程示意图,示意出将本地素材发布为新的远端素材的流程示意。如图4所示,编辑记录文件中包含有本地素材(本地图片、本地音频)还有原远端素材(远端贴纸、特效等)。可将本地素材上传至存储服务器,并发布至素材服务器,以便公众使用。例如,本地素材在上传至存储服务器后可确定相应的URL和KEY,并根据URL和KEY发布至素材服务器,形成远端素材。在经服务器发布之后,即可获取服务器的远端素材标识(remote_id),并采用远端素材替换本地素材,因此生成的素材包中包含的都是远端素材,具体的,原有的本地图片已被替换为远端图片,本地音频被替换为远端音乐。另外,图4中示意出还可为新的远端素材新增素材来源标识(source_platform),以标识素材来源。
在一些实施例中,上述方法还包括:响应于接收到素材包标题信息以及素材包概述信息,将素材包标题信息和素材包概述信息与素材包进行关联。
在实际应用中,可以在用户终端的界面上提供素材包标题框和素材包概述框,以便于素材包的创作者可在素材包标题框中输入其所创作的素材包的标题,以及在素材包概述框中输入素材包的主题描述等,以便使其它下载素材包的用户能够更清楚地获知素材包的主题风格,从而根据需求快速判别是否需要下载该素材包。
综上所述,本公开实施例提供的上述素材包生成方法,对于素材包的生成者而言,无需再从视频中逐一抠取素材制作素材包,简化了素材包的制作过程,提升了素材包的 生成效率,而对于素材包的使用者而言,由于素材包中携带有素材的应用信息,因此使用素材包更为方便。
创作者在采用素材制作效果视频(前述目标视频),即可根据需求确定所需的目标本地素材,并实现一键发布素材包,非常方便快捷。而素材包中不仅记录有素材集合,而且还可以包含素材包协议,具体而言记录每一个素材的位置信息,缩放信息,轨道信息等使用记录信息以及素材的具体获取方式(诸如远端素材标识)。其他用户在一键应用时,可以自动根据标识获取素材,并根据使用记录信息直接还原每一个素材在视频中的展示效果。且素材包是直接基于编辑记录文件所得,其他用户可以直接将素材包整体应用,与相关技术中素材包仅包含素材集合,素材包的使用者在拿到素材包后不清楚每个素材具体如何应用,还需要反复调整而言,本公开实施例提供的上述方式提升了素材包的使用便捷性。
本公开的发明人还发现,在相关技术中,制作得到的素材包仅是各种素材的集合,其他用户拿到素材包后不知如何具体应用其中的素材,使用素材包也非常不方便。
鉴于此,本公开的实施例还提供一种视频编辑方法,以提升素材包的使用便捷性。
在前述素材包的生成方法的基础上,本公开实施例提供了一种视频编辑方法。该方法应用于第二客户端。第二客户端诸如可以通过手机、计算机等实现,本公开实施例对第二客户端的实现方式不进行限制。消费端用户(诸如素材包的使用者)可以利用第二客户端获取素材包,并利用素材包进行视频编辑。如图5所示,该方法主要包括如下步骤S502至步骤S506。
步骤S502,获取待编辑视频。待编辑视频可以是用户上传的待编辑的原始视频。
步骤S504,响应于接收到素材包应用指令,获取素材包应用指令对应的指定素材包。指定素材包是采用本公开实施例前述的任一项素材包的生成方法生成的,在此不再赘述。
在一些具体的实施示例中,可以响应于监测到素材包功能的触发操作,在第二客户端的界面上展示多个目标视频,每个目标视频对应一个素材包;和响应于监测到目标视频的选择操作,确定接收到素材包应用指令,且将被选择的目标视频对应的素材包作为素材包应用指令对应的指定素材包。
在实际应用中,视频编辑软件可以给用户提供视频编辑功能,并将多种视频编辑功能的标识展示在第二客户端的界面上。视频编辑功能包含有素材包功能。当检测到用户(素材包的使用者)点击素材包功能的标识或按键后,即可认为监测到素材包功能的触 发操作,进而在第二客户端的界面上展示多个目标视频。目标视频即为素材包的创作者生成并发布的视频。目标视频是通过编辑操作将目标素材合成到初始视频上而得到的视频。每个目标视频对应一个素材包。可以理解的是,一个素材包的创作者可以生成并发布多个素材包,视频编辑软件呈现在第二客户端的界面上的不同目标视频可能是由不同的素材包的创作者生成并发布的,在此不进行限定。通过将多个目标视频呈现在界面上的方式,便于素材包的使用者可以直观感受到素材包应用在视频中的效果,从而选择所需的素材包。在本公开实施例中,当监测到用户点击目标视频时,即认为用户需要该目标视频对应的素材包,因此可以直接将该目标视频对应的素材包作为素材包应用指令对应的指定素材包,非常方便快捷,且便于实现。
在一些实施例中,获取素材包应用指令对应的指定素材包包括:将指定素材包的标识发送给服务器,以通过服务器下载素材包应用指令对应的指定素材包。在实际应用中,可以将素材包的实际内容都存储在服务器侧,在确定用户所需的指定素材包时,第二客户端直接从服务器下载该指定素材包的内容即可,素材包中可直接包含有素材及应用信息。
步骤S506,基于指定素材包对待编辑视频进行编辑。
在一些实施例中,基于指定素材包对待编辑视频进行编辑包括:根据指定素材包中的素材的应用信息,将指定素材包中的素材合成到待编辑视频上。在实际应用中,第二客户端可以基于指定素材包中所包含的内容,自动将素材包中的素材按照应用信息合成在待编辑视频中,无需素材包的使用者再逐一采用素材包中的素材对视频进行编辑,提升了素材包的使用便捷性。
综上所述,本公开的实施例提供了一种视频编辑方法,其中,所述方法应用于第二客户端,包括:获取待编辑视频;响应于接收到素材包应用指令,获取所述素材包应用指令对应的指定素材包,其中,所述指定素材包是采用如前所述的素材包的生成方法生成的;和基于所述指定素材包对所述待编辑视频进行编辑。通过上述视频编辑方式,对于素材包的使用者而言,由于素材包中携带有素材的应用信息,可以直接基于素材包进行视频编辑,因此使用素材包更为方便。
为便于理解,在获取到指定素材包之后,本公开实施例进一步提供了一种如图6所示的素材包应用流程示意图,示意出其他用户在下载指定素材包之后的具体应用过程。在图4的基础上,在图6中进一步示意出可根据图片remote_id以及音乐remote_id请求素材服务器下载得到远端图片和远端音乐,从而实现编辑记录文件的还原。应当注意的 是,图6仅为示例性说明,重点在于表现被发布为新的远端素材的本地图片/本地音频在素材包使用过程中的还原流程,因此未示意原有远端素材(诸如远端贴纸、特效)等素材的应用过程。在实际情况下,素材包的原有远端素材也是需要凭借相应的remote_id请求素材服务器下载具体的远端素材。另外,在图6中编辑记录文件记录的是“本地图片”“本地音频”,主要用于表现其实质为创作者提供的本地图片/音频,但对于素材包的下载者而言,所得到的素材包(实质也为编辑记录文件)中的素材均为远端素材。
如图6所示,素材包的下载者获取的素材包实质为编辑记录文件,而如图3和图4所示,仅是将本地素材替换为远端素材以及将编辑记录文件的标识字段替换为远端素材标识,本质上编辑记录文件的格式没有被改动,因此,素材包还原而成的编辑记录文件的格式与原有的编辑记录文件的格式是一样,可以一键应用,直接在素材包的下载者所需编辑的视频上还原各个素材在目标视频中的效果。通过这种方式,可提升用户使用素材包进行视频编辑的便捷性。
对应于前述素材包的生成方法,本公开实施例提供了一种素材包的生成装置,该装置可应用于第一客户端,参见图7所示的一种素材包的生成装置的结构示意图,主要包括:文件获取模块702、信息获取模块704和素材包生成模块706。
文件获取模块702,用于获取目标视频的编辑记录文件,其中,所述目标视频是通过编辑操作将指定素材合成到初始视频上而得到的视频,编辑记录文件包括用于记录所述编辑操作的编辑记录信息以及所述初始视频和所述指定素材。
信息获取模块704,用于基于所述编辑记录文件获取目标素材以及所述目标素材的应用信息,其中,所述应用信息包含有所述目标素材在所述目标视频中的编辑记录信息,且所述目标素材属于所述指定素材。
素材包生成模块706,用于基于所述目标素材及其应用信息生成用于视频编辑的素材包。
对于素材包的生成者而言,通过上述装置,无需再从视频中逐一抠取素材制作素材包,简化了素材包的制作过程,而对于素材包的使用者而言,由于素材包中携带有素材的应用信息,因此使用素材包更为方便。
在一些实施方式中,信息获取模块704具体用于:将所述指定素材中的所有素材均作为目标素材,或者,将所述目标素材中携带有发布许可标识的素材作为目标素材;和将编辑记录文件中记录的所述目标素材在所述目标视频中的编辑记录信息作为所述目标 素材的应用信息,其中,所述编辑记录信息包括以下中的一种或多种:位置信息、旋转信息、缩放信息、轨道信息。
在一些实施方式中,所述目标素材的应用信息还包含所述目标素材的获取路径。
素材包生成模块706具体用于:将所述目标素材中的本地素材上传至服务器,以使所述服务器将所述本地素材转换为新的远端素材,其中,所述远端素材为存储在所述服务器中且可被公开下载的素材;接收所述服务器返回的所述新的远端素材对应的远端素材标识,将所述本地素材的应用信息中记录的获取路径替换为所述新的远端素材的远端素材标识,并将替换后的所述应用信息作为所述新的远端素材对应的应用信息;和基于所述新的远端素材及其应用信息,以及所述目标素材中原有远端素材及其应用信息生成用于视频编辑的素材包。
在一些实施方式中,素材包生成模块706具体用于:对所述编辑记录文件进行复制,得到所述编辑记录文件的副本;和对所述副本进行如下处理:将所述副本中所包含的本地素材删除,以及将所述本地素材的应用信息中记录的获取路径替换为所述新的远端素材的远端素材标识,并将替换后的所述应用信息作为所述副本中记录的所述新的远端素材对应的应用信息。
在一些实施方式中,素材包生成模块706用于基于处理后的所述副本生成用于视频编辑的素材包,其中,所述处理后的副本包含有所述新的远端素材的远端素材标识及相应的应用信息。
在一些实施方式中,素材包生成模块706具体用于:获取指定的素材包封面,并将所述素材包封面上传至所述服务器;获取预设的素材包可选信息,其中,所述素材包可选信息包括以下中的一种或多种:所述目标视频、素材版本信息、素材兼容信息;和将所述素材包封面、处理后的所述副本和获取到的所述素材包可选信息进行打包压缩处理以得到压缩包,将压缩包作为用于视频编辑的素材包。
在一些实施方式中,素材包生成模块706具体用于:将所述本地素材的应用信息中记录的获取路径删除;和在所述本地素材的应用信息中,将所述本地素材的标识字段更改为所述新的远端素材的远端素材标识。
在一些实施方式中,所述目标素材中的远端素材携带有素材来源标识,所述素材来源标识用于指示所述远端素材的素材存储位置。
在一些实施方式中,所述装置还包括关联模块,用于:响应于接收到素材包标题信息以及素材包概述信息,将所述素材包标题信息和所述素材包概述信息与所述素材包进行关联。
在一些实施方式中,所述装置还包括发送模块,用于:将生成的所述素材包发送给服务器,以使所述服务器将所述素材包发布在指定平台。
本公开实施例所提供的素材包的生成装置可执行本公开任意实施例所提供的素材包的生成方法,具备执行方法相应的功能模块和有益效果。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置实施例的具体工作过程,可以参考方法实施例中的对应过程,在此不再赘述。
对应于前述视频编辑方法,本公开实施例提供了一种视频编辑装置,该装置可应用于第二客户端。参见图8所示的一种视频编辑装置的结构示意图,视频编辑装置包括:视频获取模块802、素材包获取模块804和视频编辑模块806。
视频获取模块802,用于获取待编辑视频。
素材包获取模块804,用于响应于接收到素材包应用指令,获取所述素材包应用指令对应的指定素材包,其中,所述指定素材包是采用本公开实施例提供的上述任一项素材包的生成方法生成的。
视频编辑模块806,用于基于所述指定素材包对所述待编辑视频进行编辑。
通过上述视频编辑装置,对于素材包的使用者而言,由于素材包中携带有素材的应用信息,可以直接基于素材包进行视频编辑,因此使用素材包更为方便。
在一些实施方式中,所述装置还包括:确定模块,用于响应于监测到素材包功能的触发操作,在所述第二客户端的界面上展示多个目标视频,每个所述目标视频对应一个素材包;和响应于监测到目标视频的选择操作,确定接收到素材包应用指令,且将被选择的目标视频对应的素材包作为所述素材包应用指令对应的指定素材包。
在一些实施方式中,素材包获取模块804具体用于:将所述指定素材包的标识发送给服务器,以通过所述服务器下载所述素材包应用指令对应的指定素材包。
在一些实施方式中,视频编辑模块806具体用于:根据所述指定素材包中的素材的应用信息,将所述指定素材包中的素材合成到所述待编辑视频上。
本公开实施例所提供的视频编辑装置可执行本公开任意实施例所提供的视频编辑方法,具备执行方法相应的功能模块和有益效果。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置实施例的具体工作过程,可以参考方法实施例中的对应过程,在此不再赘述。
本公开实施例提供了一种电子设备,电子设备包括:处理器;用于存储处理器可执行指令的存储器;处理器,用于从存储器中读取可执行指令,并执行指令以实现上述任一项素材包的生成方法或者视频编辑方法。也即,上述第一客户端和第二客户端均可通过该电子设备实现。
图9为本公开实施例提供的一种电子设备的结构示意图。如图9所示,电子设备900包括一个或多个处理器901和存储器902。
处理器901可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其他形式的处理单元,并且可以控制电子设备900中的其他组件以执行期望的功能。
存储器902可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序指令,处理器901可以运行所述程序指令,以实现上文所述的本公开的实施例的素材包的生成方法或者视频编辑方法或者其他期望的功能。在所述计算机可读存储介质中还可以存储诸如输入信号、信号分量、噪声分量等各种内容。
在一个示例中,电子设备900还可以包括:输入装置903和输出装置904,这些组件通过总线系统和/或其他形式的连接机构(未示出)互连。
此外,该输入装置903还可以包括例如键盘、鼠标等等。
该输出装置904可以向外部输出各种信息,包括确定出的距离信息、方向信息等。该输出装置904可以包括例如显示器、扬声器、打印机、以及通信网络及其所连接的远程输出设备等等。
当然,为了简化,图9中仅示出了该电子设备900中与本公开有关的组件中的一些,省略了诸如总线、输入/输出接口等等的组件。除此之外,根据具体应用情况,电子设备900还可以包括任何其他适当的组件。
除了上述方法和设备以外,本公开的实施例还可以是计算机程序产品,其包括计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本公开实施例所提供的素材包的生成方法或者视频编辑方法。
所述计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。
此外,本公开的实施例还可以是计算机可读存储介质(例如,非瞬时性计算机可读存储介质),其上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本公开实施例所提供的素材包的生成方法。
所述计算机可读存储介质可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。
本公开实施例还提供了一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现本公开实施例中的素材包的生成方法或视频编辑方法。
本公开实施例还提供了一种计算机程序,包括:指令,所述指令当由处理器执行时使所述处理器执行如前所述的素材包的生成方法,或者执行如前所述的视频编辑方法。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原 理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (20)

  1. 一种素材包的生成方法,其中,所述方法应用于第一客户端,包括:
    获取目标视频的编辑记录文件,其中,所述目标视频是通过编辑操作将指定素材合成到初始视频上而得到的视频,编辑记录文件包括用于记录所述编辑操作的编辑记录信息以及所述初始视频和所述指定素材;
    基于所述编辑记录文件获取目标素材以及所述目标素材的应用信息,其中,所述应用信息包含有所述目标素材在所述目标视频中的编辑记录信息,且所述目标素材属于所述指定素材;和
    基于所述目标素材及其应用信息生成用于视频编辑的素材包。
  2. 根据权利要求1所述的方法,其中,基于所述编辑记录文件获取目标素材以及所述目标素材的应用信息,包括:
    将所述指定素材中的所有素材均作为目标素材,或者,将所述目标素材中携带有发布许可标识的素材作为目标素材;和
    将编辑记录文件中记录的所述目标素材在所述目标视频中的编辑记录信息作为所述目标素材的应用信息,其中,所述编辑记录信息包括以下中的一种或多种:位置信息、旋转信息、缩放信息、轨道信息。
  3. 根据权利要求1或2所述的方法,其中,所述目标素材的应用信息还包含所述目标素材的获取路径。
  4. 根据权利要求3所述的方法,其中,基于所述目标素材及其应用信息生成用于视频编辑的素材包,包括:
    将所述目标素材中的本地素材上传至服务器,以使所述服务器将所述本地素材转换为新的远端素材,其中,所述远端素材为存储在所述服务器中且可被公开下载的素材;
    接收所述服务器返回的所述新的远端素材对应的远端素材标识,将所述本地素材的应用信息中记录的获取路径替换为所述新的远端素材的远端素材标识,并将替换后的所述应用信息作为所述新的远端素材对应的应用信息;和
    基于所述新的远端素材及其应用信息,以及所述目标素材中原有远端素材及其应用信息生成用于视频编辑的素材包。
  5. 根据权利要求4所述的方法,其中将所述本地素材的应用信息中记录的获取路径替换为所述新的远端素材的远端素材标识,并将替换后的所述应用信息作为所述新的远端素材对应的应用信息,包括:
    对所述编辑记录文件进行复制,得到所述编辑记录文件的副本;和
    对所述副本进行如下处理:将所述副本中所包含的本地素材删除,以及将所述本地素材的应用信息中记录的获取路径替换为所述新的远端素材的远端素材标识,并将替换后的所述应用信息作为所述副本中记录的所述新的远端素材对应的应用信息。
  6. 根据权利要求5所述的方法,其中,基于所述新的远端素材及其应用信息生成用于视频编辑的素材包,包括:
    基于处理后的所述副本生成用于视频编辑的素材包,其中,所述处理后的副本包含有所述新的远端素材的远端素材标识及相应的应用信息。
  7. 根据权利要求6所述的方法,其中,基于处理后的所述副本生成用于视频编辑的素材包,包括:
    获取指定的素材包封面,并将所述素材包封面上传至所述服务器;
    获取预设的素材包可选信息,其中,所述素材包可选信息包括以下中的一种或多种:所述目标视频、素材版本信息、素材兼容信息;和
    将所述素材包封面、处理后的所述副本和获取到的所述素材包可选信息进行打包压缩处理以得到压缩包,并将所述压缩包作为用于视频编辑的素材包。
  8. 根据权利要求4至7任一项所述的方法,其中,将所述本地素材的应用信息中记录的获取路径替换为所述新的远端素材的远端素材标识,包括:
    将所述本地素材的应用信息中记录的获取路径删除;和
    在所述本地素材的应用信息中,将所述本地素材的标识字段更改为所述新的远端素材的远端素材标识。
  9. 根据权利要求1至8中任一项所述的方法,其中,所述目标素材中的远端素材携带有素材来源标识,所述素材来源标识用于指示所述远端素材的素材存储位置。
  10. 根据权利要求1至9中任一项所述的方法,还包括:
    响应于接收到素材包标题信息以及素材包概述信息,将所述素材包标题信息和所述素材包概述信息与所述素材包进行关联。
  11. 根据权利要求1至10中任一项所述的方法,还包括:
    将生成的所述素材包发送给服务器,以使所述服务器将所述素材包发布在指定平台。
  12. 一种视频编辑方法,其中,所述方法应用于第二客户端,包括:
    获取待编辑视频;
    响应于接收到素材包应用指令,获取所述素材包应用指令对应的指定素材包,其中,所述指定素材包是采用如权利要求1至11中任一项所述的素材包的生成方法生成的;和
    基于所述指定素材包对所述待编辑视频进行编辑。
  13. 根据权利要求12所述的方法,还包括:
    响应于监测到素材包功能的触发操作,在所述第二客户端的界面上展示多个目标视频,每个所述目标视频对应一个素材包;和
    响应于监测到目标视频的选择操作,确定接收到素材包应用指令,且将被选择的目标视频对应的素材包作为所述素材包应用指令对应的指定素材包。
  14. 根据权利要求12或13所述的方法,其中,获取所述素材包应用指令对应的指定素材包,包括:
    将所述指定素材包的标识发送给服务器,以通过所述服务器下载所述素材包应用指令对应的指定素材包。
  15. 根据权利要求12至14中任一项所述的方法,其中,基于所述指定素材包对 所述待编辑视频进行编辑,包括:
    根据所述指定素材包中的素材的应用信息,将所述指定素材包中的素材合成到所述待编辑视频上。
  16. 一种素材包的生成装置,其中,所述装置应用于第一客户端,包括:
    文件获取模块,用于获取目标视频的编辑记录文件,其中,所述目标视频是通过编辑操作将指定素材合成到初始视频上而得到的视频,编辑记录文件包括用于记录所述编辑操作的编辑记录信息以及所述初始视频和所述指定素材;
    信息获取模块,用于基于所述编辑记录文件获取目标素材以及所述目标素材的应用信息,其中,所述应用信息包含有所述目标素材在所述目标视频中的编辑记录信息,且所述目标素材属于所述指定素材;和
    素材包生成模块,用于基于所述目标素材及其应用信息生成用于视频编辑的素材包。
  17. 一种视频编辑装置,其中,所述装置应用于第二客户端,包括:
    视频获取模块,用于获取待编辑视频;
    素材包获取模块,用于响应于接收到素材包应用指令,获取所述素材包应用指令对应的指定素材包,其中,所述指定素材包是采用如权利要求1至11中任一项所述的素材包的生成方法生成的;和
    视频编辑模块,用于基于所述指定素材包对所述待编辑视频进行编辑。
  18. 一种电子设备,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现上述权利要求1至11中任一所述的素材包的生成方法,或者实现上述权利要求12至15中任一所述的视频编辑方法。
  19. 一种计算机可读存储介质,其中,所述存储介质存储有计算机程序,所述计算机程序用于执行上述权利要求1至11中任一所述的素材包的生成方法,或者执行 上述权利要求12至15中任一所述的视频编辑方法。
  20. 一种计算机程序,包括:
    指令,所述指令当由处理器执行时使所述处理器执行如权利要求1至11中任一所述的素材包的生成方法,或者执行如权利要求12至15中任一所述的视频编辑方法。
PCT/CN2023/081849 2022-03-29 2023-03-16 素材包的生成方法、视频编辑方法、装置、设备及介质 WO2023185488A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210320553.XA CN116939284A (zh) 2022-03-29 2022-03-29 素材包的生成方法、视频编辑方法、装置、设备及介质
CN202210320553.X 2022-03-29

Publications (1)

Publication Number Publication Date
WO2023185488A1 true WO2023185488A1 (zh) 2023-10-05

Family

ID=88199067

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081849 WO2023185488A1 (zh) 2022-03-29 2023-03-16 素材包的生成方法、视频编辑方法、装置、设备及介质

Country Status (2)

Country Link
CN (1) CN116939284A (zh)
WO (1) WO2023185488A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10445762B1 (en) * 2018-01-17 2019-10-15 Yaoshiang Ho Online video system, method, and medium for A/B testing of video content
CN111246300A (zh) * 2020-01-02 2020-06-05 北京达佳互联信息技术有限公司 剪辑模板的生成方法、装置、设备及存储介质
CN111243632A (zh) * 2020-01-02 2020-06-05 北京达佳互联信息技术有限公司 多媒体资源的生成方法、装置、设备及存储介质
CN112104894A (zh) * 2020-11-18 2020-12-18 成都索贝数码科技股份有限公司 一种基于幅面变换的超高清视频编辑方法
CN113923477A (zh) * 2021-09-30 2022-01-11 北京百度网讯科技有限公司 视频处理方法、装置、电子设备以及存储介质
WO2022048478A1 (zh) * 2020-09-04 2022-03-10 北京字节跳动网络技术有限公司 多媒体数据的处理方法、生成方法及相关设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10445762B1 (en) * 2018-01-17 2019-10-15 Yaoshiang Ho Online video system, method, and medium for A/B testing of video content
CN111246300A (zh) * 2020-01-02 2020-06-05 北京达佳互联信息技术有限公司 剪辑模板的生成方法、装置、设备及存储介质
CN111243632A (zh) * 2020-01-02 2020-06-05 北京达佳互联信息技术有限公司 多媒体资源的生成方法、装置、设备及存储介质
WO2022048478A1 (zh) * 2020-09-04 2022-03-10 北京字节跳动网络技术有限公司 多媒体数据的处理方法、生成方法及相关设备
CN112104894A (zh) * 2020-11-18 2020-12-18 成都索贝数码科技股份有限公司 一种基于幅面变换的超高清视频编辑方法
CN113923477A (zh) * 2021-09-30 2022-01-11 北京百度网讯科技有限公司 视频处理方法、装置、电子设备以及存储介质

Also Published As

Publication number Publication date
CN116939284A (zh) 2023-10-24

Similar Documents

Publication Publication Date Title
JP6316389B2 (ja) ポータブル送信機用装置、方法、システム、及びユーザ・インタフェース
KR102121626B1 (ko) 네트워크 스토리지 서비스에서 어플리케이션과 파일타입의 관련
US11102206B2 (en) Methods and apparatus for establishing shared memory spaces for data access and distribution
TWI683251B (zh) 界面展示方法及裝置
US10572546B2 (en) Information processing apparatus, document display method, document display system, and medium
WO2011031646A2 (en) Digital media bundles for media presentation playback
KR20060087485A (ko) 통합문서를 이용한 웹서비스 운용 방법
KR101376467B1 (ko) 네트워크 시스템
WO2020026778A1 (ja) Apiアダプタ作成装置、apiアダプタ作成方法およびapiアダプタ作成プログラム
JP2005327257A (ja) マルチメディア応用機器における資産の制御のためのファイル管理方法、ファイル管理装置及び情報保存媒体
EP3944242A1 (en) A system and method to customizing video
WO2023185488A1 (zh) 素材包的生成方法、视频编辑方法、装置、设备及介质
JP6951168B2 (ja) 画像処理装置及びその制御方法及びプログラム
KR20040042612A (ko) MPV(MultiPhotoVideo) 환경하에서자산이 위치하는 경로와 파일 이름을 나타내는 라스트유알엘 복구 방법
JP2013161467A (ja) 作品評価装置、作品評価方法、プログラムおよび集積回路
JP6702015B2 (ja) 情報処理システム、情報処理装置、及び情報処理方法
CN111625508A (zh) 一种信息处理方法及装置
CN114339400B (zh) 一种视频抽帧方法、装置、电子设备及存储介质
TWI664542B (zh) 網路媒體內容類型識別系統與方法
JP2017228012A (ja) 情報処理システム、情報処理装置、及び情報処理方法
JP6527650B2 (ja) コンテンツ管理システム、コンテンツ管理サーバ、及びコンテンツ管理方法
JP2017134259A (ja) データ構造及びデータ生成方法
Cashwell Personal Indoor/Outdoor Camera Footage and the Limitations of Obtaining and Transferability
CN115374753A (zh) 基于影像控件的影像数据处理方法和系统、装置及处理器
Borja Torres et al. D2. 2 Survey Report: Audio Branding Support Systems

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: 23777863

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18572171

Country of ref document: US