Animation real-time editing method and device applied to director system, equipment and medium

By responding to animation editing instructions in the guide system and adaptively modifying and rendering animation files, the problem of low animation editing efficiency in the guide system is solved, real-time editing and rendering of animation files is realized, and the efficiency of live broadcast room construction is improved.

CN119205995AActive Publication Date: 2024-12-27SHENZHEN EASTAI TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411686466.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2024-12-27
Estimated Expiration
2044-11-25

AI Technical Summary

Technical Problem

The existing animation editing methods have low editing efficiency in the director system, and they cannot edit animation files in the director software, and they need to jump to third-party software for editing, resulting in high time and cost.

Method used

Provide a real-time animation editing method, including responding to animation editing instructions, adaptively modifying the animation file according to the editing instructions, extracting the animation parameters of the frame image, rendering, and playing video images in the guide system to realize real-time editing of animation files. and render.

Benefits of technology

Real-time editing and rendering of animation files is realized in the guide system, which improves animation editing efficiency, reduces dependence on professional production software, and allows the anchor to build professional dynamic live broadcast rooms simply and efficiently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119205995A_ABST
    Figure CN119205995A_ABST
Patent Text Reader

Abstract

The invention provides an animation real-time editing method and device applied to a director system, equipment and a medium. The method comprises the following steps: responding to an animation editing instruction from the director system; adaptively modifying the animation file according to an animation editing rule corresponding to the animation editing instruction to obtain a modified animation file; extracting animation parameters of each frame of image in the modified animation file; rendering each frame of image based on the animation parameters to obtain a corresponding video image; wherein each video image keeps a transparent channel; playing the video images on a playing interface of the director system according to the playing sequence; wherein the playing sequence is the playing sequence of the video images in the modified animation file. According to the embodiment of the invention, the animation file can be edited in real time in the director system, and the animation real-time editing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network live broadcast technology, and in particular to a real-time animation editing method, device, equipment and medium applied to a director system. Background Art

[0002] The director software on the market can only load completed animation files. It is not possible to directly replace the resources of animation files in the software to achieve professional effects. Designers usually use professional production tools or platforms such as After Effects (AE), Photoshop (PS), Figma, Blender, and Apple Motion to create animation files. Therefore, if you want to create animation files, you need to have a certain understanding of professional production tools or platforms such as After Effects (AE), Photoshop (PS), Figma, Blender, and Apple Motion.

[0003] The conventional practice for animation files is that the designer first produces the material files (static images, animations, videos) that need to be presented in the live broadcast room, and then imports them into the director software to build the live broadcast room. Therefore, there are problems such as long time consumption, high cost, and poor maintainability. In addition, the director system and animation production software are two complex technical architectures. If the overall production is directly placed in the director system, it will inevitably increase the complexity of the system. Parsing, rendering, and mixed stream encoding may all produce various abnormal flows. It can be seen that the existing animation editing methods have the following disadvantages: 1. Animation cannot be edited: animation files cannot be edited in the director software; 2. Low production efficiency: the production and editing of animation files need to be carried out in third-party software; 3. High production cost: Professional animation production software has a high threshold for use and usually requires the involvement of designers, and the customization cost is high.

[0004] Therefore, the existing animation editing method has the problem of low editing efficiency. Summary of the invention

[0005] The embodiments of the present invention provide a method, device, equipment and medium for real-time editing of animations applied to a director system, aiming to solve the problem of low editing efficiency in existing animation editing methods.

[0006] In a first aspect, an embodiment of the present invention provides a real-time animation editing method applied to a director system, the method comprising: Respond to animation editing instructions from the director system; Adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain a modified animation file; Extracting animation parameters of each frame image in the modified animation file; Rendering each of the frame images based on the animation parameters to obtain a corresponding video image; wherein each of the video images retains a transparent channel; The video images are played on the play interface of the director system according to the play order; wherein the play order is the play order of the video images in the modified animation file.

[0007] In a second aspect, an embodiment of the present invention further provides an animation real-time editing device applied to a director system, the device comprising: A response unit, used to respond to animation editing instructions from the director system; A modification unit, used to adaptively modify the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain a modified animation file; An extraction unit, used for extracting animation parameters of each frame image in the modified animation file; A rendering unit, used for rendering each of the frame images based on the animation parameters to obtain a corresponding video image; wherein each of the video images retains a transparent channel; A playback unit is used to play each of the video images in the playback interface of the director system according to a playback order; wherein the playback order is the playback order of each of the video images in the modified animation file.

[0008] In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0009] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions, when executed by a processor, can implement the method described in the first aspect above.

[0010] The embodiment of the present invention provides a method, device, equipment and medium for real-time animation editing applied to a director system, the method comprising: responding to an animation editing instruction from the director system; adaptively modifying the animation file according to the animation editing rules corresponding to the animation editing instruction to obtain a modified animation file; extracting the animation parameters of each frame image in the modified animation file; rendering each frame image based on the animation parameters to obtain a corresponding video image; wherein each video image retains a transparent channel; playing each video image in the playback interface of the director system according to the playback order; wherein the playback order is the playback order of each video image in the modified animation file. The embodiment of the present invention can edit animation files in real time in the director system, and can achieve real-time replacement and real-time rendering of animation file material resources without jumping to third-party production software, thereby improving the efficiency of real-time animation editing and allowing the anchor to simply and efficiently build a professional dynamic live broadcast room. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0012] Figure 1 A schematic diagram of a flow chart of a method for real-time editing of animations applied to a director system provided by an embodiment of the present invention; Figure 2 A schematic diagram of a sub-process of a method for real-time editing of animations applied to a director system provided by an embodiment of the present invention; Figure 3 A first flow chart of a method for real-time editing of animations applied to a director system provided by an embodiment of the present invention; Figure 4 A second flow chart of a method for real-time editing of animations applied to a director system provided by an embodiment of the present invention; Figure 5 A schematic block diagram of a real-time animation editing device applied to a director system provided by an embodiment of the present invention; Figure 6 A schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0013] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0014] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0015] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0016] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. The embodiment of the present invention provides a method, device, equipment and medium for real-time editing of animations applied to a director system. The method for real-time editing of animations applied to a director system can be found in Figure 1 , Figure 1 A flowchart of a method for real-time animation editing applied to a director system provided by an embodiment of the present invention. The method is applied to a controller of a director system; the director system may be a traditional director system such as OBS (Open Broadcaster Software), Douyin Live Companion, Video Number Live Assistant, or a director system based on a live broadcast all-in-one machine or a virtual director system.

[0017] Figure 1 The flowchart of the real-time animation editing method applied to the director system provided by the embodiment of the present invention is as follows. Figure 1 As shown, the method includes the following steps S110-S150.

[0018] S110, responding to the animation editing instruction from the director system.

[0019] In this embodiment, the director system also includes a touch screen that is communicatively connected to the controller, and the touch screen can simultaneously display a playback interface and an animation file editing interface. The director can perform animation editing operations on the animation file editing interface of the touch screen to edit animation elements in the playback interface (such as a live broadcast screen). The animation elements are elements in the animation file, and the animation elements can be text boxes, static images, animations, plug-ins or videos. The animation file can be a PAG (Portable Animated Graphics) file or an SVGA (super video graphics array) file or a LOTTIE file. In this embodiment of the present invention, a PAG file is used as a case to illustrate how to achieve animation editing effects. The real-time animation editing solution based on animation files in other formats such as SVGA files and LOTTIE files is the same as the real-time animation editing solution based on PAG files.

[0020] Developers can pre-produce the animation file on AE (Adobe After Effects), where AE is a professional video special effects and animation synthesis software developed by Adobe, and then import the produced animation file into the director system to build a live broadcast room; the director can perform animation element editing operations on the animation file editing interface generated based on the animation file, where the animation element editing operations include replacement, deletion, editing, and addition. For example, the director can perform touch operations (touch operations include clicking operations, sliding operations, etc.) on the playback interface / animation file editing interface of the touch screen to trigger corresponding animation editing instructions; for example, the director can perform touch operations on the touch screen to replace picture A in the live broadcast screen with picture B.

[0021] During the animation file production process, developers will design editable element specifications, and can specify which animation elements are editable by designing the editable element specifications. After importing the produced animation file into the director system, the director can edit the editable animation elements.

[0022] S120: Adaptively modify the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain a modified animation file.

[0023] In this embodiment, different animation editing instructions have different corresponding animation editing rules. The animation editing rules can be understood as design specifications. In the animation file, different animation elements have different corresponding design specifications. The present invention can ensure the visual consistency of the modified animation file by designing the design specifications of each animation element (i.e., animation editing rules). The design specifications of each animation element can be the animation parameters corresponding to each animation element. The animation parameters can be attribute parameters such as the size, position, and layer logical relationship of the animation element; for example, replace picture A in the live broadcast screen with picture B. Both picture A and picture B are animation materials of animation element X. The size, picture position, or layer of picture B are adjusted according to the animation parameters of animation element X.

[0024] Furthermore, the director can customize the size or position of picture B on the playback interface.

[0025] In one embodiment, if Figure 2 As shown, step S120 includes steps S121-S122.

[0026] S121. If the animation editing instruction is a multilingual automatic switching instruction, obtain a multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rules.

[0027] S122: Adaptively modify the text in the animation file according to the multi-language automatic switching rule to obtain a modified animation file.

[0028] In this embodiment, the director can modify the text content in the live broadcast screen. When the director modifies the text content, the corresponding multilingual automatic switching instruction will be triggered; according to the multilingual automatic switching instruction, the multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rule is obtained; according to the multilingual automatic switching rule, the text in the animation file is adaptively modified to obtain the modified animation file; the multilingual automatic switching rule includes a matching condition and a modification strategy, and it can be determined whether the animation language meets the matching condition according to the system language, wherein the animation language is the language of the text in the animation file; specifically, it is determined whether the system language and the animation language are the same language, if they are the same language, it is determined that the matching condition is met, at this time, there is no need to switch the language of the animation text; if they are not the same language, it is determined that the matching condition is not met, at this time, it is necessary to map the animation text to the system language text according to the modification strategy to achieve adaptive switching of the animation language; wherein the animation text is the text in the animation file.

[0029] In one embodiment, step S122 includes: judging whether the animation language satisfies the matching condition in the multi-language automatic switching rule according to the system language; if so, using the animation file as the modified animation file; if not, mapping the animation text to the system language text according to the modification strategy in the system language and the multi-language automatic switching rule to obtain the modified animation file.

[0030] In this embodiment, language identification is performed on the system language and the animation language to determine whether the animation language satisfies the matching condition in the multi-language automatic switching rule according to the system language; if satisfied, it indicates that the system language and the animation language are the same language. In this case, there is no need to switch the language of the animation text, that is, the animation file is used as the modified animation file, and there is no need to adaptively modify the animation file; if not satisfied, it indicates that the system language and the animation language are not the same language. In this case, the animation text is mapped to the system language text according to the modification strategy in the system language and multi-language automatic switching rule to obtain the modified animation file; the animation text is mapped to the system language text according to the modification strategy in the system language and multi-language automatic switching rule to obtain the modified animation file. The system language text comprises: determining whether the mapping table in the modification strategy has the system language mapping of the animation text, and obtaining a determination result; for example, the animation language is Chinese, and the system language is English, determining whether the mapping table has the English mapping of the animation text, and obtaining a determination result; if the determination result is yes, mapping the animation text to the system language text according to the mapping table, and loading the system language text to display the system language text on the playback interface; if the determination result is no, loading the animation text to display the animation text on the playback interface, that is, using the animation file as the modified animation file, without the need to adaptively modify the animation file (for details, please refer to Figure 3 ).

[0031] In one embodiment, step S120 also includes: if the animation editing instruction is a content element infinite addition instruction, then obtaining a content element infinite addition parameter corresponding to the content element infinite addition instruction in the animation editing rule; determining a loop mode of the target content element in the animation file according to the content element infinite addition parameter; if the loop mode is a single content loop, then playing the content in the target content element in sequence in a loop according to the loop playback time in the content element infinite addition parameter to obtain a modified animation file; if the loop mode is a multi-content loop, then playing the content in the target content element in sequence in a loop according to the single playback number and the loop playback time in the content element infinite addition parameter to obtain a modified animation file.

[0032] In this embodiment, when the director customizes the content in the target content element or the content element infinite addition parameter corresponding to the target content element in the animation file editing interface, the corresponding content element infinite addition instruction will be triggered, and the content element infinite addition parameter corresponding to the content element infinite addition instruction in the animation editing rule is obtained according to the content element infinite addition instruction; the target content element is an animation element that can display multiple contents (i.e., materials), and the displayed content can be a static image or a plug-in, etc. The plug-in can be a weather plug-in, a popularity plug-in, a like plug-in, a reward ranking plug-in, etc.; the animation file is determined according to the content element infinite addition parameter The loop mode of the target content element in the file can be set in the production process of the animation file or in the animation file editing interface; if the loop mode is single content loop (i.e., multiple materials are played one by one according to the loop play time), the content in the target content element is played in a loop in sequence according to the loop play time in the content element infinite addition parameter to obtain the modified animation file; if the loop mode is multi-content loop, the content in the target content element is played in a loop in sequence according to the single play number and loop play time in the content element infinite addition parameter to obtain the modified animation file (for details, please refer to Figure 4 ); for example, the target content elements include content 1, content 2, content 3, content 4, content 5 and content 6, and the number of single plays is 4. Therefore, the first round of play of the target content elements is content 1, content 2, content 3, content 4, the second round of play is content 5, content 6, content 1, content 2, the third round of play is content 3, content 4, content 5, content 6, and the subsequent play contents are deduced by analogy. The loop play time is the interval play time between each round.

[0033] In one embodiment, step S120 includes: if the animation editing instruction is an element replacement instruction, obtaining a new content element and an element replacement parameter corresponding to the element replacement instruction in the animation editing rule according to the element replacement instruction; replacing the content element to be replaced with the new content element according to the element replacement instruction, and adaptively modifying the size of the new content element according to the element replacement parameter to obtain a modified animation file.

[0034] In this embodiment, if the animation editing instruction is an element replacement instruction, the new content element and the element replacement parameter corresponding to the element replacement instruction in the animation editing rule are obtained according to the element replacement instruction; the new content element can be an animation element such as a text box, a static image, an animation, a plug-in or a video. For example, element Y is a static image, and element Y includes multiple static image materials such as picture 1, picture 2, and picture 3. The director can view the static image material of element Y in the animation file editing interface. The material resources of element Y are set during the production process of the animation file. The director can replace the current displayed image of element A in the live broadcast screen. When the director performs the replacement operation, the corresponding element replacement instruction will be triggered; the element replacement parameter can be the size parameter of the animation element; according to the element replacement instruction, the content element to be replaced is replaced with the new content element, and the size of the new content element is adaptively modified according to the element replacement parameter to obtain a modified animation file.

[0035] Furthermore, the element replacement parameter can also be attribute parameters such as the position of the animation element, layer logical relationship, etc. For example, if the element replacement parameter is the position parameter of the animation element, the new content element is automatically adjusted to the target display area according to the element replacement parameter. The target display area is a designated area of ​​the playback interface, and the instruction area can be set to the upper left corner or lower right corner of the playback interface, etc.

[0036] In one embodiment, step S120 includes: if the animation editing instruction is a real-time data loading instruction, obtaining the real-time data loading parameters corresponding to the real-time data loading instruction in the animation editing rule; obtaining the target real-time database corresponding to the real-time data loading instruction from a preset real-time database; and periodically obtaining and updating the real-time data of the target real-time content element from the target real-time database according to the real-time data loading instruction and the preset loading duration in the real-time data loading parameters to obtain a modified animation file.

[0037] In this embodiment, if plug-in A is replaced with plug-in B, and the replaced plug-in is any one of a weather plug-in, a popularity plug-in, a like plug-in, and a reward ranking plug-in, the real-time data loading instruction will be triggered to display the corresponding information; for example, element Z is a weather plug-in. At this time, element Z in the live broadcast screen is displayed as weather plug-in A, and weather plug-in A displays Beijing weather. The director can replace weather plug-in A in the live broadcast screen with weather plug-in B, and weather plug-in B displays Shanghai weather. When weather plug-in B successfully replaces weather plug-in A, the real-time data loading instruction will be automatically triggered to display Shanghai weather; obtain the information related to the animation editing rule The real-time data loading parameter corresponding to the real-time data loading instruction; obtaining the target real-time database corresponding to the real-time data loading instruction from the preset real-time database, that is, obtaining the real-time database associated with the weather plug-in B; obtaining the real-time data of the target real-time content element from the target real-time database regularly and updating it according to the real-time data loading instruction and the preset loading duration in the real-time data loading parameter to obtain the modified animation file; the preset loading duration can be set to 1 second, that is, obtaining the weather data of Shanghai from the real-time database associated with the weather plug-in B every second to update the display content of the weather plug-in B. The embodiment of the present invention can realize data interaction with a third-party data source without jumping to a third-party platform.

[0038] In one embodiment, step S120 includes: if the animation editing instruction is a font image adaptation instruction, obtaining the target adaptive content and the font image adaptation parameters corresponding to the font image adaptation instruction in the animation editing rule according to the font image adaptation instruction; adaptively modifying the target adaptive content according to the target panel attributes in the font image adaptation parameters to obtain a modified animation file.

[0039] In this embodiment, if the animation element is a text box, the director can modify the text content in the text box. In the prior art, if the text content in the text box is modified, the text length may be too long, resulting in incomplete text display. The embodiment of the present invention can adaptively modify the target adaptive content (i.e., the text content input by the director) according to the target panel attribute in the font image adaptive parameter; the target panel attribute is the size parameter of the text box, and the size of the text box is set and unchanged. Therefore, if the input text length is too long, the font size will be automatically reduced or the text spacing will be adjusted to prevent the text length from being too long and resulting in incomplete text display.

[0040] S130: Extracting animation parameters of each frame image in the modified animation file.

[0041] In this embodiment, the modified animation file is loaded to extract animation parameters of each frame image in the modified animation file, and the animation parameters are used to describe the attribute parameters of the animation elements contained in each frame image and the hierarchical relationship between the animation elements.

[0042] S140. Render each of the frame images based on the animation parameters to obtain a corresponding video image; wherein each of the video images retains a transparent channel.

[0043] In this embodiment, each of the frame images is rendered based on the animation parameters to combine the element layers contained in each of the frame images to obtain a corresponding video image, wherein the element layers are layers containing animation elements; wherein each of the video images retains a transparent channel; specifically, when rendering each of the frame images, each of the frame images is converted into an RGBA format to retain the transparent channel of each of the video images, thereby preventing the image from being black or white at positions without RGB, thereby ensuring the compatibility of image synthesis and ensuring the normal playback of the video image; wherein RGBA represents four color channels of red (Red), green (Green), blue (Blue) and transparency (Alpha), and is a standard format for representing colors; further, each of the frame images is uniformly edited according to canvas properties to ensure the consistency of image synthesis, and the canvas properties may be size properties of the playback interface.

[0044] S150. Play each of the video images on the playback interface of the director system according to a playback order; wherein the playback order is the playback order of each of the video images in the modified animation file.

[0045] In this embodiment, each of the video images is played in the playback interface of the director system according to the playback order; wherein the playback order is the playback order of each of the video images in the modified animation file. In the embodiment of the present invention, the director can edit the animation file in real time in the director software (in the director system), that is, edit the animation elements in the playback interface (such as the live broadcast screen), and the director system can update and display the animation file in real time according to the animation editing operation of the director.

[0046] To sum up, the embodiments of the present invention can edit animation files in real time in the director system, and can achieve real-time replacement and real-time rendering of animation file material resources without jumping to third-party production software, thereby improving the efficiency of real-time animation editing, allowing the anchor to simply and efficiently build a professional dynamic live broadcast room.

[0047] Figure 5 Schematic block diagram of an animation real-time editing device applied to a director system provided by an embodiment of the present invention. Figure 5As shown, corresponding to the above animation real-time editing method applied to the director system, the present invention also provides an animation real-time editing device applied to the director system, and the device is configured in the controller of the director system. Figure 5 The animation real-time editing device 700 applied to the director system includes: A response unit 701 is used to respond to an animation editing instruction from a director system; A modification unit 702, configured to adaptively modify the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain a modified animation file; An extraction unit 703 is used to extract animation parameters of each frame image in the modified animation file; A rendering unit 704 is used to render each of the frame images based on the animation parameters to obtain a corresponding video image; wherein each of the video images retains a transparent channel; The playback unit 705 is used to play each of the video images in the playback interface of the director system according to the playback order; wherein the playback order is the playback order of each of the video images in the modified animation file.

[0048] In some embodiments, when the modifying unit 702 performs the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, it is specifically used to: If the animation editing instruction is a multilingual automatic switching instruction, then obtain the multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rule; and adaptively modify the text in the animation file according to the multilingual automatic switching rule to obtain a modified animation file.

[0049] In some embodiments, when the modifying unit 702 performs the step of adaptively modifying the text in the animation file according to the multi-language automatic switching rule to obtain the modified animation file, it is specifically used to: According to the system language, it is determined whether the animation language meets the matching conditions in the multi-language automatic switching rules; if so, the animation file is used as the modified animation file; if not, the animation text is mapped to the system language text according to the system language and the modification strategy in the multi-language automatic switching rules to obtain the modified animation file.

[0050] In some embodiments, when the modifying unit 702 performs the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, it is specifically used to: If the animation editing instruction is a content element infinite addition instruction, then obtain the content element infinite addition parameter corresponding to the content element infinite addition instruction in the animation editing rule; determine the loop mode of the target content element in the animation file according to the content element infinite addition parameter; if the loop mode is a single content loop, then play the content in the target content element in a loop in sequence according to the loop playback time in the content element infinite addition parameter to obtain a modified animation file; if the loop mode is a multi-content loop, then play the content in the target content element in a loop in sequence according to the single playback number and the loop playback time in the content element infinite addition parameter to obtain a modified animation file.

[0051] In some embodiments, when the modifying unit 702 performs the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, it is specifically used to: If the animation editing instruction is an element replacement instruction, a new content element and an element replacement parameter corresponding to the element replacement instruction in the animation editing rule are obtained according to the element replacement instruction; the content element to be replaced is replaced with the new content element according to the element replacement instruction, and the size of the new content element is adaptively modified according to the element replacement parameter to obtain a modified animation file.

[0052] In some embodiments, when the modifying unit 702 performs the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, it is specifically used to: If the animation editing instruction is a real-time data loading instruction, then obtain the real-time data loading parameters corresponding to the real-time data loading instruction in the animation editing rule; obtain the target real-time database corresponding to the real-time data loading instruction from the preset real-time database; and obtain and update the real-time data of the target real-time content element from the target real-time database at regular intervals according to the real-time data loading instruction and the preset loading duration in the real-time data loading parameters to obtain a modified animation file.

[0053] In some embodiments, when the modifying unit 702 performs the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, it is specifically used to: If the animation editing instruction is a font image adaptation instruction, the target adaptive content and the font image adaptation parameters corresponding to the font image adaptation instruction in the animation editing rule are obtained according to the font image adaptation instruction; the target adaptive content is adaptively modified according to the target panel attributes in the font image adaptation parameters to obtain a modified animation file.

[0054] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the above-mentioned animation real-time editing device and each unit applied to the director system can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.

[0055] The above-mentioned animation real-time editing device applied to the director system can be implemented in the form of a computer program. Figure 6 Runs on the computer device shown.

[0056] See also Figure 6 , Figure 6 800 is a schematic block diagram of an electronic device provided by an embodiment of the present invention. The computer device 800 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.

[0057] See also Figure 6 The electronic device 800 includes a processor 802 , a memory and a network interface 805 connected via a system bus 801 , wherein the memory may include a non-volatile storage medium 803 and an internal memory 804 .

[0058] The non-volatile storage medium 803 can store an operating system 8031 ​​and a computer program 8032. The computer program 8032 includes program instructions, and when the program instructions are executed, the processor 802 can execute a real-time animation editing method applied to a director system.

[0059] The processor 802 is used to provide computing and control capabilities to support the operation of the entire electronic device 800 .

[0060] The internal memory 804 provides an environment for the operation of the computer program 8032 in the non-volatile storage medium 803. When the computer program 8032 is executed by the processor 802, the processor 802 can execute a real-time animation editing method applied to the director system.

[0061] The network interface 805 is used to communicate with other devices over the network. Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the electronic device 800 to which the solution of the present invention is applied. The specific electronic device 800 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0062] The processor 802 is used to run the computer program 8032 stored in the memory to implement the following steps: Respond to the animation editing instruction from the director system; adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instruction to obtain a modified animation file; extract the animation parameters of each frame image in the modified animation file; render each frame image based on the animation parameters to obtain a corresponding video image; wherein each video image retains a transparent channel; play each video image on the playback interface of the director system according to the playback order; wherein the playback order is the playback order of each video image in the modified animation file.

[0063] In some embodiments, when the processor 802 implements the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, the processor 802 specifically implements the following steps: If the animation editing instruction is a multilingual automatic switching instruction, then obtain the multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rule; and adaptively modify the text in the animation file according to the multilingual automatic switching rule to obtain a modified animation file.

[0064] In some embodiments, when the processor 802 implements the step of adaptively modifying the text in the animation file according to the multi-language automatic switching rule to obtain the modified animation file, the processor 802 specifically implements the following steps: According to the system language, it is determined whether the animation language meets the matching conditions in the multi-language automatic switching rules; if so, the animation file is used as the modified animation file; if not, the animation text is mapped to the system language text according to the system language and the modification strategy in the multi-language automatic switching rules to obtain the modified animation file.

[0065] In some embodiments, when the processor 802 implements the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, the processor 802 specifically implements the following steps: If the animation editing instruction is a content element infinite addition instruction, then obtain the content element infinite addition parameter corresponding to the content element infinite addition instruction in the animation editing rule; determine the loop mode of the target content element in the animation file according to the content element infinite addition parameter; if the loop mode is a single content loop, then play the content in the target content element in a loop in sequence according to the loop playback time in the content element infinite addition parameter to obtain a modified animation file; if the loop mode is a multi-content loop, then play the content in the target content element in a loop in sequence according to the single playback number and the loop playback time in the content element infinite addition parameter to obtain a modified animation file.

[0066] In some embodiments, when the processor 802 implements the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, the processor 802 specifically implements the following steps: If the animation editing instruction is an element replacement instruction, then the new content element and the element replacement parameters corresponding to the element replacement instruction in the animation editing rule are obtained according to the element replacement instruction; the content element to be replaced is replaced with the new content element according to the element replacement instruction, and the size of the new content element is adaptively modified according to the element replacement parameters to obtain a modified animation file.

[0067] In some embodiments, when the processor 802 implements the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, the processor 802 specifically implements the following steps: If the animation editing instruction is a real-time data loading instruction, then obtain the real-time data loading parameters corresponding to the real-time data loading instruction in the animation editing rule; obtain the target real-time database corresponding to the real-time data loading instruction from the preset real-time database; and obtain and update the real-time data of the target real-time content element from the target real-time database at regular intervals according to the real-time data loading instruction and the preset loading duration in the real-time data loading parameters to obtain a modified animation file.

[0068] In some embodiments, when the processor 802 implements the step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file, the processor 802 specifically implements the following steps: If the animation editing instruction is a font image adaptation instruction, the target adaptive content and the font image adaptation parameters corresponding to the font image adaptation instruction in the animation editing rule are obtained according to the font image adaptation instruction; the target adaptive content is adaptively modified according to the target panel attributes in the font image adaptation parameters to obtain a modified animation file.

[0069] It should be understood that in the embodiment of the present invention, the processor 802 may be a central processing unit (CPU), and the processor 802 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0070] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0071] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps: Respond to the animation editing instruction from the director system; adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instruction to obtain a modified animation file; extract the animation parameters of each frame image in the modified animation file; render each frame image based on the animation parameters to obtain a corresponding video image; wherein each video image retains a transparent channel; play each video image on the playback interface of the director system according to the playback order; wherein the playback order is the playback order of each video image in the modified animation file.

[0072] In one embodiment, when the processor executes the program instructions to adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instructions to obtain the modified animation file, the processor specifically implements the following steps: If the animation editing instruction is a multilingual automatic switching instruction, then obtain the multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rule; and adaptively modify the text in the animation file according to the multilingual automatic switching rule to obtain a modified animation file.

[0073] In one embodiment, when the processor executes the program instructions to adaptively modify the text in the animation file according to the multi-language automatic switching rule to obtain the modified animation file, the processor specifically implements the following steps: According to the system language, it is determined whether the animation language meets the matching conditions in the multi-language automatic switching rules; if so, the animation file is used as the modified animation file; if not, the animation text is mapped to the system language text according to the system language and the modification strategy in the multi-language automatic switching rules to obtain the modified animation file.

[0074] In one embodiment, when the processor executes the program instructions to adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instructions to obtain the modified animation file, the processor specifically implements the following steps: If the animation editing instruction is a content element infinite addition instruction, then obtain the content element infinite addition parameter corresponding to the content element infinite addition instruction in the animation editing rule; determine the loop mode of the target content element in the animation file according to the content element infinite addition parameter; if the loop mode is a single content loop, then play the content in the target content element in a loop in sequence according to the loop playback time in the content element infinite addition parameter to obtain a modified animation file; if the loop mode is a multi-content loop, then play the content in the target content element in a loop in sequence according to the single playback number and the loop playback time in the content element infinite addition parameter to obtain a modified animation file.

[0075] In one embodiment, when the processor executes the program instructions to adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instructions to obtain the modified animation file, the processor specifically implements the following steps: If the animation editing instruction is an element replacement instruction, then the new content element and the element replacement parameters corresponding to the element replacement instruction in the animation editing rule are obtained according to the element replacement instruction; the content element to be replaced is replaced with the new content element according to the element replacement instruction, and the size of the new content element is adaptively modified according to the element replacement parameters to obtain a modified animation file.

[0076] In one embodiment, when the processor executes the program instructions to adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instructions to obtain the modified animation file, the processor specifically implements the following steps: If the animation editing instruction is a real-time data loading instruction, then obtain the real-time data loading parameters corresponding to the real-time data loading instruction in the animation editing rule; obtain the target real-time database corresponding to the real-time data loading instruction from the preset real-time database; and obtain and update the real-time data of the target real-time content element from the target real-time database at regular intervals according to the real-time data loading instruction and the preset loading duration in the real-time data loading parameters to obtain a modified animation file.

[0077] In one embodiment, when the processor executes the program instructions to adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instructions to obtain the modified animation file, the processor specifically implements the following steps: If the animation editing instruction is a font image adaptation instruction, the target adaptive content and the font image adaptation parameters corresponding to the font image adaptation instruction in the animation editing rule are obtained according to the font image adaptation instruction; the target adaptive content is adaptively modified according to the target panel attributes in the font image adaptation parameters to obtain a modified animation file.

[0078] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0079] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0080] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0081] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0082] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0083] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A real-time animation editing method applied to a director system, characterized in that: The method comprises: Respond to animation editing instructions from the director system; Adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain a modified animation file; Extracting animation parameters of each frame image in the modified animation file; Rendering each of the frame images based on the animation parameters to obtain a corresponding video image; wherein each of the video images retains a transparent channel; The video images are played on the play interface of the director system according to the play order; wherein the play order is the play order of the video images in the modified animation file.

2. The method for real-time animation editing applied to a broadcast director system according to claim 1, characterized in that: The step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file includes: If the animation editing instruction is a multilingual automatic switching instruction, obtaining a multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rule; The text in the animation file is adaptively modified according to the multi-language automatic switching rule to obtain a modified animation file.

3. The method for real-time animation editing applied to a director system according to claim 2, characterized in that: The step of adaptively modifying the text in the animation file according to the multi-language automatic switching rule to obtain the modified animation file includes: Determining whether the animation language meets the matching conditions in the multi-language automatic switching rule according to the system language; If satisfied, the animation file is used as the modified animation file; If not, the animation text is mapped to the system language text according to the modification strategy in the system language and multi-language automatic switching rules to obtain a modified animation file.

4. The method for real-time animation editing applied to a director system according to claim 1, characterized in that: The step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file includes: If the animation editing instruction is a content element unlimited addition instruction, obtaining a content element unlimited addition parameter corresponding to the content element unlimited addition instruction in the animation editing rule; Determining a loop mode of a target content element in the animation file according to the content element infinite addition parameter; If the loop mode is a single content loop, the content in the target content element is looped and played in sequence according to the loop play time in the infinite addition parameter of the content element to obtain a modified animation file; If the loop mode is a multi-content loop, the contents in the target content element are looped and played in sequence according to the single play number and loop play time in the infinite addition parameter of the content element to obtain a modified animation file.

5. The method for real-time animation editing applied to a director system according to claim 1, characterized in that: The step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file includes: If the animation editing instruction is an element replacement instruction, obtaining a new content element and an element replacement parameter corresponding to the element replacement instruction in the animation editing rule according to the element replacement instruction; The content element to be replaced is replaced with the new content element according to the element replacement instruction, and the size of the new content element is adaptively modified according to the element replacement parameter to obtain a modified animation file.

6. The method for real-time animation editing applied to a director system according to claim 1 or claim 5, characterized in that: The step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file includes: If the animation editing instruction is a real-time data loading instruction, then obtaining a real-time data loading parameter corresponding to the real-time data loading instruction in the animation editing rule; Acquire a target real-time database corresponding to the real-time data loading instruction from a preset real-time database; According to the real-time data loading instruction and the preset loading duration in the real-time data loading parameter, the real-time data of the target real-time content element is periodically acquired from the target real-time database and updated to obtain a modified animation file.

7. The method for real-time animation editing applied to a director system according to claim 1, characterized in that: The step of adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain the modified animation file includes: If the animation editing instruction is a font image adaptation instruction, then obtaining target adaptation content and a font image adaptation parameter corresponding to the font image adaptation instruction in the animation editing rule according to the font image adaptation instruction; The target adaptive content is adaptively modified according to the target panel attribute in the font image adaptive parameter to obtain a modified animation file.

8. An animation real-time editing device applied to a director system, characterized in that: The device comprises: A response unit, used to respond to animation editing instructions from the director system; A modification unit, used to adaptively modify the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain a modified animation file; An extraction unit, used for extracting animation parameters of each frame image in the modified animation file; A rendering unit, used for rendering each of the frame images based on the animation parameters to obtain a corresponding video image; wherein each of the video images retains a transparent channel; A playback unit is used to play each of the video images in the playback interface of the director system according to a playback order; wherein the playback order is the playback order of each of the video images in the modified animation file.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the real-time animation editing method applied to the director system as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by the processor, the processor executes the real-time animation editing method applied to the director system as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Multi-person audio and video interaction method and system, client, and server

    CN104104703A

  • Software broadcasting directing system and software broadcasting directing method

    CN108282598A

  • Special effect processing method and device, electronic equipment and storage medium

    CN110674341A

  • Animation processing method and device, computer readable storage medium and computer equipment

    CN112073794A

  • Method and device for controlling special effect equipment, storage medium and electronic equipment

    CN114879552A

Cited By

  • Animation special effect playing control method and device, equipment and medium

    CN121262416A