A method, apparatus, electronic device, and storage medium for editing video elements.

By receiving and responding to editing operations in the video display interface, the editing status and effects of target elements can be displayed, solving the problem of insufficient flexibility in existing video editing applications and enabling flexible editing and diverse display of video elements.

CN116017078BActive Publication Date: 2025-10-28BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211611446.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2025-10-28
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

Existing video editing applications are not flexible enough to meet the needs of different video editors and lack diversity.

Method used

By receiving and responding to editing operations in the video display interface, the editing status and effects of the target element can be displayed. It supports a variety of editing operations such as insertion, selection and deletion, and renders according to the element type, providing text and micro-expression editing functions.

Benefits of technology

It enriches video editing operations, enabling flexible editing of video elements and diverse display effects, thereby improving the flexibility and diversity of video editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017078B_ABST
    Figure CN116017078B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, electronic device, and storage medium for editing video elements. The method includes: receiving a first editing operation on a target element in a first interactive area of ​​a video display interface; responding to the first editing operation, displaying a target editing state of the target element in the first interactive area; receiving a second editing operation on the target element in the first editing state in a second interactive area of ​​the video display interface; and responding to the second editing operation, displaying a target editing effect of the target element in the first interactive area. By recognizing editing operations in the video display interface, editing elements and displaying effects on the video are realized, enriching the video editing operations and achieving the effect that the displayed element in the video is the edited element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of video editing technology, and in particular to a method, apparatus, electronic device, and storage medium for editing video elements. Background Technology

[0002] With the development of internet technology, more and more applications have entered users' lives, especially a series of software that can publish videos, which are very popular among users.

[0003] To enhance the richness of video publishing, software developers can provide video editing functions to edit videos and improve their presentation. However, current video editing applications are not flexible enough to meet the diverse needs of different video editors. Summary of the Invention

[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for editing video elements, enabling flexible editing of video elements and improving the diversity of video editing.

[0005] In a first aspect, embodiments of this disclosure provide a method for editing video elements, the method comprising:

[0006] Receive the first editing operation on the target element in the first interactive area of ​​the video display interface;

[0007] In response to the first editing operation, the target editing state of the target element is displayed in the first interactive area;

[0008] Receive a second editing operation on the target element in the first editing state in the second interactive area of ​​the video display interface;

[0009] In response to the second editing operation, the target editing effect of the target element is displayed in the first interactive area.

[0010] Secondly, embodiments of this disclosure also provide a video element editing apparatus, the apparatus comprising:

[0011] The first editing operation receiving module is used to receive the first editing operation on the target element in the first interactive area of ​​the video display interface;

[0012] The first editing operation response module is used to respond to the first editing operation and display the target editing state of the target element in the first interactive area;

[0013] The second editing operation receiving module is used to receive the second editing operation on the target element in the first editing state in the second interactive area of ​​the video display interface.

[0014] The second editing operation response module is used to respond to the second editing operation and display the target editing effect of the target element in the first interactive area.

[0015] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:

[0016] One or more processors;

[0017] Storage device for storing one or more programs.

[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the video element editing method as described in any embodiment of this disclosure.

[0019] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform an editing method for video elements as described in any of the embodiments of this disclosure.

[0020] The technical solution of this disclosure embodiment receives a first editing operation on a target element in a first interactive area of ​​a video display interface; responds to the first editing operation by displaying the target element's target editing state in the first interactive area; receives a second editing operation on the target element in the first editing state in a second interactive area of ​​the video display interface; and responds to the second editing operation by displaying the target element's target editing effect in the first interactive area. By recognizing editing operations in the video display interface and performing editing, the technical solution achieves element editing and effect display on the video, enriching the video editing operations and realizing that the displayed element in the video is the edited element. Attached Figure Description

[0021] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0022] Figure 1 A flowchart illustrating a method for editing video elements provided in an embodiment of this disclosure;

[0023] Figure 2 This is a schematic diagram of a video element editing interface provided in an embodiment of this disclosure;

[0024] Figure 3 This is a flowchart illustrating another method for editing video elements provided in this disclosure.

[0025] Figure 4 A structural block diagram of a video element editing device provided in an embodiment of this disclosure;

[0026] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0027] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0028] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0029] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0030] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0031] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0032] Before introducing this technical solution, we can first illustrate the application scenarios. This disclosed technical solution can be applied to any interactive interface that needs to display effects, such as in the process of video shooting, where it can display the effects of the image or video corresponding to the user being filmed, such as in short video shooting or editing scenarios.

[0033] Figure 1This is a flowchart illustrating a video element editing method provided in this embodiment. This embodiment is applicable to any video editing scenario supported by the Internet, used to adjust the display effect of elements in a video. The method can be executed by a video element editing device, which can be implemented in software and / or hardware. The hardware can be an electronic device, such as a mobile terminal, PC, or server. In any video editing scenario, it is typically implemented through the cooperation of a client and a server. The method provided in this embodiment can be executed by the server, the client, or through a cooperation between the client and the server.

[0034] like Figure 1 The method in this embodiment includes:

[0035] S110, Receive the first editing operation on the target element in the first interactive area of ​​the video display interface.

[0036] The apparatus for executing the video element editing method provided in this embodiment can be integrated into application software that supports video editing functions, and this software can be installed on an electronic device, optionally a mobile terminal or a PC. The application software can be a type of software for video processing; specific application software will not be detailed here, as long as it can perform video processing. Alternatively, it can be a specially developed application program for adding and displaying special effects, or it can be integrated into a corresponding page, allowing users to add special effects through the integrated page on a PC.

[0037] To enhance the diversity of video editing effects, this embodiment provides a method for directly editing elements in a video on the video display interface. This allows for different display effects to be applied to different elements within a video. Taking text elements as an example, different text within a text segment can be displayed using different effects (such as italics, decorative text, bolding, etc.).

[0038] In this embodiment, the target element is the element required by the first editing operation, that is, the element corresponding to the user's execution of the first editing operation. In a video editing scenario, the user can edit one image frame in the video, or select multiple image frames for editing simultaneously. Similarly, when editing one or more image frames, a text box can be added to the image frame, and text, emoticons, and other elements can be edited within the text box. In other words, in a video editing scenario, the target element is an element in at least one image frame of the currently edited video, specifically a text element, emoticon element, etc., on an image frame in the video.

[0039] In this embodiment, the first interactive area can be the video display area in the video display interface, that is, the user can directly edit the elements in the video on the video display area.

[0040] Optionally, the first editing operation can be any of the following: input, selection, or deletion. For example, when a user needs to input text, they can directly edit the text, triggering the first editing operation. After detecting the first editing operation, the video element editing device can use the user-inputted text as the target element. When a user needs to adjust the display effect of the input text, they can select the text to be adjusted for editing. In this case, the user can select a portion of the elements, triggering the first editing operation. After detecting the first editing operation, the video element editing device can use the selected text as the target element. When a user needs to delete the display effect of the input text, they can click the delete control to trigger the first editing operation. After detecting the first editing operation, the video element editing device can use the text corresponding to the deletion operation as the target element. It is understood that input, selection, and deletion operations can have other triggering methods besides the examples above, which are not limited here.

[0041] Based on the above scheme, the first editing operation includes a selection operation, which includes cursor drag selection and double-touch selection. That is, users can select a target element by dragging the cursor, and can also simultaneously select the target element using two touches. Users can select an element for editing by sliding the cursor on the interactive interface; in this case, the element selected by sliding the cursor is the target element. When editing video on a mobile device, users can also achieve double-touch selection by simultaneously touching the interactive interface with both hands; in this case, the element selected by double-touch is the element between the two touches, which is then used as the target element.

[0042] In one embodiment of the present invention, the target element is an element in a video frame. Before receiving the first editing operation on the target element in the first interactive area of ​​the video display interface, the method further includes: displaying the video display interface, which includes a video display component and a text display component. The video display component is used to display the video to be edited. Correspondingly, receiving the first editing operation on the target element in the first interactive area of ​​the video display interface includes: receiving a rich text editing operation on the target element in the text display component.

[0043] To achieve the goal of "what is displayed is what is edited" in video editing, this embodiment directly displays the video display interface, allowing users to edit the video directly on this interface. Optionally, the video display interface can be configured to consist of a video display component and a text display component. The text display component can be located anywhere above the video display component, and its position can be a default position or adjustable by the user. In one optional example, the video display interface can be constructed based on the default position of the text display component and the video display component, and then displayed on the interactive interface. Users can trigger the first editing operation on the target element by editing elements in the text display component. In this case, the first interactive area is the area corresponding to the text display component. Optionally, users can trigger a rich text editing operation on elements in the text display component as the first editing operation on the target element.

[0044] S120. In response to the first editing operation, the target editing state of the target element is displayed in the first interactive area.

[0045] After receiving the first editing operation triggered by the user, the video element editing device displays the target editing state corresponding to the first editing operation in the first interactive area.

[0046] In this embodiment, the first editing operation can be an insertion operation, a selection operation, a deletion operation, etc., and the corresponding target editing state of the first editing operation can be an insertion state, a selection state, or a deletion state. The insertion state and the deletion state can be represented by the cursor position, and the selection state can be represented by the selected area.

[0047] For example, assuming the first editing operation is an input operation triggered by the user entering text content, the target element can be the entered text content, the target editing state of the target element can be displaying the text content, and the cursor can be moved to the end of the entered text content; assuming the first editing operation is a selection operation triggered by the user, the target element is the selected text content, and the target editing state of the target element is the selected state of the target element; assuming the first editing operation is a deletion operation, the target element is the deleted text content, the target editing state of the target element is deleting the target element, and the cursor can be moved to the end of the deleted text content.

[0048] S130: Receive a second editing operation on the target element in the first editing state in the second interactive area of ​​the video display interface.

[0049] After the user selects or adjusts the text content through the first editing operation, the user can adjust the display effect by performing a second editing operation. In other words, the second editing operation is a display effect adjustment operation. In this embodiment, the display effect can be at least one of the following: text font, text size, text style, text color, and WordArt style.

[0050] The second interactive area can be a text editing area within the video display interface. In one implementation, the text editing area can be set in a fixed position within the video display interface, adjacent to the video display area. For example, it can be set on any of the four sides (top, bottom, left, right, etc.) of the video display area. In another implementation, the text editing area can be an adjustable area. For instance, after the user triggers the first editing operation, the second interactive area is displayed. In this case, the second interactive area can be displayed on the video display area, or on any of the four sides (top, bottom, left, right, etc.) of the video display area within the video display interface; there are no restrictions on this.

[0051] Users can directly edit display effect adjustment parameters in the second interactive area to modify the display effect. They can adjust at least one of the following: text font, text size, text style, text color, and WordArt style to trigger the second editing operation.

[0052] Optionally, assuming the user's first editing operation is an input or deletion operation, the second editing operation can be used to edit the display effect of the default text content. The default text content can be set according to actual needs; for example, it can be all the text content within the currently active text box, or text content within a range based on the current cursor position—there are no restrictions here. Assuming the user's first editing operation is a selection operation, the second editing operation can be used to edit the display effect of the selected text content. For example, if the target element "My" is selected, the second editing operation will be an editing operation on "My".

[0053] S140. In response to the second editing operation, the target editing effect of the target element is displayed in the first interactive area.

[0054] In this embodiment, the target editing parameters of the target element can be determined by combining the first and second editing operations. Rendering is then performed based on these parameters to obtain the target editing effect. The display effect of the target element in the current edited video is then updated based on this target editing effect. This ensures that with each editing operation performed on the target element, the edited rendering effect is synchronously displayed in the video, achieving the goal of displaying the edited effect of the target element. Taking text insertion as an example, assuming the current text in the text box is "Welcome," after detecting the insertion operation of the target element "You," the edited rendering effect of the target element "You" is rendered and displayed after "Welcome." This ensures that when text is inserted into a text box in the current edited video, the inserted text in the text box is synchronously updated.

[0055] Optionally, the target editing parameters for the target element can be display parameters, such as font, font size, color, and style. In one implementation, the target editing parameters can be determined by setting a data format, such as...<A,B,C> The data format determines the target editing parameters of the target element, where A is the target element, B is the parameter name (e.g., color, font size, style), and C is the parameter value corresponding to the parameter name (e.g., yellow, small four font size, bold, etc.). After determining the target editing parameters of the target element, the target editing effect is rendered based on these parameters. The rendering method for the target element can refer to existing rendering methods and will not be elaborated here.

[0056] In one embodiment of the present invention, when the second editing operation is a text editing operation, the step of displaying the target editing effect of the target element in the first interactive area in response to the second editing operation includes: obtaining the character to be edited associated with the second editing operation; determining whether the character to be edited and the displayed character can form new text; when the character to be edited and the displayed character can form new text, updating the target editing effect of the target element based on the new text; when the character to be edited and the displayed character cannot form new text, updating the number of the target element based on the character to be edited. This embodiment provides a judgment logic for multi-byte editing instructions during text editing, which facilitates accurate text editing of multi-byte languages ​​(such as Thai). Overall, by determining whether new text can be obtained after performing the operation corresponding to the text editing operation on the character to be edited and the currently displayed character, if new text can be obtained, the cursor position is set before the character combined with the character to be edited, and the new text is used as the target editing parameter to replace the combined character, thereby updating the target editing effect of the target element; if new text cannot be obtained, the corresponding text is directly generated based on the character to be edited, and the generated text is used as the target editing parameter to update the number of the target element. The characters to be edited can be those that the user edits using an input method but are not displayed in the text box.

[0057] The text editing operation can be determined based on the cursor's selection state. If the cursor selects part of the text, the text editing operation performed during insertion is a text modification operation, which involves deleting the selected text, moving the cursor position before the deleted text, and inserting the new text. If the cursor does not select any text, the text editing operation performed during insertion is a text input operation, which simply adds new text at the current cursor position and moves the cursor position after the new text.

[0058] For example, assuming the current cursor is not selecting a character, a text input operation is performed. If the character to be edited by the user is "s", it is determined whether the character to be entered "s" can form a new text with the characters already displayed before the cursor position. If a new text can be formed, the displayed characters in the new text are deleted, the cursor is moved accordingly, and new text is added after the moved cursor position to adjust the target editing effect of the target element. If a new text cannot be formed, the corresponding text is generated based on "s" and inserted into the cursor position to adjust the number of target elements.

[0059] In one embodiment of the present invention, the step of displaying the target editing effect of the target element in the first interactive area in response to the second editing operation includes: in response to the second editing operation, rendering target elements of different element types according to the element type of the target element to obtain the target editing effect of the target element, and displaying the target editing effect in the first interactive area, wherein the element type includes text type and micro-expression type. When the second editing operation is a display effect adjustment operation, the user selects the target element and performs the second editing operation to complete the adjustment of the display effect of the target element. In some embodiments, the user can select different types of target elements at once to adjust the display effect of different types of target elements simultaneously. However, different types of target elements are rendered in different ways, that is, target elements of the same type are rendered in the same way. Based on this, target elements can be divided into different rendering categories according to their element type, target elements of the same element type can be divided into the same rendering category, and different rendering categories can be rendered separately to finally obtain the target editing effect of the target element.

[0060] Generally, text elements and emoji elements are rendered differently. Therefore, elements can be categorized into text type and micro-emoji type, and rendered separately for each type to achieve the desired editing effect. Optionally, the element type of the target element can be determined based on its element parameters.

[0061] The technical solution of this disclosure embodiment receives a first editing operation on a target element in a first interactive area of ​​a video display interface; in response to the first editing operation, displays a target editing state of the target element in the first interactive area; receives a second editing operation on the target element in the first editing state in a second interactive area of ​​the video display interface; and in response to the second editing operation, displays a target editing effect of the target element in the first interactive area. By recognizing and performing editing operations in the video display interface, it realizes the editing of elements on the video and the display of effects, enriching the video editing operations and achieving the editing effect where the displayed element in the video is the same as the edited element.

[0062] Based on the above scheme, the method further includes: adjusting the display parameters within the text editing box according to the second editing operation, so that the display parameters displayed in the text editing box match the target editing effect of the target element. When editing a video, in addition to the video display component of the currently edited video, there is generally a text editing box component used to display the display parameters of the selected element, such as the font, size, and display effect of the text element. To ensure that the display effect of the selected element in the video display component is consistent with its display parameters in the text editing box, after editing the target element, it is necessary to synchronously update the display parameters of the target element displayed in the text editing box. For example, assuming the rich text editing operation on the target element is to add text content, the text content in the text editing box is updated synchronously.

[0063] Specifically, adjusting the display parameters within the text editing box includes: adjusting at least one of the following based on the second editing operation: text content display information, text font display information, text size display information, text style selection indicator, text color display parameters, and WordArt style selection indicator. To improve the diversity of text element display, rich text editing of the target element can be performed using various parameters such as text content, text font, text size, text style, text color, and WordArt style. When any of the above items are adjusted through the second editing operation, the corresponding item is updated synchronously within the text editing box. The display methods for text content, text font, text size, text style, text color, and WordArt style are not restricted here. For example, the text font can be displayed by directly showing the font name, or by selecting one of multiple font names; other parameters can also be displayed using any of the above methods.

[0064] Figure 2 This is a schematic diagram of a video element editing interface provided in an embodiment of this disclosure. Figure 2 Taking a mobile device as an example, the video element editing interface will be illustrated below. Figure 2 As shown, the video display component and the text display component constitute the video display interface. The text display component is the first interactive area, and below the video display interface is the second interactive area, which is the display effect adjustment area. The second interactive area includes controls for "text box size," "text," "font size," "font," "color," "style," "fancy text," and "save." Users can trigger corresponding operations by clicking on the controls. Below the second interactive area is an input method keyboard, which users can use to edit text. The controls in the second interactive area can also be displayed using corresponding icons, which are not limited here.

[0065] Figure 3This is a flowchart illustrating yet another video element editing method provided in this disclosure. Figure 3 Based on the above embodiments, the following further specifies the "receiving a first editing operation on a target element in a first interactive area of ​​the video display interface; responding to the first editing operation, displaying the target editing state of the target element in the first interactive area". For example... Figure 3 As shown, the method includes:

[0066] S310. Receive the first editing operation and determine the regional location of the first editing operation in the first interactive area.

[0067] In this embodiment, the video element editing device can monitor in real time whether a first editing operation has been triggered. When a first editing operation is detected, the location of the first editing operation in the first interaction area is determined. It is understood that the first interaction operation can be triggered by clicks, input, deletion, etc. When the first interaction operation is triggered by a click, the detected click location can be directly used as the location of the first editing operation in the first interaction area. When the first interaction operation is triggered by input or deletion, the cursor position during the input or deletion operation can be used as the location of the first editing operation in the first interaction area.

[0068] Optionally, determining the regional position of the first editing operation within the first interactive area includes: determining the interface position of the first editing operation within the video display interface; and determining the regional position based on the interface position and the positional relationship between the video display interface and the first interactive area. Generally, the video display interface is directly monitored. When the first editing operation is detected, its position within the video display interface is determined. Then, a coordinate transformation is performed based on the positional relationship between the first interactive area and the video display interface (e.g., the coordinates of the first interactive area within the video display interface) to determine the regional position of the first editing operation within the first interactive area. Determining the interface position before determining the regional position makes the determination of the regional position more accurate.

[0069] S320. Determine the target element in the first interactive area based on the location of the area, and determine the first editing operation on the target element in the first interactive area of ​​the video display interface.

[0070] It is understandable that the positions of the elements in the first interactive area are known. Once the position of the area is determined, the element corresponding to the position of the area can be determined and used as the target element, thereby determining the first editing operation on the target element in the first interactive area.

[0071] S330. In response to the first editing operation, determine the target editing state of the target element based on the first editing operation.

[0072] Optionally, the correspondence between operation instructions and editing instructions can be preset. After the first editing operation is detected, the target editing state corresponding to the first editing operation can be determined according to the preset correspondence.

[0073] S340. Display the target editing status based on the location of the area.

[0074] After determining the target editing state, it needs to be displayed on the interactive interface. Understandably, the display position of the target editing state will differ depending on the first editing operation. When the first editing operation is an insert operation, the target editing state will be that the cursor is positioned at the insertion point; when the first editing operation is a selection operation, the target editing state will be that the target element is selected; and when the first editing operation is a delete operation, the target editing state will be that the cursor is positioned at the deletion point.

[0075] S350: Receive a second editing operation on the target element in the first editing state in the second interactive area of ​​the video display interface.

[0076] S360. In response to the second editing operation, the target editing effect of the target element is displayed in the first interactive area.

[0077] The technical solution of this disclosure embodiment specifies the display of the target editing state. By receiving a first editing operation, the regional position of the first editing operation in the first interactive area is determined; the target element in the first interactive area is determined according to the regional position, thus achieving accurate determination of the target element; the target editing state of the target element is determined according to the first editing operation; and the display of the target editing state based on the regional position makes the display of the target editing state more accurate.

[0078] Figure 4 This is a structural block diagram of a video element editing apparatus provided in an embodiment of this disclosure. It can execute the video element editing method provided in any embodiment of this disclosure and possesses the corresponding functional modules and beneficial effects for executing the method. For example... Figure 4 As shown, the device specifically includes: a first editing operation receiving module 410, a first editing operation response module 420, a second editing operation receiving module 430, and a second editing operation response module 440, wherein:

[0079] The first editing operation receiving module 410 is used to receive the first editing operation on the target element in the first interactive area of ​​the video display interface;

[0080] The first editing operation response module 420 is used to respond to the first editing operation and display the target editing state of the target element in the first interactive area;

[0081] The second editing operation receiving module 430 is used to receive a second editing operation on the target element of the first editing state in the second interactive area of ​​the video display interface.

[0082] The second editing operation response module 440 is used to respond to the second editing operation and display the target editing effect of the target element in the first interactive area.

[0083] The technical solution of this disclosure embodiment receives a first editing operation on a target element in a first interactive area of ​​a video display interface; in response to the first editing operation, displays the target editing state of the target element in the first interactive area; receives a second editing operation on the target element in the first editing state in a second interactive area of ​​the video display interface; and in response to the second editing operation, displays the target editing effect of the target element in the first interactive area. By recognizing the editing operations in the video display interface, the technical solution realizes the editing of elements on the video and the display of effects, enriching the video editing operations and achieving the editing effect that the displayed elements in the video are the edited elements.

[0084] Based on the above technical solutions, the first editing operation includes a selection operation, which includes a cursor drag selection operation and a double-touch selection operation.

[0085] Based on the above technical solutions, the first editing operation receiving module 410 is specifically used for:

[0086] Receive the first editing operation and determine the regional location of the first editing operation in the first interaction area;

[0087] The target element in the first interactive area is determined based on the location of the area.

[0088] Based on the above technical solutions, the first editing operation receiving module 410 is specifically used for:

[0089] Determine the interface position of the first editing operation within the video display interface;

[0090] The location of the area is determined based on the location of the interface and the positional relationship between the video display interface and the first interactive area.

[0091] Based on the above technical solutions, the first editing operation response module 420 is used for:

[0092] The target editing state of the target element is determined based on the first editing operation;

[0093] The target editing status is displayed based on the location of the region.

[0094] Based on the above technical solutions, when the second editing operation is a text editing operation, the second editing operation response module 440 is specifically used for:

[0095] Obtain the character to be edited associated with the second editing operation;

[0096] Determine whether the characters to be edited and the displayed characters can form new text;

[0097] When the character to be edited and the displayed character can form new text, the target editing effect of the target element is updated based on the new text.

[0098] When the character to be edited and the displayed character cannot form a new text, the number of the target element is updated based on the character to be edited.

[0099] Based on the above technical solutions, the target element is an element in a video frame, and the device further includes a video display module for:

[0100] Before receiving the first editing operation on the target element in the first interactive area of ​​the video display interface.

[0101] A video display interface is provided, which includes a video display component and a text display component. The video display component is used to display the video to be edited.

[0102] Accordingly, the first editing operation receiving module 410 is specifically used for:

[0103] Receive rich text editing operations on the target element in the text display component.

[0104] Based on the above technical solutions, the second editing operation response module 440 is specifically used for:

[0105] In response to the second editing operation, target elements of different element types are rendered separately according to the element type of the target element to obtain the target editing effect of the target element, and the target editing effect is displayed in the first interactive area. The element type includes text type and micro-expression type.

[0106] Based on the above technical solutions, the first editing operation is any one of the input operation, selection operation, and deletion operation, and the second editing operation is a display effect adjustment operation, wherein the display effect is at least one of the text font, text size, text style, text color, and artistic font style.

[0107] The video element editing apparatus provided in this disclosure can execute the video element editing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.

[0108] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0109] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 5 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 5 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0110] like Figure 5 As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.

[0111] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0112] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.

[0113] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0114] The electronic device provided in this embodiment and the video element editing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0115] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the video element editing method provided in the above embodiments.

[0116] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. 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 disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0117] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0118] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0119] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to:

[0120] Receive the first editing operation on the target element in the first interactive area of ​​the video display interface;

[0121] In response to the first editing operation, the target editing state of the target element is displayed in the first interactive area;

[0122] Receive a second editing operation on the target element in the first editing state in the second interactive area of ​​the video display interface;

[0123] In response to the second editing operation, the target editing effect of the target element is displayed in the first interactive area.

[0124] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0125] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0126] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0127] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0128] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0129] According to one or more embodiments of this disclosure, [Example 1] provides a method for editing video elements, the method comprising:

[0130] Receive the first editing operation on the target element in the first interactive area of ​​the video display interface;

[0131] In response to the first editing operation, the target editing state of the target element is displayed in the first interactive area;

[0132] Receive a second editing operation on the target element in the first editing state in the second interactive area of ​​the video display interface;

[0133] In response to the second editing operation, the target editing effect of the target element is displayed in the first interactive area.

[0134] According to one or more embodiments of this disclosure, [Example 2] provides a method for editing video elements, further comprising:

[0135] The first editing operation includes a selection operation, which includes a cursor drag selection operation and a double-touch selection operation.

[0136] According to one or more embodiments of this disclosure, [Example 3] provides a method for editing video elements, further comprising:

[0137] The receiving of the first editing operation on the target element in the first interactive area of ​​the video display interface includes:

[0138] Receive the first editing operation and determine the regional location of the first editing operation in the first interaction area;

[0139] The target element in the first interactive area is determined based on the location of the area.

[0140] According to one or more embodiments of this disclosure, [Example 4] provides a method for editing video elements, further comprising:

[0141] Determining the regional location of the first editing operation within the first interactive area includes:

[0142] Determine the interface position of the first editing operation within the video display interface;

[0143] The location of the area is determined based on the location of the interface and the positional relationship between the video display interface and the first interactive area.

[0144] According to one or more embodiments of this disclosure, [Example 5] provides a method for editing video elements, further comprising:

[0145] The step of displaying the target editing state of the target element in the first interactive area includes:

[0146] The target editing state of the target element is determined based on the first editing operation;

[0147] The target editing status is displayed based on the location of the region.

[0148] According to one or more embodiments of this disclosure, [Example Six] provides a method for editing video elements, further comprising:

[0149] When the second editing operation is a text editing operation, the step of displaying the target editing effect of the target element in the first interactive area in response to the second editing operation includes:

[0150] Obtain the character to be edited associated with the second editing operation;

[0151] Determine whether the characters to be edited and the displayed characters can form new text;

[0152] When the character to be edited and the displayed character can form new text, the target editing effect of the target element is updated based on the new text.

[0153] When the character to be edited and the displayed character cannot form a new text, the number of the target element is updated based on the character to be edited.

[0154] According to one or more embodiments of this disclosure, [Example Seven] provides a method for editing video elements, further comprising:

[0155] The target element is an element in a video frame. Before receiving the first editing operation on the target element in the first interactive area of ​​the video display interface, the method further includes:

[0156] A video display interface is provided, which includes a video display component and a text display component. The video display component is used to display the video to be edited.

[0157] Accordingly, receiving the first editing operation on the target element in the first interactive area of ​​the video display interface includes:

[0158] Receive rich text editing operations on the target element in the text display component.

[0159] According to one or more embodiments of this disclosure, [Example Eight] provides a method for editing video elements, further comprising:

[0160] The step of displaying the target editing effect of the target element in the first interactive area in response to the second editing operation includes:

[0161] In response to the second editing operation, target elements of different element types are rendered separately according to the element type of the target element to obtain the target editing effect of the target element, and the target editing effect is displayed in the first interactive area. The element type includes text type and micro-expression type.

[0162] According to one or more embodiments of this disclosure, [Example Nine] provides a method for editing video elements, further comprising:

[0163] The first editing operation is any one of the input operation, selection operation, and deletion operation. The second editing operation is a display effect adjustment operation, wherein the display effect is at least one of the following: text font, text size, text style, text color, and artistic font style.

[0164] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0165] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0166] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for editing video elements, characterized in that, include: Receive the first editing operation on the target element in the first interactive area of ​​the video display interface; In response to the first editing operation, the target editing state of the target element is displayed in the first interactive area; Receive a second editing operation on the target element in the first editing state in the second interactive area of ​​the video display interface; In response to the second editing operation, the target editing effect of the target element is displayed in the first interactive area; Wherein, when the second editing operation is a text editing operation, the step of displaying the target editing effect of the target element in the first interactive area in response to the second editing operation includes: Obtain the character to be edited associated with the second editing operation; Determine whether the characters to be edited and the displayed characters can form new text; When the character to be edited and the displayed character can form new text, the target editing effect of the target element is updated based on the new text. When the character to be edited and the displayed character cannot form a new text, the number of the target element is updated based on the character to be edited.

2. The method according to claim 1, characterized in that, The first editing operation includes a selection operation, which includes a cursor drag selection operation and a double-touch selection operation.

3. The method according to claim 1, characterized in that, The receiving of the first editing operation on the target element in the first interactive area of ​​the video display interface includes: Receive the first editing operation and determine the regional location of the first editing operation in the first interaction area; The target element in the first interactive area is determined based on the location of the area.

4. The method according to claim 3, characterized in that, Determining the regional location of the first editing operation within the first interactive area includes: Determine the interface position of the first editing operation within the video display interface; The location of the area is determined based on the location of the interface and the positional relationship between the video display interface and the first interactive area.

5. The method according to claim 3, characterized in that, The step of displaying the target editing state of the target element in the first interactive area includes: The target editing state of the target element is determined based on the first editing operation; The target editing status is displayed based on the location of the region.

6. The method according to claim 1, characterized in that, The target element is an element in a video frame. Before receiving the first editing operation on the target element in the first interactive area of ​​the video display interface, the method further includes: A video display interface is provided, which includes a video display component and a text display component. The video display component is used to display the video to be edited. Accordingly, receiving the first editing operation on the target element in the first interactive area of ​​the video display interface includes: Receive rich text editing operations on the target element in the text display component.

7. The method according to claim 1, characterized in that, The step of displaying the target editing effect of the target element in the first interactive area in response to the second editing operation includes: In response to the second editing operation, target elements of different element types are rendered separately according to the element type of the target element to obtain the target editing effect of the target element, and the target editing effect is displayed in the first interactive area. The element type includes text type and micro-expression type.

8. The method according to claim 1, characterized in that, The first editing operation is any one of the input operation, selection operation, and deletion operation. The second editing operation is a display effect adjustment operation, wherein the display effect is at least one of the following: text font, text size, text style, text color, and artistic font style.

9. A rich text editing device, characterized in that, include: The first editing operation receiving module is used to receive the first editing operation on the target element in the first interactive area of ​​the video display interface; The first editing operation response module is used to respond to the first editing operation and display the target editing state of the target element in the first interactive area; The second editing operation receiving module is used to receive the second editing operation on the target element in the first editing state in the second interactive area of ​​the video display interface; The second editing operation response module is used to respond to the second editing operation and display the target editing effect of the target element in the first interactive area; Specifically, when the second editing operation is a text editing operation, the second editing operation response module is used for: Obtain the character to be edited associated with the second editing operation; Determine whether the characters to be edited and the displayed characters can form new text; When the character to be edited and the displayed character can form new text, the target editing effect of the target element is updated based on the new text. When the character to be edited and the displayed character cannot form a new text, the number of the target element is updated based on the character to be edited.

10. An electronic device, characterized in that, The electronic device includes: one or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the video element editing method as described in any one of claims 1-8.

11. A storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform an editing method for video elements as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Method and device for adjusting object styles

    CN110472199A