[go: up one dir, main page]

CN120223965A - Video editing method, device, equipment and storage medium - Google Patents

Video editing method, device, equipment and storage medium Download PDF

Info

Publication number
CN120223965A
CN120223965A CN202311832794.3A CN202311832794A CN120223965A CN 120223965 A CN120223965 A CN 120223965A CN 202311832794 A CN202311832794 A CN 202311832794A CN 120223965 A CN120223965 A CN 120223965A
Authority
CN
China
Prior art keywords
text
video
paragraph
updated
copy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311832794.3A
Other languages
Chinese (zh)
Inventor
贾心悦
颜宇翔
张一龙
邱嘉慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202311832794.3A priority Critical patent/CN120223965A/en
Priority to PCT/CN2024/137852 priority patent/WO2025139732A1/en
Publication of CN120223965A publication Critical patent/CN120223965A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The invention discloses a video editing method, a video editing device, video editing equipment and a storage medium. The method comprises the steps of displaying an original video file in a video editing draft in a video editing interface, wherein the video editing draft further comprises original object materials related to the original video file, responding to text editing operation of the original video file, updating the original video file in the video editing interface according to an updated video file obtained by the text editing operation, and updating the original object materials in the video editing draft according to the updated object materials related to the updated video file, wherein the original object materials comprise original video materials and/or original audio materials. The embodiment of the invention solves the problem that video editing cannot be performed by taking the video file as an editing main body, and improves the editing efficiency of the video.

Description

Video editing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a video editing method, a video editing device, video editing equipment and a storage medium.
Background
At present, a video editing mode provided by a video editor adopts a transverse editing track taking video materials as editing subjects. The video file is a common element in the video editing process, and the reading habit of the video file is mainly longitudinal, so that the traditional video editing mode is not suitable for creators prone to text editing, and the video editing efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a video editing method, a device, equipment and a storage medium, which are used for solving the problem that video editing cannot be performed by taking a video file as an editing main body and improving the video editing efficiency.
In a first aspect, an embodiment of the present invention further provides a video editing method, where the method includes:
displaying an original video file in a video editing draft in a video editing interface, wherein the video editing draft also comprises original object materials associated with the original video file;
Responding to the text editing operation for the original video file, and executing the updating operation on the original video file in the video editing interface according to the updated video file obtained by the text editing operation;
according to the update object material associated with the update video file, performing an update operation on the original object material in the video editing draft;
the original object material comprises original video material and/or original audio material.
In a second aspect, an embodiment of the present invention further provides a video editing apparatus, including:
The system comprises an original video file display module, a video editing interface and a video editing module, wherein the original video file display module is used for displaying an original video file in a video editing draft in the video editing interface, and the video editing draft also comprises original object materials associated with the original video file;
The original video file updating module is used for responding to the text editing operation aiming at the original video file, and executing the updating operation on the original video file in the video editing interface according to the updated video file obtained by the text editing operation;
The original object material updating module is used for executing updating operation on the original object material in the video editing draft according to the updated object material associated with the updated video file;
the original object material comprises original video material and/or original audio material.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
At least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the video editing method of any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where computer instructions are stored, where the computer instructions are configured to cause a processor to implement the video editing method according to any one of the embodiments of the present invention.
According to the technical scheme, the original video file in the video editing draft is displayed in the video editing interface, wherein the video editing draft also comprises the original object material related to the original video file, the updating operation is carried out on the original video file in the video editing interface according to the updated video file obtained by the text editing operation in response to the text editing operation on the original video file, and the updating operation is carried out on the original object material in the video editing draft according to the updated object material related to the updated video file, wherein the original object material comprises the original video material and/or the original audio material, so that the problem that video editing cannot be carried out by taking the video file as an editing main body is solved, and the video editing efficiency is improved.
Drawings
The above and other features, advantages and aspects of embodiments of the present invention will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flowchart of a video editing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a video editing interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a video editing interface for selecting paragraph object material according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of text display areas before and after a paragraph splitting operation according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of text presentation areas before and after a paragraph ordering operation according to one embodiment of the present invention;
FIG. 6 is a flowchart of another video editing method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an updated video clip corresponding to a text deletion operation according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an updated video segment corresponding to a text adding operation according to an embodiment of the present invention;
FIG. 9 is a flowchart of another video editing method according to an embodiment of the present invention;
FIG. 10 is a diagram of updating package material corresponding to a paragraph ordering operation according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of an update package material corresponding to a text deletion operation according to an embodiment of the present invention;
FIG. 12 is a flowchart of another video editing method according to an embodiment of the present invention;
FIG. 13 is a schematic diagram of paragraph object materials before and after a text adjustment operation according to an embodiment of the present invention;
FIG. 14 is a schematic diagram of a video editing apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While the invention is susceptible of embodiment in the drawings, it is to be understood that the invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided to provide a more thorough and complete understanding of the invention. It should be understood that the drawings and embodiments of the invention are for illustration purposes only and are not intended to limit the scope of the present invention.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment," another embodiment "means" at least one additional embodiment, "and" some embodiments "means" at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like herein are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by such devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those skilled in the art will appreciate that "one or more" is intended to be construed as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It can be appreciated that before using the technical solutions disclosed in the embodiments of the present invention, the user should be informed and authorized of the type, the usage range, the usage scenario, etc. of the personal information related to the present invention in an appropriate manner according to the relevant laws and regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Therefore, the user can automatically select whether to provide personal information for software or hardware such as electronic equipment, application programs, servers or storage media for executing the operation of the technical scheme according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization acquisition process is merely illustrative and not limiting of the implementation of the present invention, and that other ways of satisfying relevant legal regulations may be applied to the implementation of the present invention.
Fig. 1 is a flowchart of a video editing method according to an embodiment of the present invention, where the method may be applied to editing a video editing draft in a video editor, and the method may be performed by a video editing apparatus, where the video editing apparatus may be implemented in hardware and/or software, and the video editing apparatus may be configured in a terminal device, typically, in a mobile terminal or a tablet computer. As shown in fig. 1, the method includes:
s110, displaying the original video file in the video editing draft in the video editing interface.
In this embodiment, the original video file may be obtained by performing a text transcription operation on an original object material currently displayed in the video editing interface, or may be manually input by a user according to a numeric keyboard provided by the video editing interface, or may be automatically generated by a video editor by using an artificial intelligent text editing tool, or may be imported into the video editor from a text file, where the manner of obtaining the original video file is not limited, and any manner in which the original video file may be obtained is within the scope of protection of the present application.
For example, the invoking of the numeric keyboard may be in response to a text editing operation for a text editing control presented in the video editing interface, and accordingly, the positioning position of the text positioning cursor when the numeric keyboard is invoked is the current positioning position of the text positioning cursor; the calling of the digital keyboard can also be in response to double-click operation of a user on the text display area, and correspondingly, the positioning position of the text positioning cursor when the digital keyboard is called is a double-click positioning position corresponding to the double-click operation; the invoking of the numeric keyboard can also be in response to the editing options displayed in the document card for the paragraph video document, and correspondingly, the positioning position of the text positioning cursor when the numeric keyboard is invoked is the first text position of the paragraph video document. The manner of the invocation of the numeric keypad is not limited herein.
In an alternative embodiment, after the keypad is invoked, the text editable range is the entire original video file or the entire paragraph of video file, and the text editable range is not limited herein.
In this embodiment, the video editing interface includes at least a text display area for displaying an original video file, and the video editing draft further includes an original object material associated with the original video file, where the original object material includes an original video material and/or an original audio material.
In this embodiment, there is an association relationship between an original video document and an original object material in a time line dimension, specifically, a document time period corresponding to the original video document and an object time period corresponding to the original object material are completely overlapped on a time line, that is, a document start time of the original video document on the time line is the same as an object start time of the original object material on the time line, and a document end time of the original time document on the time line is the same as an object end time of the original object material on the time line.
In an alternative embodiment, the video editing interface further comprises an object display area for displaying the original object material, wherein the object display area comprises a video display area and/or an audio display area. The text display area and the object display area may be arranged up and down in the video editing interface, or may be arranged left and right in the video editing interface, where the relative positional relationship between the text display area and the object display area is not limited, and may be specifically set in a user-defined manner according to actual requirements.
In an optional embodiment, the method further comprises the steps of responding to an object adding operation of an object material adding control in a video editing interface, obtaining an original object material corresponding to the object adding operation, executing a text transcription operation on the original object material to obtain an original video file, and adding the original object material and the original video file in a video editing draft in an associated mode.
Specifically, when the original object material is an original video material, performing text transcription operation on a primary audio track of the original video material to obtain an original video file, and when the original object material is an original audio material, performing text transcription operation on the original audio material to obtain the original video file.
On the basis of the embodiment, optionally, when the original object material is the original video material, the method further comprises adding a primary audio track of the original video material to the video editing draft as an original audio material in association with the original video file.
In an alternative embodiment, the original video file comprises at least one paragraph video file, and correspondingly, the original object material comprises paragraph object materials respectively associated with the paragraph video files, and the paragraph object materials comprise original video fragments corresponding to the original video materials and/or original audio fragments corresponding to the original audio materials.
In this embodiment, the original video file is divided based on paragraphs, each of the divided video files corresponds to a slot, each slot can be placed with at least one object material, and accordingly, the segment object material in this embodiment may be formed by at least one segment sub-object segment, and the text time period of the segment video file and the material time period of the associated segment object material are completely overlapped on the time line.
In another optional embodiment, the method further comprises the steps of responding to an object adding operation of an object material adding control in the video editing interface, displaying a material source option in the video editing interface, responding to a source editing operation of the material source option, adding paragraph object materials corresponding to the source editing operation into the video editing draft, wherein selected paragraph files corresponding to the object adding operation in the video editing draft are associated with the paragraph object materials, and the material source option comprises a real-time material acquisition control and/or an existing material selection control.
The control type of the object material adding control may be a button control, specifically a command button. In an alternative embodiment, the object material addition control is provided in an object presentation area and/or a text presentation area in the video editing interface. Specifically, if the object material adding control is set in the object display area, taking the current paragraph video file in the selected state in the original video file as the selected paragraph file corresponding to the object adding operation, and if the object material adding control is set in the text display area, taking the paragraph video file in the text display area and displayed in the same position as the object material adding control as the selected paragraph file corresponding to the object adding operation.
Fig. 2 is a schematic diagram of a video editing interface according to an embodiment of the present invention. Specifically, the video editing interface includes an object display area 11 and a text display area 12, wherein an object material adding control 21 is displayed in the object display area 11, and 3 paragraph video files and an object material adding control 21 displayed in the same position as each paragraph video file are displayed in the text display area 12. In the video editing interface shown in fig. 2, the object display area 11 and the text display area 12 are separated by a time progress bar, and a time indicator corresponding to a paragraph video file is displayed before each paragraph video file, specifically, the current time point in the time progress bar is updated in real time along with the movement of a text positioning cursor, and the time indicator is used for indicating the paragraph duration of the paragraph video file.
In an optional embodiment, the 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 displaying a material acquisition interface corresponding to the trigger acquisition operation in response to the trigger acquisition operation for the real-time material acquisition control, and adding the paragraph object material corresponding to the material acquisition operation to the video editing draft in response to the material acquisition operation for the material acquisition interface.
Specifically, when the paragraph object material is an original video clip, the material acquisition interface is a video shooting interface, and when the paragraph object material is an original audio clip, the material acquisition interface is an audio recording interface.
In an alternative embodiment, the method further comprises displaying the original video file in the material acquisition interface, which has the advantage that the acquisition efficiency of the original object material can be improved.
In another optional embodiment, 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 the step of displaying a reference object material list and first selection prompt information in the video editing interface in response to the trigger selection operation for the existing material selection control, wherein the first selection prompt information contains the paragraph time length of the selected paragraph text, the step of adding second selection prompt information to the first selection prompt information in the video editing interface if the total time length of the material corresponding to the selected at least one reference object material is smaller than the paragraph time length of the paragraph in response to the selection operation for the reference object material list, and the step of adding the second selection prompt information to the material corresponding to the selected at least one reference object material to the video editing interface according to the trigger operation if the total time length of the material corresponding to the selected at least one reference object material is greater than or equal to the paragraph time length of the paragraph in the video editing interface.
Specifically, the reference object material list includes at least one reference object material, and the reference object material is a reference video segment or a reference audio segment.
In an alternative embodiment, the displaying the reference object material list in the video editing interface comprises displaying the reference object material list under the material storage path in the video editing interface. The material storage path may be a local material path of a device to which the client belongs, or may be a link material path of the server.
In another optional embodiment, the displaying of the 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 obtained by searching from a reference object material list corresponding to a material storage path according to the selected paragraph text, and/or displaying a material searching control in the video editing interface, responding to a searching request operation for the material searching control, displaying a second reference object material list in the video editing interface, and the second reference object material list is obtained by searching from the reference object material list according to a searching keyword corresponding to the searching request operation.
In one embodiment, a first reference object material list is presented in the video editing interface in response to a trigger selection operation for the existing material selection control, or a material search control is presented in the video editing interface in response to a trigger selection operation for the existing material selection control, a second reference object material list is presented in the video editing interface in response to a search request operation for the material search control, or a first reference object material list and a material search control are presented in the video editing interface in response to a trigger selection operation for the existing material selection control, and the second reference object material list is substituted for the first reference object list in the video editing interface in response to a search request operation for the material search control.
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, and the search prompt word may be a keyword in a selected paragraph file or a hot search word, where selection of the search prompt word is not limited, and specifically may be set in a user-defined manner according to actual requirements.
The advantage of this arrangement is that the uploading efficiency of the object material can be improved, and thus the editing efficiency of the video can be further improved.
Specifically, the first selection prompt information and the second selection prompt information are used for prompting the optional remaining duration of the paragraph object material, and exemplary, the first selection prompt information may be "please upload video for 5 s", and the second selection prompt information may be "please continue to select video for 2 s".
Based on the above embodiment, optionally, the method further includes replacing the second selection prompt information with a third selection prompt information if a total time length of materials corresponding to the selected at least one reference object material is greater than or equal to the document paragraph time length. Specifically, the third selection prompt information is used for prompting that the paragraph object material has no selectable remaining duration, and for example, the third selection prompt information may be "the selected video meets the requirement of 5s of material".
The specific information content of the first selection prompt information, the second selection prompt information and the third selection prompt information is not limited, and can be set in a self-defined manner according to actual requirements.
In an alternative embodiment, the method for determining the paragraph object materials according to the selected at least one reference object material comprises the steps of taking the selected at least one reference object material as the paragraph object material if the total time length of the materials is equal to the time length of the paragraph, and executing end cutting on the last selected reference object material in the selected at least one reference object material and taking the selected at least one reference object material after end cutting as the paragraph object material if the total time length of the materials is greater than the time length of the paragraph. For example, assuming that the total material duration is 23s, the document paragraph duration is 20s, and the reference material duration of the last selected reference object material is 10s, the original material duration of the last selected reference object material is 7s in the paragraph object material.
Fig. 3 is a schematic diagram of a video editing interface for selecting a paragraph object material according to an embodiment of the present invention, specifically, in the example shown in fig. 3, the paragraph length of a selected paragraph is 18.4s, and a second reference object material list, second selection prompt information, a material uploading control 22 and a material searching control 23 are displayed in the video editing interface, where the second reference object material list is obtained by searching from the reference object material list according to "xx" in the material searching control 23.
On the basis of the embodiment, optionally, a text search control is displayed in the text display area, and correspondingly, the method further comprises responding to text search operation aiming at the text search control, and carrying out search marking on the original video file according to search keywords corresponding to the text search operation. Illustratively, the search mark includes, but is not limited to, a bold mark, a font method mark, a highlight mark, etc., and the search mark is not limited herein, and is specifically customized according to actual requirements.
S120, responding to the text editing operation for the original video file, and executing the updating operation on the original video file in the video editing interface according to the updated video file obtained by the text editing operation.
In an alternative embodiment, the text editing operation includes a paragraph editing operation and/or a text 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.
And S130, executing updating operation on the original object materials in the video editing draft according to the updating object materials associated with the updating video file.
In this embodiment, there is an association relationship between the updated video file and the updated object material in the dimension of the time line, and specifically, the file time period corresponding to the updated video file and the object time period corresponding to the updated object material are completely overlapped on the time line.
In an alternative embodiment, the responding to the text editing operation for the original video file, according to the updated video file obtained by the text editing operation, performs the updating operation on the original video file in the video editing interface, and comprises responding to the paragraph splitting operation for the original video file, taking the paragraph video file with the splitting positioning position corresponding to the paragraph splitting operation as a selected paragraph file, and according to the updated video file obtained by the paragraph splitting operation, performing the replacing operation on the selected paragraph file in the video editing interface, wherein the updated video file comprises two split paragraph files obtained by performing the paragraph splitting operation on the selected paragraph file according to the splitting positioning position.
The method comprises the steps of selecting a user to input a paragraph splitting control with a specific icon form in a video editing interface, wherein the paragraph splitting control can 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, the function calling operation can be a long-press operation or a sliding operation, such as a left-slide operation, or the like, the paragraph splitting operation can also be a clicking operation of the user to input a paragraph splitting option displayed in a floating window in the video editing interface, and the paragraph splitting operation can also be a clicking operation of the user to related keys on a numeric keyboard, and the related keys can be enter keys or predefined keys with the paragraph splitting function. The manner of generating the paragraph splitting operation is not limited herein.
Specifically, the split positioning position is used for representing the current text position where the text positioning cursor is located in response to the paragraph splitting operation for the original video file. The client or the server is used for executing paragraph splitting operation on the selected paragraph file according to the splitting positioning position to obtain two split paragraph files, and taking the two split paragraph files as updated video files.
Fig. 4 is a schematic diagram of text display areas before and after a paragraph splitting operation according to an embodiment of the present invention. Specifically, the left side in fig. 4 represents an original video file displayed in the text display area before the paragraph splitting operation, the right side represents an updated video file displayed in the text display area after the paragraph splitting operation, and "|" in the original video file represents a text positioning cursor.
On the basis of the embodiment, the method for executing the updating operation on the original object material in the video editing draft according to the updating object material associated with the updating video file comprises the steps of taking the paragraph object material associated with the selected paragraph file as the selected object material, and executing the replacing operation on the selected object material in the video editing draft according to the updating object material associated with the updating video file, wherein the updating object material comprises two split paragraph materials obtained by executing the splitting operation on the selected object material according to the splitting positioning position.
Specifically, the client or the server is configured to determine a material positioning position according to the splitting positioning position, perform splitting operation on the selected object material according to the material positioning position to obtain two split paragraph materials, and take the two split paragraph materials as updated object materials. Taking the selected object material as an original video segment as an example, the video frame of the original video segment before the material positioning position is associated with the text of the selected paragraph text before the splitting positioning position, and the video frame of the original video segment after the material positioning position is associated with the text of the selected paragraph text after the splitting positioning position.
In an alternative embodiment, the method for executing the updating operation on the original video file in the video editing interface according to the updated video file obtained by the text editing operation in response to the text editing operation on the original video file comprises the steps of respectively taking two paragraph video files corresponding to the paragraph merging operation as selected paragraph files in response to the paragraph merging operation on the original video file, and executing the replacing operation on each selected paragraph file in the video editing interface according to the updated video file obtained by the paragraph merging operation, wherein the updated video file is one merged paragraph file obtained by executing the paragraph merging operation on each selected paragraph file.
The paragraph merging operation may be a clicking operation of inputting a paragraph merging control with a specific icon form in the video editing interface by a user, and the paragraph merging 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, where the function calling operation may be a long-press operation or a sliding operation, such as a left-slide operation, etc., the paragraph merging operation may also be a clicking operation of inputting a paragraph merging option displayed in a floating window in the video editing interface by a user, or a clicking operation of a related key on a numeric keyboard by a user, and the related key may be a backspace key, a delete key or a predefined key with a paragraph merging function. The generation method of the paragraph merging operation is not limited herein.
Specifically, the client or the server is configured to perform paragraph merging operation on each selected paragraph file to obtain a merged paragraph file, and use the merged paragraph file as the updated video file.
On the basis of the embodiment, correspondingly, the method for executing the updating operation on the original object materials in the video editing draft according to the updating object materials related to the updating video file comprises the steps that the paragraph object materials related to each selected paragraph file are taken as the selected object materials, the replacing operation is executed on each selected object material in the video editing draft according to the updating object materials related to the updating video file, and the updating object material is one combined paragraph material obtained by executing the combining operation on each selected object material.
Specifically, the client or the server is configured to perform a merging operation on each selected object material to obtain a merged paragraph material, and take the merged paragraph material as an updated object material.
On the basis of the above embodiment, optionally, when each selected object material includes an original audio clip and there are at least two audio playing speeds corresponding to the original audio clips respectively, the client or the server is further configured to use the preset audio playing speed of the selected object material as the playing speed of the updated object material. The preset selected object material may be an i-th selected object material in the selected object materials, where i may be 1 or 2, and the preset selected object material is not limited herein.
In an alternative embodiment, the responding to the text editing operation for the original video file, according to the updated video file obtained by the text editing operation, performs the updating operation on the original video file in the video editing interface, and includes responding to the paragraph sorting operation for the original video file, using at least two paragraph video files corresponding to the paragraph sorting operation as selected paragraph files respectively, and according to the updated video file obtained by the paragraph sorting operation, performing the replacing operation on each selected paragraph file in the video editing interface respectively, wherein the updated video file is obtained by performing the sorting operation on each selected paragraph file according to the paragraph sorting sequence corresponding to the paragraph sorting operation.
The paragraph sorting operation may be a drag operation of a user on a text card corresponding to a paragraph video text, or a sorting editing operation of inputting a paragraph sorting option displayed in a video editing interface by the user, where the paragraph sorting option may be displayed in the video editing interface in response to a sorting operation triggering a paragraph sorting control, and the paragraph sorting option includes an option content such as a paragraph input box and a sorting order input box, and the paragraph sorting control may be displayed in an editing function navigation area in the video editing interface or a calling function navigation area displayed in response to a function calling operation, where the function calling operation may be a long-press operation or a sliding operation, such as a left-slide operation. The manner of generating the paragraph ordering operation is not limited herein.
Specifically, the client or the server is configured to execute the sorting operation on each selected paragraph file according to the paragraph arrangement sequence corresponding to the paragraph sorting operation to obtain an updated video file.
On the basis of the embodiment, correspondingly, the method for executing the updating operation on the original object materials in the video editing draft according to the updating object materials related to the updating video file comprises the steps of taking the paragraph object materials respectively related to the selected paragraph files as the selected object materials, and executing the replacing operation on the selected object materials in the video editing draft according to the updating object materials related to the updating video file, wherein the updating object materials are obtained by executing the sorting operation on the selected object materials according to the paragraph arrangement sequence corresponding to the paragraph sorting operation.
Specifically, the client or the server is configured to execute a sorting operation on each selected object material according to a paragraph arrangement sequence corresponding to the paragraph sorting operation, so as to obtain an updated object material.
On the basis of the embodiment, when the video editing interface further comprises a material progress bar, the method further comprises the steps of taking selected object materials corresponding to the current time point in the time progress bar in all selected object materials as target object materials, and executing replacement operation on the current time in the time progress bar according to an updating time point, wherein the updating time point is determined according to the arrangement position of the target object materials in the updated video file. Specifically, the client or the server is configured to determine an update time point according to an arrangement position of the target object material in the update video file.
FIG. 5 is a schematic diagram of text presentation areas before and after a paragraph ordering operation according to an embodiment of the present invention. Specifically, the left side in fig. 5 represents the original video text shown in the text display area before the paragraph ordering operation, and the right side represents the updated video text shown in the text display area after the paragraph ordering operation. In the example shown in fig. 5, the first paragraph video file and the second paragraph video file in the original video file are subjected to paragraph sorting, the current time point in the timeline is the time point corresponding to the "coming" in the first paragraph video file, that is, 00:05 before the paragraph sorting operation, and the updated time point in the timeline is the time point corresponding to the "coming" in the second paragraph video file after the paragraph sorting operation, that is, 00:09 after the paragraph sorting operation.
In an alternative embodiment, the responding to the text editing operation for the original video file, and executing the updating operation for the original video file in the video editing interface according to the updated video file obtained by the text editing operation comprises responding to the paragraph deleting operation for the original video file, taking the paragraph video file corresponding to the paragraph deleting operation as the updated video file, and deleting the updated video file from the original video file in the video editing interface.
The paragraph deletion operation may be a clicking operation of inputting a paragraph deletion control with a specific icon form in the video editing interface by a user, where the paragraph deletion control may be displayed in an editing function navigation area in the video editing interface, may be displayed in a calling function navigation area displayed in response to a function calling operation, and the function calling operation may be a long-press operation or a sliding operation, such as a left-slide operation, etc., and the paragraph deletion operation may also be a clicking operation of inputting a paragraph deletion option displayed in a floating window in the video editing interface by a user, or may be a clicking operation of a related key on a numeric keyboard by a user, and the related key may be a backup key, a delete key, or a predefined key with a paragraph deletion function. The manner of generating the paragraph deletion operation is not limited herein.
On the basis of the embodiment, correspondingly, the method for executing the updating operation on the original object material in the video editing draft according to the updating object material associated with the updating video file comprises the steps of taking the paragraph object material associated with the updating video file as the updating object material and deleting the updating object material from the original object material in the video editing draft.
On the basis of the embodiment, when the video editing interface further comprises a material progress bar, the method further comprises the step of executing a replacing operation on the original duration of the file in the time progress bar according to the updated total duration corresponding to the updated original video file, wherein the difference duration between the original duration of the file and the total duration of the file of the updated video file is updated in the total duration table solicit articles. For example, assuming that the original duration of the document is 30s, the total duration of the document of the updated video document is 5s, and the total duration of the update is 25s.
In an alternative embodiment, the responding to the text editing operation for the original video file, according to the updated video file obtained by the text editing operation, executes the updating operation for the original video file in the video editing interface, and comprises responding to the paragraph adding operation for the original video file, obtaining the newly added paragraph file corresponding to the paragraph adding operation and the newly added paragraph position relative to the original video file, and displaying the newly added paragraph file as the updated video file in the video editing interface according to the newly added paragraph position.
The paragraph adding operation may be an object adding operation of an object material adding control, and the corresponding newly added paragraph text is a video text transcribed from the added paragraph object material, and the paragraph adding operation may also be a clicking operation of inputting a paragraph adding control with a specific icon form in a video editing interface by a user, and the paragraph adding control may be shown in an editing function navigation area in the video editing interface or a calling function navigation area shown in response to a function calling operation, where the function calling operation may be a long-press operation or a sliding operation, such as a sliding operation is a left-sliding operation. Illustratively, the paragraph adding options corresponding to the paragraph adding control comprise at least one of manual editing options, artificial intelligent text editing options and text document importing options. The manner in which the paragraph addition operation is generated is not limited here.
On the basis of the embodiment, correspondingly, the method for executing the updating operation on the original object material in the video editing draft according to the updating object material associated with the updating video file comprises the steps of taking paragraph object material associated with the updating video file as the updating object material and adding the updating object material into the video editing draft according to the newly added paragraph position.
Specifically, if the paragraph adding operation is an object adding operation of the object material adding control, updating the object material to be the paragraph object material corresponding to the object adding operation, and if the paragraph adding operation is a clicking operation of inputting the paragraph adding control with a specific icon form in the video editing interface by a user, updating the object material to be a black field object material, wherein the black field material duration of the black field object material is the same as the text paragraph duration of the updated video text.
On the basis of the embodiment, when the video editing interface further comprises a material progress bar, the method further comprises the step of executing a replacing operation on the original time duration of the file in the time progress bar according to the updated total time duration corresponding to the updated original video file, wherein the sum time duration between the original time duration of the updated total time duration table solicit articles file and the total time duration of the file of the updated video file is calculated. For example, assuming that the original duration of the document is 30s, the total duration of the document of the updated video document is 5s, and the total duration of the update is 35s.
On the basis of the embodiment, optionally, when the video editing interface further comprises time indicators corresponding to the section video files respectively, the method further comprises the step of synchronously updating the updated video files obtained by the text editing operation along with the indicated time in the time indicators.
According to the technical scheme, the original video file in the video editing draft is displayed in the video editing interface, wherein the video editing draft also comprises original object materials related to the original video file, the updating operation is carried out on the original video file in the video editing interface according to the updated video file obtained by the text editing operation in response to the text editing operation on the original video file, and the updating operation is carried out on the original object materials in the video editing draft according to the updated object materials related to the updated video file, wherein the original object materials comprise the original video materials and/or the original audio materials, so that the problem that video editing cannot be carried out by taking the video file as an editing main body is solved, and the video editing efficiency is improved.
Fig. 6 is a flowchart of another video editing method according to an embodiment of the present invention, where the text editing operation in the above embodiment is further refined, and in this embodiment, the text editing operation includes a text deleting operation and/or a text adding operation. As shown in fig. 6, the method includes:
s210, displaying an original video file in the video editing draft in a video editing interface.
S210 in this embodiment is the same as or similar to S110 shown in fig. 1 in the above embodiment, and this embodiment is not described here again.
S220, responding to the text editing operation aiming at the original video file, and executing the updating operation on the original video file in the video editing interface according to the updated video file obtained by the text editing operation.
And S230, executing updating operation on the original object materials in the video editing draft according to the updating object materials associated with the updating video file.
In an alternative embodiment, the responding to the text editing operation for the original video file, according to the updated video file obtained by the text editing operation, performs the updating operation on the original video file in the video editing interface, and comprises responding to the text deleting operation for the original video file, taking the paragraph video file with the deleted text corresponding to the text deleting operation as a selected paragraph file, and according to the updated video file obtained by the text deleting operation, performing the replacing operation on the selected paragraph file in the video editing interface, wherein the updated video file is obtained by deleting the deleted text from the selected paragraph file.
For example, the text deletion operation may be a click operation of a related key on the numeric keypad by a user, and the related key may be a backspace key, delete key, or a predefined key with text deletion function. The method of generating the text deletion operation is not limited herein.
Specifically, the client or the server is used for deleting the deleted text from the selected paragraph text to obtain the updated video text.
On the basis of the embodiment, when the video editing interface further comprises a material progress bar and a time indicator, the method further comprises the steps of executing replacement operation on the original document duration of the original video document in the time progress bar by using the updated total time length corresponding to the updated original video document, executing replacement operation on the document paragraph duration in the time indicator by using the updated paragraph duration corresponding to the updated video document, wherein the difference time length between the original document duration and the deleted text duration is updated by using the updated total time length table solicit articles, and the difference time length between the paragraph duration and the deleted text duration is updated by using the updated paragraph duration table solicit articles. For example, assuming that the original duration of the text is 30s, the duration of the paragraph of the text is 10s, and the duration of the deleted text is 1s, the total update duration is 29s, and the duration of the updated paragraph is 9s.
On the basis of the embodiment, correspondingly, the method for executing the updating operation on the original object material in the video editing draft according to the updating object material associated with the updating video file comprises the steps of taking the paragraph object material associated with the selected paragraph file as the selected object material and executing the replacing operation on the selected object material in the video editing draft according to the updating object material associated with the updating video file.
When the material type of the selected object material is the second type, the updated video segments in the updated object material are obtained by executing terminal cutting operation on the selected video segments in the selected object material according to the total deleting text time length corresponding to each deleting text, and the updated audio segments in the updated object material are regenerated according to the updated video text.
In this embodiment, the selected object material includes a selected video clip and a selected audio clip, and the first type is used to characterize that the selected audio clip in the selected object material is native audio data or a manual recording clip of the selected video clip. Illustratively, the video frames in the selected video clip of the first type include at least a speaker. The second type is used for representing that the selected audio clips in the selected object materials are the voice-over clips or the digital human audio clips of the selected video clips. Illustratively, the video frames in the selected video clip of the second type do not include the speaker and the subtitle content corresponding to the selected paragraph.
In one embodiment, the material type of the selected object material is a first type, and the updated object material replaces the selected object material in real time along with the text deleting operation of the original video file. Specifically, the client or the server is configured to delete the deleted object material from the selected object material, so as to obtain an updated object material, where the updated object material is an updated video segment and an updated audio segment.
Specifically, each punctuation in the original video file is defined in the video editor, and the punctuation and the characters in front of the punctuation occupy a time segment, and when a certain character is deleted, the punctuation bound with the character is deleted at the same time.
For example, a text duration t c corresponding to a deleted text satisfies the formula:
Wherein t s represents the total duration of the object materials of the selected object materials, t b represents the duration of the black field materials of the black field object materials in the selected object materials, and N represents the number of words contained in the selected paragraph.
In another embodiment, the material type of the selected object material is a second type, the update object material is triggered and replaced by the trigger deleting operation of the text deleting control, and the text deleting control is displayed synchronously with the numeric keyboard. Specifically, the client or the server is configured to perform a terminal cropping operation on the selected video segment in the selected object material according to the total length of the deleted text, obtain an updated video segment, and regenerate an updated audio segment according to the updated video file.
Fig. 7 is a schematic diagram of an updated video clip corresponding to a text deletion operation according to an embodiment of the present invention. Specifically, the deleted video clips in the first type of selected video clips are video clips associated with each deleted word, and the deleted video clips in the second type of selected video clips are video clips associated with the end word sequences in the selected paragraph text, wherein the number of words contained in the end word sequences is the same as the number of deleted words.
In an alternative embodiment, the text deletion operation includes a dehydration operation for a dehydration control in the video editing interface. Illustratively, the keyword control may be displayed in an edit function navigation area in the video editing interface, or may be displayed in a call function navigation area displayed in response to a function call operation, where the function call operation may be a long press operation or a sliding operation, such as a sliding operation is a left sliding operation, or the like.
In an alternative embodiment, the method further comprises setting the control edit status of the keyword removal control to an editable status if the selected paragraph text is transcribed from the paragraph object material, and setting the control edit status of the keyword removal control to a non-editable status if the selected paragraph text is not transcribed from the paragraph object material.
Illustratively, the water word in the selected paragraph text may be identified from the selected paragraph text using a water word identification algorithm, or may be obtained in response to a water word marking operation for the selected text. The keyword marking operation can be a clicking operation of inputting a keyword marking option displayed in a floating window in the video editing interface by a user.
In an alternative embodiment, the responding to the text editing operation for the original video file and according to the updated video file obtained by the text editing operation, the updating operation for the original video file in the video editing interface is carried out, and the method comprises the steps of responding to the text adding operation for the original video file, taking the paragraph video file where the newly added text corresponding to the text adding operation is located as a selected paragraph file, obtaining the newly added text position of the newly added text relative to the selected paragraph file, and according to the updated video file obtained by the text adding operation, executing the replacing operation for the selected paragraph file in the video editing interface, wherein the updated video file is obtained by adding the newly added text into the selected paragraph file according to the newly added text position.
The text adding operation may be an input operation of a numeric keypad by a user, for example. Specifically, the client or the server is configured to add the new text to the selected paragraph text according to the position of the new text to obtain an updated video text.
On the basis of the embodiment, when the video editing interface further comprises a material progress bar and a time indicator, the method further comprises the steps of executing replacement operation on the original document duration of the original video document in the time progress bar by using the updated total time length corresponding to the updated original video document, and executing replacement operation on the document paragraph time length in the time indicator by using the updated paragraph time length corresponding to the updated video document, wherein the summation time length between the original document time length and the newly added text time length is updated by using the updated paragraph time length table solicit articles, and the summation time length between the document paragraph time length and the newly added text time length of the selected video document is represented by the updated paragraph time length. For example, assuming that the original duration of the document is 30s, the duration of the original paragraph is 10s, and the duration of the newly added text is 1s, the total updated duration is 31s, and the updated paragraph duration is 11s.
On the basis of the embodiment, correspondingly, the method for executing the updating operation on the original object material in the video editing draft according to the updating object material associated with the updating video file comprises the steps of taking the paragraph object material associated with the selected paragraph file as the selected object material and executing the replacing operation on the selected object material in the video editing draft according to the updating object material associated with the updating video file.
Specifically, when the material type of the selected object material is a first type, the updated object material is obtained by adding a black field object material to the selected object material according to the new character position, the object material duration of the black field object material is the same as the new character duration of the new added character, and when the material type of the selected object material is a second type, the updated video segments in the updated object material are determined according to the total time duration of the new added character corresponding to each new added character and the selected video segments in the selected object material, and the updated audio segments in the updated object material are regenerated according to the updated video file.
In one embodiment, the material type of the selected object material is a first type, and the updated object material replaces the selected object material in real time along with the text adding operation of the original video file. Specifically, the client or the server is configured to add the black field object material to the selected object material according to the newly added text position to obtain an updated object material, where the updated object material is an updated video segment and an updated audio segment.
In another embodiment, the material type of the selected object material is a second type, the update object material triggers and replaces the selected object material in response to a trigger adding operation of the text adding control, and in this embodiment, the text adding control is displayed synchronously with the numeric keyboard. Specifically, the client or the server is configured to determine an updated video segment according to the total duration of the newly added text and the selected video segment in the selected object material, and regenerate an updated audio segment according to the updated video file.
Specifically, if a selected video segment is uploaded to an object display area after being cut at the tail end, obtaining a cut video duration corresponding to the selected video segment, if the cut video duration is greater than or equal to a newly added text total duration, splicing the cut video segment at the tail end of the selected video segment according to the newly added text total duration to obtain an updated video segment, if the cut video duration is less than the newly added text total duration, splicing the cut video segment at the tail end of the selected video segment to obtain a reference video segment, and splicing the black field video segment at the tail end of the reference video segment according to a difference duration between the newly added text total duration and the cut video duration to obtain the updated video segment, and if the selected video segment does not pass through a tail end cutting operation, splicing the black field video segment at the tail end of the selected video segment according to the newly added text total duration to obtain the updated video segment.
Fig. 8 is a schematic diagram of an updated video clip corresponding to a text adding operation according to an embodiment of the present invention. Specifically, a black field video clip in the first type of updated video clip is added at a material position associated with the newly added text, and a preset video clip is spliced at the tail end of the second type of updated video clip, wherein the preset video clip is a black field video clip, a cut video clip or a combined video frequency band of the cut video clip and the black field video clip. The video duration of the preset video clip is the same as the total duration of the newly added characters.
According to the technical scheme of the embodiment, the original video file in the video editing interface is updated according to the updated video file obtained by the text editing operation in response to the text editing operation on the original video file, and the original object material in the video editing interface is updated according to the updated object material associated with the updated video file, so that the problem of synchronous editing of the object material by the text editing operation is solved, the flexibility of video editing is further improved, and the applicable scene of the video editing method is further widened by distinguishing the material types of the object material.
Fig. 9 is a flowchart of another video editing method according to an embodiment of the present invention, where the video editing draft in the above embodiment is further refined. As shown in fig. 9, the method includes:
S310, displaying an original video file in the video editing draft in a video editing interface.
S320, responding to the text editing operation for the original video file, and executing the updating operation on the original video file in the video editing interface according to the updated video file obtained by the text editing operation.
S330, according to the updated object material associated with the updated video file, performing an updating operation on the original object material in the video editing draft.
In this embodiment, S310 to S330 are the same as or similar to S110 to S130 shown in fig. 1 in the above embodiment and/or S210 to S230 shown in fig. 6 in the above embodiment, and are not described herein.
S340, if the text editing operation is included in the preset packaging operation set and the sequence video file is included in the edited video file corresponding to the text editing operation set, executing the updating operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation set.
In this embodiment, the video editing draft further includes an original package material, where the original package material includes sequence package materials respectively associated with at least one sequence video file in the original video file, the sequence video file includes preset sequence files in at least one paragraph video file, each of the preset sequence files represents a continuous video file that can span a paragraph, and the sequence package material is used for packaging a display effect of a sequence object material associated with the sequence video file.
Exemplary raw packaging materials include, but are not limited to, picture-in-picture, stickers, sound effects, subtitles, music and text templates, etc., wherein picture-in-picture, sound effects and music are packaging materials with time attributes, and stickers, subtitles and text templates are packaging materials without time attributes, and the packaging materials with time attributes characterize the time attributes of the packaging materials themselves with the duration of the packaging materials.
Specifically, there is an association relationship between the sequence video file and the sequence packaging material in the dimension of the time line, and specifically, the file time period corresponding to the sequence video file and the packaging time period corresponding to the sequence packaging material are completely overlapped on the time line.
In an optional embodiment, the preset wrapper operation set includes at least one of a paragraph sorting operation, a text deleting operation, and a text adding operation, where the text deleting operation includes a paragraph deleting operation and/or a text deleting operation.
In an alternative embodiment, the updating operation is performed on the original package material in the video editing draft according to the updated package material corresponding to the text editing operation, and the updating operation comprises the steps that when the text editing operation is a paragraph sorting operation, at least two paragraph video files corresponding to the paragraph sorting operation are respectively used as selected paragraph files, at least one sequence package material associated with a preset sequence file in the at least one selected paragraph file is respectively used as selected package material, and each sequence video file respectively associated with each selected package material is respectively used as selected sequence file, and the replacing operation is respectively performed on each selected package material in the video editing draft according to the updated package material corresponding to the paragraph sorting operation.
In this embodiment, the updated package material is obtained by performing a sorting operation on at least one target package material according to a sequence document sequence, where the sequence document sequence is determined according to a paragraph arrangement sequence corresponding to the paragraph sorting operation, and the target package material is determined according to a cross-paragraph attribute of each selected sequence document. Specifically, when the cross-paragraph attribute of the selected sequence document is a cross-paragraph, each target package material comprises at least two split package materials respectively associated with the split sequence document, each split sequence document is obtained by executing a paragraph splitting operation on the selected sequence document, and when the cross-paragraph attribute of the selected sequence document is a non-cross-paragraph, each target package material comprises a selected package material associated with the selected sequence document.
Specifically, if the selected sequence file contains at least two preset sequence files in the paragraph video file, the paragraph crossing attribute of the selected sequence file is a paragraph crossing, and if the selected sequence file contains one preset sequence file in the paragraph video file, the paragraph crossing attribute of the selected sequence file is a non-paragraph crossing.
Specifically, if the cross-paragraph attribute of the selected sequence document is non-cross-paragraph, the selected package material associated with the selected sequence document moves along with the paragraph arrangement sequence of the paragraph video document, and if the cross-paragraph attribute of the selected sequence document is cross-paragraph, the paragraph splitting operation is performed on the selected package material associated with the selected sequence document, and at least two split package materials obtained by splitting respectively have the paragraph arrangement sequence of the paragraph video document with the association relation.
Fig. 10 is a schematic diagram of updating package materials corresponding to a paragraph sorting operation according to an embodiment of the present invention. Specifically, in the example shown in fig. 10, the selected package material is a musical material, the selected sequence text associated with the selected package material includes a paragraph video text 1-a paragraph video text 4, the paragraph sorting operation characterizes that the paragraph video text 1 is moved to the back of the paragraph video text 3, since the cross-paragraph attribute of the selected sequence text is cross-paragraph, the sorting operation is required to be performed on the selected sequence text according to the paragraph separation position corresponding to the paragraph video text 1 and the paragraph video text 2 and the paragraph separation position corresponding to the paragraph video text 3 and the paragraph video text 4, so as to obtain 3 split sequence texts, namely, a combined text of the paragraph video text 1, the paragraph video text 2 and the paragraph video text 3 and a beginning material, an intermediate material and an ending material of the paragraph video text, respectively, which are respectively associated with each split sequence text, according to the sequence text sequence obtained by the paragraph arrangement sequence, so as to obtain the sequence of the beginning material, the sequence of each target package in the update package sequence, the sequence of the beginning material and the beginning material.
In an alternative embodiment, the updating operation is performed on the original package material in the video editing draft according to the updated package material corresponding to the text editing operation, and the method comprises the steps that when the text editing operation is a text deleting operation, the sequence package material with an association relationship with a deleting sequence file corresponding to the text deleting operation is used as a selected package material, if the selected sequence file associated with the selected package material is contained in the deleting sequence file, the selected package material is deleted from the original package material in the video editing draft as an updated package material, wherein when the text deleting operation is a paragraph deleting operation, the deleting sequence file is a deleting paragraph file, and when the text deleting operation is a text deleting operation, the deleting sequence file is a deleting text.
Specifically, if the selected sequence file associated with the selected package material is included in the deleted sequence file, which indicates that the selected sequence file is deleted entirely, the selected package material is deleted from the original package material in the video editing draft as an updated package material.
In an alternative embodiment, the updating operation is performed on the original package material in the video editing draft according to the updated package material corresponding to the text editing operation, and the replacing operation is performed on the selected package material in the video editing draft according to the updated package material corresponding to the text deleting operation if the selected sequence document is not included in the deleted sequence document.
In this embodiment, when the selected package material is a package material with a time attribute and the deletion sequence file does not include a start associated text in the selected sequence file, the update package material is obtained by associating the selected package material with an updated original video file according to a package material duration of the selected package material and the start associated text, and when the selected package material is a package material with a time attribute and the deletion sequence file includes a start associated text in the selected sequence file, the update package material is obtained by associating the selected package material with the updated original video file according to a package material duration of the selected package material and the update start associated text, and the update start associated text is a first associated text located after the deletion sequence file in the selected sequence file.
On the basis of the embodiment, optionally, the client or the server is further configured to obtain a file remaining duration of a remaining video file with a start associated text or an update start associated text as a starting point in the updated original video file, and if the time for packaging the material is longer than the file remaining duration, execute a terminal clipping operation on the selected packaging material according to a difference duration between the packaging material duration and the file remaining duration, to obtain the updated packaging material.
Fig. 11 is a schematic diagram of an update package material corresponding to a text deletion operation according to an embodiment of the present invention. Specifically, the selected package material shown in fig. 11 includes music 1 of 12s and music 2 of 14s, wherein music 1 is associated with "good in the paragraph video file, and recently, the weather is getting hotter, and music 2 is associated with" your share one my summer sun-proof good "in the paragraph video file.
In the text deleting operation shown in fig. 11, when the deletion sequence text having an association relationship with music 1 includes the initial association text "big", the client or the server is configured to associate the music 1 with the updated original video text according to the package material duration of the selected package material and the updated initial association text "most", where the music 1 is the package material associated with "12 s with which the latest weather is getting hotter and hotter.
In the text deletion operation shown in fig. 11, the deletion sequence text having an association relationship with the music 2 does not include the initial association text "you", and then the client or the server is configured to associate the music 2 with the updated original video text according to the package material duration of the selected package material and the initial association text "you", and because the package material duration of the music 2 is longer than the text remaining duration of the remaining video text in the original video text starting from "you", the end cropping operation is performed on the music 2, where the music 2 is the package material 10s associated with "your shares a sun-proof good".
In this embodiment, when the selected package material is a package material without a time attribute, the updated package material is a package material associated with an updated sequence document, and the updated sequence document is obtained by deleting the deleted sequence document from the selected sequence document.
Before executing the replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text deleting operation, the method further comprises taking a paragraph object material associated with a paragraph video file in which the deleting sequence file is located as a selected object material, executing the replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text deleting operation when the text deleting operation is a paragraph deleting operation or the text deleting operation is a text deleting operation and the material type of the selected object material is a first type, and executing the replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text deleting operation when the text deleting operation is a text deleting operation and the material type of the selected object material is a second type in response to triggering the deleting operation for a text deleting control in the video editing interface.
Specifically, if the text deletion operation is a paragraph deletion operation, or the text deletion operation is a text deletion operation and the material type of the selected object material is a first type, the update package material replaces the selected package material in real time along with the paragraph deletion operation of the original video file. And if the text deleting operation is a text deleting operation and the material type of the selected object material is a second type, the updated packaging material responds to the triggering deleting operation of the text deleting control to trigger and replace the selected packaging material.
In an alternative 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 the method comprises the steps of taking a sequence video file in which a newly added text sequence corresponding to the text editing operation is located as a selected sequence file when the text editing operation is the text adding operation, taking a sequence packaging material associated with the selected sequence file as a selected packaging material, and performing a replacing operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text adding operation.
In this embodiment, when the selected package material is a package material with a time attribute, the updated package material is obtained by associating the selected package material with an updated original video file according to a package material duration of the selected package material and a start association text in the selected sequence file, and when the selected package material is a package material without a time attribute, the updated package material is obtained by associating the selected package material with an updated sequence file according to the start association text, and the updated sequence file is obtained by adding the new addition text sequence into the selected sequence file.
In an alternative embodiment, before executing the replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text adding operation, the method further comprises taking paragraph object material associated with a paragraph video file in which the newly added text is located as the selected object material, executing the replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text adding operation when the material type of the selected object material is a first type, and executing the replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text adding operation when the material type of the selected object material is a second type in response to the triggering adding operation on the text adding control in the video editing interface.
Specifically, if the text adding operation is a paragraph adding operation, or the text adding operation is a text adding operation and the material type of the selected object material is a first type, the updated package material replaces the selected package material in real time along with the paragraph adding operation of the original video file. And if the text adding operation is a text adding operation and the material type of the selected object material is a second type, updating the packaging material to trigger and replace the selected packaging material in response to the triggering adding operation of the text adding control.
In an optional embodiment, the method further comprises responding to a package adding operation for a package material adding control in the video editing interface, obtaining sequence package materials corresponding to the package adding operation, obtaining sequence video files in the original video files, and adding the sequence package materials into the video editing draft.
In an optional embodiment, the method further comprises the steps of responding to a sequence selection operation input for the original video file, obtaining a selected video file corresponding to the sequence selection operation in the original video file, correspondingly, obtaining the sequence video file in the original video file, wherein the selected video file is used as the sequence video file if the selected video file exists, and obtaining the sequence video file from the original video file according to the current text position of a text positioning cursor if the selected video file does not exist.
In an optional embodiment, the step of obtaining the sequence video file from the original video file according to the current text position of the text positioning cursor comprises the steps of obtaining the sequence video file from the original video file according to the time length of the package material corresponding to the sequence package material and the current text position of the text positioning cursor if the sequence package material is the package material with the time attribute, and obtaining the sequence video file from the original video file according to the preset selected sequence number and the current text position of the text positioning cursor if the sequence package material is the package material without the time attribute.
Specifically, the client or the server is configured to obtain a document remaining duration of a remaining video document corresponding to a current text position where a text positioning cursor is located in an original video document as a starting point, if the document remaining duration is greater than or equal to a packaging material duration, a document sequence duration of a sequence video document is equal to the packaging material duration, and if the document remaining duration is less than the packaging material duration, execute a terminal cutting operation on the sequence packaging material according to a difference duration corresponding to the document remaining duration and the packaging material duration, so as to obtain an updated sequence packaging material.
The number of the preset selection sequences may be 4 or 5, and specific parameter values of the number of the preset selection sequences are not limited herein, and may be set in a self-defined manner according to actual requirements.
Specifically, the client or the server is configured to obtain a number of text residues of the remaining video text corresponding to the current text position of the text positioning cursor in the original video text as a starting point, if the number of text residues is greater than or equal to the number of preset selected sequences, the number of text sequences of the sequence video text is equal to the number of preset selected sequences, and if the number of text residues is less than the number of preset selected sequences, the number of text sequences of the sequence video text is equal to the number of text residues.
In an alternative embodiment, the method further comprises responding to the object speed change operation of the paragraph object materials, taking sequence package materials associated with a preset sequence document in a paragraph video document corresponding to the object speed change operation as selected package materials, and if the selected package materials are package materials with time attributes and the preset sequence document contains initial associated characters corresponding to the selected package materials, executing replacement operation on the selected package materials in the video editing draft according to updated package materials corresponding to the object speed change operation, wherein the material playing speed of the updated package materials is the same as the audio playing speed corresponding to the object speed change operation.
Specifically, the client or the server is configured to adjust a material playing speed of the updated package material with a time attribute according to an audio playing speed corresponding to the object speed change operation.
In an alternative embodiment, when the sequence package material is a subtitle, the method further includes adding a subtitle addition effect corresponding to a subtitle effect addition operation to the subtitle in response to the subtitle effect addition operation for subtitle input. Illustratively, the caption adding effect includes, but is not limited to, caption styles, caption animations, and caption keywords, and the caption adding effect is not limited herein.
According to the technical scheme, the original package materials are displayed in the video editing interface, the original package materials comprise sequence package materials respectively associated with at least one sequence video file in the original video files, the text editing operation for the original video files is responded, if the editing video files corresponding to the text editing operation comprise the sequence video files, the updating operation is carried out on the original package materials in the video editing interface according to the updating package materials corresponding to the text editing operation, the problem of synchronous editing of the package materials by the text editing operation is solved, the flexibility of video editing is further improved, the suitability of a video editing mode taking the video files as an editing main body and the package materials is improved, and therefore the applicable scene of the video editing method is further widened.
Fig. 12 is a flowchart of another video editing method according to an embodiment of the present invention, where the video editing method in the above embodiment is further refined. As shown in fig. 12, the method includes:
s410, displaying the original video file in the video editing draft in the video editing interface.
S420, responding to the text editing operation for the original video file, and executing the updating operation on the original video file in the video editing interface according to the updated video file obtained by the text editing operation.
And S430, executing updating operation on the original object materials in the video editing draft according to the updating object materials associated with the updating video file.
In this embodiment, S410-S430 are the same as or similar to S110-S130 shown in fig. 1 in the above embodiment and/or S210-S230 shown in fig. 6 in the above embodiment, and are not described herein again.
S440, responding to the material selection operation of the paragraph object material, and taking the sentence object material corresponding to the material selection operation as the selected sentence material.
In this embodiment, the paragraph object material includes sentence object materials respectively associated with at least two sentence video documents in the paragraph video documents. Specifically, there is no overlapping video text between sentence video text respectively associated with different sentence object materials.
Illustratively, the material selection operation may be a click operation performed by the user according to at least two sentence object material inputs presented in the video editing interface.
S450, taking the sentence video file associated with the selected sentence material as a selected sentence file, and displaying a selected association style corresponding to the selected sentence file in the video editing interface.
The selected association style may be thickened, highlighted, enlarged, or a font color of at least one of a preset color and a selected cursor, and specific style content of the selected association style is not limited and may be set in a customized manner according to actual requirements.
S460, responding to the related text adjustment operation for the selected sentence file, and executing replacement operation on the selected related style in the video editing interface according to the updated related style corresponding to the updated sentence file obtained by the related text adjustment operation.
The associated text adjustment operation may be input by a user through dragging a front side light of a selected cursor displayed in the video editing interface, or may be input by a user through dragging a rear side light of a selected cursor displayed in the video editing interface, or may be input by a user through an associated text adjustment option displayed in the video editing interface, where the associated text adjustment option includes an adjustment direction and/or an adjustment option such as an associated text duration.
In one embodiment, if the related text adjustment operation is a related text increasing operation, a style time period corresponding to the updated related style is longer than a selected time period for selecting the related style, and if the related text adjustment operation is a related text decreasing operation, a style time period corresponding to the updated related style is shorter than a selected time period for selecting the related style.
And S470, executing updating operation on the paragraph object materials in the video editing draft according to the update statement object materials associated with the update statement file.
In an optional embodiment, when the related text adjustment operation is a related text addition operation, the update statement object material includes a selected update statement material for replacing a selected statement material and an adjacent update statement material for replacing an adjacent statement material, the selected statement material is a statement object material associated with the selected statement document, the selected update statement material is obtained by executing a play speed reduction operation on the selected statement material according to an addition duration corresponding to the related text addition operation, the adjacent statement material is obtained from the paragraph object material according to an addition direction corresponding to the related text addition operation, and the adjacent update statement material is obtained by executing an end clipping operation on the adjacent statement material according to the addition duration.
Specifically, the client or the server executes play deceleration operation on the selected statement materials according to the increment time length corresponding to the associated text increment operation to obtain the selected updated statement materials, and executes end cutting operation on the adjacent statement materials according to the increment time length to obtain the adjacent updated statement materials. The sentence material time length of the selected updated sentence material is longer than the sentence material time length of the selected sentence material by the playing speed-reducing operation.
In an optional embodiment, when the related text adjustment operation is a related text reduction operation, the update statement object material includes a selected update statement material and a black field object material for replacing the selected statement material, the selected update statement material is obtained by performing a play acceleration operation on the selected statement material according to a reduction time period corresponding to the related text reduction operation, the black field object material is generated according to the reduction time period of the related text reduction operation, and a material sequence between the selected update statement material and the black field object material is determined according to a reduction direction of the related text reduction operation.
Specifically, the client or the server executes a playing acceleration operation on the selected sentence material according to the reduction time length corresponding to the associated text reduction operation to obtain a selected updated sentence material, and generates a black field object material according to the reduction time length. The sentence material time length of the selected updated sentence material is smaller than the sentence material time length of the selected sentence material by the play acceleration operation.
Fig. 13 is a schematic diagram of paragraph object materials before and after a related text adjustment operation according to an embodiment of the present invention. Specifically, before the related text adjustment operation, the paragraph video file shown in fig. 13 is related to 3 sentence object materials, wherein the sentence material is selected as material 2 of 12s, and the hotter the material 2 is in the paragraph video file, i can share a 'relationship' with you. The addition duration of the related text addition operation shown in fig. 13 is 3s, the addition direction is left, and correspondingly, after the related text addition operation, the material 2 of 15s is obtained by the play deceleration operation, and the material 1 is obtained by end-cutting the material of 3 s. The associated text reducing operation shown in fig. 13 is a reducing time period of 4s and a reducing direction of left side with respect to the associated text adding operation, and accordingly, after the associated text reducing operation, 8s of material 2 is obtained by the play accelerating operation, and 4s of black field is generated based on the reducing time period of 4 s.
On the basis of the embodiment, optionally, a text global rewrite option and an object material change option are further displayed in the video editing interface, wherein the object material change option comprises a material retaining control and a material updating control, and correspondingly, the method further comprises the steps of responding to global rewrite operation for the text global rewrite option, obtaining a global video file corresponding to the global rewrite operation, executing replacement operation on an original video file in the video editing interface according to the global video file, responding to the material change operation for the object material change option, and executing replacement operation on the original object material in the video editing draft according to updated object material corresponding to the material change operation.
The text global rewrite option may be displayed in the video editing interface in response to a click operation on a text global rewrite control displayed in the video editing interface, and the text global rewrite control may be displayed in an edit function navigation area in the video editing interface or in a call function navigation area displayed in response to a function call operation, where the function call operation may be a long press operation or a slide operation, such as a slide operation is a left slide operation, or the like.
Illustratively, the text global rewrite option includes at least one of a manual edit option, an artificial intelligence text edit option, and a text document import option. The method for obtaining the global video file is not limited herein.
In an alternative embodiment, the executing the replacing operation on the original object material in the video editing draft according to the updated object material corresponding to the material changing operation in response to the material changing operation for the object material changing option includes executing the replacing operation on the original object material in the video editing draft according to the updated object material corresponding to the material updating operation in response to the material updating operation for the material updating control, wherein the updated object material is intelligently generated according to the global video file.
In another optional embodiment, the performing, in response to the material modification operation for the object material modification option, a replacement operation on the original object material in the video editing draft according to the updated object material corresponding to the material modification operation includes performing, in response to the material retention operation for the material retention control, a replacement operation on the original object material in the video editing draft according to the updated object material corresponding to the material retention operation, where the updated object material is obtained by performing, in accordance with an actual material total duration of the original object material and a document global duration of the global video document, a material editing operation on the original object material.
Specifically, the actual material total duration characterizes a material total duration of the original object material which is not cut by the tail end before being uploaded to the object display area, if the original object material is not cut by the tail end before being uploaded to the object display area, the actual material total duration is the same as the original material total duration of the original object material, and if the original object material is cut by the tail end before being uploaded to the object display area, the actual material total duration is greater than the original material total duration, wherein the original material total duration is the same as the document original duration of the original video document.
Specifically, if the total time length of the actual materials is longer than or equal to the overall time length of the document, end cutting operation is carried out on the original object materials according to the overall time length of the document, and segment association operation is carried out on the original object materials obtained through end cutting according to the segment data of the overall video document to obtain updated object materials, if the total time length of the actual materials is shorter than Yu Wenan overall time length, black field object materials are spliced at the tail ends of the original object materials according to the difference time length between the total time length of the actual materials and the overall time length of the document, and segment association operation is carried out on the spliced original object materials according to the segment data of the overall video document to obtain updated object materials.
In an optional embodiment, a null field adding option is further displayed in the video editing interface, and accordingly, the method further comprises the steps of responding to a null field adding operation for the null field adding option, obtaining a null field duration and a null field adding position corresponding to the null field adding operation, adding a null field video file into the original video file according to the null field adding position, and adding a null field object material associated with the null field video file into the original object material, wherein the null field video file and the null field object material are respectively generated according to the null field duration;
The null field addition option may be displayed in the video editing interface in response to a clicking operation on a null field addition control displayed in the video editing interface, and the null field addition option includes a null field duration input box in an exemplary manner, and the null field addition 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, where the function calling operation may be a long-press operation or a sliding operation, such as a sliding operation being a left-sliding operation.
Specifically, the null field adding position is the current text position where the text positioning cursor is located in response to the null field adding operation for the null field adding option. For example, a null field video file may be represented as "[..xs ]", where "x" represents a null field duration and the null field object material is a null field video clip or a mute audio clip.
On the basis of the embodiment, optionally, a cancel control and a restore control are further displayed in the video editing interface, and the method correspondingly further comprises responding to clicking operation for the cancel control or the restore control, and if the current editing operation exists in a preset editing operation set, canceling or restoring the updated video file, the updated object material or the updated package material generated by the current editing operation, wherein the preset editing operation set comprises a paragraph splitting operation, a paragraph merging operation, a text deleting operation, a text adding operation, a subtitle style modifying operation and a blank field adding operation.
According to the technical scheme of the embodiment, sentence object materials corresponding to the material selection operation are used as selected sentence materials, sentence video files associated with the selected sentence materials are used as selected sentence files, selected association patterns corresponding to the selected sentence files are displayed in a video editing interface, in response to the associated text adjustment operation for the selected sentence files, replacement operation is executed on the selected association patterns in the video editing interface according to the updated association patterns corresponding to the updated sentence files obtained by the associated text adjustment operation, and according to the updated sentence object materials associated with the updated sentence files, update operation is executed on the paragraph object materials in the video editing interface, so that the problem that association relation between the video files and the video materials cannot be changed in a self-defined mode is solved, the flexibility of video editing is further improved, and the applicable scenes of the video editing method are further widened.
The following is an embodiment of a video editing apparatus provided in an embodiment of the present invention, which belongs to the same inventive concept as the video editing method of the above embodiment, and details which are not described in detail in the embodiment of the video editing apparatus may refer to the content of the video editing method in the above embodiment.
Fig. 14 is a schematic structural diagram of a video editing apparatus according to an embodiment of the present invention. As shown in fig. 14, the apparatus includes an original video file presentation module 510, an original video file update module 520, and an original object material update module 530.
The display module 510 is configured to display an original video file in a video editing draft in a video editing interface, where the video editing draft further includes original object materials associated with the original video file;
The original video file updating module 520 is configured to respond to a text editing operation for the original video file, and execute an updating operation on the original video file in the video editing interface according to the updated video file obtained by the text editing operation;
An original object material update module 530, configured to perform an update operation on an original object material in the video editing draft according to an update object material associated with the update video file;
the original object material comprises original video material and/or original audio material.
According to the technical scheme, the original video file in the video editing draft is displayed in the video editing interface, wherein the video editing draft further comprises original object materials related to the original video file, the updating operation is performed on the original video file in the video editing interface according to the updated video file obtained through the text editing operation in response to the text editing operation on the original video file, and the updating operation is performed on the original object materials in the video editing draft according to the updated object materials related to the updated video file, wherein the original object materials comprise the original video materials and/or the original audio materials, so that the problem that video editing cannot be performed by taking the video file as an editing main body is solved, and the video editing efficiency is improved.
In an alternative embodiment, the original video file includes at least one paragraph video file;
Correspondingly, the original object material comprises paragraph object materials respectively associated with the paragraph video files, and the paragraph object materials comprise original video clips corresponding to the original video materials and/or original audio clips corresponding to the original audio materials;
The text editing operation comprises paragraph editing operation and/or text editing operation, the paragraph editing operation comprises at least one of paragraph splitting operation, paragraph merging operation, paragraph sorting operation, paragraph deleting operation and paragraph adding operation, and the text editing operation comprises text deleting operation and/or text adding operation.
In an alternative embodiment, the original video file update module 520 includes:
The selected paragraph file splitting unit is used for responding to the paragraph splitting operation aiming at the original video file, and taking the paragraph video file with the splitting positioning position corresponding to the paragraph splitting operation as a selected paragraph file;
performing replacement operation on the selected paragraph text in the video editing interface according to the updated video text obtained by the paragraph splitting operation, wherein the updated video text comprises two split paragraph text obtained by performing paragraph splitting operation on the selected paragraph text according to the splitting positioning position;
accordingly, the original object material update module 530 includes:
The selected paragraph material splitting unit is used for taking the paragraph object material associated with the selected paragraph file as a selected object material;
and executing replacement operation on the selected object material in the video editing draft according to the updated object material associated with the updated video file, wherein the updated object material comprises two split paragraph materials obtained by executing splitting operation on the selected object material according to the split positioning position.
In an alternative embodiment, the original video file update module 520 includes:
The selected paragraph file merging unit is used for responding to the paragraph merging operation aiming at the original video file, and respectively taking two paragraph video files corresponding to the paragraph merging operation as selected paragraph files;
Performing a replacing operation on each selected paragraph text 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 the paragraph merging operation on each selected paragraph text;
accordingly, the original object material update module 530 includes:
The selected paragraph material merging unit is used for taking paragraph object materials respectively associated with each selected paragraph file as selected object materials;
And executing replacement operation on each selected object material in the video editing draft according to the updated object material associated with the updated video file, wherein the updated object material is a combined paragraph material obtained by executing combination operation on each selected object material.
In an alternative embodiment, the original video file update module 520 includes:
The selected paragraph file sorting unit is used for responding to the paragraph sorting operation aiming at the original video file, and taking at least two paragraph video files corresponding to the paragraph sorting operation as selected paragraph files respectively;
respectively executing replacement operation on each selected paragraph file in the video editing interface according to the updated video file obtained by the paragraph ordering operation, wherein the updated video file is obtained by executing ordering operation on each selected paragraph file according to the paragraph ordering sequence corresponding to the paragraph ordering operation;
accordingly, the original object material update module 530 includes:
the selected object material sorting unit is used for taking paragraph object materials respectively associated with the selected paragraph documents as selected object materials;
and respectively executing replacement operation on each selected object material in the video editing draft according to the updated object material associated with the updated video file, wherein the updated object material is obtained by executing sorting operation on each selected object material according to the paragraph arrangement sequence corresponding to the paragraph sorting operation.
In an alternative embodiment, the original video file update module 520 includes:
a paragraph video file deleting unit, configured to respond to a paragraph deleting operation for the original video file, take a paragraph video file corresponding to the paragraph deleting operation as an updated video file, and delete the updated video file from the original video file in the video editing interface;
accordingly, the original object material update module 530 includes:
and the paragraph object material deleting unit is used for taking the paragraph object material associated with the updated video file as an updated object material and deleting the updated object material from the original object material in the video editing draft.
In an alternative embodiment, the original video file update module 520 includes:
A new paragraph adding unit, configured to obtain a new paragraph corresponding to a paragraph adding operation and a new paragraph position corresponding to the original video file in response to the paragraph adding operation for the original video file;
according to the position of the new paragraph, displaying the new paragraph as an updated video file in the video editing interface;
accordingly, the original object material update module 530 includes:
a paragraph object material adding unit, configured to take a paragraph object material associated with the updated video file as an updated object material;
And adding the updated object material into the video editing draft according to the position of the newly added paragraph.
In an alternative embodiment, the original video file update module 520 includes:
The text deleting unit of the selected paragraph text is used for responding to the text deleting operation aiming at the original video text and taking the paragraph video text where the deleted text corresponding to the text deleting operation is located as the selected paragraph text;
Performing a replacing operation on the selected paragraph text in the video editing interface according to the updated video text obtained by the text deleting operation, wherein the updated video text is obtained by deleting the deleted text from the selected paragraph text;
accordingly, the original object material update module 530 includes:
A selected object material deleting unit, configured to use a paragraph object material associated with the selected paragraph file as a selected object material;
Performing a replacement operation on the selected object material in the video editing draft according to an update object material associated with the update video file;
When the material type of the selected object material is a second type, the updated video segments in the updated object material are obtained by executing terminal cutting operation on the selected video segments in the selected object material according to the total deleting text time length corresponding to each deleting text, and the updated audio segments in the updated object material are regenerated according to the updated video text.
In an alternative embodiment, the original video file update module 520 includes:
The text adding unit of the selected paragraph text is used for responding to the text adding operation aiming at the original video text, taking the paragraph video text where the newly added text corresponding to the text adding operation is located as the selected paragraph text, and acquiring the newly added text position of the newly added text relative to the selected paragraph text;
Performing a replacing 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 new text into the selected paragraph text according to the position of the new text;
accordingly, the original object material update module 530 includes:
The text adding unit of the selected object material is used for taking the paragraph object material associated with the selected paragraph text as the selected object material;
Performing a replacement operation on the selected object material in the video editing draft according to an update object material associated with the update video file;
When the material type of the selected object material is a first type, the updated object material is obtained by adding a black field object material to the selected object material according to the newly added character position, the object material duration of the black field object material is the same as the newly added character duration of the newly added character, when the material type of the selected object material is a second type, the updated video segments in the updated object material are determined according to the total newly added character duration corresponding to each newly added character and the selected video segments in the selected object material, and the updated audio segments in the updated object material are regenerated according to the updated video file.
In an optional embodiment, the video editing draft further comprises original package materials, wherein the original package materials comprise sequence package materials respectively associated with at least one sequence video file in the original video file, the sequence video file comprises preset sequence files in at least one paragraph video file, each preset sequence file represents a continuous video file capable of crossing a paragraph, and the sequence package materials are used for packaging the display effect of sequence object materials associated with the sequence video file;
Correspondingly, the device also comprises:
The original package material updating module is used for executing updating operation on the original package material in the video editing draft according to the updated package material corresponding to the text editing operation if the text editing operation is included in the preset package operation set and the sequence video file is included in the edited video file corresponding to the text editing operation;
the preset packaging operation set comprises at least one of paragraph sorting operation, text deleting operation and text adding operation, wherein the text deleting operation comprises paragraph deleting operation and/or text deleting operation.
In an alternative embodiment, the original packaging material updating module includes:
The selected package material sorting unit is used for taking at least two paragraph video files corresponding to the paragraph sorting operation as selected paragraph files respectively when the text editing operation is the paragraph sorting operation;
Taking at least one sequence package material associated with a preset sequence document in at least one selected paragraph document as a selected package material, and taking the sequence video documents respectively associated with each selected package material as a selected sequence document;
respectively executing replacement operation on each selected package material in the video editing draft according to the updated package material corresponding to the paragraph sorting operation;
The updating package materials are obtained by executing sorting operation on at least one target package material according to a sequence document sequence, the sequence document sequence is determined according to a paragraph arrangement sequence corresponding to the paragraph sorting operation, and the target package materials are determined according to a cross-paragraph attribute of each selected sequence document;
when the cross-paragraph attribute of the selected sequence document is cross-paragraph, each target package material comprises at least two split package materials respectively associated with the split sequence document, and each split sequence document is obtained by executing paragraph splitting operation on the selected sequence document; when the cross-paragraph attribute of the selected sequence file is non-cross-paragraph, each target package material comprises the selected package material associated with the selected sequence file.
In an alternative embodiment, the original packaging material updating module includes:
the selected package material deleting unit is used for taking the sequence package material with the association relation with the deleted sequence text corresponding to the text deleting operation as the selected package material when the text editing operation is the text deleting operation;
If the selected sequence file associated with the selected packaging material is contained in the deleted sequence file, deleting the selected packaging material from the original packaging material in the video editing draft as an updated packaging material;
When the text deleting operation is a paragraph deleting operation, the deleting sequence file is a deleting paragraph file, and when the text deleting operation is a text deleting operation, the deleting sequence file is a deleting text.
In an alternative embodiment, the original packaging material updating module further includes:
A selected package material replacing unit, configured to execute a replacing operation on the selected package material in the video editing draft according to an updated package material corresponding to the text deleting operation if the selected sequence document is not included in the deleted sequence document;
When the selected packaging material is a packaging material with a time attribute and the deletion sequence file does not contain initial associated characters in the selected sequence file, the updated packaging material is obtained by associating the selected packaging material with the updated original video file according to the packaging material duration of the selected packaging material and the initial associated characters;
When the selected packaging material is a packaging material with a time attribute and the deletion sequence file contains initial associated characters in the selected sequence file, the update packaging material is obtained by associating the selected packaging material with the updated original video file according to the packaging material time length of the selected packaging material and the update initial associated characters, wherein the update initial associated characters are first associated characters in the selected sequence file, which are positioned behind the deletion sequence file;
when the selected packaging material is packaging material without time attribute, the updated packaging material is packaging material associated with an updated sequence document, and the updated sequence document is obtained by deleting the deleted sequence document from the selected sequence document.
In an alternative embodiment, the apparatus further comprises:
A text deletion operation judging module, configured to take, as a selected object material, a paragraph object material associated with a paragraph video file in which the deletion sequence file is located before performing a replacement operation on the selected packaged material in the video editing draft according to an updated packaged material corresponding to the text deletion operation;
When the text deleting operation is a paragraph deleting operation or the text deleting operation is a text deleting operation and the material type of the selected object material is a first type, executing a step of executing a replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text deleting operation;
And when the text deleting operation is a text deleting operation and the material type of the selected object material is a second type, responding to the triggering deleting operation aiming at the text deleting control in the video editing interface, and executing the step of executing the replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text deleting operation.
In an alternative embodiment, the original packaging material updating module includes:
the selected packaging material adding unit is used for taking a sequence video file in which a newly added text sequence corresponding to the text adding operation is located as a selected sequence file when the text editing operation is the text adding operation, and taking a sequence packaging material associated with the selected sequence file as a selected packaging material;
according to the updated packaging material corresponding to the text adding operation, executing a replacing operation on the selected packaging material in the video editing draft;
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 an updated original video file according to the packaging material duration of the selected packaging material and the initial association text in the selected sequence file, and 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 an updated sequence file according to the initial association text, and the updated sequence file is obtained by adding the new addition text sequence into the selected sequence file.
In an alternative embodiment, the apparatus further comprises:
The text adding operation judging module is used for taking paragraph object materials associated with the paragraph video file in which the newly added text is positioned as selected object materials before executing replacement operation on the selected package materials in the video editing draft according to the updated package materials corresponding to the text adding operation;
when the material type of the selected object material is the first type, executing a step of executing a replacing operation on the selected package material in the video editing draft according to the updated package material corresponding to the text adding operation;
And when the material type of the selected object material is the second type, responding to the triggering adding operation aiming at the text adding control in the video editing interface, and executing the step of executing the replacing operation on the selected packaging material in the video editing draft according to the updated packaging material corresponding to the text adding operation.
In an alternative embodiment, the apparatus further comprises:
the sequence package material adding module is used for responding to the package adding operation of the package material adding control in the video editing interface and obtaining the sequence package material corresponding to the package adding operation;
and adding the sequence packaging material into the video editing draft, wherein the video editing draft comprises a sequence video file associated with the sequence packaging material.
In an alternative embodiment, the apparatus further comprises:
A sequence video file determining module, configured to respond to a sequence selection operation input to the original video file, obtain a selected video file corresponding to the sequence selection operation in the original video file, and use the selected video file as a sequence video file associated with the sequence packaging material, or
And acquiring the sequence video file associated with the sequence packaging material from the original video file according to the current text position of the text positioning cursor.
In an alternative embodiment, the sequential video file determining module is specifically configured to:
If the sequence packaging material is a packaging material with time attribute, acquiring a sequence video file from the original video file according to the time length of the packaging material corresponding to the sequence packaging material and the current text position of a text positioning cursor;
And if the sequence packaging material is a packaging material without time attribute, acquiring a sequence video file from the original video file according to the preset number of selected sequences and the current text position of the text positioning cursor.
In an optional embodiment, the paragraph object material includes sentence object materials respectively associated with at least two sentence video documents in the paragraph video documents, and the apparatus further includes:
The paragraph object material updating module is used for responding to the material selection operation aiming at the paragraph object material and taking the sentence object material corresponding to the material selection operation as a selected sentence material;
taking the sentence video file associated with the selected sentence material as a selected sentence file, and displaying a selected association style corresponding to the selected sentence file in the video editing interface;
Responding to the associated text adjustment operation aiming at the selected sentence file, and executing replacement operation on the selected associated style in the video editing interface according to the corresponding updated associated style of the updated sentence file obtained by the associated text adjustment operation;
According to the update sentence object material associated with the update sentence file, performing an update operation on the paragraph object material in the video editing draft;
When the related text adjustment operation is a related text addition operation, the update statement object material comprises a selected update statement material for replacing a selected statement material and an adjacent update statement material for replacing an adjacent statement material, the selected statement material is a statement object material related to the selected statement document, the selected update statement material is obtained by executing a play deceleration operation on the selected statement material according to an addition time length corresponding to the related text addition operation, the adjacent statement material is obtained from the paragraph object material according to an addition direction corresponding to the related text addition operation, and the adjacent update statement material is obtained by executing a terminal cutting operation on the adjacent statement material according to the addition time length;
When the related text adjustment operation is a related text reduction operation, the update statement object material comprises a selected update statement material and a black field object material for replacing the selected statement material, the selected update statement material is obtained by executing a play acceleration operation on the selected statement material according to a reduction time length corresponding to the related text reduction operation, the black field object material is generated according to a reduction time length of the related text reduction operation, and a material sequence between the selected update statement material and the black field object material is determined according to a reduction direction of the related text reduction operation.
In an alternative embodiment, the apparatus further comprises:
the material source option display module is used for responding to the object adding operation of the object material adding control in the video editing interface and displaying material source options in the video editing interface;
the paragraph object material adding module is used for responding to the source editing operation aiming at the material source option and adding the paragraph object material corresponding to the source editing operation into the video editing draft;
wherein, the selected paragraph text corresponding to the object adding operation in the video editing draft is associated with the paragraph object material, the material source options comprise real-time material acquisition controls and/or existing material selection controls.
In an alternative embodiment, the paragraph object material adding module includes:
The display unit of the reference object material list is used for responding to the triggering selection operation of the existing material selection control, and displaying the reference object material list and first selection prompt information in the video editing interface, wherein the first selection prompt information comprises the document section duration of the selected section document;
The second selection prompt message replacement unit is used for responding to the selection operation of the reference object material list, and if the total material duration corresponding to at least one selected reference object material is smaller than the document paragraph duration, replacing the first selection prompt message in the video editing interface by the second selection prompt message, wherein the second selection prompt message comprises the material difference duration between the document paragraph duration and the total material duration;
And the paragraph object material association display unit is used for responding to the triggering operation of a material uploading control in the video editing interface if the total time length of the materials corresponding to the selected at least one reference object material is greater than or equal to the paragraph time length of the document, determining the paragraph object material according to the selected at least one reference object material and adding the paragraph object material into the video editing draft.
In an optional embodiment, a null field adding option is further displayed in the video editing interface, and correspondingly, the apparatus further includes:
The null field adding module is used for responding to a null field adding operation aiming at the null field adding option and acquiring a null field duration and a null field adding position corresponding to the null field adding operation;
Adding a null field video file to the original video file according to the null field adding position, and adding a null field object material associated with the null field video file to the original object material;
the empty field video file and the empty field object material are generated according to the empty field duration respectively.
The video editing device provided by the embodiment of the invention can execute the video editing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Referring now to fig. 15, a schematic diagram of an electronic device (e.g., terminal device) 600 suitable for use in implementing embodiments of the present invention is shown. The terminal device in the embodiment of the present invention may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device 600 shown in fig. 15 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 15, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may 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 means 606 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, devices may be connected to I/O interface 605 including input devices 606, including for example, touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc., output devices 607, including for example, liquid Crystal Displays (LCDs), speakers, vibrators, etc., storage devices 606, including for example, magnetic tape, hard disk, etc., and communication devices 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 15 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present invention, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 606, or from ROM 602. The above-described functions defined in the method of the embodiment of the present invention are performed when the computer program is executed by the processing means 601.
The computer readable medium of the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to electrical wiring, fiber optic cable, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may 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"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be included in the electronic device or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to obtain at least two internet protocol addresses, send 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 the internet protocol address, receive 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.
Or the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to receive a node evaluation request comprising 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 the content distribution network.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present invention may be implemented in software or in hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic that may be used include Field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems-on-a-chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The above description is only illustrative of the preferred embodiments of the present invention and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in the present invention is not limited to the specific combinations of technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the spirit of the disclosure. Such as the above-mentioned features and the technical features disclosed in the present invention (but not limited to) having similar functions are replaced with each other.
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the invention. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to 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 example forms of implementing the claims.

Claims (26)

1.一种视频编辑方法,其特征在于,包括:1. A video editing method, comprising: 在视频编辑界面中展示视频编辑草稿中的原始视频文案;其中,所述视频编辑草稿中还包含与所述原始视频文案关联的原始对象素材;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; 响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作;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; 根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作;According to the update object material associated with the update video copy, an update operation is performed on the original object material in the video editing draft; 其中,所述原始对象素材中包含原始视频素材和/或原始音频素材。The original object material includes original video material and/or original audio material. 2.根据权利要求1所述的方法,其特征在于,所述原始视频文案中包含至少一个段落视频文案;2. The method according to claim 1, characterized in that the original video copy contains at least one paragraph video copy; 相应的,所述原始对象素材中包含与各所述段落视频文案分别关联的段落对象素材,所述段落对象素材中包含与所述原始视频素材对应的原始视频片段和/或与所述原始音频素材对应的原始音频片段;Correspondingly, the original object material includes paragraph object materials respectively associated with each of the paragraph video texts, and the paragraph object material includes original video clips corresponding to the original video material and/or original audio clips corresponding to the original audio material; 所述文本编辑操作包括段落编辑操作和/或文字编辑操作,段落编辑操作包括段落拆分操作、段落合并操作、段落排序操作、段落删除操作和段落添加操作中至少一种,文字编辑操作包括文字删除操作和/或文字添加操作。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. 3.根据权利要求2所述的方法,其特征在于,所述响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作,包括:3. The method according to claim 2, characterized in that in response to the text editing operation on the original video copy, performing 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, comprises: 响应于针对所述原始视频文案的段落拆分操作,将所述段落拆分操作对应的拆分定位位置所在的段落视频文案作为选中段落文案;In response to a paragraph splitting operation on the original video copy, taking the paragraph video copy at the splitting positioning position corresponding to the paragraph splitting operation 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 copies obtained by performing a paragraph splitting operation on the selected paragraph copy according to the splitting positioning position; 相应的,所述根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作,包括:Accordingly, performing an update operation on the original object material in the video editing draft according to the update object material associated with the update video copy includes: 将与所述选中段落文案关联的段落对象素材作为选中对象素材;Using the paragraph object material associated with the selected paragraph copy as the selected object material; 根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的所述选中对象素材执行替换操作;其中,所述更新对象素材中包含根据所述拆分定位位置对所述选中对象素材执行拆分操作得到的两个拆分段落素材。According to the update object material associated with the update video text, 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. 4.根据权利要求2所述的方法,其特征在于,所述响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作,包括:4. The method according to claim 2, wherein 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 the updated video copy obtained by the text editing operation comprises: 响应于针对所述原始视频文案的段落合并操作,将与所述段落合并操作对应的两个段落视频文案分别作为选中段落文案;In response to a paragraph merging operation on the original video copy, two paragraph video copies corresponding to the paragraph merging operation are respectively used as selected paragraph copies; 根据所述段落合并操作得到的更新视频文案,对所述视频编辑界面中的各所述选中段落文案执行替换操作;其中,所述更新视频文案是通过对各所述选中段落文案执行段落合并操作得到的一个合并段落文案;According to the updated video copy obtained by the paragraph merging operation, a replacement operation is performed on each of the selected paragraph copies 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 copies; 相应的,所述根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作,包括:Accordingly, performing an update operation on the original object material in the video editing draft according to the update object material associated with the update video copy includes: 将与各所述选中段落文案分别关联的段落对象素材均作为选中对象素材;The paragraph object materials respectively associated with each of the selected paragraph texts are taken as the selected object materials; 根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的各所述选中对象素材执行替换操作;其中,所述更新对象素材是通过对各所述选中对象素材执行合并操作得到的一个合并段落素材。According to the update object material associated with the update video text, 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. 5.根据权利要求2所述的方法,其特征在于,所述响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作,包括:5. The method according to claim 2, characterized in that in response to the text editing operation on the original video copy, performing 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, comprises: 响应于针对所述原始视频文案的段落排序操作,将与所述段落排序操作对应的至少两个段落视频文案分别作为选中段落文案;In response to a paragraph sorting operation on the original video copy, at least two paragraph video copies corresponding to the paragraph sorting operation are respectively used as selected paragraph copies; 根据所述段落排序操作得到的更新视频文案,对所述视频编辑界面中的各所述选中段落文案分别执行替换操作;其中,所述更新视频文案是根据所述段落排序操作对应的段落排列顺序对各所述选中段落文案执行排序操作得到的;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; 相应的,所述根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作,包括:Accordingly, performing an update operation on the original object material in the video editing draft according to the update object material associated with the update video copy includes: 将与各所述选中段落文案分别关联的段落对象素材均作为选中对象素材;The paragraph object materials respectively associated with each of the selected paragraph texts are taken as the selected object materials; 根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的各所述选中对象素材分别执行替换操作;其中,所述更新对象素材是根据所述段落排序操作对应的段落排列顺序对各所述选中对象素材执行排序操作得到的。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 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.根据权利要求2所述的方法,其特征在于,所述响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作,包括:6. The method according to claim 2, characterized in that in response to the text editing operation on the original video copy, performing 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, comprises: 响应于针对所述原始视频文案的段落删除操作,将与所述段落删除操作对应的段落视频文案作为更新视频文案,并将所述更新视频文案从所述视频编辑界面中的原始视频文案中删除;In response to a paragraph deletion operation on the original video copy, taking the paragraph video copy corresponding to the paragraph deletion operation as an updated video copy, and deleting the updated video copy from the original video copy in the video editing interface; 相应的,所述根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作,包括:Accordingly, performing an update operation on the original object material in the video editing draft according to the update object material associated with the update video copy includes: 将与所述更新视频文案关联的段落对象素材作为更新对象素材,并将所述更新对象素材从所述视频编辑草稿中的原始对象素材中删除。The paragraph object material associated with the updated video text is used as the updated object material, and the updated object material is deleted from the original object material in the video editing draft. 7.根据权利要求2所述的方法,其特征在于,所述响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作,包括:7. The method according to claim 2, characterized in that in response to the text editing operation on the original video copy, performing 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, comprises: 响应于针对所述原始视频文案的段落添加操作,获取所述段落添加操作对应的新增段落文案以及相对于所述原始视频文案的新增段落位置;In response to a paragraph adding operation on the original video text, obtaining a newly added paragraph text corresponding to the paragraph adding operation and a newly added paragraph position relative to the original video text; 根据所述新增段落位置,将所述新增段落文案作为更新视频文案展示在所述视频编辑界面中;According to the position of the newly added paragraph, displaying the newly added paragraph text as an updated video text in the video editing interface; 相应的,所述根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作,包括:Accordingly, performing an update operation on the original object material in the video editing draft according to the update object material associated with the update video copy includes: 将与所述更新视频文案关联的段落对象素材作为更新对象素材;Using the paragraph object material associated with the updated video copy as the update object material; 根据所述新增段落位置,将所述更新对象素材添加在所述视频编辑草稿中。According to the newly added paragraph position, the update object material is added to the video editing draft. 8.根据权利要求2所述的方法,其特征在于,所述响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作,包括:8. The method according to claim 2, characterized in that in response to the text editing operation on the original video copy, performing 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, comprises: 响应于针对所述原始视频文案的文字删除操作,将与所述文字删除操作对应的删除文字所在的段落视频文案作为选中段落文案;In response to a text deletion operation on the original video text, the paragraph video text where the deleted text corresponding to the text deletion operation is located is used as the selected paragraph text; 根据所述文字删除操作得到的更新视频文案,对所述视频编辑界面中的所述选中段落文案执行替换操作;其中,所述更新视频文案是通过将所述删除文字从所述选中段落文案中删除得到的;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; 相应的,所述根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作,包括:Accordingly, performing an update operation on the original object material in the video editing draft according to the update object material associated with the update video copy includes: 将与所述选中段落文案关联的段落对象素材作为选中对象素材;Using the paragraph object material associated with the selected paragraph copy as the selected object material; 根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的所述选中对象素材执行替换操作;According to the update object material associated with the update video copy, performing a replacement operation on the selected object material in the video editing draft; 其中,当所述选中对象素材的素材类型为第一类型时,所述更新对象素材是通过将与所述删除文字关联的删除对象素材从所述选中对象素材中删除得到的;当所述选中对象素材的素材类型为第二类型时,所述更新对象素材中的更新视频片段是根据各所述删除文字对应的删除文字总时长对所述选中对象素材中的选中视频片段执行末端裁剪操作得到的,所述更新对象素材中的更新音频片段是根据所述更新视频文案重新生成的。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 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 length 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 text. 9.根据权利要求2所述的方法,其特征在于,所述响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作,包括:9. The method according to claim 2, wherein 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 the updated video copy obtained by the text editing operation comprises: 响应于针对所述原始视频文案的文字添加操作,将与所述文字添加操作对应的新增文字所在的段落视频文案作为选中段落文案,并获取所述新增文字相对于所述选中段落文案的新增文字位置;In response to a text adding operation on the original video copy, the paragraph video copy where the newly added text corresponding to the text adding operation is located is used as the selected paragraph copy, and the newly added text position of the newly added text 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 position of the newly added text; 相应的,所述根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作,包括:Accordingly, performing an update operation on the original object material in the video editing draft according to the update object material associated with the update video copy includes: 将与所述选中段落文案关联的段落对象素材作为选中对象素材;Using the paragraph object material associated with the selected paragraph copy as the selected object material; 根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的所述选中对象素材执行替换操作;According to the update object material associated with the update video copy, performing a replacement operation on the selected object material in the video editing draft; 其中,当所述选中对象素材的素材类型为第一类型时,所述更新对象素材是根据所述新增文字位置将黑场对象素材添加到所述选中对象素材中得到的,所述黑场对象素材的对象素材时长与所述新增文字的新增文字时长相同,当所述选中对象素材的素材类型为第二类型时,所述更新对象素材中的更新视频片段根据各所述新增文字对应的新增文字总时长和所述选中对象素材中的选中视频片段确定的,所述更新对象素材中的更新音频片段是根据所述更新视频文案重新生成的。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 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 duration of the newly added text 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 text. 10.根据权利要求2所述的方法,其特征在于,所述视频编辑草稿中还包含原始包装素材,所述原始包装素材中包含与所述原始视频文案中的至少一个序列视频文案分别关联的序列包装素材;其中,所述序列视频文案中包含至少一个段落视频文案中的预设序列文案,各所述预设序列文案表征可跨段落的连续的视频文案,所述序列包装素材用于包装与所述序列视频文案关联的序列对象素材的展示效果;10. The method according to claim 2, characterized in that 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 text in the original video text; wherein the sequence video text includes at least one preset sequence text in a paragraph video text, each of the preset sequence texts represents a continuous video text that can cross paragraphs, and the sequence packaging materials are used to package the display effect of the sequence object materials associated with the sequence video text; 相应的,所述方法还包括:Accordingly, the method further includes: 如果预设包装操作集中包含所述文本编辑操作,且与所述文本编辑操作对应的编辑视频文案中包含序列视频文案,则根据与所述文本编辑操作对应的更新包装素材,对所述视频编辑草稿中的原始包装素材执行更新操作;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 according to the updated packaging material corresponding to the text editing operation, an update operation is performed on the original packaging material in the video editing draft; 其中,所述预设包装操作集中包含段落排序操作、文本删除操作以及文字添加操作中至少一种,所述文本删除操作包括段落删除操作和/或文字删除操作。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. 11.根据权利要求10所述的方法,其特征在于,所述根据与所述文本编辑操作对应的更新包装素材,对所述视频编辑草稿中的原始包装素材执行更新操作,包括:11. The method according to claim 10, characterized in that the updating operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation comprises: 当所述文本编辑操作为段落排序操作时,将与所述段落排序操作对应的至少两个段落视频文案分别作为选中段落文案;When the text editing operation is a paragraph sorting operation, at least two paragraph video texts corresponding to the paragraph sorting operation are respectively used as selected paragraph texts; 将与至少一个选中段落文案中的预设序列文案关联的至少一个序列包装素材均作为选中包装素材,并将各所述选中包装素材分别关联的序列视频文案均作为选中序列文案;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 respectively associated with each selected packaging material are used as selected sequence texts; 根据与所述段落排序操作对应的更新包装素材,对所述视频编辑草稿中的各所述选中包装素材分别执行替换操作;According to the updated packaging materials corresponding to the paragraph sorting operation, performing a replacement operation on each of the selected packaging materials in the video editing draft; 其中,所述更新包装素材是根据序列文案顺序对至少一个目标包装素材执行排序操作得到的,所述序列文案顺序是根据所述段落排序操作对应的段落排列顺序确定的,所述目标包装素材是根据每个选中序列文案的跨段落属性确定的;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; 当所述选中序列文案的跨段落属性为跨段落时,各所述目标包装素材中包含至少两个拆分序列文案分别关联的拆分包装素材,各所述拆分序列文案是通过对所述选中序列文案执行段落拆分操作得到的;当所述选中序列文案的跨段落属性为非跨段落时,各所述目标包装素材中包含与所述选中序列文案关联的选中包装素材。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. 12.根据权利要求10所述的方法,其特征在于,所述根据与所述文本编辑操作对应的更新包装素材,对所述视频编辑草稿中的原始包装素材执行更新操作,包括:12. The method according to claim 10, characterized in that the updating operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation comprises: 当所述文本编辑操作为文本删除操作时,将与所述文本删除操作对应的删除序列文案存在关联关系的序列包装素材作为选中包装素材;When the text editing operation is a text deletion operation, a sequence packaging material associated with the deletion sequence copy corresponding to the text deletion operation is used as the selected packaging material; 如果所述选中包装素材关联的选中序列文案包含于所述删除序列文案中,则将所述选中包装素材作为更新包装素材从所述视频编辑草稿中的原始包装素材中删除;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; 其中,当所述文本删除操作为段落删除操作时,所述删除序列文案为删除段落文案,当所述文本删除操作为文字删除操作时,所述删除序列文案为删除文字。Among them, when the text deletion operation is a paragraph deletion operation, the deletion sequence copy is a paragraph deletion copy, and when the text deletion operation is a word deletion operation, the deletion sequence copy is a word deletion copy. 13.根据权利要求12所述的方法,其特征在于,所述根据与所述文本编辑操作对应的更新包装素材,对所述视频编辑草稿中的原始包装素材执行更新操作,还包括:13. The method according to claim 12, characterized in that the updating operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation further comprises: 如果所述选中序列文案未包含于所述删除序列文案中,则根据与所述文本删除操作对应的更新包装素材,对所述视频编辑草稿中的所述选中包装素材执行替换操作;If the selected sequence text is not included in the deleted sequence text, 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; 其中,当所述选中包装素材为具备时间属性的包装素材且所述删除序列文案中不包含所述选中序列文案中的起始关联文字时,所述更新包装素材是根据所述选中包装素材的包装素材时长以及所述起始关联文字将所述选中包装素材与更新后的原始视频文案进行关联得到的;Wherein, 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 according to 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 text contains the start 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 update start associated text, and the update start associated text is the first associated text in the selected sequence text that is located after the deleted sequence text; 当所述选中包装素材为不具备时间属性的包装素材时,所述更新包装素材为与更新序列文案关联的包装素材,所述更新序列文案是通过将所述删除序列文案从所述选中序列文案中删除得到的。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. 14.根据权利要求13所述的方法,其特征在于,在根据与所述文本删除操作对应的更新包装素材,对所述视频编辑草稿中的所述选中包装素材执行替换操作之前,所述方法还包括:14. The method according to claim 13, characterized in that 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 comprises: 将与所述删除序列文案所在的段落视频文案关联的段落对象素材作为选中对象素材;The paragraph object material associated with the paragraph video text where the deletion sequence text is located is used 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 a step of replacing the selected packaging material in the video editing draft according to the update packaging material corresponding to the text deletion operation; 当所述文本删除操作为文字删除操作且所述选中对象素材的素材类型为第二类型时,响应于针对所述视频编辑界面中的文字删除控件的触发删除操作,执行根据与所述文本删除操作对应的更新包装素材,对所述视频编辑草稿中的所述选中包装素材执行替换操作的步骤。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 replacing the selected packaging material in the video editing draft is performed according to the updated packaging material corresponding to the text deletion operation. 15.根据权利要求10所述的方法,其特征在于,所述根据与所述文本编辑操作对应的更新包装素材,对所述视频编辑草稿中的原始包装素材执行更新操作,包括:15. The method according to claim 10, characterized in that the updating operation on the original packaging material in the video editing draft according to the updated packaging material corresponding to the text editing operation comprises: 当所述文本编辑操作为文字添加操作时,将与所述文字添加操作对应的新增文字序列所在的序列视频文案作为选中序列文案,并将与所述选中序列文案关联的序列包装素材作为选中包装素材;When the text editing operation is a text adding operation, the sequence video copy in which the newly added text sequence corresponding to the text adding operation is located 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, performing a replacement operation on the selected packaging material in the video editing draft; 其中,当所述选中包装素材为具备时间属性的包装素材时,所述更新包装素材是根据所述选中包装素材的包装素材时长以及所述选中序列文案中的起始关联文字将所述选中包装素材与更新后的原始视频文案进行关联得到的,当所述选中包装素材为不具备时间属性的包装素材时,所述更新包装素材是根据所述起始关联文字将所述选中包装素材与更新序列文案进行关联得到的,所述更新序列文案是通过将所述新增文字序列添加到所述选中序列文案中得到的。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 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 according to the starting associated text; the updated sequence copy is obtained by adding the newly added text sequence to the selected sequence copy. 16.根据权利要求15所述的方法,其特征在于,在根据与所述文字添加操作对应的更新包装素材,对所述视频编辑草稿中的所述选中包装素材执行替换操作之前,所述方法还包括:16. The method according to claim 15, characterized in that 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 comprises: 将与所述新增文字所在的段落视频文案关联的段落对象素材作为选中对象素材;The paragraph object material associated with the paragraph video copy where the newly added text is located is used as the selected object material; 当所述选中对象素材的素材类型为第一类型时,执行根据与所述文字添加操作对应的更新包装素材,对所述视频编辑草稿中的所述选中包装素材执行替换操作的步骤;When the material type of the selected object material is the first type, executing the step of replacing the selected packaging material in the video editing draft according to the updating packaging material corresponding to the text adding operation; 当所述选中对象素材的素材类型为第二类型时,响应于针对所述视频编辑界面中的文字添加控件的触发添加操作,执行根据与所述文字添加操作对应的更新包装素材,对所述视频编辑草稿中的所述选中包装素材执行替换操作的步骤。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 replacing the selected packaging material in the video editing draft is performed according to the updating packaging material corresponding to the text adding operation. 17.根据权利要求10所述的方法,其特征在于,所述方法还包括:17. The method according to claim 10, characterized in that the method further comprises: 响应于针对所述视频编辑界面中的包装素材添加控件的包装添加操作,获取所述包装添加操作对应的序列包装素材;In response to a packaging adding operation on a packaging material adding control in the video editing interface, acquiring a sequence packaging material corresponding to the packaging adding operation; 将所述序列包装素材添加到所述视频编辑草稿中;其中,所述视频编辑草稿中包含与所述序列包装素材关联的序列视频文案。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. 18.根据权利要求17所述的方法,其特征在于,所述方法还包括:18. The method according to claim 17, characterized in that the method further comprises: 响应于针对所述原始视频文案输入的序列选中操作,获取所述原始视频文案中与所述序列选中操作对应的选中视频文案,并将所述选中视频文案作为与所述序列包装素材关联的序列视频文案;或者,In response to a sequence selection operation input for the original video copy, a selected video copy corresponding to the sequence selection operation in the original video copy is obtained, and the selected video copy is used as a sequence video copy associated with the sequence packaging material; or 根据文本定位光标所在的当前文本位置,从所述原始视频文案中获取与所述序列包装素材关联的序列视频文案。According to the current text position of the text positioning cursor, the sequence video copy associated with the sequence packaging material is obtained from the original video copy. 19.根据权利要求18所述的方法,其特征在于,所述根据文本定位光标所在的当前文本位置,从所述原始视频文案中获取与所述序列包装素材关联的序列视频文案,包括:19. The method according to claim 18, characterized in that the step of acquiring the sequence video text associated with the sequence packaging material from the original video text according to the current text position of the text positioning cursor comprises: 如果所述序列包装素材为具备时间属性的包装素材,则根据所述序列包装素材对应的包装素材时长以及文本定位光标所在的当前文本位置,从所述原始视频文案中获取与所述序列包装素材关联的序列视频文案;If the sequence packaging material is a packaging material with a time attribute, obtaining a sequence video text associated with the sequence packaging material from the original video text according to 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, the sequence video text associated with the sequence packaging material is obtained from the original video text according to the preset selection sequence quantity and the current text position of the text positioning cursor. 20.根据权利要求2所述的方法,其特征在于,所述段落对象素材中包含与所述段落视频文案中的至少两个语句视频文案分别关联的语句对象素材,相应的,所述方法还包括:20. The method according to claim 2, characterized in that the paragraph object material includes sentence object materials respectively associated with at least two sentence video texts in the paragraph video text, and correspondingly, the method further comprises: 响应于针对所述段落对象素材的素材选择操作,将与所述素材选择操作对应的语句对象素材作为选中语句素材;In response to a material selection operation on the paragraph object material, taking the sentence object material corresponding to the material selection operation as a selected sentence material; 将与所述选中语句素材关联的语句视频文案作为选中语句文案,并在所述视频编辑界面中展示与所述选中语句文案对应的选中关联样式;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; 响应于针对所述选中语句文案的关联文本调整操作,根据所述关联文本调整操作得到的更新语句文案对应的更新关联样式,对所述视频编辑界面中的所述选中关联样式执行替换操作;In response to an 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 an updated associated style corresponding to the updated sentence copy obtained by the associated text adjustment operation; 根据与所述更新语句文案关联的更新语句对象素材,对所述视频编辑草稿中的所述段落对象素材执行更新操作;According to the update sentence object material associated with the update sentence copy, performing an update operation on the paragraph object material in the video editing draft; 其中,当所述关联文本调整操作为关联文本增加操作时,所述更新语句对象素材中包含用于替换选中语句素材的选中更新语句素材以及用于替换相邻语句素材的相邻更新语句素材,所述选中语句素材为与所述选中语句文案关联的语句对象素材,所述选中更新语句素材是根据所述关联文本增加操作对应的增加时长对所述选中语句素材执行播放减速操作得到的,所述相邻语句素材是根据所述关联文本增加操作对应的增加方向从所述段落对象素材中获取的,所述相邻更新语句素材是根据所述增加时长对所述相邻语句素材执行末端裁剪操作得到的;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 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, and the adjacent updated sentence material is obtained by performing an end trimming operation on the adjacent sentence material according to the increase duration; 当所述关联文本调整操作为关联文本减少操作时,所述更新语句对象素材中包含用于替换所述选中语句素材的选中更新语句素材和黑场对象素材,所述选中更新语句素材是根据所述关联文本减少操作对应的减少时长对所述选中语句素材执行播放加速操作得到的,所述黑场对象素材是根据所述关联文本减少操作的减少时长生成的,所述选中更新语句素材和所述黑场对象素材之间的素材顺序是根据所述关联文本减少操作的减少方向确定的。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, and 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. 21.根据权利要求2所述的方法,其特征在于,所述方法还包括:21. The method according to claim 2, characterized in that the method further comprises: 响应于针对所述视频编辑界面中的对象素材添加控件的对象添加操作,在所述视频编辑界面中展示素材来源选项;In response to an object adding operation on an object material adding control in the video editing interface, displaying material source options 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; 其中,所述视频编辑草稿中与所述对象添加操作对应的选中段落文案与所述段落对象素材关联,所述素材来源选项中包含实时素材采集控件和/或已有素材选择控件。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. 22.根据权利要求21所述的方法,其特征在于,所述响应于针对所述素材来源选项的来源编辑操作,将所述来源编辑操作对应的段落对象素材添加到所述视频编辑草稿中,包括:22. The method according to claim 21, characterized in that, in response to the source editing operation for the material source option, adding the paragraph object material corresponding to the source editing operation to the video editing draft comprises: 响应于针对所述已有素材选择控件的触发选择操作,在所述视频编辑界面中展示参考对象素材列表以及第一选择提示信息;其中,所述第一选择提示信息中包含所述选中段落文案的文案段落时长;In response to a triggering selection operation on the existing material selection control, a reference object material list and first selection prompt information are displayed in the video editing interface; wherein the first selection prompt information includes the text paragraph length of the selected paragraph text; 响应于针对所述参考对象素材列表的选中操作,如果选中的至少一个参考对象素材对应的素材总时长小于所述文案段落时长,则将第二选择提示信息对所述视频编辑界面中的所述第一选择提示信息进行替换;其中,所述第二选择提示信息中包含所述文案段落时长与所述素材总时长之间的素材差值时长;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, the first selection prompt information in the video editing interface is replaced by the 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 duration of the materials corresponding to at least one selected reference object material is greater than or equal to the duration of the text paragraph, then in response to the triggering operation of the material upload control in the video editing interface, the paragraph object material is determined according to the at least one selected reference object material, and the paragraph object material is added to the video editing draft. 23.根据权利要求1所述的方法,其特征在于,所述视频编辑界面中还展示有空场添加选项,相应的,所述方法还包括:23. The method according to claim 1, characterized in that the video editing interface also displays an option of adding a blank field, and accordingly, the method further comprises: 响应于针对所述空场添加选项的空场添加操作,获取与所述空场添加操作对应的空场时长和空场添加位置;In response to an empty field adding operation for the empty field adding option, acquiring an empty field duration and an empty field adding position corresponding to the empty field adding operation; 根据所述空场添加位置,将空场视频文案添加到所述原始视频文案中,以及将与所述空场视频文案关联的空场对象素材添加到所述原始对象素材中;According to the empty field adding position, adding the empty field video copy to the original video copy, and adding the empty field object material associated with the empty field video copy to the original object material; 其中,所述空场视频文案和所述空场对象素材分别是根据所述空场时长生成的。The empty field video text and the empty field object material are respectively generated according to the empty field duration. 24.一种视频编辑装置,其特征在于,包括:24. A video editing device, comprising: 原始视频文案展示模块,用于在视频编辑界面中展示视频编辑草稿中的原始视频文案;其中,所述视频编辑草稿中还包含与所述原始视频文案关联的原始对象素材;The 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; 原始视频文案更新模块,用于响应于针对所述原始视频文案的文本编辑操作,根据所述文本编辑操作得到的更新视频文案,对所述视频编辑界面中的原始视频文案执行更新操作;An original video copy updating module, configured to respond to a text editing operation on the original video copy and perform an updating operation on the original video copy in the video editing interface according to an updated video copy obtained by the text editing operation; 原始对象素材更新模块,用于根据与所述更新视频文案关联的更新对象素材,对所述视频编辑草稿中的原始对象素材执行更新操作;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; 其中,所述原始对象素材中包含原始视频素材和/或原始音频素材。The original object material includes original video material and/or original audio material. 25.一种电子设备,其特征在于,包括:25. An electronic device, comprising: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-23中任一项所述的视频编辑方法。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 perform the video editing method according to any one of claims 1 to 23. 26.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1-23中任一项所述的视频编辑方法。26. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video editing method according to any one of claims 1 to 23 when executed.
CN202311832794.3A 2023-12-27 2023-12-27 Video editing method, device, equipment and storage medium Pending CN120223965A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202311832794.3A CN120223965A (en) 2023-12-27 2023-12-27 Video editing method, device, equipment and storage medium
PCT/CN2024/137852 WO2025139732A1 (en) 2023-12-27 2024-12-09 Video editing method and apparatus, and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311832794.3A CN120223965A (en) 2023-12-27 2023-12-27 Video editing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN120223965A true CN120223965A (en) 2025-06-27

Family

ID=96112486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311832794.3A Pending CN120223965A (en) 2023-12-27 2023-12-27 Video editing method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN120223965A (en)
WO (1) WO2025139732A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11626139B2 (en) * 2020-10-28 2023-04-11 Meta Platforms Technologies, Llc Text-driven editor for audio and video editing
CN113411655A (en) * 2021-05-18 2021-09-17 北京达佳互联信息技术有限公司 Method and device for generating video on demand, electronic equipment and storage medium
CN114666637B (en) * 2022-03-10 2024-02-02 阿里巴巴(中国)有限公司 Video editing method, audio editing method and electronic equipment
CN115914726A (en) * 2022-10-28 2023-04-04 合肥飞柚影视科技有限公司 Rapid video editing method and system
CN115883935A (en) * 2022-11-22 2023-03-31 上海幻电信息科技有限公司 Video editing method and device

Also Published As

Publication number Publication date
WO2025139732A1 (en) 2025-07-03

Similar Documents

Publication Publication Date Title
CN111970577B (en) Subtitle editing method and device and electronic equipment
JP7572108B2 (en) Minutes interaction method, device, equipment, and medium
US20250016420A1 (en) Information replay method and apparatus, electronic device, computer storage medium, and product
KR20160017078A (en) Automated system for organizing presentation slides
CN113010698A (en) Multimedia interaction method, information interaction method, device, equipment and medium
JP7718760B2 (en) Effect profile generation method, device, equipment, and medium
JP7715918B2 (en) Multimedia data processing method, device, equipment and medium
CN110070593B (en) Method, device, equipment and medium for displaying picture preview information
KR102353797B1 (en) Method and system for suppoting content editing based on real time generation of synthesized sound for video content
CN119493563A (en) Media content generation method, device, storage medium and program product
WO2025087394A1 (en) Material display method and apparatus, device and storage medium
WO2025108305A1 (en) Table field content generation method and apparatus, electronic device
CN112083866A (en) Expression image generation method and device
CN112507670B (en) Text editing method, device, electronic device and storage medium
WO2025176069A1 (en) Media data editing method and apparatus, electronic device and storage medium
CN119364091A (en) Video generation method, device, readable medium, electronic device and program product
WO2025130695A1 (en) Special-effect creation method and apparatus, and device, computer-readable storage medium and product
CN120223965A (en) Video editing method, device, equipment and storage medium
CN118828141A (en) Video processing method, device, electronic device and storage medium
KR20250078496A (en) Video editing methods and devices, devices and storage media
CN118170297A (en) Special effect editing method, device, electronic equipment, storage medium and program product
CN119031180A (en) Video production method, device, equipment and storage medium
JP7562610B2 (en) Content editing support method and system based on real-time generation of synthetic sound for video content
US12170829B1 (en) Video processing method and device, storage medium and program product
US20240430513A1 (en) Method, apparatus, electronic device, and storage medium for video editing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination