WO2023241283A1 - 用于视频编辑的方法及设备 - Google Patents

用于视频编辑的方法及设备 Download PDF

Info

Publication number
WO2023241283A1
WO2023241283A1 PCT/CN2023/094309 CN2023094309W WO2023241283A1 WO 2023241283 A1 WO2023241283 A1 WO 2023241283A1 CN 2023094309 W CN2023094309 W CN 2023094309W WO 2023241283 A1 WO2023241283 A1 WO 2023241283A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
editing
draft
client
capability information
Prior art date
Application number
PCT/CN2023/094309
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 WO2023241283A1 publication Critical patent/WO2023241283A1/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • H04N21/2743Video hosting of uploaded data from client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Definitions

  • the embodiments of the present disclosure relate to the field of information technology, and in particular, to a method and device for video editing.
  • video editing solution supports video editing functions running on many different types of clients.
  • video editing operations can be performed through the web page, personal computer (PC) or mobile terminal.
  • PC personal computer
  • Video editing tools logged in through different clients can generate video drafts through a series of editing operations. Users can open the same video draft multiple times for editing or exporting. However, the current common solution only supports opening or editing video drafts created by the same type of client. Due to different types of terminal devices corresponding to clients or different versions of video editing tools, each client supports different editing capabilities. This results in clients with poor editing capabilities being unable to open or edit video drafts generated by other clients. For example, video editing tools that are logged in through the web usually support less performance and editing capabilities, so there are cases where users cannot open a draft video to be edited.
  • Embodiments of the present disclosure provide a method and device for video editing to solve the problem that clients with poor editing capabilities cannot open or edit video drafts generated by other clients.
  • an embodiment of the present disclosure provides a method for video editing, including: obtaining a first video draft generated by a first client, where the first video draft includes at least one video clip and at least one piece of editing capability information. , the at least one editing capability information is used to indicate an editing operation on the at least one video clip, and the at least one editing capability information includes at least one first supported by the first client and not supported by the second client.
  • the first client and the second client are different programs for video editing; perform an editing operation on the first video clip according to the at least one first editing capability information to obtain the second video clip,
  • the first video segment is a video segment among the at least one video segment, and the position of the first video segment on the video editing timeline is consistent with the position of the at least one first editing capability information at the video editing time.
  • the positions on the line have overlapping intervals; in the first video draft, replace the first video clip with the second video clip and delete the at least one first editing capability information to obtain a second video draft;
  • the second video draft is provided to the second client.
  • an embodiment of the present disclosure provides a device for video editing, including: an acquisition module, configured to acquire a first video draft generated by a first client, where the first video draft includes at least one video clip and At least one editing capability information, the at least one editing capability information is used to indicate an editing operation on the at least one video clip, the at least one editing capability information includes that the first client supports it and the second client does not support it.
  • the first client and the second client being different programs for video editing; an editing module configured to edit the first video according to the at least one first editing capability information Perform an editing operation on the clip to obtain a second video clip, wherein the first video clip is a video clip in the at least one video clip, and the position of the first video clip on the video editing timeline is consistent with the at least one video clip.
  • the position of the first editing capability information on the video editing timeline has an overlapping interval; the editing module is also configured to replace the first video clip with the second video clip in the first video draft and delete the at least one first editing capability information to obtain a second video draft; and provide a module for providing the second video draft to the second client.
  • embodiments of the present disclosure provide an electronic device, including: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the at least one processor The method for video editing as described in the first aspect and various possible designs of the first aspect is performed.
  • embodiments of the present disclosure provide a computer-readable storage medium.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, the above first aspect and the first aspect are implemented. Aspects of various possible designs of the described method for video editing.
  • embodiments of the present disclosure provide a computer program product, including a computer program.
  • the computer program When the computer program is executed by a processor, the computer program for video editing as described in the first aspect and various possible designs of the first aspect is implemented. method.
  • embodiments of the present disclosure provide a computer program that, when executed by a processor, implements the method for video editing described in the above first aspect and various possible designs of the first aspect.
  • Figure 1 is a schematic diagram of possible application scenarios according to an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of a method for video editing according to an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of a specific process of a method for video editing according to an embodiment of the present disclosure
  • Figure 4 is a schematic diagram of a specific process of a method for video editing according to yet another embodiment of the present disclosure
  • Figure 5 is a structural block diagram of a device 500 for video editing provided by an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of an electronic device 600 according to an embodiment of the present disclosure.
  • some video clips and video editing capability information in the first video draft generated by the first client can be synthesized into the second video clip according to the editing capabilities not supported by the second client, and the first video clip can be replaced.
  • Related content in the video draft that is not supported by the second client is used to generate the second video draft and provide it to the second client. Since the second video draft obtained after replacement does not include editing capability information that is not supported by the second client, the second client with lower editing capabilities can also open and edit the second video draft, which improves the performance of video editing tools. Versatility across different clients.
  • Figure 1 is a schematic diagram of possible application scenarios according to an embodiment of the present disclosure. As shown in Figure 1, the scenario includes client and server systems. The client communicates and interacts with the server system through the network to realize the video editing function.
  • the above-mentioned clients may include different types.
  • different types of clients may be distinguished in the following ways: the version type of the video editing application and the type of terminal device on which the video editing application is installed.
  • the version type of the video editing application may include different application installation environments such as web page, personal computer (PC), mobile, etc.
  • the version type of the video editing application may also include updated versions at different times.
  • the PC version and the mobile version can be downloaded and installed on a computer device or mobile terminal with visual An application (APP) or plug-in with a video editing function can perform video editing locally and save the edited video locally or upload it to the server system.
  • APP visual An application
  • plug-in with a video editing function can perform video editing locally and save the edited video locally or upload it to the server system.
  • the web version can refer to the situation of video editing through a browser.
  • the terminal device can access the server system through the browser, and the video editing operation is implemented through the server system.
  • the server system can receive the video editing request sent by the user through the browser and implement the video editing operation.
  • the browser can also download the tools and video drafts required for video editing through the server system and cache them locally, and perform video editing locally.
  • the server system can provide access services for video drafts.
  • the edited video can be stored in the server system, for example, in a database.
  • the above-mentioned video draft may be uploaded by the current editing client, may be uploaded by other clients and pre-stored in the server system, or may be provided by the server system itself.
  • a video draft may include video clips and editing capability information.
  • the above editing capability information is used to indicate editing operations on video clips.
  • the above editing capability information may include, but is not limited to: image information, special effects information, speed change information, text information, audio information, etc.
  • the above-mentioned special effect information may include, for example, special effect filters, special effect filter stickers, etc.
  • the above editing capability information can be combined with video clips on the video editing timeline to finally synthesize the video.
  • terminal devices may include, but are not limited to, mobile phones, laptops, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA for short), tablet computers (Portable Android Device, PAD for short), portable multimedia players (Portable Media Player, PMP for short), mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc.
  • personal digital assistants Personal Digital Assistant, PDA for short
  • tablet computers Portable Android Device, PAD for short
  • portable multimedia players Portable Media Player, PMP for short
  • mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals)
  • fixed terminals such as digital TVs, desktop computers, etc.
  • the above-mentioned server system may refer to an independent physical server, a server cluster or distributed system including multiple physical servers, or a cloud server.
  • a server system includes multiple servers, different servers may be responsible for different functions.
  • the multiple servers mentioned above may include but are not limited to the following: a scheduling server, used to achieve load balancing according to the load rate of the logical server; a logical server, used to provide the front-end with an interface to access the database and perform video editing tasks. ; Database, used to provide tools or materials required for video editing, and can also be used to store video data; video synthesis server, used to perform video synthesis operations and generate videos based on video drafts and related editing operations.
  • the existing technology only supports the use of the same type of client to open or edit the video draft, which limits the situation of editing the same video draft through different types of clients, affecting user experience and application flexibility.
  • embodiments of the present disclosure provide a method and device for video editing.
  • capability analysis can be performed on the video draft to determine the editing capabilities that are not supported by the client, and the first video segment in the video draft and the unsupported editing capabilities are combined into a second video segment, and the second video segment is used Replacing video draft Unsupported editing capabilities and first video clips, so that clients with lower editing capabilities can also open and edit video drafts, improving the versatility of video editing tools in different clients.
  • FIG. 2 is a schematic flowchart of a method for video editing according to an embodiment of the present disclosure. This method can be executed by the server system in Figure 1 or by other devices. As shown in Figure 2, the method includes the following contents.
  • the first video draft includes at least one video clip and at least one editing capability information.
  • the at least one editing capability information is used to indicate an editing operation on at least one video clip.
  • At least one The editing capability information includes at least one piece of first editing capability information supported by the first client and not supported by the second client, and the first client and the second client are different programs for video editing.
  • the above-mentioned video draft may include: video clips and editing capability information.
  • the above editing capability information is used to indicate editing operations on video clips.
  • the above editing capability information may include, but is not limited to: image information, special effects information, speed change information, text information, audio information, etc.
  • the above-mentioned special effect information may include, for example, special effect filters, special effect filter stickers, etc. Any of the above editing capability information can be combined with the video clips on the video editing timeline to ultimately compose the video.
  • the method in Figure 2 further includes: receiving video request information sent by the second client, the video request information being used to request to obtain the video draft corresponding to the video editing task, the first video The draft and the second video draft correspond to the video editing task.
  • the user can open the video draft through the second client, thereby triggering the second client to send video request information to the server system.
  • the above video request information may include address information of the first video draft, and the server system may obtain the first video draft based on the address information.
  • the first video draft may be stored in the server system, for example, in a database in the server system, or in other types of storage devices.
  • the above-mentioned different client types include: different types of terminal devices, different versions of video editing applications or plug-ins. For example, if the client uses a browser to log in, or if the video editing application is an earlier version, it supports fewer editing capabilities.
  • the first client and the second client are different types of clients.
  • the versions of the video editing application of the first client and the second client may be different, or the first client and the second client may have different versions.
  • the types of terminal equipment are different.
  • the first client may be a PC client
  • the second client may be a web page client.
  • the web page can also access the server system through the browser and open and edit video drafts.
  • the web page can present the video editing web page and the user interaction interface through the browser.
  • the browser collects the video editing instructions input by the user through the user interaction interface, edits the video draft according to the video editing instructions, and uploads the edited draft to the server system. Save in .
  • S202 Perform an editing operation on the first video clip according to at least one first editing capability information to obtain a second video clip, wherein the first video clip is a video clip in at least one video clip, and the first video clip is in the video editing timeline.
  • the position on has an overlapping interval with the position of at least one first editing capability information on the video editing timeline.
  • the above-mentioned editing operation on the first video clip according to at least one first editing capability information to obtain the second video clip may refer to synthesizing at least one first editing capability information and the first video clip into the second video clip.
  • the above task of obtaining the second video clip may be implemented by a dedicated server in the server system.
  • the server system may include a logic server and a video synthesis server.
  • the logic server may initiate a synthesis task of the second video clip and send the information required to synthesize the video to the video synthesis server, including: the first video clip, at least one editor Capability information.
  • the video synthesis server may send the second video segment to the logical server.
  • the server system may obtain a pre-stored first editing capability list, where the first editing capability list is used to indicate editing that is not supported by different client types. Capability information.
  • the first editing capability list may include editing capability information that is not supported by the browser, at least one terminal device type, or at least one version of the video editing application.
  • the above-mentioned first editing capability list can be calculated in advance by the technology developer and stored in the server system, and can be updated later.
  • the server system queries the first editing capability list for editing capability information that is not supported by the second client according to the type of the second client.
  • the second client may send information indicating the type of the second client to the server system, or the server system may determine the type of the second client through communication with the second client.
  • the server system can filter the first video draft, determine the first editing capability information that the first client supports and the second client does not support, and add the first editing capability information to the first video draft.
  • the capability information and the corresponding first video clip are synthesized to generate a second video clip.
  • the server system may send notification information to the second client to notify the second client of the progress of the synthesis task of the second video clip.
  • the editing capabilities supported by the second client can still be performed on the basis of the second video clip.
  • the second video clip can be edited as the original video.
  • the server system may send notification information to the second client to notify the second client that the second video draft can be opened and edited.
  • a second video draft can be sent to the second client, and after the second client receives the second video draft, the user can open and edit the second video draft through the second client.
  • some video clips and video editing capability information in the first video draft generated by the first client can be synthesized into the second video clip according to the editing capabilities not supported by the second client, and the first video clip can be replaced.
  • Related content in the video draft that is not supported by the second client is used to generate the second video draft and provide it to the second client. Since the second video draft obtained after replacement does not include editing capability information that is not supported by the second client, the second client with lower editing capabilities can also open and edit the second video draft, which improves the performance of video editing tools. Versatility across different clients.
  • the method of FIG. 2 further includes: after obtaining the second video draft, recording draft repair information, where the draft repair information is used to indicate the difference between the second video segment, the first video segment, and at least one first editing capability information. connection relation.
  • the server system can store the draft repair information in the database, and accordingly record the identification information of the second video draft, the identification information of the second client, and other contents.
  • the above draft repair information can be used to restore the video draft to a more editable version later in the process.
  • the above draft repair information may be applied to the process of storing the edited third video draft on the second client, and the third video draft is edited based on the second video draft.
  • the server system can use the draft repair information to restore the deleted editing capability information in the third video draft. This will facilitate other types of clients to open and edit the video draft in the subsequent process.
  • the method in Figure 2 also includes: receiving a third video draft sent by the second client.
  • the third video draft is a video draft obtained after editing according to the second video draft, and the third video draft includes the second video. clip; according to the draft repair information, replace the second video clip in the third video draft with the first video clip, and add at least one first editing capability information to obtain a fourth video draft.
  • the server system may receive video saving request information sent by the second client.
  • the video saving request information is used to request storage of a third video draft.
  • the third video draft is a video draft obtained after editing the second video draft; the server The system replaces the second video clip in the third video draft with the first video clip according to the draft repair information, and adds at least one first editing capability information to obtain the fourth video draft; the server system can save the fourth video draft. into the database.
  • the server system when the second client completes the editing of the video draft and requests to store the video draft in the database, the server system can reversely restore the deleted editing capabilities in the video draft based on the draft repair information to facilitate Other types of clients can open and edit the video draft in the subsequent process, thereby improving the applicability of video editing in different types of clients and improving user experience.
  • FIG. 3 is a schematic diagram of a specific process of a method for video editing according to an embodiment of the present disclosure.
  • Figure 3 mainly shows the processing solution for users to open a video draft for editing, and is described by taking the client as a web page and the server system including a logic server and a video synthesis server as an example.
  • the method includes the following steps.
  • the client displays the human-computer interaction interface in the browser to the user, and the user performs the operation of opening the video draft through the human-computer interaction interface.
  • the client sends video request information to the logical server through the browser.
  • the video request information is used to request to obtain the video draft of the video to be edited.
  • the logical server obtains the first video draft.
  • the above video request information may include address information of the first video draft, so as to obtain the first video draft based on the address information.
  • the first video draft may be stored in the server system, for example, in a database in the server system, or in other types of storage devices.
  • the logic server performs capability analysis on the client based on the video editing request to determine at least one first editing capability information that is not supported by the client.
  • the logic server may filter the first video draft according to the pre-stored "editing capability list not supported by the browser" and determine whether there is at least one first editing capability information that is not supported by the browser in the first video draft. If it does not exist, the logical server can directly send the first video draft to the client. If it exists, the logical server needs to start the video replacement process and continue with subsequent steps.
  • the logic server sends a synthesis task of the second video clip to the video synthesis server based on at least one first editing capability information that is not supported by the client.
  • the logic server may initiate a synthesis task of the second video segment, and send the information required to synthesize the video to the video synthesis server: the first video segment, and at least one first editing capability information.
  • the at least one first editing capability information may include visual elements using editing capabilities not supported by the client, and visual elements related to editing capabilities not supported by the client.
  • the logic server may send notification information to the client to notify the client of the progress of the synthesis task of the second video clip.
  • the video synthesis server synthesizes the second video clip and returns the second video clip to the logical server.
  • the video synthesis server may synthesize a second video segment according to the first video segment and at least one first editing capability information sent by the logical server, and send the second video segment to the logical server.
  • the logic server uses the second video clip to replace the first video clip in the first video draft, and deletes at least one first editing capability information to obtain a second video draft.
  • the logical server records the relevant information during the replacement process in the draft repair information and stores it in the database.
  • the draft repair information may include an association between the second video clip and the first video clip and at least one piece of first editing capability information.
  • the logic server sends the second video draft and notification information to the client, so that the client can edit the second video draft.
  • the above notification information is used to notify the client that the editing operation of the second video draft can be started.
  • the server system can synthesize part of the video clips and video editing capability information in the first video draft generated by the first client into the second video clip based on the editing capabilities that are not supported by the second client, and replace the third video clip in the first video draft.
  • Related content not supported by the second client is used to generate a second video draft and provide it to the second client. Since the second video draft obtained after replacement does not include editing capability information that is not supported by the second client, the second client with lower editing capabilities can also open and edit the second video draft, which improves the performance of video editing tools. Versatility across different clients.
  • FIG. 4 is a schematic diagram of a specific flow of a method for video editing according to yet another embodiment of the present disclosure.
  • Figure 4 mainly shows the processing solution for the client to store the video draft after completing the video editing, and is described by taking the client as a web page and the server system including a logical server as an example.
  • the method includes the following contents.
  • the client displays the human-computer interaction interface in the browser to the user, and the user performs the operation of saving the third video draft through the human-computer interaction interface.
  • the third video draft is the video draft after editing the second video draft.
  • the client sends the third video draft and video saving request information to the logical server.
  • the video saving request information is used to request storage of the third video draft.
  • the logic server queries whether the draft repair information related to the third video draft is stored in the database. If it exists, the draft repair information is obtained and S404 is executed; if it does not exist, the third video draft is directly stored in the data. library and end the process.
  • the logic server uses the first video clip to replace the second video clip in the third video draft according to the draft repair information, and adds at least one first editing capability information to obtain a fourth video draft.
  • the logic server inserts the previously removed editing capabilities and the visual elements affected by the editing capabilities into the third video draft, thereby obtaining a fourth video draft with complete editing capabilities.
  • the logical server stores the fourth video draft in the database to facilitate use by other types of clients.
  • the above-mentioned clients may include other types of terminal devices or versions of other types of video editing applications.
  • the server system When the client completes the editing of the video draft and requests the video draft to be stored in the server system, the server system reversely restores the deleted editing capabilities in the video draft based on the draft repair information stored in the database to facilitate other types of clients.
  • the video draft is opened and edited in the subsequent process, thereby improving the applicability of video editing in different types of clients and improving user experience.
  • FIG. 5 is a structural block diagram of a device 500 for video editing provided by an embodiment of the present disclosure.
  • the device includes: an acquisition module 501 , an editing module 502 and a providing module 503 .
  • the acquisition module 501 is used to acquire a first video draft generated by the first client.
  • the first video draft includes at least one video segment and at least one editing capability information.
  • the at least one editing capability information is used to indicate an editing operation on at least one video segment.
  • the at least one editing capability information includes at least one first editing capability information supported by the first client and not supported by the second client, and the first client and the second client are different programs for video editing.
  • the editing module 502 is configured to perform an editing operation on the first video segment according to at least one first editing capability information to obtain a second video segment, wherein the first video segment is a video segment in at least one video segment, and the first video segment is in the video segment.
  • the position on the editing timeline has an overlapping interval with the position of at least one first editing capability information on the video editing timeline.
  • the providing module 503 is configured to provide a second video draft to the second client.
  • the acquisition module 501 is also used to: receive video request information sent by the second client.
  • the video request information is used to request to obtain the video draft corresponding to the video editing task, the first video draft and the second video. Drafts correspond to video editing tasks.
  • the obtaining module 501 is also used to obtain a first editing capability list, which is used to indicate editing capability information that is not supported by different client types; the editing module 502 is also used to obtain a first editing capability list according to the second editing capability list.
  • the type of the client and the first editing capability list determine at least one first editing capability information.
  • the client type includes at least one of the following: a version type of the video editing application, The type of end device on which the video editing application is installed.
  • the editing module 502 is further configured to record draft repair information, and the draft repair information is used to indicate an association between the second video segment, the first video segment, and at least one first editing capability information.
  • the acquisition module 501 is also used to receive a third video draft sent by the second client.
  • the third video draft is a video draft obtained after editing based on the second video draft.
  • the editing module 502 is also configured to replace the second video clip in the third video draft with the first video clip according to the draft repair information, and add at least one first editing capability information to obtain the fourth video draft.
  • FIG. 6 is a schematic structural diagram of an electronic device 600 according to an embodiment of the present disclosure.
  • the electronic device 600 may be a server or other types of devices.
  • the electronic device can be used to perform the steps of the methods described in this disclosure.
  • the electronic device 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may process data according to a program stored in a read-only memory (Read Only Memory, ROM for short) 602 or from a storage device. 608 loads the program in the random access memory (Random Access Memory, RAM for short) 603 to perform various appropriate actions and processing. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored.
  • the processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604.
  • An input/output (I/O for short) interface 605 is also connected to bus 604.
  • the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD). ), an output device 607 such as a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602.
  • the processing device 601 the above functions defined in the method of the embodiment of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof.
  • Computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmable Read-Only Memory (Erasable Programmable Read-Only Memory, referred to as EPROM or flash memory), optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, referred to as CD-ROM), optical storage device, magnetic storage device, or the above any suitable combination.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device When the one or more programs are executed by the electronic device, the electronic device performs the method shown in the above embodiment.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional Procedural programming language—such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or it can be connected to an external computer Computer (e.g. connected via the Internet using an Internet service provider).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two boxes represented one after another While they may actually be executed essentially in parallel, they may sometimes be executed in reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure can be implemented in software or hardware.
  • the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • the first acquisition unit can also be described as "the unit that acquires at least two Internet Protocol addresses.”
  • exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Products ( Application Specific Standard Parts (ASSP for short), System on Chip (SOC for short), Complex Programmable Logic Device (CPLD for short), etc.
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specific Standard Parts
  • SOC System on Chip
  • CPLD Complex Programmable Logic Device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, 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.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • a method for video editing including: obtaining a first video draft generated by a first client, the first video draft including at least one video clips and at least one editing capability information.
  • the at least one editing capability information is used to indicate an editing operation on the at least one video clip.
  • the at least one editing capability information includes the first client supporting and the second client At least one first editing capability information that is not supported by the terminal, the first client and the second client are different programs for video editing; the first video clip is processed according to the at least one first editing capability information.
  • An editing operation is performed to obtain a second video segment, wherein the first video segment is a video segment in the at least one video segment, and the position of the first video segment on the video editing timeline is consistent with the at least one first video segment.
  • the position of the editing capability information on the video editing timeline has an overlapping interval; in the first video draft, the first video clip is replaced with the second video clip segment and delete the at least one first editing capability information to obtain a second video draft; and provide the second video draft to the second client.
  • the method further includes: receiving video request information sent by the second client, where the video request information is used to request acquisition of a video draft corresponding to the video editing task, and the third A video draft and the second video draft correspond to the video editing task.
  • the method further includes: obtaining a first editing capability list, the first editing capability list being used to indicate editing capability information not supported by different client types; according to the second The type of the client and the first editing capability list determine the at least one first editing capability information.
  • the client type includes at least one of the following: a version type of the video editing application, and a type of terminal device on which the video editing application is installed.
  • the method further includes: recording draft repair information, the draft repair information being used to indicate the second video segment and the first video segment, the at least one first Association between editing capability information.
  • the method further includes: receiving a third video draft sent by the second client, the third video draft being edited according to the second video draft A video draft, the third video draft includes the second video clip; according to the draft repair information, the second video clip in the third video draft is replaced with the first video clip, and The at least one first editing capability information is added to obtain a fourth video draft.
  • a device for video editing including: an acquisition module, configured to acquire a first video draft generated by a first client, the first video The draft includes at least one video clip and at least one editing capability information, the at least one editing capability information is used to indicate an editing operation on the at least one video clip, and the at least one editing capability information includes the first client At least one first editing capability information that is supported and not supported by the second client, the first client and the second client being different programs for video editing; an editing module configured to perform the editing according to the at least one An editing capability information is used to perform an editing operation on the first video clip to obtain a second video clip, wherein the first video clip is a video clip in the at least one video clip, and the first video clip is in the video editing timeline The position on the video editing timeline has an overlapping interval with the position of the at least one first editing capability information on the video editing timeline; the editing module is also configured to add the first video clip to the first video draft. Replace with the second video clip
  • the obtaining module is further configured to: receive the information sent by the second client.
  • Video request information the video request information is used to request to obtain a video draft corresponding to a video editing task, and the first video draft and the second video draft correspond to the video editing task.
  • the obtaining module is further configured to obtain a first editing capability list, the first editing capability list is used to indicate editing capability information that is not supported by different client types; the editing module It is also used to determine the at least one first editing capability information according to the type of the second client and the first editing capability list.
  • the client type includes at least one of the following: a version type of the video editing application, and a type of terminal device on which the video editing application is installed.
  • the editing module is further configured to record draft repair information, where the draft repair information is used to indicate the second video segment and the first video segment, the at least one first video segment, and the first video segment. 1. The association between editing capability information.
  • the acquisition module is further configured to receive a third video draft sent by the second client, where the third video draft is obtained after editing based on the second video draft.
  • the editing module is also configured to replace the second video clip in the third video draft with The first video clip is added to the at least one first editing capability information to obtain a fourth video draft.
  • an electronic device including: at least one processor and a memory; the memory stores computer-executed instructions; the at least one processor executes the memory-stored instructions.
  • the computer executes the instructions, causing the at least one processor to execute the method for video editing described in the above first aspect and various possible designs of the first aspect.
  • a computer-readable storage medium is provided.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • a processor executes the computer-executed instructions, Implement the method for video editing as described in the first aspect and various possible designs of the first aspect.
  • a computer program product including a computer program that, when executed by a processor, implements the above first aspect and various possible designs of the first aspect.
  • the method for video editing is provided, including a computer program that, when executed by a processor, implements the above first aspect and various possible designs of the first aspect.
  • embodiments of the present disclosure provide a computer program that, when executed by a processor, implements the method for video editing described in the above first aspect and various possible designs of the first aspect.

Landscapes

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

Abstract

一种用于视频编辑的方法和设备,该方法包括:获取第一客户端生成的第一视频草稿,第一视频草稿中包括第一客户端支持且第二客户端不支持的第一编辑能力信息;按照第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,第一视频片段与第一编辑能力信息在视频编辑时间线上的位置有重叠区间;在第一视频草稿中,将第一视频片段替换为第二视频片段并删除第一编辑能力信息,得到第二视频草稿;向第二客户端提供第二视频草稿。由于替换后得到的第二视频草稿中不包括第二客户端不支持的编辑能力信息,从而使得编辑能力较低的第二客户端也能打开和编辑第二视频草稿,提高了用于视频编辑的不同类型的客户端的通用性。

Description

用于视频编辑的方法及设备
相关申请交叉引用
本申请要求于2022年6月16日提交中国专利局、申请号为202210684585.8、发明名称为“用于视频编辑的方法及设备”的中国专利申请的优先权,其全部内容通过引用并入本文。
技术领域
本公开实施例涉及信息技术领域,尤其涉及一种用于视频编辑的方法及设备。
背景技术
随着信息处理技术的发展,视频编辑的应用也越来越广泛。视频编辑方案可支持视频编辑功能在多种不同类型的客户端运行。例如,可以通过网页端、个人电脑(personal computer,PC)端或者移动端进行视频编辑操作。
通过不同客户端登录的视频编辑工具可经过一系列编辑操作生成视频草稿,用户可多次打开同一视频草稿进行编辑或者导出。但是,目前通用的方案仅支持打开或编辑同一类型的客户端创建的视频草稿。由于客户端对应的终端设备类型不同或视频编辑工具的版本不同,各客户端支持的编辑能力也不同,这导致编辑能力较差的客户端无法打开或编辑其它客户端生成的视频草稿。例如,通过网页端登录的视频编辑工具支持的性能和编辑能力通常较少,因此存在用户无法打开待编辑的视频草稿的情况。
针对上述问题,业界亟需一种提高视频编辑工具在多种不同运行场景下的兼容性的方案。
发明内容
本公开实施例提供一种用于视频编辑的方法及设备,以解决编辑能力较差的客户端无法打开或编辑其它客户端生成的视频草稿的问题。
第一方面,本公开实施例提供一种用于视频编辑的方法,包括:获取第一客户端生成的第一视频草稿,所述第一视频草稿中包括至少一个视频片段以及至少一个编辑能力信息,所述至少一个编辑能力信息用于指示对所述至少一个视频片段的编辑操作,所述至少一个编辑能力信息中包括所述第一客户端支持且第二客户端不支持的至少一个第一编辑 能力信息,所述第一客户端和所述第二客户端是用于视频编辑的不同程序;按照所述至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,所述第一视频片段是所述至少一个视频片段中的视频片段,所述第一视频片段在视频编辑时间线上的位置与所述至少一个第一编辑能力信息在所述视频编辑时间线上的位置有重叠区间;在所述第一视频草稿中,将所述第一视频片段替换为所述第二视频片段并删除所述至少一个第一编辑能力信息,得到第二视频草稿;向所述第二客户端提供所述第二视频草稿。
第二方面,本公开实施例提供一种用于视频编辑的设备,包括:获取模块,用于获取第一客户端生成的第一视频草稿,所述第一视频草稿中包括至少一个视频片段以及至少一个编辑能力信息,所述至少一个编辑能力信息用于指示对所述至少一个视频片段的编辑操作,所述至少一个编辑能力信息中包括所述第一客户端支持且第二客户端不支持的至少一个第一编辑能力信息,所述第一客户端和所述第二客户端是用于视频编辑的不同程序;编辑模块,用于按照所述至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,所述第一视频片段是所述至少一个视频片段中的视频片段,所述第一视频片段在视频编辑时间线上的位置与所述至少一个第一编辑能力信息在所述视频编辑时间线上的位置有重叠区间;所述编辑模块还用于在所述第一视频草稿中,将所述第一视频片段替换为所述第二视频片段并删除所述至少一个第一编辑能力信息,得到第二视频草稿;提供模块,用于向所述第二客户端提供所述第二视频草稿。
第三方面,本公开实施例提供一种电子设备,包括:处理器和存储器;所述存储器存储计算机执行指令;所述处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计所述的用于视频编辑的方法。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的用于视频编辑的方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的用于视频编辑的方法。
第六方面,本公开实施例提供一种计算机程序,所述计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的用于视频编辑的方法。
附图说明
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本公开一实施例的可能的应用场景的示意图;
图2是本公开一实施例的用于视频编辑的方法的流程示意图;
图3是本公开一实施例的用于视频编辑的方法的具体流程的示意图;
图4是本公开又一实施例的用于视频编辑的方法的具体流程的示意图;
图5是本公开一实施例提供的用于视频编辑的设备500的结构框图;
图6是本公开一实施例的电子设备600的结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
在本公开实施例中,可以根据第二客户端不支持的编辑能力,将第一客户端生成的第一视频草稿中的部分视频片段和视频编辑能力信息合成第二视频片段,并替换第一视频草稿中的第二客户端不支持的相关内容,以生成第二视频草稿并提供给第二客户端。由于替换后得到的第二视频草稿中不包括第二客户端不支持的编辑能力信息,从而使得编辑能力较低的第二客户端也能够打开和编辑第二视频草稿,提高了视频编辑工具在不同客户端的通用性。
图1是本公开一实施例的可能的应用场景的示意图。如图1所示,该场景包括客户端和服务器系统。客户端通过网络与服务器系统之间进行通信交互,以实现视频编辑功能。
在本公开实施例中,上述客户端可包括不同的类型,例如,可通过以下方式区分不同类型的客户端:视频编辑应用的版本类型、安装视频编辑应用的终端设备的类型。作为示例,视频编辑应用的版本类型可包括网页端、个人电脑(personal computer,PC)端、移动端等不同的应用安装环境。或者,视频编辑应用的版本类型也可以包括不同时间的更新版本。
例如,PC端版本和移动端版本可以在计算机设备或者移动终端中下载并安装具有视 频编辑功能的应用程序(application,APP)或插件,在本地进行视频编辑,并将编辑后的视频保存在本地或者上传服务器系统。
又例如,网页端版本可以指通过浏览器进行视频编辑的情形,终端设备可通过浏览器访问服务器系统,通过服务器系统实现视频编辑操作。在实践中,可以由服务器系统接收用户通过浏览器发送的视频编辑请求,并实现视频编辑操作。或者,浏览器也可以通过服务器系统下载视频编辑需要的工具和视频草稿并缓存在本地,在本地进行视频编辑。服务器系统可提供视频草稿的存取服务,例如,可以将编辑后的视频存储在服务器系统中,例如,存储于数据库中。
可选地,上述视频草稿可以是当前编辑的客户端上传的,也可以是其它客户端上传并预先存储在服务器系统中的,也可以是服务器系统自身提供的。作为示例,视频草稿可包括:视频片段以及编辑能力信息。上述编辑能力信息用于指示对视频片段的编辑操作。作为示例,上述编辑能力信息可包括但不限于:图像信息、特效信息、变速信息、文本信息以及音频信息等。上述特效信息例如可包括特效滤镜、特效滤镜贴纸等。上述编辑能力信息可在视频编辑时间线上和视频片段组合在一起,最终合成视频。
可选地,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,简称PDA)、平板电脑(Portable Android Device,简称PAD)、便携式多媒体播放器(Portable Media Player,简称PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。
上述服务器系统可以指一个独立的物理服务器,也可以是包括多个物理服务器的服务器集群或者分布式系统,或者也可以指云服务器。作为示例,在服务器系统包括多个服务器的情况下,不同的服务器可负责不同的功能。例如,上述多个服务器可包括但不限于以下各项:调度服务器,用于根据逻辑服务器的负载率,实现负载均衡;逻辑服务器,用于为前端提供访问数据库的接口,并执行视频编辑的任务;数据库,用于提供视频编辑所需的工具或者素材,还可以用于存储视频数据;视频合成服务器,用于根据视频草稿和相关的编辑操作,执行视频合成操作,生成视频。
如前文所述,现有技术中只支持使用同一类型的客户端打开或编辑视频草稿,从而限制了通过不同类型的客户端编辑同一视频草稿的情形,影响了用户体验和应用灵活度。
为了解决上述问题,本公开实施例提供了一种用于视频编辑的方法和设备。在该方法中,可以对视频草稿进行能力解析,确定客户端不支持的编辑能力,并将视频草稿中的第一视频片段和不支持的编辑能力合成第二视频片段,使用该第二视频片段替换视频草稿中 不支持的编辑能力以及第一视频片段,从而使得编辑能力较低的客户端也能打开和编辑视频草稿,提高了视频编辑工具在不同客户端的通用性。
图2是本公开一实施例的用于视频编辑的方法的流程示意图。该方法可以由图1中的服务器系统执行,也可以由其它设备执行。如图2所示,该方法包括以下内容。
S201、获取第一客户端生成的第一视频草稿,第一视频草稿中包括至少一个视频片段以及至少一个编辑能力信息,至少一个编辑能力信息用于指示对至少一个视频片段的编辑操作,至少一个编辑能力信息中包括第一客户端支持且第二客户端不支持的至少一个第一编辑能力信息,第一客户端和第二客户端是用于视频编辑的不同程序。
作为示例,上述视频草稿可包括:视频片段以及编辑能力信息。上述编辑能力信息用于指示对视频片段的编辑操作。作为示例,上述编辑能力信息可包括但不限于:图像信息、特效信息、变速信息、文本信息以及音频信息等。上述特效信息例如可包括特效滤镜、特效滤镜贴纸等。上述编辑能力信息中的任一项可在视频编辑时间线上和视频片段组合在一起,最终合成视频。
可选地,在获取第一视频草稿之前,图2的方法还包括:接收第二客户端发送的视频请求信息,视频请求信息用于请求获取视频编辑任务对应的视频草稿,所述第一视频草稿和所述第二视频草稿对应于所述视频编辑任务。
作为示例,用户可通过第二客户端进行打开视频草稿的操作,从而触发第二客户端向服务器系统发送视频请求信息。
作为示例,上述视频请求信息中可包括第一视频草稿的地址信息,服务器系统可根据地址信息获取第一视频草稿。第一视频草稿可以存储于服务器系统中,例如可存储于服务器系统中的数据库中,或者也可以存储于其他类型的存储设备中。
应理解,由于不同客户端的类型不同,导致不同客户端支持的编辑能力不同。例如,上述不同客户端类型包括:不同类型的终端设备、不同版本的视频编辑应用程序或者插件。例如,客户端使用浏览器登录的情况下,或者视频编辑应用程序的版本为早期版本,则其支持的编辑能力较少。
可选地,上述第一客户端和第二客户端是不同类型的客户端,例如,第一客户端和第二客户端的视频编辑应用的版本可以不同,或者,第一客户端和第二客户端的终端设备的类型不同。
例如,第一客户端可以为PC端,第二客户端可以为网页端。
作为示例,网页端也可以通过浏览器访问服务器系统,并打开和编辑视频草稿。例如, 网页端可通过浏览器呈现视频编辑网页以及用户交互界面,浏览器通过用户交互界面采集用户输入的视频编辑指令,并根据视频编辑指令对视频草稿进行编辑,并将编辑后的草稿上传至服务器系统中保存。
S202、按照至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,第一视频片段是至少一个视频片段中的视频片段,第一视频片段在视频编辑时间线上的位置与至少一个第一编辑能力信息在视频编辑时间线上的位置有重叠区间。
其中,上述按照至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,可以指将至少一个第一编辑能力信息和第一视频片段合成为第二视频片段。作为示例,上述获取第二视频片段的任务可以由服务器系统中的专用服务器实现。例如,服务器系统中可包括逻辑服务器和视频合成服务器,可以由逻辑服务器发起第二视频片段的合成任务,并向视频合成服务器发送合成视频所需的信息,包括:第一视频片段、至少一个编辑能力信息。视频合成服务器在合成第二视频片段之后,可以将第二视频片段发送至逻辑服务器。
作为示例,在确定第二客户端不支持的至少一个第一编辑能力信息方面,服务器系统可获取预先存储的第一编辑能力列表,第一编辑能力列表用于指示不同客户端类型不支持的编辑能力信息。例如,第一编辑能力列表可包括浏览器、至少一种终端设备类型或者至少一种视频编辑应用程序的版本不支持的编辑能力信息。上述第一编辑能力列表可以由技术开发者提前统计并存储在服务器系统中,并可以在后期进行更新。服务器系统根据第二客户端的类型,在第一编辑能力列表中查询第二客户端不支持的编辑能力信息。
可选地,第二客户端可以向服务器系统发送指示第二客户端的类型的信息,或者,服务器系统可以通过与第二客户端之间的通信方式,确定第二客户端的类型。
在确定第二客户端不支持的编辑能力信息之后,服务器系统可以对第一视频草稿进行筛选,确定第一客户端支持且第二客户端不支持的第一编辑能力信息,并将第一编辑能力信息以及对应的第一视频片段进行合成处理,以生成第二视频片段。
可选地,服务器系统可以向第二客户端发送通知信息,以向第二客户端通知第二视频片段的合成任务的进度。
S203、在第一视频草稿中,将第一视频片段替换为第二视频片段并删除至少一个第一编辑能力信息,得到第二视频草稿。
应理解,在使用第二视频片段替换第一视频片段,并删除至少一个第一编辑能力信息之后,由于第二客户端不支持的第一编辑能力信息已经被合成到第二视频片段中,因此第 二视频草稿中不存在第二客户端不支持的编辑能力,第二客户端可以正常打开第二视频草稿并进行编辑,从而可以解决不同类型客户端打开同一视频草稿的通用性的问题,提高了用户体验。
还应理解,在第二视频草稿中,仍然可以在第二视频片段的基础上执行第二客户端支持的编辑能力。换句话说,可以将第二视频片段作为原始视频进行编辑。
可选地,在生成第二视频草稿之后,服务器系统可以向第二客户端发送通知信息,以通知第二客户端可以打开和编辑第二视频草稿。
S204、向第二客户端提供第二视频草稿。
例如,可以向第二客户端发送第二视频草稿,在第二客户端接收第二视频草稿之后,用户可通过第二客户端打开和编辑第二视频草稿。
在本公开实施例中,可以根据第二客户端不支持的编辑能力,将第一客户端生成的第一视频草稿中的部分视频片段和视频编辑能力信息合成第二视频片段,并替换第一视频草稿中的第二客户端不支持的相关内容,以生成第二视频草稿并提供给第二客户端。由于替换后得到的第二视频草稿中不包括第二客户端不支持的编辑能力信息,从而使得编辑能力较低的第二客户端也能打开和编辑第二视频草稿,提高了视频编辑工具在不同客户端的通用性。
可选地,图2的方法还包括:在得到第二视频草稿之后,记录草稿修复信息,草稿修复信息用于指示第二视频片段与第一视频片段、至少一个第一编辑能力信息之间的关联关系。
在一些示例中,服务器系统可以将草稿修复信息存入数据库之中,并相应地记录第二视频草稿的标识信息以及第二客户端的标识信息等内容。
上述草稿修复信息可用于在后续过程中将视频草稿恢复为编辑能力更高的版本。例如,上述草稿修复信息可应用于在第二客户端存储编辑后的第三视频草稿的过程中,第三视频草稿是基于第二视频草稿进行编辑的。服务器系统可利用草稿修复信息,恢复第三视频草稿中被删除的编辑能力信息。以方便其它类型的客户端在后续过程中打开和编辑该视频草稿。
可选地,图2的方法还包括:接收第二客户端发送的第三视频草稿,第三视频草稿是根据第二视频草稿进行编辑后得到的视频草稿,第三视频草稿中包括第二视频片段;根据草稿修复信息,将第三视频草稿中的第二视频片段替换为第一视频片段,并增加至少一个第一编辑能力信息,以得到第四视频草稿。
作为示例,服务器系统可接收第二客户端发送的视频保存请求信息,视频保存请求信息用于请求存储第三视频草稿,第三视频草稿是对第二视频草稿进行编辑后得到的视频草稿;服务器系统根据草稿修复信息,将第三视频草稿中的第二视频片段替换为第一视频片段,并增加至少一个第一编辑能力信息,以获取第四视频草稿;服务器系统可以将第四视频草稿存入数据库。
在本公开实施例中,在第二客户端完成视频草稿的编辑并请求将视频草稿存储入数据库的情况下,服务器系统可根据草稿修复信息,逆向恢复视频草稿中被删除的编辑能力,以方便其它类型的客户端在后续过程中打开和编辑该视频草稿,从而提高了视频编辑的在不同类型的客户端中使用的适用性,提高了用户体验。
图3是本公开一实施例的用于视频编辑的方法的具体流程的示意图。其中,图3中主要示出了用户在打开视频草稿进行编辑的处理方案,并以客户端为网页端、服务器系统包括逻辑服务器和视频合成服务器为例进行描述。如图3所示,该方法包括以下步骤。
S301、客户端向用户显示浏览器中的人机交互界面,用户通过人机交互界面执行打开视频草稿的操作。
S302、客户端通过浏览器向逻辑服务器发送视频请求信息,视频请求信息用于请求获取待编辑视频的视频草稿。
S303、逻辑服务器获取第一视频草稿。
可选地,上述视频请求信息中可包括第一视频草稿的地址信息,以便于根据地址信息获取第一视频草稿。第一视频草稿可以存储于服务器系统中,例如可存储于服务器系统中的数据库中,或者也可以存储于其他类型的存储设备中。
S304、逻辑服务器根据视频编辑请求对客户端进行能力分析,以确定客户端不支持的至少一个第一编辑能力信息。
例如,逻辑服务器可根据预先存储的“浏览器不支持的编辑能力列表”对第一视频草稿进行筛选,确定第一视频草稿中是否存在浏览器不支持的至少一个第一编辑能力信息。若不存在,则逻辑服务器可以直接将第一视频草稿发送至客户端。若存在,则逻辑服务器需要启动视频替换流程,继续执行后续步骤。
S305、逻辑服务器根据客户端不支持的至少一个第一编辑能力信息,向视频合成服务器发送第二视频片段的合成任务。
例如,逻辑服务器可发起第二视频片段的合成任务,并向视频合成服务器发送合成视频所需的信息:第一视频片段、至少一个第一编辑能力信息。
作为示例,上述至少一个第一编辑能力信息可包括使用客户端不支持的编辑能力的视觉元素、与客户端不支持的编辑能力相关的视觉元素。
可选地,逻辑服务器可以向客户端发送通知信息,以将第二视频片段的合成任务的进度通知给客户端。
S306、视频合成服务器合成第二视频片段,并向逻辑服务器返回第二视频片段。
例如,视频合成服务器可根据逻辑服务器发送的第一视频片段以及至少一个第一编辑能力信息合成第二视频片段,并将第二视频片段发送至逻辑服务器。
S307、逻辑服务器使用第二视频片段替换第一视频草稿中的第一视频片段,并删除至少一个第一编辑能力信息,得到第二视频草稿。
S308、逻辑服务器将替换过程中的相关信息记录在草稿修复信息中,并存入数据库。
例如,草稿修复信息中可包括第二视频片段与第一视频片段以及至少一个第一编辑能力信息之间的关联关系。
S309、逻辑服务器向客户端发送第二视频草稿以及通知信息,以便于客户端对第二视频草稿进行编辑操作。
其中,上述通知信息用于通知客户端可开始对第二视频草稿的编辑操作。
S310、用户通过客户端对第二视频草稿进行视频编辑操作。
服务器系统可以根据第二客户端不支持的编辑能力,将第一客户端生成的第一视频草稿中的部分视频片段和视频编辑能力信息合成第二视频片段,并替换第一视频草稿中的第二客户端不支持的相关内容,以生成第二视频草稿并提供给第二客户端。由于替换后得到的第二视频草稿中不包括第二客户端不支持的编辑能力信息,从而使得编辑能力较低的第二客户端也能打开和编辑第二视频草稿,提高了视频编辑工具在不同客户端的通用性。
图4是本公开又一实施例的用于视频编辑的方法的具体流程的示意图。其中,图4中主要示出了客户端在完成视频编辑之后存储视频草稿的处理方案,并以客户端为网页端、服务器系统包括逻辑服务器为例进行描述。如图4所示,该方法包括以下内容。
S401、客户端向用户显示浏览器中的人机交互界面,用户通过人机交互界面执行保存第三视频草稿的操作,第三视频草稿是对第二视频草稿进行编辑后的视频草稿。
S402、客户端向逻辑服务器发送第三视频草稿以及视频保存请求信息,视频保存请求信息用于请求存储第三视频草稿。
S403、逻辑服务器查询数据库中是否保存与第三视频草稿相关的草稿修复信息,若存在,则获取该草稿修复信息,并执行S404;若不存在,则将第三视频草稿直接存入数据 库中,并结束流程。
S404、逻辑服务器根据草稿修复信息,使用第一视频片段替换第三视频草稿中的第二视频片段,并增加至少一个第一编辑能力信息,以得到第四视频草稿。
可以理解为,逻辑服务器在第三视频草稿中插入之前被移除的编辑能力以及被编辑能力影响的视觉元素,从而得到编辑能力完整的第四视频草稿。
S405、逻辑服务器将第四视频草稿存入数据库中,以便于其它类型的客户端使用。
上述客户端可以包括其它类型的终端设备或者其它类型的视频编辑应用程序的版本。
在客户端完成视频草稿的编辑并请求将视频草稿存储入服务器系统的情况下,服务器系统根据数据库中存储的草稿修复信息,逆向恢复视频草稿中被删除的编辑能力,以方便其它类型的客户端在后续过程中打开和编辑该视频草稿,从而提高了视频编辑的在不同类型的客户端中使用的适用性,提高了用户体验。
对应于上文实施例的用于视频编辑的方法,图5是本公开实施例提供的用于视频编辑的设备500的结构框图。为了便于说明,仅示出了与本公开实施例相关的部分。参照图5,设备包括:获取模块501、编辑模块502以及提供模块503。
获取模块501用于获取第一客户端生成的第一视频草稿,第一视频草稿中包括至少一个视频片段以及至少一个编辑能力信息,至少一个编辑能力信息用于指示对至少一个视频片段的编辑操作,至少一个编辑能力信息中包括第一客户端支持且第二客户端不支持的至少一个第一编辑能力信息,第一客户端和第二客户端是用于视频编辑的不同程序。
编辑模块502用于按照至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,第一视频片段是至少一个视频片段中的视频片段,第一视频片段在视频编辑时间线上的位置与至少一个第一编辑能力信息在视频编辑时间线上的位置有重叠区间。
提供模块503,用于向第二客户端提供第二视频草稿。
在本公开的一个实施例中,获取模块501还用于:接收第二客户端发送的视频请求信息,视频请求信息用于请求获取视频编辑任务对应的视频草稿,第一视频草稿和第二视频草稿对应于视频编辑任务。
在本公开的一个实施例中,获取模块501还用于获取第一编辑能力列表,第一编辑能力列表用于指示不同客户端类型不支持的编辑能力信息;编辑模块502还用于根据第二客户端的类型以及第一编辑能力列表,确定至少一个第一编辑能力信息。
在本公开的一个实施例中,客户端类型包括以下至少一项:视频编辑应用的版本类型、 安装视频编辑应用的终端设备的类型。
在本公开的一个实施例中,编辑模块502还用于记录草稿修复信息,草稿修复信息用于指示第二视频片段与第一视频片段、至少一个第一编辑能力信息之间的关联关系。
在本公开的一个实施例中,获取模块501还用于接收第二客户端发送的第三视频草稿,第三视频草稿是根据第二视频草稿进行编辑后得到的视频草稿,第三视频草稿中包括第二视频片段;编辑模块502还用于根据草稿修复信息,将第三视频草稿中的第二视频片段替换为第一视频片段,并增加至少一个第一编辑能力信息,以得到第四视频草稿。
图6是本公开一实施例的电子设备600的结构示意图,该电子设备600可以为服务器或者其它类型的设备。该电子设备可用于执行本公开所述的方法中的步骤。
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(Read Only Memory,简称ROM)602中的程序或者从存储装置608加载到随机访问存储器(Random Access Memory,简称RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(Input/Output,简称I/O)接口605也连接至总线604。
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(Liquid Crystal Display,简称LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。 计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,简称CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,简称LAN)或广域网(Wide Area Network,简称WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实 际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、专用标准产品(Application Specific Standard Parts,简称ASSP)、片上系统(System on Chip,简称SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,简称CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
第一方面,根据本公开的一个或多个实施例,提供了一种用于视频编辑的方法,包括:获取第一客户端生成的第一视频草稿,所述第一视频草稿中包括至少一个视频片段以及至少一个编辑能力信息,所述至少一个编辑能力信息用于指示对所述至少一个视频片段的编辑操作,所述至少一个编辑能力信息中包括所述第一客户端支持且第二客户端不支持的至少一个第一编辑能力信息,所述第一客户端和所述第二客户端是用于视频编辑的不同程序;按照所述至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,所述第一视频片段是所述至少一个视频片段中的视频片段,所述第一视频片段在视频编辑时间线上的位置与所述至少一个第一编辑能力信息在所述视频编辑时间线上的位置有重叠区间;在所述第一视频草稿中,将所述第一视频片段替换为所述第二视频片 段并删除所述至少一个第一编辑能力信息,得到第二视频草稿;向所述第二客户端提供所述第二视频草稿。
根据本公开的一个或多个实施例,所述方法还包括:接收所述第二客户端发送的视频请求信息,所述视频请求信息用于请求获取视频编辑任务对应的视频草稿,所述第一视频草稿和所述第二视频草稿对应于所述视频编辑任务。
根据本公开的一个或多个实施例,所述方法还包括:获取第一编辑能力列表,所述第一编辑能力列表用于指示不同客户端类型不支持的编辑能力信息;根据所述第二客户端的类型以及所述第一编辑能力列表,确定所述至少一个第一编辑能力信息。
根据本公开的一个或多个实施例,所述客户端类型包括以下至少一项:视频编辑应用的版本类型、安装视频编辑应用的终端设备的类型。
根据本公开的一个或多个实施例,所述方法还包括:记录草稿修复信息,所述草稿修复信息用于指示所述第二视频片段与所述第一视频片段、所述至少一个第一编辑能力信息之间的关联关系。
根据本公开的一个或多个实施例,所述方法还包括:接收所述第二客户端发送的第三视频草稿,所述第三视频草稿是根据所述第二视频草稿进行编辑后得到的视频草稿,所述第三视频草稿中包括所述第二视频片段;根据所述草稿修复信息,将所述第三视频草稿中的所述第二视频片段替换为所述第一视频片段,并增加所述至少一个第一编辑能力信息,以得到第四视频草稿。
第二方面,根据本公开的一个或多个实施例,提供了一种用于视频编辑的设备,包括:获取模块,用于获取第一客户端生成的第一视频草稿,所述第一视频草稿中包括至少一个视频片段以及至少一个编辑能力信息,所述至少一个编辑能力信息用于指示对所述至少一个视频片段的编辑操作,所述至少一个编辑能力信息中包括所述第一客户端支持且第二客户端不支持的至少一个第一编辑能力信息,所述第一客户端和所述第二客户端是用于视频编辑的不同程序;编辑模块,用于按照所述至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,所述第一视频片段是所述至少一个视频片段中的视频片段,所述第一视频片段在视频编辑时间线上的位置与所述至少一个第一编辑能力信息在所述视频编辑时间线上的位置有重叠区间;所述编辑模块还用于在所述第一视频草稿中,将所述第一视频片段替换为所述第二视频片段并删除所述至少一个第一编辑能力信息,得到第二视频草稿;提供模块,用于向所述第二客户端提供所述第二视频草稿。
根据本公开的一个或多个实施例,所述获取模块还用于:接收所述第二客户端发送的 视频请求信息,所述视频请求信息用于请求获取视频编辑任务对应的视频草稿,所述第一视频草稿和所述第二视频草稿对应于所述视频编辑任务。
根据本公开的一个或多个实施例,所述获取模块还用于获取第一编辑能力列表,所述第一编辑能力列表用于指示不同客户端类型不支持的编辑能力信息;所述编辑模块还用于根据所述第二客户端的类型以及所述第一编辑能力列表,确定所述至少一个第一编辑能力信息。
根据本公开的一个或多个实施例,所述客户端类型包括以下至少一项:视频编辑应用的版本类型、安装视频编辑应用的终端设备的类型。
根据本公开的一个或多个实施例,所述编辑模块还用于记录草稿修复信息,所述草稿修复信息用于指示所述第二视频片段与所述第一视频片段、所述至少一个第一编辑能力信息之间的关联关系。
根据本公开的一个或多个实施例,所述获取模块还用于接收所述第二客户端发送的第三视频草稿,所述第三视频草稿是根据所述第二视频草稿进行编辑后得到的视频草稿,所述第三视频草稿中包括所述第二视频片段;所述编辑模块还用于根据所述草稿修复信息,将所述第三视频草稿中的所述第二视频片段替换为所述第一视频片段,并增加所述至少一个第一编辑能力信息,以得到第四视频草稿。
第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个处理器和存储器;所述存储器存储计算机执行指令;所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计所述的用于视频编辑的方法。
第四方面,根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的用于视频编辑的方法。
第五方面,根据本公开的一个或多个实施例,提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的用于视频编辑的方法。
第六方面,本公开实施例提供一种计算机程序,所述计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的用于视频编辑的方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案, 同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (16)

  1. 一种用于视频编辑的方法,包括:
    获取第一客户端生成的第一视频草稿,所述第一视频草稿中包括至少一个视频片段以及至少一个编辑能力信息,所述至少一个编辑能力信息用于指示对所述至少一个视频片段的编辑操作,所述至少一个编辑能力信息中包括所述第一客户端支持且第二客户端不支持的至少一个第一编辑能力信息,所述第一客户端和所述第二客户端是用于视频编辑的不同程序;
    按照所述至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,所述第一视频片段是所述至少一个视频片段中的视频片段,所述第一视频片段在视频编辑时间线上的位置与所述至少一个第一编辑能力信息在所述视频编辑时间线上的位置有重叠区间;
    在所述第一视频草稿中,将所述第一视频片段替换为所述第二视频片段并删除所述至少一个第一编辑能力信息,得到第二视频草稿;
    向所述第二客户端提供所述第二视频草稿。
  2. 如权利要求1所述的方法,其中,所述方法还包括:
    接收所述第二客户端发送的视频请求信息,所述视频请求信息用于请求获取视频编辑任务对应的视频草稿,所述第一视频草稿和所述第二视频草稿对应于所述视频编辑任务。
  3. 如权利要求1或2所述的方法,其中,所述方法还包括:
    获取第一编辑能力列表,所述第一编辑能力列表用于指示不同客户端类型不支持的编辑能力信息;
    根据所述第二客户端的类型以及所述第一编辑能力列表,确定所述至少一个第一编辑能力信息。
  4. 如权利要求3所述的方法,其中,所述客户端类型包括以下至少一项:视频编辑应用的版本类型、安装视频编辑应用的终端设备的类型。
  5. 如权利要求1至4中任一项所述的方法,其中,所述方法还包括:
    记录草稿修复信息,所述草稿修复信息用于指示所述第二视频片段与所述第一视频片段、所述至少一个第一编辑能力信息之间的关联关系。
  6. 如权利要求5所述的方法,其中,所述方法还包括:
    接收所述第二客户端发送的第三视频草稿,所述第三视频草稿是根据所述第二视频草稿进行编辑后得到的视频草稿,所述第三视频草稿中包括所述第二视频片段;
    根据所述草稿修复信息,将所述第三视频草稿中的所述第二视频片段替换为所述第一视频片段,并增加所述至少一个第一编辑能力信息,以得到第四视频草稿。
  7. 一种用于视频编辑的设备,包括:
    获取模块,用于获取第一客户端生成的第一视频草稿,所述第一视频草稿中包括至少一个视频片段以及至少一个编辑能力信息,所述至少一个编辑能力信息用于指示对所述至少一个视频片段的编辑操作,所述至少一个编辑能力信息中包括所述第一客户端支持且第二客户端不支持的至少一个第一编辑能力信息,所述第一客户端和所述第二客户端是用于视频编辑的不同程序;
    编辑模块,用于按照所述至少一个第一编辑能力信息对第一视频片段进行编辑操作,得到第二视频片段,其中,所述第一视频片段是所述至少一个视频片段中的视频片段,所述第一视频片段在视频编辑时间线上的位置与所述至少一个第一编辑能力信息在所述视频编辑时间线上的位置有重叠区间;
    所述编辑模块还用于在所述第一视频草稿中,将所述第一视频片段替换为所述第二视频片段并删除所述至少一个第一编辑能力信息,得到第二视频草稿;
    提供模块,用于向所述第二客户端提供所述第二视频草稿。
  8. 如权利要求7所述的设备,其中,所述获取模块还用于:接收所述第二客户端发送的视频请求信息,所述视频请求信息用于请求获取视频编辑任务对应的视频草稿,所述第一视频草稿和所述第二视频草稿对应于所述视频编辑任务。
  9. 如权利要求7或8所述的设备,其中,所述获取模块还用于获取第一编辑能力列表,所述第一编辑能力列表用于指示不同客户端类型不支持的编辑能力信息;
    所述编辑模块还用于根据所述第二客户端的类型以及所述第一编辑能力列表,确定所述至少一个第一编辑能力信息。
  10. 如权利要求9所述的设备,其中,所述客户端类型包括以下至少一项:视频编辑应用的版本类型、安装视频编辑应用的终端设备的类型。
  11. 如权利要求7至10中任一项所述的设备,其中,所述编辑模块还用于记录草稿修复信息,所述草稿修复信息用于指示所述第二视频片段与所述第一视频片段、所述至少一个第一编辑能力信息之间的关联关系。
  12. 如权利要求11所述的设备,其中,所述获取模块还用于接收所述第二客户端发送的第三视频草稿,所述第三视频草稿是根据所述第二视频草稿进行编辑后得到的视频草稿,所述第三视频草稿中包括所述第二视频片段;
    所述编辑模块还用于根据所述草稿修复信息,将所述第三视频草稿中的所述第二视频片段替换为所述第一视频片段,并增加所述至少一个第一编辑能力信息,以得到第四视频草稿。
  13. 一种电子设备,包括:处理器和存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求1至6中任一项所述的用于视频编辑的方法。
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至6中任一项所述的用于视频编辑的方法。
  15. 一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的用于视频编辑的方法。
  16. 一种计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的用于视频编辑的方法。
PCT/CN2023/094309 2022-06-16 2023-05-15 用于视频编辑的方法及设备 WO2023241283A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210684585.8 2022-06-16
CN202210684585.8A CN117294875A (zh) 2022-06-16 2022-06-16 用于视频编辑的方法及设备

Publications (1)

Publication Number Publication Date
WO2023241283A1 true WO2023241283A1 (zh) 2023-12-21

Family

ID=89192072

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/094309 WO2023241283A1 (zh) 2022-06-16 2023-05-15 用于视频编辑的方法及设备

Country Status (2)

Country Link
CN (1) CN117294875A (zh)
WO (1) WO2023241283A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080112683A1 (en) * 2006-11-13 2008-05-15 Cyberlink Corp. System and Methods for Remote Manipulation of Video over a Network
CN103514351A (zh) * 2012-06-28 2014-01-15 三星电子(中国)研发中心 一种多媒体文件的编辑方法、装置和系统
US20160293216A1 (en) * 2015-03-30 2016-10-06 Bellevue Investments Gmbh & Co. Kgaa System and method for hybrid software-as-a-service video editing
CN112738573A (zh) * 2020-12-25 2021-04-30 北京达佳互联信息技术有限公司 视频数据传输方法和装置以及视频数据发布方法和装置
CN113099130A (zh) * 2021-04-15 2021-07-09 北京字节跳动网络技术有限公司 协同视频处理方法、装置、电子设备及存储介质
CN114095755A (zh) * 2021-11-19 2022-02-25 上海众源网络有限公司 一种视频处理方法、装置、系统、电子设备及存储介质
CN114125551A (zh) * 2020-08-31 2022-03-01 北京字节跳动网络技术有限公司 视频生成方法、装置、电子设备及计算机可读介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080112683A1 (en) * 2006-11-13 2008-05-15 Cyberlink Corp. System and Methods for Remote Manipulation of Video over a Network
CN103514351A (zh) * 2012-06-28 2014-01-15 三星电子(中国)研发中心 一种多媒体文件的编辑方法、装置和系统
US20160293216A1 (en) * 2015-03-30 2016-10-06 Bellevue Investments Gmbh & Co. Kgaa System and method for hybrid software-as-a-service video editing
CN114125551A (zh) * 2020-08-31 2022-03-01 北京字节跳动网络技术有限公司 视频生成方法、装置、电子设备及计算机可读介质
CN112738573A (zh) * 2020-12-25 2021-04-30 北京达佳互联信息技术有限公司 视频数据传输方法和装置以及视频数据发布方法和装置
CN113099130A (zh) * 2021-04-15 2021-07-09 北京字节跳动网络技术有限公司 协同视频处理方法、装置、电子设备及存储介质
CN114095755A (zh) * 2021-11-19 2022-02-25 上海众源网络有限公司 一种视频处理方法、装置、系统、电子设备及存储介质

Also Published As

Publication number Publication date
CN117294875A (zh) 2023-12-26

Similar Documents

Publication Publication Date Title
WO2021073315A1 (zh) 视频文件的生成方法、装置、终端及存储介质
WO2020233142A1 (zh) 多媒体文件播放方法、装置、电子设备和存储介质
WO2021196903A1 (zh) 视频处理方法、装置、可读介质及电子设备
CN111930973B (zh) 多媒体数据的播放方法、装置、电子设备及存储介质
WO2023284437A1 (zh) 媒体文件处理方法、装置、设备、可读存储介质及产品
WO2023273725A1 (zh) 文件下载方法、装置、存储介质及电子设备
WO2023051293A1 (zh) 一种音频处理方法、装置、电子设备和存储介质
CN113038234B (zh) 视频的处理方法、装置、电子设备和存储介质
WO2020168878A1 (zh) 数据缓存方法、装置、终端及存储介质
WO2023005831A1 (zh) 一种资源播放方法、装置、电子设备和存储介质
US20240118864A1 (en) Method and device for mixedly playing a program
WO2020147522A1 (zh) 用于处理音频的方法和装置
CN111309228A (zh) 多媒体处理方法、装置及电子设备
CN111400625A (zh) 页面处理方法、装置、电子设备及计算机可读存储介质
US20240103802A1 (en) Method, apparatus, device and medium for multimedia processing
WO2024094052A1 (zh) 音视频编辑方法、装置、电子设备及存储介质
CN114125551B (zh) 视频生成方法、装置、电子设备及计算机可读介质
JP2023525091A (ja) 画像特殊効果の設定方法、画像識別方法、装置および電子機器
WO2023134617A1 (zh) 一种模板选择方法、装置、电子设备及存储介质
WO2023241283A1 (zh) 用于视频编辑的方法及设备
CN110381356B (zh) 音视频生成方法、装置、电子设备及可读介质
CN111385599B (zh) 视频处理方法和装置
WO2023088484A1 (zh) 用于多媒体资源剪辑场景的方法、装置、设备及存储介质
US20230214237A1 (en) Method and apparatus for processing listening resuming of music application, and device
CN111385638B (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: 23822853

Country of ref document: EP

Kind code of ref document: A1