Animation real-time editing method, device, equipment and medium applied to director system
By editing animation files in real-time in the guide system, the problem of low animation editing efficiency in the existing technology is solved, real-time replacement and rendering of animation files is realized, and editing efficiency and convenience of live broadcast room construction are improved.
Patent Information
- Application Number
- CN202411686466.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2044-11-25
AI Technical Summary
The existing animation editing methods have the problem of low editing efficiency, and they cannot edit animation files in the director software, and they need to jump to third-party professional production tools for production and editing, resulting in time-consuming, high cost and poor maintenance.
It provides a real-time animation editing method applied to the guide system. By responding to the animation editing instructions of the guide system, the animation files are adaptively modified according to the animation editing rules, the animation parameters are extracted and rendered, the video images are generated, and the video images are played in real time on the playback interface of the guide system.
It realizes real-time editing of animation files in the director system without jumping to third-party software, improves the efficiency of real-time animation editing, and allows the anchor to build a professional dynamic live broadcast room simply and efficiently.
Smart Images

Figure CN119205995B_ABST
Abstract
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 and cannot 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 approach for animation files is for designers to first create the material files (static images, animations, videos) that need to be presented in the live broadcast room, and then import them into the director software to build the live broadcast room. This is time-consuming, costly, and has poor maintainability. Furthermore, the director system and animation production software are two complex technical architectures. If the entire production is directly placed in the director system, the complexity of the system will inevitably increase. Parsing, rendering, and mixed stream encoding may all generate various abnormal streams. Therefore, existing animation editing methods have the following shortcomings:
[0004] 1. Animation cannot be edited: Animation files cannot be edited in the director software;
[0005] 2. Low production efficiency: The production and editing of animation files need to be done in third-party software;
[0006] 3. High production costs: Professional animation production software has a high threshold for use and usually requires the involvement of designers, resulting in high customization costs.
[0007] Therefore, the existing animation editing method has the problem of low editing efficiency. Summary of the Invention
[0008] The embodiments of the present invention provide a method, apparatus, device and medium for real-time animation editing applied to a director system, aiming to solve the problem of low editing efficiency in existing animation editing methods.
[0009] In a first aspect, an embodiment of the present invention provides a method for real-time animation editing applied to a broadcast director system, the method comprising:
[0010] Respond to animation editing instructions from the director system;
[0011] Adaptively modifying the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain a modified animation file;
[0012] Extracting animation parameters of each frame image in the modified animation file;
[0013] 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;
[0014] 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.
[0015] In a second aspect, an embodiment of the present invention further provides an animation real-time editing device applied to a broadcast director system, the device comprising:
[0016] A response unit, used to respond to animation editing instructions from the director system;
[0017] A modification unit, 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;
[0018] An extraction unit, configured to extract animation parameters of each frame image in the modified animation file;
[0019] A rendering unit, configured 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;
[0020] 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.
[0021] In a third aspect, an embodiment of the present invention further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the method described in the first aspect when executing the computer program.
[0022] 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 when the program instructions are executed by a processor, the method described in the first aspect can be implemented.
[0023] An embodiment of the present invention provides a method, apparatus, device 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 an 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 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 a playback interface of the director system according to a 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
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 A flowchart of a method for real-time animation editing applied to a broadcast director system provided by an embodiment of the present invention;
[0026] Figure 2 A schematic diagram of a sub-process of a method for real-time animation editing applied to a broadcast director system according to an embodiment of the present invention;
[0027] Figure 3 A first flow chart of a method for real-time animation editing applied to a broadcast director system according to an embodiment of the present invention;
[0028] Figure 4 A second flow chart of the real-time animation editing method applied to a broadcast director system according to an embodiment of the present invention;
[0029] Figure 5 A schematic block diagram of a real-time animation editing device applied to a broadcast director system according to an embodiment of the present invention;
[0030] Figure 6 A schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0032] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0033] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0034] 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, including these combinations. The embodiment of the present invention provides a method, apparatus, device and medium for real-time editing of animations applied to a director system. The real-time editing method for animations applied to a director system can be found in Figure 1 , Figure 1 This is a flowchart of a real-time animation editing method for a broadcast director system, as provided in an embodiment of the present invention. This method is applied to the controller of a broadcast director system; the broadcast director system can be a traditional broadcast director system such as OBS (Open Broadcaster Software), Douyin Live Companion, or Video Number Live Assistant, or it can be a broadcast director system based on an all-in-one live broadcast machine or a virtual broadcast director system.
[0035] Figure 1 Schematic diagram of the flow of the real-time animation editing method applied to the director system provided by the embodiment of the present invention. Figure 1 As shown, the method includes the following steps S110-S150.
[0036] S110, responding to the animation editing instruction from the director system.
[0037] 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 the 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, PAG files are used as a case to discuss 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.
[0038] Developers can pre-produce the animation file on AE (Adobe After Effects), which 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 the live broadcast room; the director can perform animation element editing operations on the animation file editing interface generated based on the animation file, wherein the animation element editing operations include replacement, deletion, editing, and addition; for example, the director can perform touch operations (touch operations include click 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.
[0039] 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.
[0040] S120 : Adaptively modify the animation file according to the animation editing rule corresponding to the animation editing instruction to obtain a modified animation file.
[0041] 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 design specifications for each animation element (i.e., animation editing rules). The design specifications for each animation element can be 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.
[0042] Furthermore, the director can customize the size or position of picture B on the playback interface.
[0043] In one embodiment, if Figure 2 As shown, step S120 includes steps S121-S122.
[0044] 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.
[0045] S122: Adaptively modify the text in the animation file according to the multi-language automatic switching rule to obtain a modified animation file.
[0046] In this embodiment, a director can modify the text content in a live broadcast screen. When the director modifies the text content, a corresponding multilingual automatic switching instruction is triggered. A multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rule is obtained according to the multilingual automatic switching instruction. The text in the animation file is adaptively modified according to the multilingual automatic switching rule to obtain a modified animation file. The multilingual automatic switching rule includes a matching condition and a modification strategy. Whether the animation language meets the matching condition can be determined based on the system language, wherein the animation language is the language of the text in the animation file. Specifically, whether the system language and the animation language are the same language is determined. If they are the same language, the matching condition is determined to be met, and in this case, there is no need to switch the language of the animation text. If they are not the same language, the matching condition is determined to be not met. In this case, 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. The animation text is the text in the animation file.
[0047] In one embodiment, step S122 includes: determining whether the animation language meets the matching conditions in the multi-language automatic switching rules based on 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 system language and the modification strategy in the multi-language automatic switching rules to obtain the modified animation file.
[0048] In this embodiment, language identification is performed on the system language and the animation language to determine whether the animation language meets the matching conditions in the multi-language automatic switching rule according to the system language; if satisfied, it means that the system language and the animation language are the same language. At this time, 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 means that the system language and the animation language are not the same language. At this time, 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 includes: 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, if 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 ).
[0049] In one embodiment, step S120 also includes: if the animation editing instruction is a content element infinite addition instruction, then obtaining the content element infinite addition parameter corresponding to the content element infinite addition instruction in the animation editing rule; determining 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 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 loop playback time in the content element infinite addition parameter to obtain a modified animation file.
[0050] In this embodiment, when the director makes a custom modification to 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 will be 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 during the creation 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 infinite addition parameter of the content element 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 infinite addition parameter of the content element 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 playbacks is 4. Therefore, the first round of playback of the target content elements is content 1, content 2, content 3, content 4, the second round of playback is content 5, content 6, content 1, content 2, the third round of playback is content 3, content 4, content 5, content 6, and subsequent playback contents are deduced by analogy. The loop playback time is the interval playback time between each round.
[0051] 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.
[0052] 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 resource of element Y is set during the production process of the animation file. The director can replace the current display 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 the modified animation file.
[0053] Furthermore, the element replacement parameters can also be attribute parameters such as the position of the animation element, layer logical relationship, etc. For example, if the element replacement parameters are the position parameters of the animation element, the new content element will be automatically adjusted to the target display area according to the element replacement parameters. The target display area is the 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.
[0054] 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.
[0055] In this embodiment, if plug-in A is replaced with plug-in B, and the replaced plug-in is any one of the weather plug-in, popularity plug-in, like plug-in, and 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 weather plug-in in the animation editing rule that corresponds to The real-time data loading instruction corresponds to a real-time data loading parameter; a target real-time database corresponding to the real-time data loading instruction is obtained from a preset real-time database, that is, a real-time database associated with weather plug-in B is obtained; the real-time data of the target real-time content element is periodically obtained from the target real-time database and updated according to the real-time data loading instruction and the preset loading duration in the real-time data loading parameter to obtain a modified animation file; the preset loading duration can be set to 1 second, that is, Shanghai weather data is obtained from the real-time database associated with weather plug-in B every second to update the display content of weather plug-in B. The embodiment of the present invention can achieve data interaction with a third-party data source without jumping to a third-party platform.
[0056] In one embodiment, step S120 includes: if the animation editing instruction is a font image adaptation instruction, obtaining target adaptive content and 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.
[0057] 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 entered 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.
[0058] S130: Extracting animation parameters of each frame image in the modified animation file.
[0059] 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 each animation element.
[0060] 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.
[0061] In this embodiment, each frame image is rendered based on the animation parameters to combine the element layers contained in each frame image to obtain a corresponding video image, where the element layers are layers containing animation elements; wherein each video image retains a transparent channel; specifically, when rendering each frame image, each frame image is converted into RGBA format to retain the transparent channel of each video image, thereby avoiding the situation where the position without RGB in the image is black or white, 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 frame image is uniformly edited according to canvas properties to ensure the consistency of image synthesis, and the canvas properties can be the size properties of the playback interface.
[0062] 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.
[0063] In this embodiment, the video images are played on the playback interface of the director system according to a playback order; wherein the playback order is the playback order of the video images in the modified animation file. In this embodiment of the present invention, the director can edit the animation file in real time within the director software (within the director system), that is, edit the animation elements in the playback interface (e.g., the live broadcast screen). The director system can update and display the animation file in real time based on the director's animation editing operations.
[0064] 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 and allowing the anchor to simply and efficiently build a professional dynamic live broadcast room.
[0065] Figure 5 This is a schematic block diagram of an animation real-time editing device applied to a broadcasting system according to an embodiment of the present invention. Figure 5As shown, corresponding to the above-mentioned 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, which is configured in the controller of the director system. Figure 5 The animation real-time editing device 700 applied to the broadcast director system includes:
[0066] The response unit 701 is used to respond to the animation editing instruction from the director system;
[0067] A modifying unit 702 is 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;
[0068] An extraction unit 703 is used to extract animation parameters of each frame image in the modified animation file;
[0069] A rendering unit 704 is configured to render each frame image based on the animation parameters to obtain a corresponding video image; wherein each video image retains a transparent channel;
[0070] 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.
[0071] 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 configured to:
[0072] If the animation editing instruction is a multilingual automatic switching instruction, a multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rules is obtained; and the text in the animation file is adaptively modified according to the multilingual automatic switching rule to obtain a modified animation file.
[0073] In some embodiments, when performing the step of adaptively modifying the text in the animation file according to the multilingual automatic switching rule to obtain the modified animation file, the modification unit 702 is specifically configured to:
[0074] The method comprises determining 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; and 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.
[0075] 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 configured to:
[0076] 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 the modified animation file; if the loop mode is a multiple content loop, then play the content in the target content element in a loop in sequence according to the single playback number and loop playback time in the content element infinite addition parameter to obtain the modified animation file.
[0077] 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 configured to:
[0078] If the animation editing instruction is an element replacement instruction, 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.
[0079] 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 configured to:
[0080] 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 the real-time data of the target real-time content element from the target real-time database at regular intervals and update it 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.
[0081] 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 configured to:
[0082] 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 rules 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.
[0083] 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. For the convenience and conciseness of the description, it will not be repeated here.
[0084] The above-mentioned animation real-time editing device applied to the director system can be realized in the form of a computer program. The computer program can be used in Figure 6 Runs on the computer device shown.
[0085] See also Figure 6 , Figure 6 This is a schematic block diagram of an electronic device provided by an embodiment of the present invention. The computer device 800 can be a terminal or a server. A terminal can be a tablet computer, laptop computer, desktop computer, personal digital assistant, wearable device, or other electronic device with communication capabilities. The server can be a standalone server or a server cluster consisting of multiple servers.
[0086] See 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 .
[0087] The non-volatile storage medium 803 can store an operating system 8031 and a computer program 8032. The computer program 8032 includes program instructions, which, when executed, can enable the processor 802 to execute a real-time animation editing method applied to a broadcasting system.
[0088] The processor 802 is used to provide computing and control capabilities to support the operation of the entire electronic device 800.
[0089] 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.
[0090] The network interface 805 is used to communicate with other devices over the network. Figure 6The structure shown in the figure is merely a block diagram of a portion of the 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 component arrangement.
[0091] The processor 802 is configured to execute a computer program 8032 stored in the memory to implement the following steps:
[0092] Respond to the animation editing instructions from the director system; adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instructions 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.
[0093] 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:
[0094] If the animation editing instruction is a multilingual automatic switching instruction, a multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rules is obtained; and the text in the animation file is adaptively modified according to the multilingual automatic switching rule to obtain a modified animation file.
[0095] In some embodiments, when the processor 802 adaptively modifies 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:
[0096] The method comprises determining 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; and 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.
[0097] 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:
[0098] 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 the modified animation file; if the loop mode is a multiple content loop, then play the content in the target content element in a loop in sequence according to the single playback number and loop playback time in the content element infinite addition parameter to obtain the modified animation file.
[0099] 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:
[0100] If the animation editing instruction is an element replacement instruction, 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.
[0101] 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:
[0102] 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 the real-time data of the target real-time content element from the target real-time database at regular intervals and update it 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.
[0103] 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:
[0104] 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 rules 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.
[0105] It should be understood that in the embodiment of the present invention, the processor 802 may be a central processing unit (CPU), or may 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. The general-purpose processor may be a microprocessor or any conventional processor.
[0106] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.
[0107] 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 performs the following steps:
[0108] Respond to the animation editing instructions from the director system; adaptively modify the animation file according to the animation editing rules corresponding to the animation editing instructions 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.
[0109] 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:
[0110] If the animation editing instruction is a multilingual automatic switching instruction, a multilingual automatic switching rule corresponding to the multilingual automatic switching instruction in the animation editing rules is obtained; and the text in the animation file is adaptively modified according to the multilingual automatic switching rule to obtain a modified animation file.
[0111] In one embodiment, when the processor executes the program instructions to adaptively modify the text in the animation file according to the multilingual automatic switching rule to obtain the modified animation file, the processor specifically implements the following steps:
[0112] The method comprises determining 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; and 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.
[0113] 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:
[0114] 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 the modified animation file; if the loop mode is a multiple content loop, then play the content in the target content element in a loop in sequence according to the single playback number and loop playback time in the content element infinite addition parameter to obtain the modified animation file.
[0115] 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:
[0116] If the animation editing instruction is an element replacement instruction, 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.
[0117] 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:
[0118] 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 the real-time data of the target real-time content element from the target real-time database at regular intervals and update it 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.
[0119] 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:
[0120] 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 rules 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.
[0121] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0122] Those skilled 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 above description has generally described the composition and steps of each example according to function. 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.
[0123] In the several embodiments provided herein, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
[0124] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted as needed. The units in the devices of the embodiments of the present invention may be combined, divided, or deleted as needed. Furthermore, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.
[0125] If this integrated unit is implemented as 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, or the portion that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes instructions for enabling a computer device (such as a personal computer, terminal, or network device) to execute all or part of the steps of the method described in various embodiments of the present invention.
[0126] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection 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, wherein the animation file is a file pre-made by a developer on AE. During the animation file making process, the developer designs an editable element specification, and specifies which animation elements are editable through the editable element specification; 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; Determine the loop mode of the target content element in the animation file according to the content element infinite addition parameter; wherein the target content element is an animation element that displays multiple contents, and the displayed contents are static images or plug-ins; 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, so as to obtain a modified animation file; Extracting animation parameters of each frame image in the modified animation file; the animation parameters are used to describe attribute parameters of the animation elements contained in each frame image and the hierarchical relationship between the animation elements; 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 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.
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 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.
6. 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.
7. 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, wherein the animation file is a file pre-made by a developer on AE. During the animation file making process, the developer designs an editable element specification, and specifies which animation elements are editable through the editable element specification; An extraction unit, used to extract animation parameters of each frame image in the modified animation file; 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; 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, configured to play each of the video images on a 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; The modification unit is further configured to, if the animation editing instruction is a content element unlimited addition instruction, obtain a content element unlimited addition parameter corresponding to the content element unlimited 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; wherein the target content element is an animation element that displays multiple contents, and the displayed contents are static images or plug-ins; 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.
8. 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-6 is implemented.
9. 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 6.
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
Subtitle display method and apparatus, electronic device and storage medium
WO2021092733A1