Video editing method and apparatus, and device and storage medium
By displaying the video copy and its associated object materials in the video editing interface and synchronously updating in response to text editing operations, the problem of the inability to edit video copy as the main body in the prior art is solved, and video editing efficiency and flexibility are improved.
Patent Information
- Application Number
- PCT/CN2024/137852
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-27
- Filing Date
- 2024-12-09
- Publication Date
- 2025-07-03
AI Technical Summary
The existing video editing methods cannot use video copy as the editorial subject to editing, resulting in inefficient editing.
The original video copy and its associated object materials are displayed in the video editing interface. In response to text editing operations, the video copy and object materials are updated, and paragraph splitting, merging, sorting, deleting and adding operations are supported to realize synchronous updates between video copy and object materials.
It improves the efficiency and flexibility of video editing, widens the applicable scenarios of video editing methods, and provides more efficient editing methods for text editors.
Smart Images

Figure CN2024137852_03072025_PF_FP_ABST
Abstract
Description
Video editing method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed on December 27, 2023, with application number 202311832794.3 and invention name “A video editing method, device, equipment and storage medium”. The entire contents of that application are incorporated by reference into this application. Technical Field
[0003] The embodiments of the present invention relate to the field of computer technology, and in particular to a video editing method, apparatus, device, and storage medium. Background Art
[0004] Currently, the video editing method provided by the video editor adopts a horizontal editing track with the video material as the editing subject. Summary of the Invention
[0005] Embodiments of the present invention provide a video editing method, apparatus, device, and storage medium to solve the problem of being unable to perform video editing with video text as the editing subject, thereby improving video editing efficiency.
[0006] In a first aspect, an embodiment of the present invention further provides a video editing method, the method comprising:
[0007] Displaying the original video text in the video editing draft in the video editing interface; wherein the video editing draft also includes the original object material associated with the original video text;
[0008] In response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to an updated video copy obtained by the text editing operation;
[0009] performing an update operation on the original object material in the video editing draft according to the update object material associated with the updated video copy;
[0010] The original object material includes original video material and / or original audio material.
[0011] In a second aspect, an embodiment of the present invention further provides a video editing device, the device comprising:
[0012] An original video copy display module is used to display the original video copy in the video editing draft in the video editing interface; wherein the video editing draft also includes the original object material associated with the original video copy;
[0013] an original video copy updating module, configured to, in response to a text editing operation on the original video copy, perform an update operation on the original video copy in the video editing interface according to an updated video copy obtained by the text editing operation;
[0014] an original object material updating module, configured to perform an updating operation on the original object material in the video editing draft according to the updating object material associated with the updating video copy;
[0015] The original object material includes original video material and / or original audio material.
[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the video editing method described in any embodiment of the present invention.
[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video editing method described in any embodiment of the present invention when executed.
[0021] The technical solution of an embodiment of the present invention is to display the original video copy in a video editing draft in a video editing interface, wherein the video editing draft also includes original object materials associated with the original video copy, and in response to a text editing operation on the original video copy, perform an update operation on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, and perform an update operation on the original object material in the video editing draft according to the updated object material associated with the updated video copy, wherein the original object material includes original video material and / or original audio material. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other features, advantages, and aspects of the various embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0023] FIG1 is a flow chart of a video editing method provided by one embodiment of the present invention;
[0024] FIG2 is a schematic diagram of a video editing interface provided by an embodiment of the present invention;
[0025] FIG3 is a schematic diagram of a video editing interface for selecting a paragraph object material provided by one embodiment of the present invention;
[0026] FIG4 is a schematic diagram of a text display area before and after a paragraph splitting operation provided by one embodiment of the present invention;
[0027] FIG5 is a schematic diagram of a text display area before and after a paragraph sorting operation provided by one embodiment of the present invention;
[0028] FIG6 is a flowchart of another video editing method provided by one embodiment of the present invention;
[0029] FIG7 is a schematic diagram of updating a video segment corresponding to a text deletion operation provided by one embodiment of the present invention;
[0030] FIG8 is a schematic diagram of updating a video segment corresponding to a text adding operation provided by one embodiment of the present invention;
[0031] FIG9 is a flowchart of another video editing method provided by one embodiment of the present invention;
[0032] FIG10 is a schematic diagram of updating packaging materials corresponding to a paragraph sorting operation provided by one embodiment of the present invention;
[0033] FIG11 is a schematic diagram of updating packaging materials corresponding to a text deletion operation provided by one embodiment of the present invention;
[0034] FIG12 is a flowchart of another video editing method provided by one embodiment of the present invention;
[0035] FIG13 is a schematic diagram of a paragraph object material before and after an associated text adjustment operation provided by one embodiment of the present invention;
[0036] FIG14 is a schematic structural diagram of a video editing device provided by one embodiment of the present invention;
[0037] FIG15 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.
[0039] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0040] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0041] It should be noted that the concepts of "first" and "second" mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0042] It should be noted that the modifications of "one" and "multiple" mentioned in the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0043] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0044] It is understandable that before using the technical solutions disclosed in the embodiments of the present invention, the type, scope of use, usage scenarios, etc. of the personal information involved in the present invention should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0045] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operation of the technical solution of the present invention based on the prompt message.
[0046] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0047] It is understandable that the above notification and user authorization process is merely illustrative and does not limit the implementation of the present invention. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present invention.
[0048] Video copy is a common element in the video editing process. Since the reading habits of video copy are mainly vertical, the above traditional video editing methods are not suitable for creators who prefer text editing, resulting in low efficiency of video editing.
[0049] FIG1 is a flow chart of a video editing method provided by an embodiment of the present invention. This embodiment is applicable to editing a video editing draft in a video editor. The method can be executed by a video editing device, which can be implemented in the form of hardware and / or software. The video editing device can be configured in a terminal device, typically a mobile terminal or a tablet computer. As shown in FIG1 , the method includes:
[0050] S110. Displaying the original video text in the video editing draft in the video editing interface.
[0051] In this embodiment, the original video copy can be obtained by performing a text transcription operation on the original object material currently displayed in the video editing interface, or it can be manually input by the user according to the numeric keyboard provided by the video editing interface, or it can be automatically generated by the video editor using an artificial intelligence text editing tool, or it can be imported into the video editor from a text document. There is no limitation on the method of obtaining the original video copy here, and any method of obtaining the original video copy is within the scope of protection of this application.
[0052] For example, the numeric keyboard may be activated in response to a text editing operation on a text editing control displayed in a video editing interface. Accordingly, the position of the text positioning cursor when the numeric keyboard is activated is the current position of the text positioning cursor. The numeric keyboard may also be activated in response to a double-click operation on a text display area by a user. Accordingly, the position of the text positioning cursor when the numeric keyboard is activated is the double-click position corresponding to the double-click operation. The numeric keyboard may also be activated in response to an editing option displayed in a text card where a paragraph video text is located. Accordingly, the position of the text positioning cursor when the numeric keyboard is activated is the first character position of the paragraph video text. The activation method of the numeric keyboard is not limited here.
[0053] In an optional embodiment, after the numeric keyboard is called up, the editable text range is the entire original video copy or the entire paragraph video copy. The editable text range is not limited here.
[0054] In this embodiment, the video editing interface includes at least a text display area for displaying the original video copy, and the video editing draft also includes original object materials associated with the original video copy, and the original object materials include original video materials and / or original audio materials.
[0055] In this embodiment, the original video copy and the original object material are associated in the timeline dimension. Specifically, the copy time period corresponding to the original video copy and the object time period corresponding to the original object material completely overlap on the timeline, that is, the copy start time of the original video copy on the timeline is the same as the object start time of the original object material on the timeline, and the copy end time of the original time copy on the timeline is the same as the object end time of the original object material on the timeline.
[0056] In an optional embodiment, the video editing interface further includes an object display area for displaying original object materials, wherein the object display area includes a video display area and / or an audio display area. For example, the text display area and the object display area may be arranged vertically or horizontally within the video editing interface. The relative positional relationship between the text display area and the object display area is not limited herein and may be customized based on actual needs.
[0057] In an optional embodiment, the method further includes: in response to an object adding operation on an object material adding control in a video editing interface, obtaining the original object material corresponding to the object adding operation, and performing a text transcription operation on the original object material to obtain an original video copy; and associating the original object material and the original video copy into a video editing draft.
[0058] Specifically, when the original object material is an original video material, a text transcription operation is performed on the native audio track of the original video material to obtain the original video copy; when the original object material is an original audio material, a text transcription operation is performed on the original audio material to obtain the original video copy.
[0059] Based on the above embodiment, optionally, the method further includes: when the original object material is an original video material, adding the native audio track of the original video material as the original audio material to the video editing draft by associating it with the original video text.
[0060] In an optional embodiment, the original video copy contains at least one paragraph video copy; correspondingly, the original object material contains paragraph object materials respectively associated with each of the paragraph video copy, and the paragraph object material contains original video clips corresponding to the original video material and / or original audio clips corresponding to the original audio material.
[0061] The original video copy in this embodiment is divided based on paragraphs. Each paragraph video copy obtained by the division corresponds to a slot. Each slot can place at least one object material. Accordingly, in this embodiment, the paragraph object material can be composed of at least one paragraph sub-object segment. The copy time period of the paragraph video copy and the material time period of its associated paragraph object material completely overlap on the timeline.
[0062] In another optional embodiment, the method further includes: in response to an object adding operation for the object material adding control in the video editing interface, displaying a material source option in the video editing interface; in response to a source editing operation for the material source option, adding the paragraph object material corresponding to the source editing operation to the video editing draft; wherein, the selected paragraph copy corresponding to the object adding operation in the video editing draft is associated with the paragraph object material, and the material source option includes a real-time material acquisition control and / or an existing material selection control.
[0063] Exemplarily, the control type of the object material adding control can be a button control, specifically a command button. In an optional embodiment, the object material adding control is set in the object display area and / or the text display area in the video editing interface. Specifically, if the object material adding control is set in the object display area, the paragraph video copy currently selected in the original video copy is used as the selected paragraph copy corresponding to the object adding operation; if the object material adding control is set in the text display area, the paragraph video copy displayed in the same position as the object material adding control in the text display area is used as the selected paragraph copy corresponding to the object adding operation.
[0064] FIG2 is a schematic diagram of a video editing interface provided by an embodiment of the present invention. Specifically, the video editing interface includes an object display area 11 and a text display area 12, wherein the object display area 11 displays an object material adding control 21, and the text display area 12 displays three paragraph video copy and an object material adding control 21 displayed in the same position as each paragraph video copy. In the video editing interface shown in FIG2 , the object display area 11 and the text display area 12 are separated by a time progress bar, and a time indicator corresponding to each paragraph video copy is displayed in front of each paragraph video copy. Specifically, the current time point in the time progress bar is updated in real time as the text positioning cursor moves, and the time indicator is used to indicate the paragraph length of the paragraph video copy.
[0065] In an optional embodiment, in response to a source editing operation on the material source option, adding the paragraph object material corresponding to the source editing operation to the video editing draft includes: in response to a trigger acquisition operation on the real-time material acquisition control, displaying a material acquisition interface corresponding to the trigger acquisition operation, and in response to a material acquisition operation on the material acquisition interface, adding the paragraph object material corresponding to the material acquisition operation to the video editing draft.
[0066] Specifically, when the paragraph object material is an original video clip, the material collection interface is a video shooting interface; when the paragraph object material is an original audio clip, the material collection interface is an audio recording interface.
[0067] In an optional embodiment, the method further includes: displaying the original video text in the material collection interface. The advantage of such a setting is that the collection efficiency of the original object material can be improved.
[0068] In another optional embodiment, in response to a source editing operation on the material source option, adding the paragraph object material corresponding to the source editing operation to the video editing draft includes: in response to a triggering selection operation on the existing material selection control, displaying a reference object material list and first selection prompt information in the video editing interface; wherein, the first selection prompt information includes the text paragraph duration of the selected paragraph copy; in response to a selection operation on the reference object material list, if the total material duration corresponding to at least one selected reference object material is less than the text paragraph duration, replacing the first selection prompt information in the video editing interface with a second selection prompt information; wherein, the second selection prompt information includes the material difference duration between the text paragraph duration and the total material duration; if the total material duration corresponding to at least one selected reference object material is greater than or equal to the text paragraph duration, then, in response to a triggering operation on the material upload control in the video editing interface, determining a paragraph object material based on the selected at least one reference object material, and adding the paragraph object material to the video editing draft.
[0069] Specifically, the reference object material list includes at least one reference object material, and the reference object material is a reference video clip or a reference audio clip.
[0070] In an optional embodiment, displaying the reference object material list in the video editing interface includes displaying the reference object material list under a material storage path in the video editing interface. Exemplarily, the material storage path may be a local material path of a device to which the client belongs, or a linked material path of a server.
[0071] In another optional embodiment, displaying a reference object material list in the video editing interface includes: displaying a first reference object material list in the video editing interface; wherein, the first reference object material list is searched from a reference object material list corresponding to a material storage path according to the selected paragraph copy; and / or, displaying a material search control in the video editing interface, and displaying a second reference object material list in the video editing interface in response to a search request operation for the material search control; wherein, the second reference object material is a list searched from the reference object material list according to a search keyword corresponding to the search request operation.
[0072] In one embodiment, in response to a trigger selection operation for the existing material selection control, a first reference object material list is displayed in the video editing interface; or, in response to a trigger selection operation for the existing material selection control, a material search control is displayed in the video editing interface, and in response to a search request operation for the material search control, a second reference object material list is displayed in the video editing interface; or, in response to a trigger selection operation for the existing material selection control, a first reference object material list and a material search control are displayed in the video editing interface, and in response to a search request operation for the material search control, the second reference object material list replaces the first reference object list in the video editing interface.
[0073] In an optional embodiment, the material search control includes a text box attribute, and a search prompt word is displayed in the material search control. For example, the search prompt word can be a keyword in the selected paragraph copy or a hot search word. There is no limitation on the selection of the search prompt word here, and the specific setting can be customized according to actual needs.
[0074] The advantage of this setting is that it can improve the uploading efficiency of object materials, thereby further improving the editing efficiency of videos.
[0075] Specifically, the first selection prompt information and the second selection prompt information are used to prompt the optional remaining duration of the paragraph object material. For example, the first selection prompt information may be "Please upload a 5s video", and the second selection prompt information may be "Please continue to select a 2s video".
[0076] Based on the above embodiment, the method optionally further includes: if the total duration of the material corresponding to at least one selected reference object material is greater than or equal to the duration of the text paragraph, replacing the second selection prompt information with a third selection prompt information. Specifically, the third selection prompt information is used to indicate that there is no remaining duration for the paragraph object material. For example, the third selection prompt information may be "The selected video meets the 5s material requirement."
[0077] The specific information content of the first selection prompt information, the second selection prompt information, and the third selection prompt information is not limited here, and can be customized according to actual needs.
[0078] In an optional embodiment, determining a paragraph object material based on at least one selected reference object material includes: if the total material duration is equal to the text paragraph duration, using the at least one selected reference object material as the paragraph object material; if the total material duration is greater than the text paragraph duration, performing end-cropping on the last selected reference object material in the at least one selected reference object material, and using the at least one selected reference object material after end-cropping as the paragraph object material. For example, assuming the total material duration is 23 seconds, the text paragraph duration is 20 seconds, and the reference material duration of the last selected reference object material is 10 seconds, then in the paragraph object material, the original material duration of the last selected reference object material is 7 seconds.
[0079] Figure 3 is a schematic diagram of a video editing interface for selecting paragraph object materials provided by an embodiment of the present invention. Specifically, in the example shown in Figure 3, the selected paragraph copy has a paragraph length of 18.4s. The video editing interface displays a second reference object material list, a second selection prompt information, a material upload control 22, and a material search control 23, wherein the second reference object material list is searched from the reference object material list according to "xx" in the material search control 23.
[0080] Based on the above embodiment, optionally, a text search control is displayed in the text display area. Accordingly, the method further includes: in response to a text search operation on the text search control, search-marking the original video text according to the search keyword corresponding to the text search operation. Exemplary search marks include, but are not limited to, bold marks, font method marks, highlight marks, etc. Search marks are not limited here and can be customized according to actual needs.
[0081] S120 . In response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to an updated video copy obtained by the text editing operation.
[0082] In an optional embodiment, the text editing operation includes a paragraph editing operation and / or a word editing operation. In this embodiment, the paragraph editing operation includes at least one of a paragraph splitting operation, a paragraph merging operation, a paragraph sorting operation, a paragraph deleting operation, and a paragraph adding operation.
[0083] S130: Perform an update operation on the original object material in the video editing draft according to the update object material associated with the updated video copy.
[0084] In this embodiment, the updated video copy and the updated object material are associated in the timeline dimension. Specifically, the copy time period corresponding to the updated video copy and the object time period corresponding to the updated object material completely overlap on the timeline.
[0085] In an optional embodiment, in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, including: in response to a paragraph splitting operation on the original video copy, the paragraph video copy at the split positioning position corresponding to the paragraph splitting operation is used as the selected paragraph copy; according to the updated video copy obtained by the paragraph splitting operation, a replacement operation is performed on the selected paragraph copy in the video editing interface; wherein, the updated video copy includes two split paragraph copy obtained by performing a paragraph splitting operation on the selected paragraph copy according to the split positioning position.
[0086] Exemplarily, the paragraph splitting operation can be a click operation input by the user on a paragraph splitting control having a specific icon form in the video editing interface. Exemplarily, the paragraph splitting control can be displayed in the editing function navigation area in the video editing interface, or in the calling function navigation area displayed in response to the function calling operation, wherein the function calling operation can be a long press operation or a sliding operation, such as a sliding operation being a left sliding operation; the paragraph splitting operation can also be a click operation input by the user on the paragraph splitting option displayed in the floating window in the video editing interface, or a click operation of the user on the relevant key on the numeric keypad. Exemplarily, the relevant key can be the enter key or a predefined key with a paragraph splitting function. The generation method of the paragraph splitting operation is not limited here.
[0087] Specifically, the split positioning position is used to represent the current text position of the text positioning cursor in response to the paragraph splitting operation on the original video copy. The client or server is configured to perform the paragraph splitting operation on the selected paragraph copy based on the split positioning position, obtain two split paragraph copies, and use the two split paragraph copies as the updated video copy.
[0088] Figure 4 is a schematic diagram of a text display area before and after a paragraph split operation, provided by one embodiment of the present invention. Specifically, the left side of Figure 4 shows the original video text displayed in the text display area before the paragraph split operation, and the right side shows the updated video text displayed in the text display area after the paragraph split operation. The "|" in the original video text represents the text positioning cursor.
[0089] On the basis of the above embodiment, the updating operation is performed on the original object material in the video editing draft according to the updated object material associated with the updated video copy, including: taking the paragraph object material associated with the selected paragraph copy as the selected object material; performing a replacement operation on the selected object material in the video editing draft according to the updated object material associated with the updated video copy; wherein the updated object material includes two split paragraph materials obtained by performing a split operation on the selected object material according to the split positioning position.
[0090] Specifically, the client or server is configured to determine the material location based on the split location, perform a split operation on the selected object material based on the material location to obtain two split paragraph materials, and use the two split paragraph materials as the updated object material. For example, taking the selected object material as the original video clip, the video frames of the original video clip before the material location are associated with the text of the selected paragraph before the split location, and the video frames of the original video clip after the material location are associated with the text of the selected paragraph after the split location.
[0091] In an optional embodiment, in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, including: in response to a paragraph merging operation on the original video copy, two paragraph video copy corresponding to the paragraph merging operation are respectively used as selected paragraph copy; according to the updated video copy obtained by the paragraph merging operation, a replacement operation is performed on each of the selected paragraph copy in the video editing interface; wherein, the updated video copy is a merged paragraph copy obtained by performing a paragraph merging operation on each of the selected paragraph copy.
[0092] Exemplarily, the paragraph merging operation can be a click operation input by the user on the paragraph merging control having a specific icon form in the video editing interface. Exemplarily, the paragraph merging control can be displayed in the editing function navigation area in the video editing interface, or in the calling function navigation area displayed in response to the function calling operation, wherein the function calling operation can be a long press operation or a sliding operation, such as the sliding operation being a left sliding operation; the paragraph merging operation can also be a click operation input by the user on the paragraph merging option displayed in the floating window in the video editing interface, or a click operation of the user on the relevant key on the numeric keypad. Exemplarily, the relevant key can be the backspace key, the delete key, or a predefined key with a paragraph merging function. The generation method of the paragraph merging operation is not limited here.
[0093] Specifically, the client or server is configured to perform a paragraph merging operation on each of the selected paragraph texts to obtain a merged paragraph text, and use the merged paragraph text as the updated video text.
[0094] On the basis of the above embodiment, correspondingly, the updating operation is performed on the original object material in the video editing draft according to the updated object material associated with the updated video copy, including: taking the paragraph object materials respectively associated with each of the selected paragraph copy as the selected object material; performing a replacement operation on each of the selected object materials in the video editing draft according to the updated object material associated with the updated video copy; wherein, the updated object material is a merged paragraph material obtained by performing a merging operation on each of the selected object materials.
[0095] Specifically, the client or server is configured to perform a merging operation on each of the selected object materials to obtain a merged paragraph material, and use the merged paragraph material as the updated object material.
[0096] Based on the above embodiment, optionally, when each selected object material includes an original audio clip, and at least two original audio clips have different audio playback speeds, the client or server is further configured to use the preset audio playback speed of the selected object material as the playback speed of the updated object material. Exemplarily, the preset selected object material may be the i-th selected object material among the selected object materials, where i may be 1 or 2. The preset selected object material is not limited herein.
[0097] In an optional embodiment, in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, including: in response to a paragraph sorting operation on the original video copy, at least two paragraph video copy corresponding to the paragraph sorting operation are respectively used as selected paragraph copy; according to the updated video copy obtained by the paragraph sorting operation, a replacement operation is performed on each of the selected paragraph copy in the video editing interface; wherein, the updated video copy is obtained by performing a sorting operation on each of the selected paragraph copy according to the paragraph arrangement order corresponding to the paragraph sorting operation.
[0098] Exemplarily, the paragraph sorting operation can be a user's dragging operation on the text card corresponding to the paragraph video text, or a user's sorting editing operation inputted on the paragraph sorting option displayed in the video editing interface, wherein the paragraph sorting option can be displayed in the video editing interface in response to a triggering sorting operation on the paragraph sorting control. Exemplarily, the paragraph sorting option includes option contents such as a paragraph input box and an arrangement order input box. The paragraph sorting control can be displayed in the editing function navigation area in the video editing interface, or in the calling function navigation area displayed in response to a function calling operation, wherein the function calling operation can be a long press operation or a sliding operation, such as a left sliding operation. The generation method of the paragraph sorting operation is not limited here.
[0099] Specifically, the client or server is configured to perform a sorting operation on each of the selected paragraph texts according to the paragraph arrangement order corresponding to the paragraph sorting operation to obtain an updated video text.
[0100] On the basis of the above embodiment, correspondingly, the updating operation is performed on the original object material in the video editing draft according to the updated object material associated with the updated video copy, including: taking the paragraph object materials respectively associated with each of the selected paragraph copy as the selected object material; performing a replacement operation on each of the selected object materials in the video editing draft according to the updated object material associated with the updated video copy; wherein, the updated object material is obtained by performing a sorting operation on each of the selected object materials according to the paragraph arrangement order corresponding to the paragraph sorting operation.
[0101] Specifically, the client or the server is configured to perform a sorting operation on each of the selected object materials according to the paragraph arrangement order corresponding to the paragraph sorting operation to obtain an updated object material.
[0102] Based on the above embodiment, when the video editing interface further includes a material progress bar, the method further includes: selecting the selected material corresponding to the current time point in the time progress bar among the selected object materials as the target object material, and performing a replacement operation on the current time in the time progress bar based on the update time point; wherein the update time point is determined based on the arrangement position of the target object material in the updated video copy. Specifically, the client or server is configured to determine the update time point based on the arrangement position of the target object material in the updated video copy.
[0103] Figure 5 is a schematic diagram of a text display area before and after a paragraph sorting operation provided by an embodiment of the present invention. Specifically, the left side of Figure 5 represents the original video copy displayed in the text display area before the paragraph sorting operation, and the right side represents the updated video copy displayed in the text display area after the paragraph sorting operation. In the example shown in Figure 5, the first paragraph video copy and the second paragraph video copy in the original video copy are paragraph sorted. Before the paragraph sorting operation, the current time point in the time progress bar is the time point corresponding to the "come" in the first paragraph video copy, that is, 00:05. After the paragraph sorting, the updated time point in the time progress bar is the time point corresponding to the "come" in the second paragraph video copy after the paragraph sorting operation, that is, 00:09.
[0104] In an optional embodiment, in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, including: in response to a paragraph deletion operation on the original video copy, the paragraph video copy corresponding to the paragraph deletion operation is used as the updated video copy, and the updated video copy is deleted from the original video copy in the video editing interface.
[0105] Exemplarily, a paragraph deletion operation may be a user clicking on a paragraph deletion control having a specific icon form in a video editing interface, wherein the paragraph deletion control may be displayed in an editing function navigation area in the video editing interface, or in a calling function navigation area displayed in response to a function calling operation, wherein the function calling operation may be a long press operation or a sliding operation, such as a left sliding operation; the paragraph deletion operation may also be a user clicking on a paragraph deletion option displayed in a floating window in the video editing interface, or a user clicking on a related key on a numeric keypad, wherein the related key may be a backspace key, a delete key, or a predefined key with a paragraph deletion function. The method for generating the paragraph deletion operation is not limited here.
[0106] Based on the above embodiment, correspondingly, the update operation is performed on the original object material in the video editing draft according to the update object material associated with the updated video copy, including: taking the paragraph object material associated with the updated video copy as the update object material, and deleting the update object material from the original object material in the video editing draft.
[0107] Based on the above embodiment, when the video editing interface also includes a material progress bar, the method further includes: replacing the original duration of the video copy in the time progress bar with the updated total duration corresponding to the updated original video copy; wherein the updated total duration represents the difference between the original duration of the copy and the total duration of the updated video copy. For example, assuming the original duration of the copy is 30 seconds and the total duration of the updated video copy is 5 seconds, the updated total duration is 25 seconds.
[0108] In an optional embodiment, in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, including: in response to a paragraph adding operation on the original video copy, obtaining the newly added paragraph copy corresponding to the paragraph adding operation and the newly added paragraph position relative to the original video copy; according to the newly added paragraph position, displaying the newly added paragraph copy as the updated video copy in the video editing interface.
[0109] Exemplarily, the paragraph adding operation may be an object adding operation of the object material adding control, and correspondingly, the newly added paragraph copy is the video copy transcribed from the added paragraph object material; the paragraph adding operation may also be a click operation input by the user on the paragraph adding control having a specific icon form in the video editing interface, and exemplarily, the paragraph adding control may be displayed in the editing function navigation area in the video editing interface, or may be displayed in the calling function navigation area displayed in response to the function calling operation, wherein the function calling operation may be a long press operation or a sliding operation, such as the sliding operation being a left sliding operation, etc. Exemplarily, the paragraph adding options corresponding to the paragraph adding control include at least one of a manual editing option, an artificial intelligence text editing option, and a text document import option. There is no limitation on the generation method of the paragraph adding operation here.
[0110] Based on the above embodiment, correspondingly, the update operation is performed on the original object material in the video editing draft according to the update object material associated with the updated video copy, including: using the paragraph object material associated with the updated video copy as the update object material; and adding the update object material to the video editing draft according to the newly added paragraph position.
[0111] Specifically, if the paragraph adding operation is an object adding operation of the object material adding control, the updated object material is the paragraph object material corresponding to the object adding operation; if the paragraph adding is a click operation input by the user on the paragraph adding control with a specific icon form in the video editing interface, the updated object material is the black field object material, and the black field material length of the black field object material is the same as the copy paragraph length of the updated video copy.
[0112] Based on the above embodiment, when the video editing interface also includes a material progress bar, the method further includes: replacing the original duration of the video copy in the time progress bar with the updated total duration corresponding to the updated original video copy; wherein the updated total duration represents the sum of the original duration of the copy and the total duration of the updated video copy. For example, assuming the original duration of the copy is 30 seconds and the total duration of the updated video copy is 5 seconds, the updated total duration is 35 seconds.
[0113] Based on the above embodiment, optionally, when the video editing interface also includes time indicators corresponding to each of the paragraph video texts, the method further includes: synchronously updating the indicated time in the time indicator along with the updated video text obtained by the text editing operation.
[0114] The technical solution of this embodiment is to display the original video copy in the video editing draft in the video editing interface; wherein, the video editing draft also includes the original object material associated with the original video copy, and in response to the text editing operation on the original video copy, perform an update operation on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, and perform an update operation on the original object material in the video editing draft according to the updated object material associated with the updated video copy, wherein the original object material includes the original video material and / or the original audio material, thereby solving the problem of being unable to perform video editing with the video copy as the editing subject, and improving the video editing efficiency.
[0115] FIG6 is a flow chart of another video editing method provided by an embodiment of the present invention. This embodiment further refines the "text editing operation" in the above embodiment. In this embodiment, the text editing operation includes a text deletion operation and / or a text addition operation. As shown in FIG6 , the method includes:
[0116] S210: Display the original video text in the video editing draft in the video editing interface.
[0117] S210 in this embodiment is the same as or similar to S110 shown in FIG. 1 in the above embodiment, and will not be described in detail in this embodiment.
[0118] S220: In response to a text editing operation on the original video text, an update operation is performed on the original video text in the video editing interface according to an updated video text obtained by the text editing operation.
[0119] S230: Perform an update operation on the original object material in the video editing draft according to the update object material associated with the updated video copy.
[0120] In an optional embodiment, in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, including: in response to a text deletion operation on the original video copy, the paragraph video copy containing the deleted text corresponding to the text deletion operation is used as the selected paragraph copy; according to the updated video copy obtained by the text deletion operation, a replacement operation is performed on the selected paragraph copy in the video editing interface; wherein, the updated video copy is obtained by deleting the deleted text from the selected paragraph copy.
[0121] For example, the text deletion operation can be a user clicking a related key on the numeric keypad, where the related key can be a backspace key, a delete key, or a predefined key with a text deletion function. The method for generating the text deletion operation is not limited here.
[0122] Specifically, the client or server is used to delete the deleted text from the selected paragraph copy to obtain an updated video copy.
[0123] On the basis of the above embodiment, when the video editing interface also includes a material progress bar and a time indicator, the method further includes: replacing the original duration of the original video copy in the time progress bar with the updated total duration corresponding to the updated original video copy, and replacing the updated paragraph duration corresponding to the updated video copy with the paragraph duration of the copy in the time indicator; wherein the updated total duration represents the difference between the original duration of the copy and the duration of the deleted text, and the updated paragraph duration represents the difference between the paragraph duration of the copy and the duration of the deleted text. For example, assuming that the original duration of the copy is 30s, the duration of the copy paragraph is 10s, and the duration of the deleted text is 1s, the updated total duration is 29s and the updated paragraph duration is 9s.
[0124] Based on the above embodiment, correspondingly, the updating operation is performed on the original object material in the video editing draft according to the updated object material associated with the updated video copy, including: taking the paragraph object material associated with the selected paragraph copy as the selected object material; and performing a replacement operation on the selected object material in the video editing draft according to the updated object material associated with the updated video copy.
[0125] Specifically, when the material type of the selected object material is the first type, the updated object material is obtained by deleting the deleted object material associated with the deleted text from the selected object material; when the material type of the selected object material is the second type, the updated video clip in the updated object material is obtained by performing an end trimming operation on the selected video clip in the selected object material according to the total length of the deleted text corresponding to each deleted text, and the updated audio clip in the updated object material is regenerated according to the updated video text.
[0126] In this embodiment, the selected object material includes a selected video clip and a selected audio clip. The first type is used to indicate that the selected audio clip in the selected object material is the original audio data of the selected video clip or a manually recorded clip. Exemplarily, the video frames of the selected video clip of the first type contain at least a speaking person. The second type is used to indicate that the selected audio clip in the selected object material is a voice-over clip or a digital human audio clip of the selected video clip. Exemplarily, the video frames of the selected video clip of the second type do not contain the speaking person or the subtitles corresponding to the selected paragraph text.
[0127] In one embodiment, the selected object material is of the first type, and the updated object material replaces the selected object material in real time as the text of the original video copy is deleted. Specifically, the client or server is configured to delete the deleted object material from the selected object material to obtain the updated object material, where the updated object material includes an updated video clip and an updated audio clip.
[0128] Specifically, the video editor defines that each punctuation mark in the original video text occupies a time segment with the preceding text. When a text is deleted, the punctuation mark bound to it will be deleted at the same time.
[0129] For example, the text duration t corresponding to a deleted text c Satisfies the formula:
[0130] Among them, t s Indicates the total duration of the selected object material, t b It indicates the duration of the black field in the selected object material, and N indicates the number of words in the selected paragraph copy.
[0131] In another embodiment, the selected object material is of the second type, and the updated object material triggers a replacement of the selected object material in response to a deletion operation triggered by a text deletion control, and the text deletion control is displayed synchronously with a numeric keypad. Specifically, the client or server is configured to perform an end-cropping operation on the selected video segment in the selected object material based on the total duration of the deleted text to obtain an updated video segment, and regenerate an updated audio segment based on the updated video text.
[0132] Figure 7 is a schematic diagram of updating a video segment corresponding to a text deletion operation, provided by one embodiment of the present invention. Specifically, the deleted video segments in the first type of selected video segments are video segments associated with each deleted text, and the deleted video segments in the second type of selected video segments are video segments associated with the end text sequence in the selected paragraph, where the end text sequence contains the same number of characters as the deleted characters.
[0133] In an optional embodiment, the text deletion operation includes a deleting word control in the video editing interface. Exemplarily, the deleting word control can be displayed in the editing function navigation area in the video editing interface, or in the calling function navigation area displayed in response to a function calling operation, wherein the function calling operation can be a long press operation or a sliding operation, such as a left sliding operation.
[0134] In an optional embodiment, the method further includes: if the selected paragraph copy is transcribed from the paragraph object material, the control editing state of the dehydrated word control is set to an editable state; if the selected paragraph copy is not transcribed from the paragraph object material, the control editing state of the dehydrated word control is set to a non-editable state.
[0135] For example, the watermarks in the selected paragraph text may be identified from the selected paragraph text using a watermark recognition algorithm, or may be obtained in response to a watermark marking operation on the selected text. The watermark marking operation may be a user clicking on a watermark marking option displayed in a floating window in the video editing interface.
[0136] In an optional embodiment, in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, including: in response to a text adding operation on the original video copy, the paragraph video copy containing the newly added text corresponding to the text adding operation is used as the selected paragraph copy, and the newly added text position relative to the selected paragraph copy is obtained; according to the updated video copy obtained by the text adding operation, a replacement operation is performed on the selected paragraph copy in the video editing interface; wherein, the updated video copy is obtained by adding the newly added text to the selected paragraph copy according to the newly added text position.
[0137] Exemplarily, the text adding operation may be an input operation of a numeric keyboard by a user. Specifically, the client or server is configured to add the newly added text to the selected paragraph copy according to the newly added text position to obtain an updated video copy.
[0138] On the basis of the above embodiment, when the video editing interface also includes a material progress bar and a time indicator, the method further includes: replacing the original duration of the original video copy in the time progress bar with the updated total duration corresponding to the updated original video copy, and replacing the updated paragraph duration corresponding to the updated video copy with the paragraph duration of the copy in the time indicator; wherein the updated total duration represents the sum of the original duration of the copy and the duration of the newly added text, and the updated paragraph duration represents the sum of the paragraph duration of the selected video copy and the duration of the newly added text. For example, assuming that the original duration of the copy is 30s, the original paragraph duration is 10s, and the newly added text duration is 1s, the updated total duration is 31s and the updated paragraph duration is 11s.
[0139] Based on the above embodiment, correspondingly, the updating operation is performed on the original object material in the video editing draft according to the updated object material associated with the updated video copy, including: taking the paragraph object material associated with the selected paragraph copy as the selected object material; and performing a replacement operation on the selected object material in the video editing draft according to the updated object material associated with the updated video copy.
[0140] Specifically, when the material type of the selected object material is the first type, the updated object material is obtained by adding the black field object material to the selected object material according to the position of the newly added text, and the object material length of the black field object material is the same as the new text length of the newly added text. When the material type of the selected object material is the second type, the updated video clip in the updated object material is determined according to the total length of the newly added text corresponding to each newly added text and the selected video clip in the selected object material, and the updated audio clip in the updated object material is regenerated according to the updated video copy.
[0141] In one embodiment, the selected object material is of the first type, and the updated object material replaces the selected object material in real time as text is added to the original video copy. Specifically, the client or server is configured to add the black object material to the selected object material based on the position of the newly added text to obtain the updated object material, where the updated object material includes an updated video clip and an updated audio clip.
[0142] In another embodiment, the selected object material is of the second type, and the updated object material replaces the selected object material in response to a triggering addition operation of a text adding control. In this embodiment, the text adding control is displayed synchronously with the numeric keypad. Specifically, the client or server is configured to determine the updated video segment based on the total duration of the newly added text and the selected video segment in the selected object material, and regenerate an updated audio segment based on the updated video text.
[0143] Specifically, if the selected video clip is uploaded to the object display area after being cropped at the end, the cropped video duration corresponding to the selected video clip is obtained; if the cropped video duration is greater than or equal to the total duration of the newly added text, the cropped video clip is spliced at the end of the selected video clip to obtain an updated video clip based on the total duration of the newly added text; if the cropped video duration is less than the total duration of the newly added text, the cropped video clip is spliced at the end of the selected video clip to obtain a reference video clip, and based on the difference between the total duration of the newly added text and the cropped video duration, a black video clip is spliced at the end of the reference video clip to obtain an updated video clip; if the selected video clip has not undergone the end cropping operation, the black video clip is spliced at the end of the selected video clip based on the total duration of the newly added text to obtain an updated video clip.
[0144] Figure 8 is a schematic diagram of an updated video segment corresponding to a text addition operation provided by one embodiment of the present invention. Specifically, a black video segment in the first type of updated video segment is added at the location of the material associated with the newly added text. A preset video segment is spliced at the end of the second type of updated video segment. The preset video segment can be a black video segment, a cropped video segment, or a combination of a cropped video segment and a black video segment. The video duration of the preset video segment is the same as the total duration of the newly added text.
[0145] The technical solution of this embodiment, by responding to the text editing operation on the original video copy, performs an update operation on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, and performs an update operation on the original object material in the video editing interface according to the updated object material associated with the updated video copy, thereby solving the problem of synchronous editing of the object material by the text editing operation, further improving the flexibility of video editing, and further broadening the applicable scenarios of the video editing method by distinguishing the material types of the object material.
[0146] FIG9 is a flow chart of another video editing method provided by an embodiment of the present invention. This embodiment further refines the video editing draft in the above embodiment. As shown in FIG9 , the method includes:
[0147] S310: Display the original video text in the video editing draft in the video editing interface.
[0148] S320: In response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation.
[0149] S330: Perform an update operation on the original object material in the video editing draft according to the update object material associated with the updated video copy.
[0150] In this embodiment, S310 - S330 correspond to or are similar to S110 - S130 shown in FIG. 1 and / or S210 - S230 shown in FIG. 6 in the above embodiment, and are not described in detail in this embodiment.
[0151] S340. If the preset packaging operation set includes the text editing operation, and the edited video copy corresponding to the text editing operation includes a sequence video copy, then an update operation is performed on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation.
[0152] In this embodiment, the video editing draft also includes original packaging materials, and the original packaging materials include sequence packaging materials respectively associated with at least one sequence video copy in the original video copy; wherein, the sequence video copy includes a preset sequence copy in at least one paragraph video copy, and each of the preset sequence copies represents a continuous video copy that can span paragraphs, and the sequence packaging materials are used to package the display effect of the sequence object material associated with the sequence video copy.
[0153] Exemplarily, original packaging materials include but are not limited to picture-in-picture, stickers, sound effects, subtitles, music and text templates, among which picture-in-picture, sound effects and music are packaging materials with time attributes, stickers, subtitles and text templates are packaging materials without time attributes, and packaging materials with time attributes represent that the packaging materials themselves have the time attribute of the duration of the packaging materials.
[0154] Specifically, there is an association between the sequence video copy and the sequence packaging material in the timeline dimension. Specifically, the copy time period corresponding to the sequence video copy and the packaging time period corresponding to the sequence packaging material completely overlap on the timeline.
[0155] In an optional embodiment, the preset packaging operation set includes at least one of a paragraph sorting operation, a text deletion operation, and a text adding operation, and the text deletion operation includes a paragraph deletion operation and / or a text deletion operation.
[0156] In an optional embodiment, the updating operation is performed on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation, including: when the text editing operation is a paragraph sorting operation, at least two paragraph video copywritings corresponding to the paragraph sorting operation are respectively used as selected paragraph copywritings; at least one sequence packaging material associated with a preset sequence copywriting in at least one selected paragraph copywriting is used as a selected packaging material, and the sequence video copywritings respectively associated with each of the selected packaging materials are used as a selected sequence copywriting; according to the updated packaging material corresponding to the paragraph sorting operation, a replacement operation is performed on each of the selected packaging materials in the video editing draft.
[0157] In this embodiment, the updated packaging material is obtained by performing a sorting operation on at least one target packaging material according to the order of the sequence texts. The sequence text order is determined according to the paragraph arrangement order corresponding to the paragraph sorting operation. The target packaging material is determined according to the cross-paragraph attribute of each selected sequence text. Specifically, when the cross-paragraph attribute of the selected sequence text is cross-paragraph, each target packaging material includes split packaging materials associated with at least two split sequence texts, each of which is obtained by performing a paragraph splitting operation on the selected sequence text. When the cross-paragraph attribute of the selected sequence text is non-cross-paragraph, each target packaging material includes the selected packaging material associated with the selected sequence text.
[0158] Specifically, if the selected sequence copy contains preset sequence copy in at least two paragraph video copy, the cross-paragraph attribute of the selected sequence copy is cross-paragraph; if the selected sequence copy contains preset sequence copy in one paragraph video copy, the cross-paragraph attribute of the selected sequence copy is non-cross-paragraph.
[0159] Specifically, if the cross-paragraph attribute of the selected sequence copy is non-cross-paragraph, the selected packaging material associated with the selected sequence copy will be moved along with the paragraph arrangement order of the paragraph video copy; if the cross-paragraph attribute of the selected sequence copy is cross-paragraph, the paragraph splitting operation will be performed on the selected packaging material associated with the selected sequence copy, and the paragraph arrangement order of the paragraph video copy with which the at least two split packaging materials obtained by the splitting are respectively associated will be moved.
[0160] FIG10 is a schematic diagram of an updated packaging material corresponding to a paragraph sorting operation provided by one embodiment of the present invention. Specifically, in the example shown in FIG10 , the selected packaging material is a music material, and the selected sequence texts associated with the selected packaging material include paragraph video text 1 through paragraph video text 4. The paragraph sorting operation represents moving paragraph video text 1 to the back of paragraph video text 3. Since the selected sequence text has a cross-paragraph attribute, a paragraph splitting operation is performed on the selected sequence text based on the paragraph separation positions corresponding to paragraph video text 1 and paragraph video text 2, and the paragraph separation positions corresponding to paragraph video text 3 and paragraph video text 4. This results in three split sequence texts: a combination of paragraph video text 1, paragraph video text 2, and paragraph video text 3, and paragraph video text 4. The target packaging materials associated with each split sequence text are the beginning material, middle material, and ending material of the music material. Based on the sequence text order obtained from the paragraph arrangement order, the sorting operation is performed on each target packaging material, resulting in the order of each target packaging material in the updated packaging material being middle material, beginning material, and ending material, respectively.
[0161] In an optional embodiment, the updating operation is performed on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation, including: when the text editing operation is a text deletion operation, the sequence packaging material that is associated with the deletion sequence copy corresponding to the text deletion operation is selected as the packaging material; if the selected sequence copy associated with the selected packaging material is included in the deletion sequence copy, the selected packaging material is deleted from the original packaging material in the video editing draft as the updated packaging material; wherein, when the text deletion operation is a paragraph deletion operation, the deletion sequence copy is a deletion paragraph copy, and when the text deletion operation is a text deletion operation, the deletion sequence copy is a deletion text.
[0162] Specifically, if the selected sequence text associated with the selected packaging material is included in the deleted sequence text, it means that the selected sequence text is completely deleted, and the selected packaging material is deleted from the original packaging material in the video editing draft as an updated packaging material.
[0163] In an optional embodiment, the updating operation is performed on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation, and also includes: if the selected sequence copy is not included in the deleted sequence copy, the replacement operation is performed on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation.
[0164] In this embodiment, when the selected packaging material is a packaging material with a time attribute and the deleted sequence copy does not contain the starting associated text in the selected sequence copy, the updated packaging material is obtained by associating the selected packaging material with the updated original video copy based on the packaging material duration of the selected packaging material and the starting associated text; when the selected packaging material is a packaging material with a time attribute and the deleted sequence copy contains the starting associated text in the selected sequence copy, the updated packaging material is obtained by associating the selected packaging material with the updated original video copy based on the packaging material duration of the selected packaging material and the updated starting associated text, and the updated starting associated text is the first associated text in the selected sequence copy that is located after the deleted sequence copy.
[0165] Based on the above embodiment, optionally, the client or server is also used to: obtain the remaining duration of the remaining video copy starting with the starting associated text or the updated starting associated text in the updated original video copy; if the packaging material duration is greater than the remaining duration of the copy, then perform an end cropping operation on the selected packaging material based on the difference between the packaging material duration and the remaining duration of the copy to obtain the updated packaging material.
[0166] Figure 11 is a schematic diagram of updating packaging materials corresponding to a text deletion operation, provided by one embodiment of the present invention. Specifically, the selected packaging materials shown in Figure 11 include 12 seconds of Music 1 and 14 seconds of Music 2. Music 1 is associated with the text "Hello everyone, the weather is getting hotter recently" in the video paragraph, and Music 2 is associated with the text "Share a good summer sunscreen with you" in the video paragraph.
[0167] In the text deletion operation shown in Figure 11, the deletion sequence copy associated with Music 1 contains the starting associated text "big", and the client or server is used to associate the Music 1 with the updated original video copy according to the packaging material length of the selected packaging material and the updated starting associated text "most". At this time, Music 1 is the 12s packaging material associated with "The weather is getting hotter recently, I'll give it".
[0168] In the text deletion operation shown in Figure 11, the deletion sequence copy associated with Music 2 does not contain the starting associated text "you", so the client or server is used to associate Music 2 with the updated original video copy based on the packaging material duration of the selected packaging material and the starting associated text "you". Since the packaging material duration of Music 2 is greater than the remaining copy duration of the remaining video copy in the original video copy starting with "you", the end cropping operation is performed on Music 2. At this time, Music 2 is a 10-s packaging material associated with "You share a good sunscreen product".
[0169] In this embodiment, when the selected packaging material is a packaging material without a time attribute, the updated packaging material is a packaging material associated with an updated sequence text, and the updated sequence text is obtained by deleting the deleted sequence text from the selected sequence text.
[0170] Before performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation, the method further includes: taking the paragraph object material associated with the paragraph video copy where the deletion sequence copy is located as the selected object material; when the text deletion operation is a paragraph deletion operation, or the text deletion operation is a word deletion operation and the material type of the selected object material is the first type, performing the step of performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation; when the text deletion operation is a word deletion operation and the material type of the selected object material is the second type, in response to the triggering deletion operation of the word deletion control in the video editing interface, performing the step of performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation.
[0171] Specifically, if the text deletion operation is a paragraph deletion operation, or if the text deletion operation is a character deletion operation and the material type of the selected object material is the first type, the updated packaging material replaces the selected packaging material in real time in response to the paragraph deletion operation of the original video copy. If the text deletion operation is a character deletion operation and the material type of the selected object material is the second type, the updated packaging material triggers the replacement of the selected packaging material in response to the triggering deletion operation of the character deletion control.
[0172] In an optional embodiment, the updating operation is performed on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation, including: when the text editing operation is a text adding operation, the sequence video copy containing the newly added text sequence corresponding to the text adding operation is used as the selected sequence copy, and the sequence packaging material associated with the selected sequence copy is used as the selected packaging material; according to the updated packaging material corresponding to the text adding operation, a replacement operation is performed on the selected packaging material in the video editing draft.
[0173] In this embodiment, when the selected packaging material is a packaging material with a time attribute, the updated packaging material is obtained by associating the selected packaging material with the updated original video copy based on the packaging material duration of the selected packaging material and the starting associated text in the selected sequence copy; when the selected packaging material is a packaging material without a time attribute, the updated packaging material is obtained by associating the selected packaging material with the updated sequence copy based on the starting associated text; the updated sequence copy is obtained by adding the newly added text sequence to the selected sequence copy.
[0174] In an optional embodiment, before performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text adding operation, the method further includes: taking the paragraph object material associated with the paragraph video copy where the newly added text is located as the selected object material; when the material type of the selected object material is of the first type, performing a step of performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text adding operation; when the material type of the selected object material is of the second type, in response to the triggering adding operation of the text adding control in the video editing interface, performing a step of performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text adding operation.
[0175] Specifically, if the text adding operation is a paragraph adding operation, or if the text adding operation is a word adding operation and the material type of the selected object material is the first type, the updated packaging material replaces the selected packaging material in real time along with the paragraph adding operation of the original video copy. If the text adding operation is a word adding operation and the material type of the selected object material is the second type, the updated packaging material replaces the selected packaging material in response to the triggering adding operation of the word adding control.
[0176] In an optional embodiment, the method further includes: in response to a packaging addition operation on a packaging material adding control in the video editing interface, obtaining a sequence packaging material corresponding to the packaging addition operation, and obtaining a sequence video copy in the original video copy; and adding the sequence packaging material to the video editing draft.
[0177] In an optional embodiment, the method further includes: in response to a sequence selection operation input for the original video copy, obtaining a selected video copy corresponding to the sequence selection operation in the original video copy; accordingly, obtaining the sequence video copy in the original video copy includes: if a selected video copy exists, using the selected video copy as the sequence video copy; if no selected video copy exists, obtaining the sequence video copy from the original video copy according to the current text position of the text positioning cursor.
[0178] In an optional embodiment, the obtaining of the sequence video copy from the original video copy based on the current text position of the text positioning cursor includes: if the sequence packaging material is a packaging material with a time attribute, then obtaining the sequence video copy from the original video copy based on the packaging material duration corresponding to the sequence packaging material and the current text position of the text positioning cursor; if the sequence packaging material is a packaging material without a time attribute, then obtaining the sequence video copy from the original video copy based on the preset selection sequence number and the current text position of the text positioning cursor.
[0179] Specifically, the client or server is used to obtain the remaining duration of the remaining video copy corresponding to the current text position of the text positioning cursor in the original video copy as the starting point. If the remaining duration of the copy is greater than or equal to the duration of the packaging material, the copy sequence duration of the sequence video copy is equal to the duration of the packaging material. If the remaining duration of the copy is less than the duration of the packaging material, the end cropping operation is performed on the sequence packaging material according to the difference duration corresponding to the remaining duration of the copy and the duration of the packaging material to obtain an updated sequence packaging material.
[0180] Exemplarily, the number of preset selection sequences may be 4 or 5. The specific parameter value of the number of preset selection sequences is not limited here and can be customized according to actual needs.
[0181] Specifically, the client or server is used to obtain the remaining number of video copies corresponding to the current text position of the text positioning cursor in the original video copy as the starting point. If the remaining number of copies is greater than or equal to the preset selection sequence number, the number of copy sequences of the sequence video copy is equal to the preset selection sequence number. If the remaining number of copies is less than the preset selection sequence number, the number of copy sequences of the sequence video copy is equal to the remaining number of copies.
[0182] In an optional embodiment, the method further includes: in response to an object speed change operation on the paragraph object material, using a sequence packaging material associated with a preset sequence text in the paragraph video text corresponding to the object speed change operation as a selected packaging material; if the selected packaging material is a packaging material with a time attribute and the preset sequence text contains the starting associated text corresponding to the selected packaging material, then performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the object speed change operation; wherein the material playback speed of the updated packaging material is the same as the audio playback speed corresponding to the object speed change operation.
[0183] Specifically, the client or the server is configured to adjust the material playback speed of the updated packaging material having the time attribute according to the audio playback speed corresponding to the object speed change operation.
[0184] In an optional embodiment, when the sequence packaging material is a subtitle, the method further includes: in response to a subtitle effect adding operation input for the subtitle, adding a subtitle effect corresponding to the subtitle effect adding operation to the subtitle. Exemplary subtitle adding effects include, but are not limited to, subtitle styles, subtitle animations, and subtitle keywords, and are not limited to subtitle adding effects herein.
[0185] The technical solution of this embodiment is to display the original packaging material in the video editing interface, where the original packaging material includes sequence packaging materials respectively associated with at least one sequence video copy in the original video copy. In response to a text editing operation on the original video copy, if the edited video copy corresponding to the text editing operation includes sequence video copy, an update operation is performed on the original packaging material in the video editing interface according to the updated packaging material corresponding to the text editing operation, thereby solving the problem of synchronous editing of the packaging material by the text editing operation, further improving the flexibility of video editing, and improving the adaptability of the video editing method with the video copy as the editing subject to the packaging material, thereby further broadening the applicable scenarios of the video editing method.
[0186] FIG12 is a flow chart of another video editing method provided by an embodiment of the present invention. This embodiment further refines the video editing method in the above embodiment. As shown in FIG12 , the method includes:
[0187] S410: Display the original video text in the video editing draft in the video editing interface.
[0188] S420: In response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation.
[0189] S430: Perform an update operation on the original object material in the video editing draft according to the update object material associated with the updated video copy.
[0190] In this embodiment, S410 - S430 correspond to or are similar to S110 - S130 shown in FIG. 1 and / or S210 - S230 shown in FIG. 6 in the above embodiment, and are not described in detail in this embodiment.
[0191] S440. In response to a material selection operation on the paragraph object material, the sentence object material corresponding to the material selection operation is used as a selected sentence material.
[0192] In this embodiment, the paragraph object material includes sentence object materials that are respectively associated with at least two sentence video texts in the paragraph video text. Specifically, there is no overlapping video text between sentence video texts associated with different sentence object materials.
[0193] Exemplarily, the material selection operation may be a click operation input by the user based on at least two sentence object materials displayed in the video editing interface.
[0194] S450: The sentence video copy associated with the selected sentence material is used as the selected sentence copy, and a selected associated style corresponding to the selected sentence copy is displayed in the video editing interface.
[0195] Exemplarily, the selected associated style may be at least one of bold, highlighted, larger font, a preset font color, and a selected cursor. The specific style content of the selected associated style is not limited here and can be customized according to actual needs.
[0196] S460: In response to the associated text adjustment operation on the selected sentence copy, a replacement operation is performed on the selected associated style in the video editing interface according to the updated associated style corresponding to the updated sentence copy obtained by the associated text adjustment operation.
[0197] Exemplarily, the associated text adjustment operation can be input by the user by dragging the front cursor of the selected cursor displayed in the video editing interface, or by the user by dragging the rear cursor of the selected cursor displayed in the video editing interface, or by the user through the associated text adjustment options displayed in the video editing interface, where the associated text adjustment options include adjustment options such as adjustment direction and / or associated text duration.
[0198] In one embodiment, if the associated text adjustment operation is an associated text addition operation, the style duration corresponding to the updated associated style is greater than the selected duration of the selected associated style; if the associated text adjustment operation is an associated text reduction operation, the style duration corresponding to the updated associated style is less than the selected duration of the selected associated style.
[0199] S470: Perform an update operation on the paragraph object material in the video editing draft according to the update statement object material associated with the update statement copy.
[0200] In an optional embodiment, when the associated text adjustment operation is an associated text addition operation, the updated sentence object material includes a selected updated sentence material for replacing the selected sentence material and an adjacent updated sentence material for replacing the adjacent sentence material. The selected sentence material is a sentence object material associated with the selected sentence copy. The selected updated sentence material is obtained by performing a playback deceleration operation on the selected sentence material according to the increase duration corresponding to the associated text addition operation. The adjacent sentence material is obtained from the paragraph object material according to the increase direction corresponding to the associated text addition operation. The adjacent updated sentence material is obtained by performing an end cropping operation on the adjacent sentence material according to the increase duration.
[0201] Specifically, the client or server performs a playback deceleration operation on the selected sentence material based on the increased duration corresponding to the associated text addition operation to obtain a selected updated sentence material, and performs an end-cropping operation on the adjacent sentence material based on the increased duration to obtain the adjacent updated sentence material. The playback deceleration operation causes the duration of the selected updated sentence material to be greater than the duration of the selected sentence material.
[0202] In an optional embodiment, when the associated text adjustment operation is an associated text reduction operation, the updated sentence object material includes a selected updated sentence material and a black field object material for replacing the selected sentence material. The selected updated sentence material is obtained by performing a playback acceleration operation on the selected sentence material according to the reduction duration corresponding to the associated text reduction operation. The black field object material is generated according to the reduction duration of the associated text reduction operation. The material order between the selected updated sentence material and the black field object material is determined according to the reduction direction of the associated text reduction operation.
[0203] Specifically, the client or server performs a playback acceleration operation on the selected sentence material according to the reduced duration corresponding to the associated text reduction operation to obtain the selected updated sentence material, and generates the black object material according to the reduced duration. The playback acceleration operation causes the sentence material duration of the selected updated sentence material to be shorter than the sentence material duration of the selected sentence material.
[0204] Figure 13 is a schematic diagram of a paragraph object material before and after an associated text adjustment operation provided by an embodiment of the present invention. Specifically, before the associated text adjustment operation, the paragraph video copy shown in Figure 13 is associated with three sentence object materials, wherein the selected sentence material is the 12s material 2, and the material 2 is associated with "It's getting hotter, I'll share one with you" in the paragraph video copy. The addition duration of the associated text addition operation shown in Figure 13 is 3s, and the addition direction is to the left. Accordingly, after the associated text addition operation, the 15s material 2 is obtained by the playback deceleration operation, and the material 1 is obtained by cutting the 3s material at the end. The associated text reduction operation shown in Figure 13 is relative to the associated text addition operation. The reduction duration of the associated text reduction operation is 4s, and the reduction direction is to the left. Accordingly, after the associated text reduction operation, the 8s material 2 is obtained by the playback acceleration operation, and the 4s black field is generated based on the reduction duration of 4s.
[0205] Based on the above embodiment, optionally, a text global rewrite option and an object material change option are further displayed in the video editing interface, and the object material change option includes a material retention control and a material update control; accordingly, the method further includes: in response to a global rewrite operation for the text global rewrite option, obtaining a global video copy corresponding to the global rewrite operation, and performing a replacement operation on the original video copy in the video editing interface according to the global video copy; in response to a material change operation for the object material change option, performing a replacement operation on the original object material in the video editing draft according to the updated object material corresponding to the material change operation.
[0206] Exemplarily, the text global rewrite option can be displayed in the video editing interface in response to a click operation on the text global rewrite control displayed in the video editing interface. Exemplarily, the text global rewrite control can be displayed in the editing function navigation area in the video editing interface, or it can be displayed in the calling function navigation area displayed in response to a function calling operation, wherein the function calling operation can be a long press operation or a sliding operation, such as a left sliding operation, etc.
[0207] Exemplarily, the global text rewriting option includes at least one of a manual editing option, an artificial intelligence text editing option, and a text document import option. The method for obtaining the global video copy is not limited here.
[0208] In an optional embodiment, in response to the material change operation for the object material change option, a replacement operation is performed on the original object material in the video editing draft according to the updated object material corresponding to the material change operation, including: in response to the material update operation for the material update control, a replacement operation is performed on the original object material in the video editing draft according to the updated object material corresponding to the material update operation; wherein, the updated object material is intelligently generated according to the global video copy.
[0209] In another optional embodiment, in response to the material change operation for the object material change option, a replacement operation is performed on the original object material in the video editing draft according to the updated object material corresponding to the material change operation, including: in response to the material retention operation for the material retention control, a replacement operation is performed on the original object material in the video editing draft according to the updated object material corresponding to the material retention operation; wherein, the updated object material is obtained by performing a material editing operation on the original object material according to the actual total material duration of the original object material and the global copy duration of the global video copy.
[0210] Specifically, the actual total material duration represents the total material duration of the original object material before being uploaded to the object display area and not being end-cropped. If the original object material is not end-cropped before being uploaded to the object display area, the actual total material duration is the same as the original material total duration of the original object material. If the original object material is end-cropped before being uploaded to the object display area, the actual total material duration is greater than the original material total duration, wherein the original material total duration is the same as the original copy duration of the original video copy.
[0211] Specifically, if the total duration of the actual material is greater than or equal to the global duration of the copy, the end cropping operation is performed on the original object material according to the global duration of the copy, and the segmentation association operation is performed on the original object material obtained by the end cropping according to the segmentation data of the global video copy to obtain the updated object material; if the total duration of the actual material is less than the global duration of the copy, the black field object material is spliced at the end of the original object material according to the difference between the total duration of the actual material and the global duration of the copy, and the segmentation association operation is performed on the spliced original object material according to the segmentation data of the global video copy to obtain the updated object material.
[0212] In an optional embodiment, the video editing interface further displays an option for adding an empty field. Accordingly, the method further includes: in response to an empty field adding operation for the empty field adding option, obtaining an empty field duration and an empty field adding position corresponding to the empty field adding operation; adding an empty field video text to the original video text according to the empty field adding position, and adding an empty field object material associated with the empty field video text to the original object material; wherein the empty field video text and the empty field object material are respectively generated according to the empty field duration;
[0213] Exemplarily, the empty field adding option can be displayed in the video editing interface in response to a click operation on the empty field adding control displayed in the video editing interface. Exemplarily, the empty field adding option includes an empty field duration input box. The empty field adding control can be displayed in the editing function navigation area in the video editing interface, or in the calling function navigation area displayed in response to a function calling operation, wherein the function calling operation can be a long press operation or a sliding operation, such as a left sliding operation.
[0214] Specifically, the empty field addition position is the current text position of the text positioning cursor in response to the empty field addition operation for the empty field addition option. Exemplarily, the empty field video copy can be represented as "[...xs]", where "x" represents the empty field duration, and the empty field object material is an empty field video clip or a silent audio clip.
[0215] Based on the above embodiment, optionally, an undo control and a redo control are further displayed in the video editing interface. Accordingly, the method further includes: in response to a click operation on the undo control or the redo control, if the current editing operation exists in a preset editing operation set, then the updated video copy, updated object material or updated packaging material generated by the current editing operation is undo or redo; wherein the preset editing operation set includes paragraph splitting operation, paragraph merging operation, text deletion operation, text adding operation, subtitle style modification operation and blank field adding operation.
[0216] The technical solution of this embodiment, by responding to a material selection operation on a paragraph object material, taking the sentence object material corresponding to the material selection operation as the selected sentence material, taking the sentence video copy associated with the selected sentence material as the selected sentence copy, and displaying the selected associated style corresponding to the selected sentence copy in the video editing interface, in response to an associated text adjustment operation on the selected sentence copy, performing a replacement operation on the selected associated style in the video editing interface according to the updated associated style corresponding to the updated sentence copy obtained by the associated text adjustment operation, and performing an update operation on the paragraph object material in the video editing interface according to the updated sentence object material associated with the updated sentence copy, thereby solving the problem that the association relationship between the video copy and the video material cannot be customized, further improving the flexibility of video editing, and further broadening the applicable scenarios of the video editing method.
[0217] The following is an embodiment of a video editing device provided by an embodiment of the present invention. The device and the video editing method of the above embodiment belong to the same inventive concept. For details not fully described in the embodiment of the video editing device, please refer to the content about the video editing method in the above embodiment.
[0218] FIG14 is a schematic diagram of the structure of a video editing device provided by an embodiment of the present invention. As shown in FIG14 , the device includes: an original video text display module 510 , an original video text update module 520 , and an original object material update module 530 .
[0219] The original video copy display module 510 is used to display the original video copy in the video editing draft in the video editing interface; wherein the video editing draft also includes the original object material associated with the original video copy;
[0220] an original video copy updating module 520 for, in response to a text editing operation on the original video copy, performing an update operation on the original video copy in the video editing interface according to an updated video copy obtained by the text editing operation;
[0221] The original object material updating module 530 is configured to update the original object material in the video editing draft according to the updated object material associated with the updated video copy;
[0222] The original object material includes original video material and / or original audio material.
[0223] The technical solution of this embodiment is to display the original video copy in the video editing draft in the video editing interface, wherein the video editing draft also includes the original object material associated with the original video copy, respond to the text editing operation on the original video copy, perform an update operation on the original video copy in the video editing interface according to the updated video copy obtained by the text editing operation, and perform an update operation on the original object material in the video editing draft according to the updated object material associated with the updated video copy, wherein the original object material includes the original video material and / or the original audio material, thereby solving the problem of being unable to perform video editing with the video copy as the editing subject, and improving the video editing efficiency.
[0224] In an optional embodiment, the original video copy includes at least one paragraph video copy;
[0225] Correspondingly, the original object material includes paragraph object materials respectively associated with each of the paragraph video texts, and the paragraph object materials include original video clips corresponding to the original video material and / or original audio clips corresponding to the original audio material;
[0226] The text editing operation includes a paragraph editing operation and / or a text editing operation. The paragraph editing operation includes at least one of a paragraph splitting operation, a paragraph merging operation, a paragraph sorting operation, a paragraph deleting operation, and a paragraph adding operation. The text editing operation includes a text deleting operation and / or a text adding operation.
[0227] In an optional embodiment, the original video text updating module 520 includes:
[0228] A selected paragraph copy splitting unit is configured to respond to a paragraph splitting operation on the original video copy and use the paragraph video copy at the splitting location corresponding to the paragraph splitting operation as the selected paragraph copy;
[0229] Performing a replacement operation on the selected paragraph copy in the video editing interface according to the updated video copy obtained by the paragraph splitting operation; wherein the updated video copy includes two split paragraph copies obtained by performing the paragraph splitting operation on the selected paragraph copy according to the split positioning position;
[0230] Accordingly, the original object material updating module 530 includes:
[0231] A selected paragraph material splitting unit, configured to use the paragraph object material associated with the selected paragraph copy as the selected object material;
[0232] According to the update object material associated with the updated video copy, a replacement operation is performed on the selected object material in the video editing draft; wherein, the update object material includes two split paragraph materials obtained by performing a split operation on the selected object material according to the split positioning position.
[0233] In an optional embodiment, the original video text updating module 520 includes:
[0234] a selected paragraph copy merging unit, configured to, in response to a paragraph merging operation on the original video copy, use the two paragraph video copies corresponding to the paragraph merging operation as selected paragraph copies;
[0235] Performing a replacement operation on each of the selected paragraphs in the video editing interface according to the updated video text obtained by the paragraph merging operation; wherein the updated video text is a merged paragraph text obtained by performing a paragraph merging operation on each of the selected paragraphs;
[0236] Accordingly, the original object material updating module 530 includes:
[0237] A selected paragraph material merging unit, configured to combine the paragraph object materials associated with each selected paragraph copy as selected object materials;
[0238] According to the update object material associated with the update video copy, a replacement operation is performed on each of the selected object materials in the video editing draft; wherein, the update object material is a merged paragraph material obtained by performing a merge operation on each of the selected object materials.
[0239] In an optional embodiment, the original video text updating module 520 includes:
[0240] a selected paragraph copy sorting unit, configured to, in response to a paragraph sorting operation on the original video copy, select at least two paragraph video copies corresponding to the paragraph sorting operation as selected paragraph copies;
[0241] According to the updated video copy obtained by the paragraph sorting operation, a replacement operation is performed on each of the selected paragraph copies in the video editing interface; wherein the updated video copy is obtained by performing a sorting operation on each of the selected paragraph copies according to the paragraph arrangement order corresponding to the paragraph sorting operation;
[0242] Accordingly, the original object material updating module 530 includes:
[0243] a selected object material sorting unit, configured to use the paragraph object materials respectively associated with each selected paragraph copy as the selected object material;
[0244] According to the update object material associated with the updated video copy, a replacement operation is performed on each selected object material in the video editing draft; wherein, the update object material is obtained by performing a sorting operation on each selected object material according to the paragraph arrangement order corresponding to the paragraph sorting operation.
[0245] In an optional embodiment, the original video text updating module 520 includes:
[0246] a paragraph video copy deleting unit, configured to, in response to a paragraph deletion operation on the original video copy, use the paragraph video copy corresponding to the paragraph deletion operation as an updated video copy, and delete the updated video copy from the original video copy in the video editing interface;
[0247] Accordingly, the original object material updating module 530 includes:
[0248] The paragraph object material deletion unit is used to use the paragraph object material associated with the updated video text as the updated object material, and delete the updated object material from the original object material in the video editing draft.
[0249] In an optional embodiment, the original video text updating module 520 includes:
[0250] a new paragraph copy adding unit, configured to, in response to a paragraph adding operation on the original video copy, obtain a new paragraph copy corresponding to the paragraph adding operation and a new paragraph position relative to the original video copy;
[0251] According to the position of the newly added paragraph, the newly added paragraph copy is displayed as the updated video copy in the video editing interface;
[0252] Accordingly, the original object material updating module 530 includes:
[0253] a paragraph object material adding unit, configured to use the paragraph object material associated with the updated video text as the update object material;
[0254] According to the position of the newly added paragraph, the update object material is added to the video editing draft.
[0255] In an optional embodiment, the original video text updating module 520 includes:
[0256] a selected paragraph copy text deletion unit, configured to, in response to a text deletion operation on the original video copy, use the paragraph video copy containing the text corresponding to the text deletion operation as the selected paragraph copy;
[0257] Performing a replacement operation on the selected paragraph text in the video editing interface according to the updated video text obtained by the text deletion operation; wherein the updated video text is obtained by deleting the deleted text from the selected paragraph text;
[0258] Accordingly, the original object material updating module 530 includes:
[0259] a selected object material deleting unit, configured to use the paragraph object material associated with the selected paragraph copy as the selected object material;
[0260] Performing a replacement operation on the selected object material in the video editing draft according to the update object material associated with the update video copy;
[0261] Among them, when the material type of the selected object material is the first type, the updated object material is obtained by deleting the deleted object material associated with the deleted text from the selected object material; when the material type of the selected object material is the second type, the updated video clip in the updated object material is obtained by performing an end trimming operation on the selected video clip in the selected object material according to the total length of the deleted text corresponding to each deleted text, and the updated audio clip in the updated object material is regenerated according to the updated video text.
[0262] In an optional embodiment, the original video text updating module 520 includes:
[0263] a selected paragraph copy text adding unit, configured to, in response to a text adding operation on the original video copy, take the paragraph video copy containing the newly added text corresponding to the text adding operation as the selected paragraph copy, and obtain the newly added text position relative to the selected paragraph copy;
[0264] Performing a replacement operation on the selected paragraph text in the video editing interface according to the updated video text obtained by the text adding operation; wherein the updated video text is obtained by adding the newly added text to the selected paragraph text according to the position of the newly added text;
[0265] Accordingly, the original object material updating module 530 includes:
[0266] A selected object material text adding unit, configured to use the paragraph object material associated with the selected paragraph text as the selected object material;
[0267] Performing a replacement operation on the selected object material in the video editing draft according to the update object material associated with the update video copy;
[0268] Among them, when the material type of the selected object material is the first type, the updated object material is obtained by adding the black field object material to the selected object material according to the position of the newly added text, and the object material length of the black field object material is the same as the new text length of the newly added text. When the material type of the selected object material is the second type, the updated video clip in the updated object material is determined according to the total length of the newly added text corresponding to each newly added text and the selected video clip in the selected object material, and the updated audio clip in the updated object material is regenerated according to the updated video text.
[0269] In an optional embodiment, the video editing draft further includes original packaging materials, wherein the original packaging materials include sequence packaging materials respectively associated with at least one sequence video copy in the original video copy; wherein the sequence video copy includes a preset sequence copy in at least one paragraph video copy, each preset sequence copy represents a continuous video copy that can span paragraphs, and the sequence packaging materials are used to package the display effect of the sequence object material associated with the sequence video copy;
[0270] Accordingly, the device further comprises:
[0271] an original packaging material updating module, configured to, if the preset packaging operation set includes the text editing operation and the edited video copy corresponding to the text editing operation includes a sequence video copy, perform an update operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation;
[0272] The preset packaging operation set includes at least one of a paragraph sorting operation, a text deletion operation, and a text adding operation, and the text deletion operation includes a paragraph deletion operation and / or a text deletion operation.
[0273] In an optional embodiment, the original packaging material updating module includes:
[0274] A selected packaging material sorting unit is configured to, when the text editing operation is a paragraph sorting operation, use at least two paragraph video copywritings corresponding to the paragraph sorting operation as selected paragraph copywritings;
[0275] At least one sequence packaging material associated with a preset sequence text in at least one selected paragraph text is used as a selected packaging material, and sequence video texts associated with each selected packaging material are used as selected sequence texts;
[0276] According to the updated packaging materials corresponding to the paragraph sorting operation, a replacement operation is performed on each of the selected packaging materials in the video editing draft;
[0277] The updated packaging material is obtained by performing a sorting operation on at least one target packaging material according to a sequence text order, the sequence text order is determined according to a paragraph arrangement order corresponding to the paragraph sorting operation, and the target packaging material is determined according to a cross-paragraph attribute of each selected sequence text;
[0278] When the cross-paragraph attribute of the selected sequence copy is cross-paragraph, each of the target packaging materials includes at least two split packaging materials respectively associated with the split sequence copy, and each of the split sequence copy is obtained by performing a paragraph splitting operation on the selected sequence copy; when the cross-paragraph attribute of the selected sequence copy is non-cross-paragraph, each of the target packaging materials includes a selected packaging material associated with the selected sequence copy.
[0279] In an optional embodiment, the original packaging material updating module includes:
[0280] a selected packaging material deletion unit, configured to, when the text editing operation is a text deletion operation, select a sequence packaging material associated with a deletion sequence text corresponding to the text deletion operation as a selected packaging material;
[0281] If the selected sequence text associated with the selected packaging material is included in the deleted sequence text, deleting the selected packaging material from the original packaging material in the video editing draft as an updated packaging material;
[0282] Among them, when the text deletion operation is a paragraph deletion operation, the deletion sequence copy is a paragraph deletion copy; when the text deletion operation is a word deletion operation, the deletion sequence copy is a word deletion operation.
[0283] In an optional embodiment, the original packaging material updating module further includes:
[0284] a selected packaging material replacement unit, configured to, if the selected sequence text is not included in the deleted sequence text, perform a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation;
[0285] Wherein, when the selected packaging material is a packaging material with a time attribute and the deleted sequence text does not contain the starting associated text in the selected sequence text, the updated packaging material is obtained by associating the selected packaging material with the updated original video text according to the packaging material duration of the selected packaging material and the starting associated text;
[0286] When the selected packaging material is a packaging material with a time attribute and the deleted sequence text contains the starting associated text in the selected sequence text, the updated packaging material is obtained by associating the selected packaging material with the updated original video text according to the packaging material duration of the selected packaging material and the updated starting associated text, and the updated starting associated text is the first associated text in the selected sequence text that is located after the deleted sequence text;
[0287] When the selected packaging material is a packaging material without a time attribute, the updated packaging material is a packaging material associated with an updated sequence text, and the updated sequence text is obtained by deleting the deleted sequence text from the selected sequence text.
[0288] In an optional embodiment, the device further comprises:
[0289] a text deletion operation judgment module, configured to, before performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation, use the paragraph object material associated with the paragraph video copy where the deletion sequence copy is located as the selected object material;
[0290] When the text deletion operation is a paragraph deletion operation, or when the text deletion operation is a character deletion operation and the material type of the selected object material is the first type, performing a step of replacing the selected packaging material in the video editing draft according to updating the packaging material corresponding to the text deletion operation;
[0291] When the text deletion operation is a text deletion operation and the material type of the selected object material is the second type, in response to the triggering deletion operation of the text deletion control in the video editing interface, the step of performing a replacement operation on the selected packaging material in the video editing draft is executed according to the updated packaging material corresponding to the text deletion operation.
[0292] In an optional embodiment, the original packaging material updating module includes:
[0293] a selected packaging material adding unit, configured to, when the text editing operation is a text adding operation, use the sequence video copy containing the newly added text sequence corresponding to the text adding operation as the selected sequence copy, and use the sequence packaging material associated with the selected sequence copy as the selected packaging material;
[0294] performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text adding operation;
[0295] Among them, when the selected packaging material is a packaging material with a time attribute, the updated packaging material is obtained by associating the selected packaging material with the updated original video copy according to the packaging material length of the selected packaging material and the starting associated text in the selected sequence copy; when the selected packaging material is a packaging material without a time attribute, the updated packaging material is obtained by associating the selected packaging material with the updated sequence copy according to the starting associated text, and the updated sequence copy is obtained by adding the newly added text sequence to the selected sequence copy.
[0296] In an optional embodiment, the device further comprises:
[0297] a text adding operation judging module, configured to, before performing a replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text adding operation, use the paragraph object material associated with the paragraph video copy in which the newly added text is located as the selected object material;
[0298] When the material type of the selected object material is the first type, performing a step of replacing the selected packaging material in the video editing draft according to the updating packaging material corresponding to the text adding operation;
[0299] When the material type of the selected object material is the second type, in response to the triggering adding operation of the text adding control in the video editing interface, the step of performing a replacing operation on the selected packaging material in the video editing draft is executed according to the updating packaging material corresponding to the text adding operation.
[0300] In an optional embodiment, the device further comprises:
[0301] A sequence packaging material adding module, configured to, in response to a packaging adding operation on a packaging material adding control in the video editing interface, obtain a sequence packaging material corresponding to the packaging adding operation;
[0302] The sequence packaging material is added to the video editing draft; wherein the video editing draft contains a sequence video text associated with the sequence packaging material.
[0303] In an optional embodiment, the device further comprises:
[0304] a sequence video copy determination module, configured to, in response to a sequence selection operation input for the original video copy, obtain a selected video copy corresponding to the sequence selection operation in the original video copy, and use the selected video copy as the sequence video copy associated with the sequence packaging material; or
[0305] According to the current text position of the text positioning cursor, a sequence video copy associated with the sequence packaging material is obtained from the original video copy.
[0306] In an optional embodiment, the sequence video copy determination module is specifically configured to:
[0307] If the sequence packaging material is a packaging material with a time attribute, obtaining the sequence video copy from the original video copy according to the packaging material duration corresponding to the sequence packaging material and the current text position of the text positioning cursor;
[0308] If the sequence packaging material is a packaging material without a time attribute, the sequence video copy is obtained from the original video copy according to the preset selection sequence quantity and the current text position of the text positioning cursor.
[0309] In an optional embodiment, the paragraph object material includes sentence object materials respectively associated with at least two sentence video texts in the paragraph video text. Accordingly, the device further includes:
[0310] a paragraph object material updating module, configured to, in response to a material selection operation on the paragraph object material, use the sentence object material corresponding to the material selection operation as a selected sentence material;
[0311] The sentence video copy associated with the selected sentence material is used as the selected sentence copy, and the selected associated style corresponding to the selected sentence copy is displayed in the video editing interface;
[0312] In response to an associated text adjustment operation on the selected sentence copy, performing a replacement operation on the selected associated style in the video editing interface according to an updated associated style corresponding to the updated sentence copy obtained by the associated text adjustment operation;
[0313] performing an update operation on the paragraph object material in the video editing draft according to the update sentence object material associated with the update sentence copy;
[0314] Wherein, when the associated text adjustment operation is an associated text addition operation, the updated sentence object material includes a selected updated sentence material for replacing the selected sentence material and an adjacent updated sentence material for replacing the adjacent sentence material, the selected sentence material is a sentence object material associated with the selected sentence text, the selected updated sentence material is obtained by performing a playback deceleration operation on the selected sentence material according to the increase duration corresponding to the associated text addition operation, the adjacent sentence material is obtained from the paragraph object material according to the increase direction corresponding to the associated text addition operation, and the adjacent updated sentence material is obtained by performing an end cropping operation on the adjacent sentence material according to the increase duration;
[0315] When the associated text adjustment operation is an associated text reduction operation, the updated sentence object material includes a selected updated sentence material and a black field object material for replacing the selected sentence material. The selected updated sentence material is obtained by performing a playback acceleration operation on the selected sentence material according to the reduction duration corresponding to the associated text reduction operation. The black field object material is generated according to the reduction duration of the associated text reduction operation. The material order between the selected updated sentence material and the black field object material is determined according to the reduction direction of the associated text reduction operation.
[0316] In an optional embodiment, the device further comprises:
[0317] a material source option display module, configured to display material source options in the video editing interface in response to an object adding operation on an object material adding control in the video editing interface;
[0318] a paragraph object material adding module, configured to, in response to a source editing operation on the material source option, add the paragraph object material corresponding to the source editing operation to the video editing draft;
[0319] Among them, the selected paragraph text corresponding to the object adding operation in the video editing draft is associated with the paragraph object material, and the material source option includes a real-time material collection control and / or an existing material selection control.
[0320] In an optional embodiment, the paragraph object material adding module includes:
[0321] a reference object material list display unit, configured to display a reference object material list and first selection prompt information in the video editing interface in response to a trigger selection operation on the existing material selection control; wherein the first selection prompt information includes the duration of the selected paragraph copy;
[0322] a second selection prompt information replacing unit configured to, in response to a selection operation on the reference object material list, replace the first selection prompt information in the video editing interface with second selection prompt information if the total material duration corresponding to at least one selected reference object material is less than the duration of the text paragraph; wherein the second selection prompt information includes a material duration difference between the duration of the text paragraph and the total material duration;
[0323] A paragraph object material association display unit is used to determine the paragraph object material based on the selected at least one reference object material if the total material duration corresponding to the selected at least one reference object material is greater than or equal to the text paragraph duration, and to add the paragraph object material to the video editing draft in response to a trigger operation on the material upload control in the video editing interface.
[0324] In an optional embodiment, the video editing interface further displays an option to add a blank field. Accordingly, the device further includes:
[0325] an empty field adding module, configured to, in response to an empty field adding operation for the empty field adding option, obtain an empty field duration and an empty field adding position corresponding to the empty field adding operation;
[0326] Adding the empty field video copy to the original video copy according to the empty field adding position, and adding the empty field object material associated with the empty field video copy to the original object material;
[0327] The empty field video text and the empty field object material are respectively generated according to the empty field duration.
[0328] The video editing device provided by the embodiment of the present invention can execute the video editing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0329] Reference is now made to FIG15 , which illustrates a schematic diagram of the structure of an electronic device (e.g., a terminal device) 600 suitable for implementing embodiments of the present invention. The terminal device in embodiments of the present invention may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device 600 shown in FIG15 is merely an example and should not limit the functionality or scope of use of embodiments of the present invention.
[0330] As shown in Figure 15, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 606 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0331] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a numeric keypad, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 606 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 15 shows an electronic device 600 having various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may be implemented or present instead.
[0332] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication device 609, or installed from the storage device 606, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present invention are performed.
[0333] It should be noted that the computer-readable medium described above in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present invention, 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. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0334] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0335] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0336] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet Protocol addresses; sends a node evaluation request including the at least two Internet Protocol addresses to a node evaluation device, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained Internet Protocol address indicates an edge node in a content distribution network.
[0337] Alternatively, the computer-readable medium carries one or more programs, which, when executed by the electronic device, causes the electronic device to: receive a node evaluation request including at least two Internet Protocol addresses; select an Internet Protocol address from the at least two Internet Protocol addresses; and return the selected Internet Protocol address; wherein the received Internet Protocol address indicates an edge node in a content distribution network.
[0338] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0339] The flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0340] The units involved in the embodiments of the present invention may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0341] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0342] In the context of the present invention, machine-readable medium can be a tangible medium that can contain or store a program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0343] The above description is merely a preferred embodiment of the present invention and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present invention.
[0344] In addition, although adopting specific order to describe each operation, this should not be interpreted as requiring these operations to be executed in the specific order shown or in sequential order.Under certain environment, multitasking and parallel processing may be advantageous.Similarly, although comprising some specific implementation details in the above discussion, these should not be interpreted as limiting the scope of the present invention.Some features described in the context of independent embodiment can also be implemented in single embodiment in combination.On the contrary, the various features described in the context of independent embodiment also can be implemented in multiple embodiments individually or in the mode of any suitable subcombination.
[0345] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A video editing method, comprising: displaying an original video copy in a video editing draft in a video editing interface; wherein, the video editing draft further includes original object materials associated with the original video copy; responding to a text editing operation on the original video copy, and performing an update operation on the original video copy in the video editing interface according to the updated video copy obtained from the text editing operation; performing an update operation on the original object materials in the video editing draft according to the updated object materials associated with the updated video copy; wherein, the original object materials include original video materials and / or original audio materials.
2. The method according to claim 1, wherein the original video copy includes at least one paragraph video copy; correspondingly, the original object materials include paragraph object materials respectively associated with the paragraph video copies, and the paragraph object materials include original video segments corresponding to the original video materials and / or original audio segments corresponding to the original audio materials; the text editing operation includes a paragraph editing operation and / or a character editing operation, the paragraph editing operation includes at least one of a paragraph splitting operation, a paragraph merging operation, a paragraph sorting operation, a paragraph deleting operation, and a paragraph adding operation, and the character editing operation includes a character deleting operation and / or a character adding operation.
3. The method according to claim 2, wherein the responding to a text editing operation on the original video copy, and performing an update operation on the original video copy in the video editing interface according to the updated video copy obtained from the text editing operation, includes: responding to a paragraph splitting operation on the original video copy, and taking the paragraph video copy at the splitting position corresponding to the paragraph splitting operation as the selected paragraph copy; performing a replacement operation on the selected paragraph copy in the video editing interface according to the updated video copy obtained from the paragraph splitting operation; wherein, the updated video copy includes two split paragraph copies obtained by performing a paragraph splitting operation on the selected paragraph copy according to the splitting position; correspondingly, the performing an update operation on the original object materials in the video editing draft according to the updated object materials associated with the updated video copy, includes: taking the paragraph object materials associated with the selected paragraph copy as the selected object materials; performing a replacement operation on the selected object materials in the video editing draft according to the updated object materials associated with the updated video copy; wherein, the updated object materials include two split paragraph materials obtained by performing a splitting operation on the selected object materials according to the splitting position.
4. The method according to claim 2, wherein the responding to a text editing operation on the original video copy, and performing an update operation on the original video copy in the video editing interface according to the updated video copy obtained from the text editing operation, includes: In response to a paragraph merging operation on the original video copywriting, two paragraph video copywritings corresponding to the paragraph merging operation are respectively used as the selected paragraph copywritings; Perform a replacement operation on each of the selected paragraph copywritings in the video editing interface according to the updated video copywriting obtained from the paragraph merging operation; wherein, the updated video copywriting is a merged paragraph copywriting obtained by performing a paragraph merging operation on each of the selected paragraph copywritings; Correspondingly, performing an update operation on the original object material in the video editing draft according to the updated object material associated with the updated video copywriting includes: Regarding the paragraph object materials respectively associated with each of the selected paragraph copywritings as the selected object materials; Perform a replacement operation on each of the selected object materials in the video editing draft according to the updated object material associated with the updated video copywriting; wherein, the updated object material is a merged paragraph material obtained by performing a merging operation on each of the selected object materials.
5. The method according to claim 2, wherein the response to a text editing operation on the original video copywriting, and performing an update operation on the original video copywriting in the video editing interface according to the updated video copywriting obtained from the text editing operation includes: In response to a paragraph sorting operation on the original video copywriting, at least two paragraph video copywritings corresponding to the paragraph sorting operation are respectively used as the selected paragraph copywritings; Perform a replacement operation on each of the selected paragraph copywritings in the video editing interface according to the updated video copywriting obtained from the paragraph sorting operation; wherein, the updated video copywriting is obtained by performing a sorting operation on each of the selected paragraph copywritings according to the paragraph arrangement order corresponding to the paragraph sorting operation; Correspondingly, performing an update operation on the original object material in the video editing draft according to the updated object material associated with the updated video copywriting includes: Regarding the paragraph object materials respectively associated with each of the selected paragraph copywritings as the selected object materials; Perform a replacement operation on each of the selected object materials in the video editing draft according to the updated object material associated with the updated video copywriting; wherein, the updated object material is obtained by performing a sorting operation on each of the selected object materials according to the paragraph arrangement order corresponding to the paragraph sorting operation.
6. The method according to claim 2, wherein the response to a text editing operation on the original video copywriting, and performing an update operation on the original video copywriting in the video editing interface according to the updated video copywriting obtained from the text editing operation includes: In response to a paragraph deletion operation on the original video copywriting, regarding the paragraph video copywriting corresponding to the paragraph deletion operation as the updated video copywriting, and deleting the updated video copywriting from the original video copywriting in the video editing interface; Correspondingly, performing an update operation on the original object material in the video editing draft according to the updated object material associated with the updated video copywriting includes: Use the paragraph object material associated with the updated video copy as the updated object material, and delete the updated object material from the original object material in the video editing draft.
7. The method according to claim 2, wherein in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained from the text editing operation, including: In response to a paragraph addition operation on the original video copy, obtain the newly added paragraph copy corresponding to the paragraph addition operation and the position of the newly added paragraph relative to the original video copy; According to the position of the newly added paragraph, display the newly added paragraph copy as the updated video copy in the video editing interface; Correspondingly, the update operation performed on the original object material in the video editing draft according to the updated object material associated with the updated video copy includes: Use the paragraph object material associated with the updated video copy as the updated object material; According to the position of the newly added paragraph, add the updated object material to the video editing draft.
8. The method according to claim 2, wherein in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained from the text editing operation, including: In response to a text deletion operation on the original video copy, use the paragraph video copy where the deleted text corresponding to the text deletion operation is located as the selected paragraph copy; Perform a replacement operation on the selected paragraph copy in the video editing interface according to the updated video copy obtained from the text deletion operation; wherein, the updated video copy is obtained by deleting the deleted text from the selected paragraph copy; Correspondingly, the update operation performed on the original object material in the video editing draft according to the updated object material associated with the updated video copy includes: Use the paragraph object material associated with the selected paragraph copy as the selected object material; Perform a replacement operation on the selected object material in the video editing draft according to the updated object material associated with the updated video copy; Wherein, when the material type of the selected object material is the first type, the updated object material is obtained by deleting the deleted object material associated with the deleted text from the selected object material; when the material type of the selected object material is the second type, the updated video segment in the updated object material is obtained by performing an end trimming operation on the selected video segment in the selected object material according to the total duration of the deleted text corresponding to each deleted text, and the updated audio segment in the updated object material is regenerated according to the updated video copy.
9. The method according to claim 2, wherein in response to a text editing operation on the original video copy, an update operation is performed on the original video copy in the video editing interface according to the updated video copy obtained from the text editing operation, including: In response to a text addition operation on the original video copywriting, use the paragraph video copywriting where the newly added text corresponding to the text addition operation is located as the selected paragraph copywriting, and obtain the position of the newly added text relative to the selected paragraph copywriting; Perform a replacement operation on the selected paragraph copywriting in the video editing interface according to the updated video copywriting obtained from the text addition operation; wherein, the updated video copywriting is obtained by adding the newly added text to the selected paragraph copywriting according to the position of the newly added text; Correspondingly, performing an update operation on the original object material in the video editing draft according to the updated object material associated with the updated video copywriting includes: Use the paragraph object material associated with the selected paragraph copywriting as the selected object material; Perform a replacement operation on the selected object material in the video editing draft according to the updated object material associated with the updated video copywriting; Wherein, when the material type of the selected object material is the first type, the updated object material is obtained by adding a black field object material to the selected object material according to the position of the newly added text, and the object material duration of the black field object material is the same as the newly added text duration of the newly added text. When the material type of the selected object material is the second type, the updated video segment in the updated object material is determined according to the total newly added text duration corresponding to each newly added text and the selected video segment in the selected object material, and the updated audio segment in the updated object material is regenerated according to the updated video copywriting.
10. The method according to claim 2, wherein the video editing draft further includes original packaging materials, and the original packaging materials include sequence packaging materials respectively associated with at least one sequence video copy in the original video copy; wherein, The sequential video copywriting includes preset sequential copywriting in at least one paragraph video copywriting, and each preset sequential copywriting represents continuous video copywriting that can span paragraphs. The sequential packaging material is used to package the display effect of the sequential object material associated with the sequential video copywriting; Correspondingly, the method further includes: If the preset packaging operation set includes the text editing operation and the edited video copywriting corresponding to the text editing operation includes sequential video copywriting, perform an update operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation; Wherein, the preset packaging operation set includes at least one of a paragraph sorting operation, a text deletion operation, and a text addition operation, and the text deletion operation includes a paragraph deletion operation and / or a text deletion operation.
11. The method according to claim 10, wherein performing an update operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation includes: When the text editing operation is a paragraph sorting operation, use at least two paragraph video copywriting corresponding to the paragraph sorting operation as the selected paragraph copywriting respectively; Use at least one sequential packaging material associated with the preset sequential copywriting in at least one selected paragraph copywriting as the selected packaging material respectively, and use the sequential video copywriting respectively associated with each selected packaging material as the selected sequential copywriting; Perform a replacement operation on each of the selected packaging materials in the video editing draft according to the updated packaging materials corresponding to the paragraph sorting operation; Among them, the updated packaging materials are obtained by performing a sorting operation on at least one target packaging material according to the sequence copy order, the sequence copy order is determined according to the paragraph arrangement order corresponding to the paragraph sorting operation, and the target packaging material is determined according to the cross-paragraph attribute of each selected sequence copy; When the cross-paragraph attribute of the selected sequence copy is cross-paragraph, each of the target packaging materials includes split packaging materials respectively associated with at least two split sequence copies, and each of the split sequence copies is obtained by performing a paragraph splitting operation on the selected sequence copy; when the cross-paragraph attribute of the selected sequence copy is non-cross-paragraph, each of the target packaging materials includes the selected packaging material associated with the selected sequence copy.
12. The method according to claim 10, wherein the performing an update operation on the original packaging materials in the video editing draft according to the updated packaging materials corresponding to the text editing operation includes: When the text editing operation is a text deletion operation, use the sequence packaging material having an associated relationship with the deletion sequence copy corresponding to the text deletion operation as the selected packaging material; If the selected sequence copy associated with the selected packaging material is included in the deletion sequence copy, then delete the selected packaging material as the updated packaging material from the original packaging materials in the video editing draft; Among them, when the text deletion operation is a paragraph deletion operation, the deletion sequence copy is the deletion paragraph copy, and when the text deletion operation is a character deletion operation, the deletion sequence copy is the deletion character.
13. The method according to claim 12, wherein the performing an update operation on the original packaging materials in the video editing draft according to the updated packaging materials corresponding to the text editing operation further includes: If the selected sequence copy is not included in the deletion sequence copy, perform a replacement operation on the selected packaging material in the video editing draft according to the updated packaging materials corresponding to the text deletion operation; Among them, when the selected packaging material is a packaging material with time attributes and the deletion sequence copy does not include the starting associated character in the selected sequence copy, the updated packaging material is obtained by associating the selected packaging material with the updated original video copy according to the packaging material duration of the selected packaging material and the starting associated character; When the selected packaging material is a packaging material with time attributes and the deletion sequence copy includes the starting associated character in the selected sequence copy, the updated packaging material is obtained by associating the selected packaging material with the updated original video copy according to the packaging material duration of the selected packaging material and the updated starting associated character, and the updated starting associated character is the first associated character in the selected sequence copy that is after the deletion sequence copy; When the selected packaging material does not have a time attribute, the updated packaging material is a packaging material associated with the updated sequence copy, and the updated sequence copy is obtained by deleting the deleted sequence copy from the selected sequence copy.
14. The method according to claim 13, wherein before performing the replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation, the method further includes: Taking the paragraph object material associated with the paragraph video copy where the deleted sequence copy is located as the selected object material; When the text deletion operation is a paragraph deletion operation, or when the text deletion operation is a character deletion operation and the material type of the selected object material is the first type, performing the step of performing the replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation; When the text deletion operation is a character deletion operation and the material type of the selected object material is the second type, in response to the trigger deletion operation on the character deletion control in the video editing interface, performing the step of performing the replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text deletion operation.
15. The method according to claim 10, wherein the performing the update operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation includes: When the text editing operation is a character addition operation, taking the sequence video copy where the new character sequence corresponding to the character addition operation is located as the selected sequence copy, and taking the sequence packaging material associated with the selected sequence copy as the selected packaging material; Performing the replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the character addition operation; Wherein, when the selected packaging material has a time attribute, the updated packaging material is obtained by associating the selected packaging material with the updated original video copy according to the packaging material duration of the selected packaging material and the starting associated character in the selected sequence copy; when the selected packaging material does not have a time attribute, the updated packaging material is obtained by associating the selected packaging material with the updated sequence copy according to the starting associated character, and the updated sequence copy is obtained by adding the new character sequence to the selected sequence copy.
16. The method according to claim 15, wherein before performing the replacement operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the character addition operation, the method further includes: Taking the paragraph object material associated with the paragraph video copy where the new character is located as the selected object material; When the material type of the selected object material is the first type, perform the step of replacing the selected packaging material in the video editing draft with the updated packaging material corresponding to the text addition operation; When the material type of the selected object material is the second type, in response to a trigger addition operation on the text addition control in the video editing interface, perform the step of replacing the selected packaging material in the video editing draft with the updated packaging material corresponding to the text addition operation.
17. The method according to claim 10, wherein the method further comprises: In response to a packaging addition operation on the packaging material addition control in the video editing interface, obtain a sequence of packaging materials corresponding to the packaging addition operation; Add the sequence of packaging materials to the video editing draft; wherein, the video editing draft contains a sequence of video copywriting associated with the sequence of packaging materials.
18. The method according to claim 17, wherein the method further comprises: In response to a sequence selection operation on the original video copywriting, obtain the selected video copywriting corresponding to the sequence selection operation in the original video copywriting, and use the selected video copywriting as the sequence of video copywriting associated with the sequence of packaging materials; Or, Obtain the sequence of video copywriting associated with the sequence of packaging materials from the original video copywriting according to the current text position where the text positioning cursor is located.
19. The method according to claim 18, wherein the obtaining the sequence of video copywriting associated with the sequence of packaging materials from the original video copywriting according to the current text position where the text positioning cursor is located comprises: If the sequence of packaging materials is a packaging material with time attributes, obtain the sequence of video copywriting associated with the sequence of packaging materials from the original video copywriting according to the duration of the packaging material corresponding to the sequence of packaging materials and the current text position where the text positioning cursor is located; If the sequence of packaging materials is a packaging material without time attributes, obtain the sequence of video copywriting associated with the sequence of packaging materials from the original video copywriting according to the preset selection sequence number and the current text position where the text positioning cursor is located.
20. The method according to claim 2, wherein the paragraph object material contains statement object materials respectively associated with at least two statement video copywritings in the paragraph video copywriting, and correspondingly, the method further comprises: In response to a material selection operation on the paragraph object material, use the statement object material corresponding to the material selection operation as the selected statement material; Use the statement video copywriting associated with the selected statement material as the selected statement copywriting, and display the selected associated style corresponding to the selected statement copywriting in the video editing interface; In response to an associated text adjustment operation on the selected statement copywriting, perform a replacement operation on the selected associated style in the video editing interface with the updated associated style corresponding to the updated statement copywriting obtained according to the associated text adjustment operation; Perform an update operation on the paragraph object material in the video editing draft according to the update statement object material associated with the update statement copywriting; Among them, when the associated text adjustment operation is an associated text addition operation, the update statement object material includes a selected update statement material for replacing the selected statement material and an adjacent update statement material for replacing the adjacent statement material. The selected statement material is a statement object material associated with the selected statement copywriting. The selected update statement material is obtained by performing a playback deceleration operation on the selected statement material according to the added duration corresponding to the associated text addition operation. The adjacent statement material is obtained from the paragraph object material according to the addition direction corresponding to the associated text addition operation. The adjacent update statement material is obtained by performing an end trimming operation on the adjacent statement material according to the added duration; When the associated text adjustment operation is an associated text reduction operation, the update statement object material includes a selected update statement material for replacing the selected statement material and a black field object material. The selected update statement material is obtained by performing a playback acceleration operation on the selected statement material according to the reduced duration corresponding to the associated text reduction operation. The black field object material is generated according to the reduced duration of the associated text reduction operation. The material order between the selected update statement material and the black field object material is determined according to the reduction direction of the associated text reduction operation.
21. The method according to claim 2, wherein the method further comprises: In response to an object addition operation for adding a control for object material to the video editing interface, display a material source option in the video editing interface; In response to a source editing operation for the material source option, add the paragraph object material corresponding to the source editing operation to the video editing draft; Among them, the selected paragraph copywriting corresponding to the object addition operation in the video editing draft is associated with the paragraph object material, and the material source option includes a real-time material acquisition control and / or an existing material selection control.
22. The method according to claim 21, wherein the step of adding the paragraph object material corresponding to the source editing operation to the video editing draft in response to the source editing operation for the material source option includes: In response to a trigger selection operation for the existing material selection control, display a reference object material list and a first selection prompt message in the video editing interface; wherein, the first selection prompt message includes the copywriting paragraph duration of the selected paragraph copywriting; In response to a selection operation for the reference object material list, if the total material duration of at least one selected reference object material is less than the copywriting paragraph duration, replace the first selection prompt message in the video editing interface with a second selection prompt message; wherein, the second selection prompt message includes the material difference duration between the copywriting paragraph duration and the total material duration. If the total duration of the selected at least one reference object material is greater than or equal to the duration of the copywriting paragraph, in response to a trigger operation on the material upload control in the video editing interface, determine a paragraph object material according to the selected at least one reference object material, and add the paragraph object material to the video editing draft.
23. The method according to claim 1, wherein an empty field addition option is further displayed in the video editing interface, and correspondingly, the method further includes: In response to an empty field addition operation on the empty field addition option, obtain an empty field duration and an empty field addition position corresponding to the empty field addition operation; According to the empty field addition position, add an empty field video copywriting to the original video copywriting, and add an empty field object material associated with the empty field video copywriting to the original object material; Wherein, the empty field video copywriting and the empty field object material are respectively generated according to the empty field duration.
24. A video editing device, comprising: An original video copywriting display module, configured to display the original video copywriting in a video editing draft in a video editing interface; wherein, the video editing draft further includes an original object material associated with the original video copywriting; An original video copywriting update module, configured to, in response to a text editing operation on the original video copywriting, perform an update operation on the original video copywriting in the video editing interface according to the updated video copywriting obtained from the text editing operation; An original object material update module, configured to perform an update operation on the original object material in the video editing draft according to an updated object material associated with the updated video copywriting; Wherein, the original object material includes original video material and / or original audio material.
25. An electronic device, comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the video editing method according to any one of claims 1-23.
26. A computer-readable storage medium, the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a processor to execute the video editing method according to any one of claims 1-23 when executed.
Citation Information
Patent Citations
Oral broadcasting video generation method and device, electronic equipment and storage medium
CN113411655A
Video editing method, audio editing method and electronic equipment
CN114666637A
Video editing method and device
CN115883935A
Rapid video editing method and system
CN115914726A
Text-driven editor for audio and video assembly
US20220130424A1