Video editing methods, and devices
Through the collaborative work of terminal devices and servers, video editing templates supported by the target application are screened out, solving the problem of managing multiple template libraries and improving the convenience and consistency of video editing.
Patent Information
- Application Number
- PCT/CN2024/139641
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-18
- Filing Date
- 2024-12-16
- Publication Date
- 2025-09-25
AI Technical Summary
Existing technologies require maintaining multiple video editing template libraries for different applications and versions, which increases workload and management difficulty.
The terminal device sends a function list of the target application to the server. The server filters the template recommendation list according to the supported video editing functions and displays the available templates in the user interface to avoid maintaining templates that do not support functions.
It realizes unified management of video editing templates across different applications, reduces the workload of maintaining and managing multiple template libraries, and improves the convenience and consistency of video editing.
Smart Images

Figure CN2024139641_25092025_PF_FP_ABST
Abstract
Description
Video editing method and device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202410309908.4, filed on March 18, 2024, entitled “A video editing method and device”. The entire contents of the application are incorporated herein by reference. Technical Field
[0003] The present application relates to the field of video editing technology, and in particular to a video editing method and device. Background Art
[0004] With the popularity of smartphones and other mobile devices, people are increasingly turning to various applications (APPs) to edit and create videos. These applications offer a wide variety of functions, allowing users to easily perform operations such as video editing, adding special effects, and audio processing.
[0005] To facilitate video editing, related technologies have proposed the use of video editing templates. With this solution, users can directly apply video editing templates to crop videos, add special effects, process audio, add subtitles, and other operations, quickly achieving specific editing effects and styles. However, different applications support different video editing features, and even different versions of the same application support different video editing features. Summary of the Invention
[0006] In view of this, an embodiment of the present application provides a video editing method and device for avoiding the maintenance and management of multiple video editing template libraries while preventing the video editing template from using video editing functions that are not supported by the current application.
[0007] In order to achieve the above objectives, the embodiments of the present application provide the following technical solutions:
[0008] In a first aspect, an embodiment of the present application provides a video editing method, applied to a terminal device, the method comprising:
[0009] Receiving a template viewing operation input by a user, wherein the template viewing operation is used to trigger displaying video editing templates available for user selection in a user interface of a target application;
[0010] In response to the template viewing operation, sending a template request message carrying a function list of the target application to a server, wherein the function list of the target application includes identification information of each video editing function supported by the target application;
[0011] receiving a template recommendation list sent by the server, the template recommendation list including display information of at least one video editing template; the video editing functions relied upon by each video editing template in the template recommendation list all belong to the video editing functions supported by the target application;
[0012] Video editing templates available for user selection are displayed in the user interface of the target application according to the template recommendation list.
[0013] As an optional implementation of the application embodiment, after displaying the video editing templates available for user selection in the user interface of the target application according to the template recommendation list, the method further includes:
[0014] receiving a user's selection operation on display information of a first video editing template in a user interface of the target application;
[0015] Sending template acquisition information for requesting to acquire the first video editing template to the server;
[0016] receiving the first video editing template sent by the server;
[0017] Perform video editing according to the first video editing template.
[0018] As an optional implementation of the application embodiment, before sending the template request information carrying the function list of the target application to the server, the method further includes:
[0019] Obtaining the installation package of the target application;
[0020] Parsing the installation package of the target application to obtain a function list of the target application;
[0021] The function list of the target application is saved to a preset storage location.
[0022] As an optional implementation of the application embodiment, before sending the template request information carrying the function list of the target application to the server, the method further includes:
[0023] Determining various video editing functions supported by the target application;
[0024] A function list of the target application is generated according to identification information of each video editing function supported by the target application.
[0025] In a second aspect, an embodiment of the present application provides a video editing method, applied to a server, the method comprising:
[0026] Receiving a template request message sent by a terminal device, the message carrying a function list of a target application, wherein the function list of the target application includes identification information of each video editing function supported by the target application;
[0027] Obtain dependency information of each video editing template in the initial template recommendation list, where the dependency information of any video editing template includes the video editing function that the video editing template depends on;
[0028] Filter out video editing templates whose video editing functions are not supported by the target application from the initial template recommendation list, so as to obtain a template recommendation list;
[0029] Send the template recommendation list to the terminal device.
[0030] As an optional implementation of the embodiment of the present application, after sending the template recommendation list to the terminal device, the method further includes:
[0031] receiving template acquisition information sent by the terminal device for requesting to acquire the first video editing template;
[0032] Obtaining the first video editing template from a template library;
[0033] Send the first video editing template to the terminal device.
[0034] As an optional implementation of the embodiment of the present application, the method further includes:
[0035] Acquire a second video editing template and dependency information of the second video editing template;
[0036] The second video editing template is saved to a template library, and dependency information of the second video editing template is saved to a preset storage location.
[0037] As an optional implementation of the embodiment of the present application, before obtaining the dependency information of each video editing template in the initial template recommendation list, the following steps are included:
[0038] Obtain the recommendation degree of each video template based on a preset recommendation algorithm;
[0039] The initial template recommendation list is generated according to the recommendation degree of each video template.
[0040] In a third aspect, an embodiment of the present application provides a terminal device, including:
[0041] A user input unit, configured to receive a template viewing operation input by a user, wherein the template viewing operation is used to trigger displaying video editing templates available for user selection in a user interface of a target application;
[0042] a sending unit, configured to send, in response to the template viewing operation, a template request message carrying a function list of the target application to a server, wherein the function list of the target application includes identification information of each video editing function supported by the target application;
[0043] a receiving unit, configured to receive a template recommendation list sent by the server, wherein the template recommendation list includes display information of at least one video editing template; the video editing functions relied upon by each video editing template in the template recommendation list are all video editing functions supported by the target application;
[0044] A processing unit is configured to display video editing templates available for user selection in a user interface of the target application according to the template recommendation list.
[0045] As an optional implementation of the embodiment of this application,
[0046] The user input unit is further configured to receive a user selection operation on display information of a first video editing template in the user interface of the target application after the processing unit displays video editing templates selectable by the user in the user interface of the target application according to the template recommendation list;
[0047] The sending unit is further configured to send template acquisition information for requesting to acquire the first video editing template to the server;
[0048] The receiving unit is further configured to receive the first video editing template sent by the server;
[0049] The processing unit is further configured to perform video editing according to the first video editing template.
[0050] As an optional implementation of an embodiment of the present application, the processing unit is also used to obtain the installation package of the target application before sending a template request information carrying the function list of the target application to the server; parse the installation package of the target application to obtain the function list of the target application; and save the function list of the target application to a preset storage location.
[0051] As an optional implementation of an embodiment of the present application, the processing unit is also used to determine the various video editing functions supported by the target application before sending a template request information carrying the function list of the target application to the server; and generate the function list of the target application based on the identification information of the various video editing functions supported by the target application.
[0052] In a fourth aspect, an embodiment of the present application provides a server, including:
[0053] a receiving unit, configured to receive a template request message sent by a terminal device and carrying a function list of a target application, wherein the function list of the target application includes identification information of each video editing function supported by the target application;
[0054] An acquiring unit, configured to acquire dependency information of each video editing template in the initial template recommendation list, wherein the dependency information of any video editing template includes the video editing function that the video editing template depends on;
[0055] A processing unit, configured to filter out video editing templates in the initial template recommendation list whose dependent video editing functions do not belong to the video editing functions supported by the target application, so as to determine and obtain a template recommendation list;
[0056] A sending unit is used to send the template recommendation list to the terminal device.
[0057] As an optional implementation of the embodiment of the present application, the receiving unit is further configured to, after sending the template recommendation list to the terminal device, receive template acquisition information sent by the terminal device for requesting to obtain the first video editing template;
[0058] The processing unit is further configured to obtain the first video editing template from a template library;
[0059] The sending unit is further configured to send the first video editing template to the terminal device.
[0060] As an optional implementation of the embodiment of this application,
[0061] The receiving unit is further configured to receive a second video editing template uploaded by the terminal device;
[0062] The processing unit is further used to obtain dependency information of the second video editing template; save the second video editing template to a template library, and save the dependency information of the second video editing template to a preset storage location.
[0063] As an optional implementation of an embodiment of the present application, the processing unit is also used to obtain the recommendation degree of each video template based on a preset recommendation algorithm before obtaining the dependency information of each video editing template in the initial template recommendation list; and generate the initial template recommendation list according to the recommendation degree of each video template.
[0064] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program and the processor is used to enable the electronic device to implement the video editing method described in any of the above embodiments when executing the computer program.
[0065] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which, when the computer program is executed by a computing device, enables the computing device to implement any of the above-mentioned video editing methods.
[0066] In a seventh aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to implement any of the above-mentioned video editing methods.
[0067] The video editing method provided in the embodiment of the present application, when receiving a template viewing operation input by the user for triggering the display of video editing templates available for user selection in the user interface of the target application, responds to the template viewing operation by sending a template request message carrying identification information of each video editing function supported by the target application to the server, then receives a template recommendation list including display information of at least one video editing template sent by the server, and displays the video editing templates available for user selection in the user interface of the target application according to the template recommendation list. Since the terminal device can send identification information of each video editing function supported by the target application to the server when receiving the template viewing operation input by the user, the server can send display information of video editing templates whose dependent video editing functions belong to the video editing functions supported by the target application to the client according to the video editing functions supported by the target application. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0069] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0070] FIG1 is a scene construction diagram of video editing provided by an embodiment of the present application;
[0071] FIG2 is one of the interactive flow charts of the video editing method provided in an embodiment of the present application;
[0072] FIG3 is a schematic diagram of a user interface according to an embodiment of the present application;
[0073] FIG4 is a second interactive flow chart of the video editing method provided in an embodiment of the present application;
[0074] FIG5 is a second schematic diagram of a user interface provided in an embodiment of the present application;
[0075] FIG6 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0076] FIG7 is a schematic diagram of the structure of a server provided in an embodiment of the present application;
[0077] FIG8 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.
[0079] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein. Obviously, the embodiments in the specification are only part of the embodiments of the present application, not all of the embodiments.
[0080] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.
[0081] In the related art, it is necessary to build video editing template libraries for different applications and different versions of the same application to prevent video editing templates from using video editing functions that the current application does not support. However, this approach requires maintaining and managing multiple video editing template libraries, which undoubtedly increases workload and management difficulty.
[0082] The following first describes the scene architecture of the video editing method in some embodiments of the present application. Referring to FIG1 , in some embodiments, the scene architecture of the video editing method includes: a terminal device 11 , a server 12 , and a template library 13 .
[0083] The terminal device 11 may be a mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), smart watch, smart bracelet, etc., or the terminal device may also be other types of terminal devices. The embodiments of the present disclosure do not limit the type of terminal device. The terminal device 11 is installed with a target application capable of video editing, and the target application includes at least one video editing function module to support at least one video editing function. The terminal device 11 can communicate with the server 12 via a local area network (LAN), a wireless local area network (WLAN), or other networks. The server 12 can provide content and interactive information such as video editing templates to the terminal device 11. The server 12 can be a cluster or multiple clusters, and can include one or more types of servers. The template library 13 can communicate with the server 12 via a dedicated line, a local area network, a wireless local area network, etc. The server 12 can save the video editing templates uploaded by the user or the video editing templates generated based on the user's edited video to the template library 13, and can also obtain the video editing templates stored in the template library 13.
[0084] When terminal device 11 receives a template viewing operation input by a user to trigger the display of video editing templates for user selection in the user interface of a target application, terminal device 11 may send a template request message containing a function list of the target application to server 12. The function list of the target application includes identification information of each video editing function supported by the target application. Based on the function list of the target application, server 12 may filter out video editing templates whose dependent video editing functions all fall within the video editing functions supported by the target application, generate a template recommendation list based on the display information of the filtered video editing templates, and send it to terminal device 11. Terminal device 11 may display the video editing templates for user selection in the user interface of the target application based on the template recommendation list sent by server 12. Furthermore, upon receiving a user selection operation for any video editing template displayed in the user interface of the target application, terminal device 11 may send template acquisition information to the server. Server 12 may also retrieve the video editing template from template library 13 and send it to terminal device 11. The terminal device may then perform video editing based on the video editing template.
[0085] The present invention provides a video editing method, as shown in FIG2 , which includes the following steps:
[0086] S101: A terminal device receives a template viewing operation input by a user.
[0087] The template viewing operation is used to trigger the display of video editing templates available for user selection in the user interface of the target application.
[0088] In some embodiments, the template viewing operation can be a user clicking a control in the user interface of the target application that triggers the target application to display video editing templates for the user to select, or a voice command or one or more specific gestures. The specific gesture can be any one of a single-click gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
[0089] Exemplarily, as shown in Figure 3, the user interface 300 of the target application includes a template control 31 for triggering the target application to display video editing templates available for user selection. When a user operation on the template control 31 is received, it is determined that the terminal device has received the template viewing operation input by the user.
[0090] S102: In response to the template viewing operation, the terminal device sends a template request message carrying a function list of the target application to the server.
[0091] Correspondingly, the server receives the template request information carrying the function list of the target application sent by the terminal device.
[0092] The function list of the target application includes identification information of each video editing function supported by the target application.
[0093] Exemplarily, the various video editing functions supported by the target application may include one or more of: clipping, speed adjustment, transition, special effects, subtitles, music, dubbing, watermark, cover, and merging.
[0094] In some embodiments, the function list of the target application may include the names of various video editing functions supported by the target application.
[0095] [Corrected 10.03.2025 according to Rule 91] For example, if the target application supports video editing function A and video editing function B, the function list of the target application may be as follows: [0095.1] [Corrected 10.03.2025 according to Rule 91] Video editing function A; [0095.2][Corrected 10.03.2025 according to Rule 91] Video editing function B. [0095.3][Corrected 10.03.2025 according to Rule 91] In some embodiments, the function list of the target application may include various video editing functions, with label information of each video editing function, wherein the label information of the video editing function supported by the target application is a first preset value, and the label information of the video editing function not supported by the target application is a second preset value. [0095.4] [Corrected 10.03.2025 according to Rule 91] For example, if the target application supports video editing function A, video editing function B, and video editing function D, the function list of the target application may be as shown in Table 1 below: [0095.5] [Corrected 10.03.2025 according to Rule 91] Table 1
[0096] S103: The server obtains dependency information of each video editing template in the initial template recommendation list.
[0097] The dependency information of any video editing template includes the video editing function that the video editing template depends on.
[0098] In some embodiments, the server may store the video editing functions that each video editing template depends on, and extract dependency information of each video editing template in the initial template recommendation list from the stored video editing functions.
[0099] In some embodiments, the server may store the video editing functions that each video editing template relies on in the form of a template function field (features), wherein each data bit of the template function field corresponds to a video editing function, and the value of the data bit indicates whether the video editing template relies on the video editing function.
[0100] For example, if the video editing functions include video editing functions A to H, and a video editing template depends on video editing functions A, D, and F, then the template function field of the video editing template may be 10010100. For another example, if the template function field of a video editing template is 01100101, then it can be determined that the video editing functions that the video editing template depends on include video editing functions B, C, F, and H, and does not depend on video editing functions A, D, E, and G.
[0101] S104: The server filters out video editing templates in the initial template recommendation list whose video editing functions are not supported by the target application, so as to obtain a template recommendation list.
[0102] That is, determine whether the video editing functions that each video editing template in the initial template recommendation list depends on are video editing functions supported by the target application. If the video editing functions that a certain video editing template depends on are all video editing functions supported by the target application, then retain the video editing template. If one or more video editing functions that a certain video editing template depends on are video editing functions that are not supported by the target application, then delete the video editing template from the initial template recommendation list.
[0103] It should be noted that the initial template recommendation list and the template recommendation list do not store the video editing template itself, but rather the display information or identification information of the video editing template. The display information or identification information of the video editing template may include the video editing template cover, the video editing template inspection introduction, the video editing template type, and other information.
[0104] S105. The server sends the template recommendation list to the terminal device.
[0105] Correspondingly, the terminal device receives the template recommendation list sent by the server.
[0106] The template recommendation list includes display information of at least one video editing template; and the video editing functions that each video editing template in the template recommendation list relies on all belong to the video editing functions supported by the target application.
[0107] S106: The terminal device displays video editing templates available for user selection in the user interface of the target application according to the template recommendation list.
[0108] The video editing method provided in the embodiment of the present application, when receiving a template viewing operation input by the user for triggering the display of video editing templates available for user selection in the user interface of the target application, responds to the template viewing operation, sends a template request message carrying identification information of each video editing function supported by the target application to the server, then receives a template recommendation list including display information of at least one video editing template sent by the server, and displays the video editing template available for user selection in the user interface of the target application according to the template recommendation list. Since the terminal device can send identification information of each video editing function supported by the target application to the server when receiving the template viewing operation input by the user, the server can send display information of video editing templates whose dependent video editing functions belong to the video editing functions supported by the target application to the client according to the video editing functions supported by the target application. Therefore, the embodiment of the present application can avoid the video editing template from using video editing functions not supported by the current application while avoiding the maintenance and management of multiple video editing template libraries.
[0109] Because the terminal device needs to send a template request message carrying the target application's function list to the server, the terminal device also needs to obtain the target application's function list before sending the template request message carrying the target application's function list to the server. The following further describes how the terminal device obtains the target application's function list.
[0110] In some embodiments, the terminal device obtains the function list of the target application by: obtaining the installation package of the target application; and parsing the installation package of the target application to obtain the function list of the target application.
[0111] That is, when building the target application installation package, the application's function list is added to the application's installation package. The terminal device downloads the target application's installation package, parses the target application's installation package, and obtains the target application's function list when installing the target application.
[0112] Since in the above embodiment, the terminal device obtains the function list of the target application during the installation of the target application, and sending a template request message carrying the function list of the target application to the server is a step in the process of running the target application, after parsing the installation package of the target application to obtain the function list of the target application, the terminal device can first save the function list of the target application to a preset storage location, and when it needs to send a template request message carrying the function list of the target application to the server, read the function list of the target application from the preset storage location.
[0113] In some embodiments, the implementation method of the terminal device obtaining the function list of the target application includes: determining the various video editing functions supported by the target application; and generating the function list of the target application based on the identification information of the various video editing functions supported by the target application.
[0114] For example, the video editing functions supported by the application can be automatically obtained by analyzing the application's code, interface or other related information.
[0115] When the terminal device receives a template viewing operation input by the user, it can obtain the function list of the target application through the above embodiment, or it can obtain and save the function list of the target application through the above embodiment in advance, and directly read the saved function list of the target application when receiving the template viewing operation input by the user.
[0116] Because the server obtains the template recommendation list by filtering out video editing templates in the initial template recommendation list that rely on video editing functions that are not supported by the target application, the server must first generate the initial template recommendation list before recommending the video editing templates in the initial template recommendation list. The following describes how the server generates the initial template recommendation list.
[0117] In some embodiments, the server generates an initial template recommendation list by: obtaining a recommendation degree of each video template based on a preset recommendation algorithm; and generating the initial template recommendation list according to the recommendation degree of each video template.
[0118] Preset recommendation algorithms may include collaborative filtering, content-based, and hybrid algorithms. Collaborative filtering recommends based on a user's historical behavior and similarities with other users, while content-based recommends based on the attributes of video editing templates and user preferences. Hybrid recommends by combining these two algorithms.
[0119] Based on the embodiment shown in FIG1 , as shown in FIG4 , after the terminal device displays video editing templates for user selection in the user interface of the target application according to the template recommendation list, the video editing method further includes the following steps:
[0120] S401: A terminal device receives a user's selection operation on display information of a first video editing template in a user interface of the target application.
[0121] The first video editing template in the embodiment of the present application can be any video editing template in the user interface of the target application.
[0122] It should be noted that the user interface of the target application displays the video recommendation templates in the template recommendation list, so the first video editing template is the video recommendation template in the template recommendation list.
[0123] S402: The terminal device sends template acquisition information for requesting to acquire the first video editing template to the server.
[0124] Correspondingly, the server receives template acquisition information sent by the terminal for requesting to acquire the first video editing template.
[0125] Exemplarily, as shown in Figure 5, after the video editing templates available for user selection are displayed in the user interface of the target application according to the template recommendation list, the user interface 500 of the target application includes display information of multiple video editing templates. When the user inputs a selection operation for the display information of the video editing template F in the user interface 500 of the target application, the terminal device sends template acquisition information for requesting to obtain the video editing template F to the server.
[0126] S403: The server obtains the first video editing template from the template library.
[0127] In some embodiments, the server stores the storage locations of various video editing templates in the template library, and the implementation method for the server to obtain the first video editing template from the template library includes: reading the first video editing template from the template library according to the storage location of the first video editing template in the template library.
[0128] In some embodiments, the server obtains the first video editing template from the template library in the following manner: sending a template acquisition request carrying identification information of the first video editing template to the template library, and receiving the first video editing template sent by the template library.
[0129] S404: The server sends the first video editing template to the terminal device.
[0130] Correspondingly, the terminal device receives the first video editing template sent by the server.
[0131] S405: The terminal device performs video editing according to the first video editing template.
[0132] In some embodiments, the video editing method provided by the above embodiment also includes: the server receives a second video editing template uploaded by the terminal device, obtains dependency information of the second video editing template, saves the second video editing template to a template library, and saves the dependency information of the second video editing template to a preset storage location.
[0133] In some embodiments, the server obtains the dependency information of the second video editing template in the following manner: analyzing the second video editing template to obtain the dependency information of the second video editing template.
[0134] In some embodiments, the server obtains the dependency information of the second video editing template in an implementation manner including: receiving the dependency information of the second video editing template uploaded by a terminal device.
[0135] Based on the same inventive concept, as an implementation of the above method, the embodiment of the present application also provides a terminal device and a server. This embodiment corresponds to the above method embodiment. For the convenience of reading, this embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the terminal device and server in this embodiment can correspond to the implementation of all the contents of the above method embodiment.
[0136] An embodiment of the present application provides a terminal device. FIG6 is a schematic structural diagram of the terminal device. As shown in FIG6 , the terminal device 600 includes:
[0137] A user input unit 61 is configured to receive a template viewing operation input by a user, wherein the template viewing operation is configured to trigger displaying video editing templates selectable by the user in a user interface of a target application;
[0138] a sending unit 62 configured to send, in response to the template viewing operation, a template request message carrying a function list of the target application to a server, wherein the function list of the target application includes identification information of each video editing function supported by the target application;
[0139] a receiving unit 63 configured to receive a template recommendation list sent by the server, wherein the template recommendation list includes display information of at least one video editing template; and each video editing template in the template recommendation list relies on a video editing function that is supported by the target application.
[0140] The processing unit 64 is configured to display video editing templates available for user selection in the user interface of the target application according to the template recommendation list.
[0141] As an optional implementation of the embodiment of this application,
[0142] The user input unit 61 is further configured to receive a user's selection operation on the displayed information of the first video editing template in the user interface of the target application after the processing unit displays the video editing templates available for user selection in the user interface of the target application according to the template recommendation list;
[0143] The sending unit 62 is further configured to send template acquisition information for requesting to acquire the first video editing template to the server;
[0144] The receiving unit 63 is further configured to receive the first video editing template sent by the server;
[0145] The processing unit 64 is further configured to perform video editing according to the first video editing template.
[0146] As an optional implementation of an embodiment of the present application, the processing unit 64 is also used to obtain the installation package of the target application before sending a template request information carrying the function list of the target application to the server; parse the installation package of the target application to obtain the function list of the target application; and save the function list of the target application to a preset storage location.
[0147] As an optional implementation of an embodiment of the present application, the processing unit 64 is also used to determine the various video editing functions supported by the target application before sending a template request information carrying the function list of the target application to the server; and generate the function list of the target application based on the identification information of the various video editing functions supported by the target application.
[0148] The terminal device provided in the embodiment of the present application can execute the video editing method provided in any of the above embodiments. Its implementation principles and technical effects are similar and will not be repeated here.
[0149] The embodiment of the present application provides a server. FIG7 is a schematic diagram of the structure of the server. As shown in FIG7 , the server 700 includes:
[0150] A receiving unit 71 is configured to receive a template request message sent by a terminal device, the template request message carrying a function list of a target application, wherein the function list of the target application includes identification information of each video editing function supported by the target application;
[0151] An acquiring unit 72 is configured to acquire dependency information of each video editing template in the initial template recommendation list, wherein the dependency information of any video editing template includes the video editing function that the video editing template depends on;
[0152] A processing unit 73 is configured to filter out video editing templates in the initial template recommendation list whose video editing functions are not supported by the target application, so as to determine and obtain a template recommendation list;
[0153] The sending unit 74 is configured to send the template recommendation list to the terminal device.
[0154] As an optional implementation of the embodiment of the present application, the receiving unit 71 is further configured to, after sending the template recommendation list to the terminal device, receive template acquisition information sent by the terminal device for requesting to obtain the first video editing template;
[0155] The processing unit 73 is further configured to obtain the first video editing template from a template library;
[0156] The sending unit 74 is further configured to send the first video editing template to the terminal device.
[0157] As an optional implementation of the embodiment of this application,
[0158] The receiving unit 71 is further configured to receive a second video editing template uploaded by the terminal device;
[0159] The processing unit 73 is further configured to obtain dependency information of the second video editing template; save the second video editing template to a template library, and save the dependency information of the second video editing template to a preset storage location.
[0160] As an optional implementation of an embodiment of the present application, the processing unit 73 is also used to obtain the recommendation degree of each video template based on a preset recommendation algorithm before obtaining the dependency information of each video editing template in the initial template recommendation list; and generate the initial template recommendation list according to the recommendation degree of each video template.
[0161] The server provided in the embodiment of the present application can execute the video editing method provided in any of the above embodiments. Its implementation principles and technical effects are similar and will not be repeated here.
[0162] Based on the same inventive concept, an embodiment of the present application further provides an electronic device. FIG8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in FIG8 , the electronic device provided in this embodiment includes: a memory 801 and a processor 802. The memory 801 is used to store a computer program, and the processor 802 is used to execute the video editing method provided in the above embodiment when executing the computer program.
[0163] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the computing device implements the video editing method provided in the above embodiment.
[0164] Based on the same inventive concept, an embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computing device implements the video editing method provided in the above embodiment.
[0165] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0166] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0167] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0168] Computer-readable media includes both permanent and non-permanent, removable and non-removable storage media. Storage media can implement any method or technology for storing information, which can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some or all of the technical features therein, and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A video editing method, comprising: Receiving a template viewing operation input by a user, wherein the template viewing operation is used to trigger displaying video editing templates available for user selection in a user interface of a target application; In response to the template viewing operation, sending a template request message carrying a function list of the target application to a server, wherein the function list of the target application includes identification information of each video editing function supported by the target application; receiving a template recommendation list sent by the server, wherein the template recommendation list includes display information of at least one video editing template; The video editing functions that each video editing template in the template recommendation list relies on are all video editing functions supported by the target application; Video editing templates available for user selection are displayed in the user interface of the target application according to the template recommendation list.
2. The method according to claim 1, wherein after displaying the video editing templates available for user selection in the user interface of the target application according to the template recommendation list, the method further comprises: receiving a user's selection operation on display information of a first video editing template in a user interface of the target application; Sending template acquisition information for requesting to acquire the first video editing template to the server; receiving the first video editing template sent by the server; Perform video editing according to the first video editing template.
3. The method according to claim 1, wherein before sending the template request information carrying the function list of the target application to the server, the method further comprises: Obtaining the installation package of the target application; Parsing the installation package of the target application to obtain a function list of the target application; The function list of the target application is saved to a preset storage location.
4. The method according to claim 1, wherein before sending the template request information carrying the function list of the target application to the server, the method further comprises: Determining various video editing functions supported by the target application; A function list of the target application is generated according to identification information of each video editing function supported by the target application.
5. A video editing method, comprising: Receiving a template request message sent by a terminal device, the message carrying a function list of a target application, wherein the function list of the target application includes identification information of each video editing function supported by the target application; Obtain dependency information of each video editing template in the initial template recommendation list, where the dependency information of any video editing template includes the video editing function that the video editing template depends on; Filter out video editing templates whose video editing functions are not supported by the target application from the initial template recommendation list, so as to obtain a template recommendation list; Send the template recommendation list to the terminal device.
6. The method according to claim 5, wherein after sending the template recommendation list to the terminal device, the method further comprises: Receiving template acquisition information sent by the terminal device for requesting to acquire a first video editing template; Obtaining the first video editing template from a template library; Send the first video editing template to the terminal device.
7. The method according to claim 5, further comprising: receiving a second video editing template uploaded by the terminal device; Obtaining dependency information of the second video editing template; The second video editing template is saved to a template library, and dependency information of the second video editing template is saved to a preset storage location.
8. The method according to claim 5, wherein before obtaining dependency information of each video editing template in the initial template recommendation list, the method further comprises: Obtain the recommendation degree of each video template based on a preset recommendation algorithm; The initial template recommendation list is generated according to the recommendation degree of each video template.
9. A terminal device comprising: A user input unit, configured to receive a template viewing operation input by a user, wherein the template viewing operation is used to trigger displaying video editing templates available for user selection in a user interface of a target application; a sending unit, configured to send, in response to the template viewing operation, a template request message carrying a function list of the target application to a server, wherein the function list of the target application includes identification information of each video editing function supported by the target application; a receiving unit, configured to receive a template recommendation list sent by the server, wherein the template recommendation list includes display information of at least one video editing template; The video editing functions that each video editing template in the template recommendation list relies on are all video editing functions supported by the target application; A processing unit is configured to display video editing templates available for user selection in a user interface of the target application according to the template recommendation list.
10. A server comprising: a receiving unit, configured to receive a template request message sent by a terminal device and carrying a function list of a target application, wherein the function list of the target application includes identification information of each video editing function supported by the target application; An acquiring unit, configured to acquire dependency information of each video editing template in the initial template recommendation list, wherein the dependency information of any video editing template includes the video editing function that the video editing template depends on; A processing unit, configured to filter out video editing templates in the initial template recommendation list whose dependent video editing functions do not belong to the video editing functions supported by the target application, so as to determine and obtain a template recommendation list; A sending unit is used to send the template recommendation list to the terminal device.
11. An electronic device comprising: A memory and a processor, wherein the memory is used to store a computer program and the processor is used to enable the electronic device to implement the video editing method according to any one of claims 1 to 8 when executing the computer program.
12. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a computing device, the computing device implements the video editing method according to any one of claims 1 to 8.
13. A computer program product, when running on a computer, enables the computer to implement the video editing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Editing template recommendation method and device, electronic equipment and storage medium
CN111105819A
Video generation method and device, electronic equipment and storage medium
CN112637675A
Video editing method and device
CN118075561A
Boring head for boring machine
KR1020220166081A