Sequence frame digital content playing method, device and equipment and computer medium

By analyzing and repeatedly referring to the resource package of the digital content of the sequence frame, using the reference information in the metadata file to centrally read the material from the basic material, the problem of excessively large resource packages in the traditional sequence frame animation is solved, and the smaller resource packages are realized Efficient playback.

CN119299768APending Publication Date: 2025-01-10SHANGHAI BILIBILI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411397316.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

Traditional sequence frame animations require frame-by-frame playback, resulting in huge resource packages, heavy burden of occupancy of storage space and network transmission, especially in mobile platforms and bandwidth-constrained environments.

Method used

By obtaining the resource package of the digital content of the sequence frame to be played, and parsing the basic material set and metadata file are obtained. The reference information recorded in the metadata file is used to read the basic material from the basic material for playback, supporting repeated references of the material and share to avoid frame-by-frame storage.

Benefits of technology

It realizes the use of smaller resource packages to realize the playback of digital content in sequence frames, reducing the burden of storage space and network transmission, and improving the playback efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299768A_ABST
    Figure CN119299768A_ABST
Patent Text Reader

Abstract

The invention provides a sequence frame digital content playing method, device and equipment and a computer readable medium, and the method comprises the steps: obtaining a basic material set which comprises a plurality of basic materials which are not repeated; the method comprises the following steps: acquiring a basic material set, generating a metadata file used for recording a reference relationship between a sequence frame bit and the basic material according to a material identifier of the basic material, packaging and generating a sequence frame digital content according to the basic material set and the metadata file, and sending the sequence frame digital content to the basic material set according to the sequence frame digital content. According to the method and the device, shared reference of the basic materials in different sequence frame positions can be realized based on the reference relationship recorded by the metadata file, and the repeated content of the basic material set is removed, so that repeated storage of materials such as the same picture can be avoided, the quantity of the materials such as the picture can be greatly reduced, and the size of a final resource packet is further reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and computer-readable medium for playing sequential frame digital content. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.

[0003] In the field of digital media and game development, sequence frame animation, as a basic and widely used visual expression technique, has long played an important role in creating smooth dynamic effects.

[0004] Traditional sequential frame animation organizes a series of continuous images in a preset order to form an animation effect. Sequence frame animation needs to be played frame by frame, so a picture needs to be set for each frame. This method will result in a large resource package when there are many frames or the frame pixels are high. It not only takes up too much storage space, but also increases the burden of network transmission. This problem is particularly prominent on mobile platforms and in bandwidth-constrained environments.

[0005] In view of the above problems, it is necessary to provide a technical solution for playing sequence frame digital content using a relatively small resource package. Summary of the invention

[0006] Multiple aspects of the present application provide a method, apparatus, device and computer-readable storage medium for playing sequential frame digital content, which are used to play sequential frame digital content using a smaller resource package.

[0007] In one aspect of the present application, a method for playing digital content of a sequence frame is provided, wherein the method comprises:

[0008] Obtain a resource package of the sequence frame digital content to be played;

[0009] Parsing the resource package to obtain a basic material set and a metadata file, wherein the basic material set includes a plurality of basic materials that are not repeated, and the metadata file records reference information of the sequence frame positions of the sequence frame digital content to the basic materials, and at least one of the basic materials is referenced by a plurality of the sequence frame positions;

[0010] According to the reference information recorded in the metadata file, basic materials are read from the basic material set for playback.

[0011] Another aspect of the present application provides a sequential frame digital content playback device, wherein the device comprises:

[0012] A resource package acquisition module is used to acquire a resource package of the sequence frame digital content to be played;

[0013] A resource package parsing module, used to parse the resource package to obtain a basic material set and a metadata file, wherein the basic material set includes a plurality of basic materials that are not repeated, and the metadata file records reference information of the sequence frame positions of the sequence frame digital content to the basic materials, and at least one of the basic materials is referenced by a plurality of the sequence frame positions;

[0014] The resource package playing module is used to read the basic material from the basic material set for playing according to the reference information recorded in the metadata file.

[0015] Another aspect of the present application provides an electronic device, the electronic device comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can execute the sequence frame digital content playback method as described above.

[0019] Another aspect of the present application provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the sequential frame digital content playback method as described above.

[0020] In the solution provided in the embodiment of the present application, a resource package of the sequence frame digital content to be played is obtained, and the resource package is parsed to obtain a basic material set and a metadata file, wherein the basic material set includes multiple basic materials that do not overlap with each other, and the metadata file records reference information of the sequence frame position of the sequence frame digital content to the basic material, and then according to the reference information recorded in the metadata file, the basic material is read from the basic material set for playback, so that the playback of the sequence frame digital content can be achieved by repeated reference to the basic material. With the help of the reference information recorded in the metadata file, the playback method provided by the solution of the present application supports the shared use of basic materials between different frame positions, and there is no need to store materials frame by frame to generate resource packages. For repeated materials, only one basic material needs to be stored to achieve complete playback through multiple reference readings during playback. Therefore, the solution of the present application can use a smaller resource package to achieve playback of sequence frame digital content. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0023] Figure 1 A schematic diagram of a flow chart of a method for playing digital content in a sequence of frames provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of the structure of a sequence frame digital content resource package provided in one embodiment of the present application;

[0025] Figure 3 A schematic diagram of frame bit scaling provided by an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of a sequential frame digital content playback device provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of the structure of an electronic device suitable for implementing the solution in the embodiments of the present application;

[0028] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0030] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.

[0031] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0032] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer program instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0033] In view of the problem in the prior art that a sequence frame animation needs to be played frame by frame and a picture needs to be set for each frame, which leads to a large resource package of sequence frame digital content, which requires a large amount of storage space and a heavy network transmission burden, the embodiment of the present application provides a sequence frame digital content playback method, device, equipment and computer-readable storage medium, which are used to play the sequence frame digital content using a smaller resource package, and obtain the resource package of the sequence frame digital content to be played, and parse the resource package to obtain a basic material set and a metadata file, wherein the basic material set includes multiple basic materials that do not overlap with each other, and the metadata file records the sequence frame digital content. The reference information of the basic material in the sequence frame of the content is recorded, and then the basic material is read from the basic material set for playback according to the reference information recorded in the metadata file, so that the playback of the sequence frame digital content can be achieved by repeatedly referencing the basic material. With the help of the reference information recorded in the metadata file, the playback method provided by the present application supports the shared use of basic materials between different frame positions, and there is no need to store the material frame by frame to generate a resource package. For repeated materials, only one basic material needs to be stored, and complete playback can be achieved through multiple reference readings during playback. Therefore, the present application scheme can use smaller resource packages to achieve the playback of sequence frame digital content.

[0034] The following is an exemplary description of the method, device, equipment and computer-readable storage medium for playing sequential frame digital content provided by the present application.

[0035] In actual scenarios, the execution subject of the sequence frame digital content playback method provided in the embodiment of the present application can be a user device, or a device formed by integrating a user device and a network device through a network, or an application (such as a playback engine, a player, a playback system, etc.) running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.

[0036] Figure 1 The processing flow of a method for playing digital content of a sequence frame provided in an embodiment of the present application is shown, and the method at least includes the following processing steps:

[0037] Step S101, obtaining a resource package of a sequence frame digital content to be played.

[0038] Among them, the sequence frame digital content involved in the embodiment of the present application refers to digital content composed of a series of frames arranged in sequence, each frame represents a momentary state or picture of the content, and its specific form may include but is not limited to sequence frame animation, animated images, videos, and other digital content that needs to use continuous frames to display dynamic effects.

[0039] Step S102, parse the resource package to obtain a basic material set and a metadata file, wherein the basic material set includes multiple basic materials that are not repeated, and the metadata file records the reference information of the sequence frame positions of the sequence frame digital content to the basic materials, and at least one of the basic materials is referenced by multiple sequence frame positions.

[0040] It should be noted that, although the sequence frame digital content of the embodiment of the present application retains each frame, it is not necessary to retain a material for each frame, but only retains the basic material after removing the duplicate material, and the reference information of each frame to the basic material, and then uses different frame positions to share the same basic material to achieve the image record of each frame. This is because in actual applications, there are often many duplicate frames in the sequence frame digital content. The existence of these duplicate frames leads to repeated storage of materials, which in turn leads to excessive resource packages. In this regard, the embodiment of the present application is based on the technical concept of multi-frame sharing, and only one frame of material in the duplicate frame needs to be retained to achieve smooth playback of all frames. The above-mentioned basic material set is a deduplicated material set that can ensure the complete playback of the sequence frame digital content.

[0041] Among them, the basic material set is a collection of basic materials used to compose the digital content of sequence frames. The basic material refers to non-repetitive materials that can be reused by multiple sequence frames, which may include but are not limited to one of picture materials, text materials and special effects materials (such as masks, masks, lighting effects, etc.).

[0042] In specific implementation, the embodiment of the present application can provide a production tool (such as an application or an online processing platform) to generate sequence frame digital content. The above-mentioned basic materials can be prepared in advance by the user according to design requirements and uploaded to the production tool. After the production tool obtains the above-mentioned basic materials, a basic material set is formed and waits for subsequent processing.

[0043] Among them, each basic material has a corresponding material identifier. The material identifier refers to an identifier used to uniquely identify the basic material, ensuring the uniqueness and traceability of each material in the entire project, facilitating management and reference. Common forms include file names, custom strings, etc.

[0044] Sequence frame refers to the position or index of each frame in the sequence frame digital content. Each sequence frame represents a picture at a specific time point, and the material used in the frame and its display parameters can be described through metadata files.

[0045] A metadata file refers to a file used to record information about each component of digital content and their relationships. It can be encoded in JSON, XML or other formats. In an embodiment of the present application, the metadata file is used to describe the reference relationship between each frame and the basic material, including material identification and display parameters, etc., to ensure the correct generation and playback of the content.

[0046] Among them, at least one of the basic materials can be referenced by multiple sequence frame positions, indicating that the same basic material can be used multiple times in different frames of the sequence frame digital content.

[0047] Please refer to Figure 2 , which is a structural diagram of a sequence frame digital content resource package provided by an embodiment of the present application. As shown in the figure, the resource package of the sequence frame digital content includes a basic material set composed of multiple basic materials (0.png and 1.png) and a metadata file. The metadata file describes the material identifier of the basic material referenced by each frame position. According to the metadata file, it can be determined which basic material should be read for rendering and display when playing to each frame position.

[0048] Step S103: Read basic material from the basic material set for playback according to the reference information recorded in the metadata file.

[0049] Since the reference information describes the reference relationship between the sequence frame positions of the sequence frame digital content and the basic material, after the reference information is parsed, the basic material can be read from the basic material set for playback using the reference information.

[0050] The above-mentioned sequence frame digital content playback method provided in the embodiment of the present application obtains the resource package of the sequence frame digital content to be played, and parses the resource package to obtain a basic material set and a metadata file, wherein the basic material set includes multiple basic materials that do not overlap with each other, and the metadata file records the reference information of the sequence frame position of the sequence frame digital content to the basic material, and then reads the basic material from the basic material set for playback according to the reference information recorded in the metadata file, so that the sequence frame digital content can be played by repeatedly referencing the basic material. With the help of the reference information recorded in the metadata file, the playback method provided by the present application scheme supports the shared use of basic materials between different frame positions, and no longer needs to store materials frame by frame to generate resource packages. For repeated materials, only one basic material needs to be stored to achieve complete playback through multiple reference readings during playback. Therefore, the present application scheme can use a smaller resource package to achieve playback of sequence frame digital content.

[0051] In a specific implementation, the sequence frame digital content is generally played in the order of the sequence frame positions. Therefore, the above step S103 reads the basic material from the basic material set for playing according to the reference information recorded in the metadata file, which may include:

[0052] According to the reference information recorded in the metadata file, the basic material referenced by the sequence frame is read from the basic material set in the order of the sequence frame to play.

[0053] Through this implementation, it is possible to achieve sequential playback according to the sequence of frames marked by the metadata file in the sequence of frame digital content.

[0054] In addition, the embodiment of the present application can also use the metadata file for customized playback, such as reverse order, random order, frame skipping, etc. Correspondingly, in other modified implementations, the above step S103 reads the basic material from the basic material set for playback according to the reference information recorded in the metadata file, which may include:

[0055] In response to a specified interactive operation input by a user, generating a custom playback instruction;

[0056] Determine custom playback parameters according to the custom playback instruction and the metadata file, wherein the playback parameters include at least one of a playback start frame, a playback order, a playback speed, a playback frame number, a playback frame rate, and an end frame;

[0057] According to the custom playback parameters and the reference information, basic materials are read from the basic material set for custom playback.

[0058] In specific implementation, first, the system responds to the specified interactive operation input by the user, which may include but is not limited to operations in the user interface such as clicking, dragging, and pressing keys. The user can specify specific playback requirements through these operations. For example, the user may want to play from a specific frame, play at different speeds, play a specific number of frames, or play in a specific order. When the user performs the specified interactive operation, the system generates a custom playback instruction, which includes at least one of the playback start frame, playback order, playback speed, playback frame number, playback frame rate, and end frame position, which can be determined according to the user's interactive operation. For example, the user may click a button to choose to play from the 10th frame and play 20 frames at twice the speed. Then, according to the custom playback instruction and the metadata file, the custom playback parameters are determined. The specific playback parameters can be determined by parsing the custom playback instruction generated by the user and combining the reference information in the metadata file. For example, if the user wants to play from the 10th frame, the system will find the basic material referenced by the 10th frame and later frames in the metadata file, and adjust the playback process according to the playback speed and frame number. Next, the system reads the basic material from the basic material set for customized playback according to the customized playback parameters and the reference information. The system reads the basic material frame by frame according to the determined playback parameters, and plays it according to the playback order, playback speed and other parameters. For example, if the user requires 20 frames to be played at twice the speed, the system will speed up the playback speed and ensure the stability of the frame rate during playback.

[0059] For example, suppose the user wants to start playing from the 10th frame, play 20 frames at twice the speed, and play in a specific order. The user performs this operation by clicking a button on the interface. In response to the user's interactive operation, the system generates a custom playback instruction, indicating that the playback starts from the 10th frame and sets the playback speed to twice. The system parses the metadata file, determines the basic material referenced in the 20 frames starting from the 10th frame, and adjusts the playback speed according to the playback speed. When playback starts, the system reads the corresponding material from the basic material set and plays it in the specified playback order and speed.

[0060] In this way, the system can generate custom playback instructions based on the user's specific needs, and flexibly adjust the playback parameters based on these instructions, thereby achieving more customized playback effects. For example, in video editing software, users can achieve complex playback effects through simple interactive operations, such as quickly previewing video content in a certain period of time, or playing a selected frame sequence in a specific order. This flexibility can improve the user's operational convenience and the practicality of the system.

[0061] Based on the aforementioned implementation, the generation and application of the above-mentioned custom playback instructions have a wide range of uses in other scenarios such as games. This implementation enables the system to generate custom playback instructions based on the user's specified interactive operations and adjust the playback parameters based on these instructions, thereby achieving a more flexible and customized playback effect. This capability is particularly valuable in games and other multimedia applications.

[0062] For example, in game development, the above custom playback function can be used to implement a variety of advanced functions. For example, when a player performs a specific action in the game, a predefined animation sequence can be played through a custom playback instruction. Assuming that the player triggers a mechanism at a certain level in the game, the system can generate a custom playback instruction based on the user's input to play a specific animation, such as a special effect animation of the mechanism being activated. These animations can be read from the basic material set and played according to custom playback parameters, such as playing at different speeds, starting from a specific frame, etc.

[0063] In addition, in the game's cutscenes or plot development, developers can use custom playback instructions to achieve more complex narrative effects. For example, when a player triggers a plot point, the system can generate custom playback instructions based on the user's choice, read the corresponding animation material from the basic material set, and play it in a specific order and speed. In this way, the game can present different plot development paths based on the player's different choices, improving the game's immersion and interactivity.

[0064] This custom playback feature is also very useful in video editing software. Users can customize the playback effect of video clips through simple interactive operations. For example, users can choose to start playback from a specific frame of the video and set the playback speed and playback order. This feature is particularly useful when making trailers or video introductions. Users can quickly preview different parts of the video and adjust the playback parameters as needed to obtain the best display effect.

[0065] In multimedia presentations or teaching applications, the custom playback function allows speakers or teachers to flexibly adjust the presentation content according to the on-site interaction. For example, in a multimedia presentation, the speaker can choose to start playback from a specific frame and play a specific part of the content at different speeds through simple interactive operations. This allows the speaker to adjust the presentation rhythm at any time according to the audience's reactions or questions, enhancing the interactivity and effectiveness of the presentation.

[0066] In virtual reality (VR) or augmented reality (AR) applications, custom playback can also provide a richer user experience. Users can trigger custom playback instructions through gestures or voice commands to control the playback of animations or video content in the virtual environment. For example, in a VR game, users can use gestures to choose to play an animation from a specific frame and adjust the playback speed to achieve a more realistic interactive effect.

[0067] In short, by generating custom playback instructions in response to the specified interactive operation input by the user, and reading the basic materials from the basic material set for custom playback according to these instructions, this implementation method has broad application prospects in games, video editing, multimedia presentations and other multimedia applications. It can not only enhance the user experience, but also improve the flexibility and interactivity of the application, making the display of multimedia content more colorful.

[0068] In some modified implementations, the above step S103 reads the basic material from the basic material set for playback according to the reference information recorded in the metadata file, which may include:

[0069] Parsing the metadata file to obtain a data structure recording reference information between the sequence frame and the basic material, wherein the data structure includes an array or a mapping table;

[0070] loading the data structure into memory;

[0071] The data structure is traversed in the memory, and basic materials are read from the basic material set for playback according to the traversed reference information.

[0072] Among them, the parsing process of the metadata file can include converting the metadata file in JSON, XML or other formats into data structures such as arrays or mapping tables that can be processed by the program; by loading the parsed data structure into the memory, it helps to quickly access and process, because the fast memory access speed is conducive to improving playback efficiency; by traversing the data structure in the memory for playback, it can ensure that the basic materials are read in the correct order for playback.

[0073] In some modified implementations, the metadata file further records display parameters of each of the basic materials at each corresponding sequence frame position;

[0074] Correspondingly, the above step S103, reading the basic material from the basic material set for playing according to the reference information recorded in the metadata file, may include:

[0075] Reading basic material from the basic material set according to the reference information recorded in the metadata file;

[0076] The basic material is rendered and then played according to the display parameters of the basic material at the sequence frame position.

[0077] Display parameters refer to the various properties required for the basic material to be displayed in the sequence frame where it needs to be displayed, such as position, size, transparency, rotation angle, layer, etc. By setting these display parameters, it can be ensured that the display effect of the basic material in the corresponding sequence frame meets the design requirements, thereby achieving more refined content control. For example, if a picture material needs to appear in the center of the screen in a certain frame and needs to be enlarged, the display parameters of the material include information such as position coordinates and size ratio.

[0078] It should be noted that the material identifier of each basic material is unique, but its display parameters are not necessarily unique. For example, a basic material may need to have different display effects in different sequence frames. Therefore, different display parameters need to be set for different sequence frames. In order to achieve this, in the process of generating metadata files, it is necessary to determine the display parameters of each basic material corresponding to each sequence frame, and add these display parameters corresponding to the sequence frame and basic material to the metadata file. Accordingly, when playing, it is also necessary to render each basic material according to the display parameters of its corresponding sequence frame before playing.

[0079] In this implementation, the metadata file not only records the reference information between the sequence frame and the basic material, but also records the display parameters of each basic material in each corresponding sequence frame, which means that the metadata file not only records which basic materials are referenced by which frames, but also records in detail the display parameters of each basic material in a specific frame, such as position, size, rotation angle, transparency, etc. This enables the playback system to accurately render the material according to the display parameters recorded in the metadata file while reading the basic material, thereby achieving high-quality playback effects.

[0080] In specific implementation, the playback engine needs to parse the metadata file and extract the data structure that records the reference information between the sequence frame and the basic material. This data structure can be in the form of an array or a mapping table, depending on the actual application scenario; then, the data structure is loaded into the memory for fast access and processing; then, the data structure is traversed in the memory, and the corresponding basic material is read from the basic material set according to the traversed reference information. After reading the basic material, the basic material is rendered according to the display parameters recorded in the metadata file. This rendering process may include adjusting the material's position, size, transparency and other attributes to ensure that the display effect of the material at a specific frame position meets expectations. Finally, the rendered basic material is played.

[0081] Through this implementation, not only can the basic material be read and played efficiently, but the visual effect of the material can also be dynamically adjusted according to specific display parameters, thereby obtaining richer and more complex sequence frame digital content and improving the user experience.

[0082] Based on any of the foregoing implementations, in some modified implementations, the method may further include:

[0083] Determining, according to the metadata file, whether the played basic material corresponds to a sequence frame position that has not been played;

[0084] If there is a sequence frame position that has not been played, the basic material is cached in a cache space, wherein the cache space includes a memory, a processor cache or a video memory;

[0085] If there is no corresponding sequence frame position that has not been played, the basic material loaded in the cache space is destroyed.

[0086] Through this implementation, during the playback process, it can be checked whether the basic material currently being played will still be referenced in subsequent sequence frames. This checking process is to optimize memory management and improve playback efficiency.

[0087] In the specific implementation, first, before playing a basic material, the system will determine whether the material will be used in subsequent sequence frames based on the reference information in the metadata file. If it is found that the basic material is still referenced in subsequent frames, the system will retain the basic material in the cache space so that it can be quickly read when it is used again. The cache space can be memory, processor cache, or video memory, etc., depending on the actual application scenario and performance requirements. For example, if subsequent frames need to frequently access the same material, it can be cached in memory; if fast access is required to increase rendering speed, it can be cached in video memory.

[0088] If the system determines that the currently playing basic material is no longer referenced in the subsequent sequence frames, it will destroy the basic material loaded in the cache space to release the occupied memory or cache space. This can effectively avoid unnecessary memory usage and improve the utilization of system resources. For example, when a basic material is only referenced once in a long sequence, the system will destroy its cached copy immediately after playing the material to make room for other materials.

[0089] For example, suppose we have a video sequence in which base material A is referenced in frames 1, 10, and 20. When the system plays to frame 1, it determines from the metadata file that material A is still referenced in subsequent frames, so it caches material A in memory. When playing to frame 10, the system uses material A again and continues to retain its cached copy. After playing to frame 20, the system checks the metadata file again and finds that material A is no longer referenced in subsequent frames, so it destroys the cached material A in memory to free up memory space.

[0090] In this way, the cache space can be dynamically managed during playback to ensure that only basic materials that will be referenced in subsequent frames are cached, thereby improving playback efficiency and resource utilization.

[0091] Based on the above implementation, in some modified implementations, judging whether the played basic material corresponds to a sequence frame position that has not been played according to the metadata file may include:

[0092] Traversing the metadata file to determine the last display frame position of each of the basic materials;

[0093] Determine whether the last display frame corresponding to the played basic material has been played;

[0094] If not played, determining that the played basic material corresponds to a sequence frame position that has not been played;

[0095] If it has been played, it is determined that the played basic material corresponds to no sequence frame position that has not been played.

[0096] In the specific implementation, first, traverse the metadata file to find the last display position of each basic material in the entire sequence frame, that is, the last display frame position. This traversal process can be completed by scanning the data structure in the metadata file. The data structure can be in the form of an array or a mapping table, etc., which records the basic material referenced by each sequence frame position and its display parameters. During the traversal process, the system records the position where each basic material last appeared in the sequence frame.

[0097] Next, determine whether the last display frame corresponding to the basic material that has been played has been played. If the last display frame of the basic material has not been played, it means that the material will still be referenced in subsequent sequence frames. At this time, the system determines that the basic material corresponds to sequence frames that have not been played, and caches them in the memory, processor cache or video memory so that they can be quickly read when used again later. On the contrary, if the last display frame of the basic material has been played, it means that the material will no longer be referenced in subsequent sequence frames. At this time, the system determines that there are no sequence frames that have not been played corresponding to the basic material, and destroys the basic material loaded in the cache space, releasing the occupied memory or cache space.

[0098] For example, suppose there is a video sequence in which basic material A is referenced in frames 1, 10, and 20, and basic material B is referenced in frames 5 and 15. After the system traverses the metadata file, it records that the last displayed frame of basic material A is the 20th frame, and the last displayed frame of basic material B is the 15th frame.

[0099] When the system plays to the 1st frame, both basic materials A and B are loaded into the cache space. When playing to the 5th frame, the system checks the metadata file again and finds that the last displayed frame of basic material B is the 15th frame, which has not been played yet, so it continues to cache basic material B. When playing to the 10th frame, the system checks basic material A again and finds that its last displayed frame is the 20th frame, which has not been played yet, so it continues to cache basic material A. When playing to the 15th frame, the system checks basic material B and finds that its last displayed frame is the 15th frame, which has been played, so it destroys the basic material B loaded in the cache space. When playing to the 20th frame, the system checks basic material A again and finds that its last displayed frame is the 20th frame, which has been played, so it destroys the basic material A loaded in the cache space.

[0100] Through this implementation, the cache space can be dynamically managed during the playback process to ensure that only basic materials that will be referenced in subsequent frames are cached, thereby improving playback efficiency and resource utilization.

[0101] In addition, in some other modified implementations, the method may further include:

[0102] Determine the number of times each of the basic materials is referenced by frames of different sequences according to the metadata file;

[0103] The basic material corresponding to the reference count greater than a preset reference count threshold is cached into a cache space, wherein the cache space includes a memory, a processor cache or a video memory.

[0104] In the specific implementation, first, the system traverses the metadata file and counts the number of times each basic material is referenced in the entire sequence frame. This statistical process can be done by building a counter to record the number of times each basic material is referenced. For example, a data structure such as a dictionary or a hash table can be used to record the ID of each basic material and its corresponding number of references. In addition, a reference count threshold can be preset. This threshold can be adjusted according to actual conditions, for example, it can be determined based on factors such as the availability of system resources and the requirements for playback efficiency. After counting the number of references of all basic materials, the system will check whether the number of references of each basic material exceeds the preset threshold. If the number of references of a basic material exceeds the preset threshold, the system will cache it in the cache space. The purpose of this is to ensure that frequently used materials can be accessed quickly and improve playback efficiency.

[0105] For example, suppose there is a video sequence in which basic material A is referenced 5 times, basic material B is referenced 2 times, and basic material C is referenced 10 times. The system sets a preset reference count threshold of 3. In the process of traversing the metadata file, the system records the reference count of each basic material and performs statistics. The statistical results show that the reference counts of basic materials A and C are 5 and 10 times respectively, both exceeding the preset threshold of 3, while the reference count of basic material B is 2 times, which does not exceed the threshold. Therefore, basic materials A and C are cached in a cache space, such as memory or video memory, so that they can be quickly accessed during subsequent playback. When playing to the frame position that references basic materials A and C, the system can directly read these materials from the cache space without reloading, thereby improving playback efficiency. For basic material B, since its reference count does not exceed the threshold, the system will not cache it, but reload it each time it is played.

[0106] In this way, the cache space can be dynamically managed according to the reference frequency of the basic materials, ensuring that frequently used materials can be quickly accessed, thereby improving playback efficiency and resource utilization. For example, in a complex animation or video sequence, some basic materials may be reused in multiple frames. By caching these frequently used materials, loading time can be significantly reduced, improving overall playback quality and user experience.

[0107] In practical applications, it is often necessary to embed an existing sequence frame digital content (such as a video clip or animation) into a new synchronous digital content (such as a video or special effects) with different duration and frame rate requirements for video editing, film production, advertising editing or game development, etc. However, the frame rate, duration and other playback parameters of the sequence frame digital content and the synchronous digital content may be different. Therefore, it is necessary to perform frame bit scaling on the sequence frame digital content so that the sequence frame digital content and the synchronous digital content parameters are consistent for synchronous playback. Therefore, based on any of the above-mentioned embodiments, in some modified embodiments, the method may further include:

[0108] In response to the synchronous playback instruction, obtaining playback parameters of the synchronous digital content to be displayed synchronously with the sequence frame digital content;

[0109] By performing frame scaling on the metadata file, the playback parameters of the sequence frame digital content and the synchronous digital content are made consistent;

[0110] The sequence frame digital content and the synchronization digital content are synchronously played according to the metadata file after frame bit scaling.

[0111] Frame scaling is a technical means for adjusting the frame information of a sequence of digital content frames to synchronize it with another video or animation sequence. The frame information may include but is not limited to frame rate or frame rate, etc. One of the purposes of frame scaling may be to ensure that different video or animation clips can maintain a consistent frame rate and / or duration when playing, thereby achieving synchronous playback or seamless transition.

[0112] Frame scaling includes the following aspects:

[0113] 1. Adjust frame rate: Adjust the frame rate of one video or animation sequence to the same rate as another sequence. For example, adjust a 25 frames per second (25fps) video to 30 frames per second (30fps).

[0114] 2. Adjust the frame rate (equivalent to adjusting the duration): Adjust the frame rate of a video or animation sequence to the same frame rate as another digital content to achieve matching of the frame rate or duration. For example, adjust a 1-second video to 2 seconds.

[0115] 3. Maintain content consistency: During the adjustment process, try to keep the video or animation content from being distorted or distorted, while ensuring smoothness and continuity of playback.

[0116] Frame scaling can be achieved by at least one of the following methods:

[0117] 1. Linear interpolation: Extend the duration of a video or animation by inserting new frames. For example, evenly distribute 25 frames into 60 frames.

[0118] 2. Repeat frames: Extend the duration of a video or animation by repeating certain frames. For example, insert certain frames repeatedly to fill new frame positions.

[0119] 3. Frame Deletion: Shorten the duration of a video or animation by deleting certain frames. For example, select 25 frames from 60 frames to shorten the duration.

[0120] 4. Frame Fusion: Shorten the duration of a video or animation by merging some adjacent frames. For example, merge two frames into one.

[0121] In a specific implementation, first, the system responds to a synchronous playback instruction, which usually occurs when a user requests to play multiple digital contents simultaneously, such as synchronously playing a video and a PPT in a video conference, or synchronously playing background music and video effects in a game. In this case, the user may trigger the synchronous playback instruction through a specific user interface operation.

[0122] When the system receives a synchronous playback instruction, it will obtain the playback parameters of the synchronous digital content to be displayed synchronously with the sequence frame digital content. These playback parameters include but are not limited to the playback start frame, playback speed, playback frame rate, etc. For example, if the user wants to display subtitles while the video is playing, the system needs to know the start time, duration and other parameters of the subtitles. Next, the system performs frame scaling on the metadata file so that the playback parameters of the sequence frame digital content and the synchronous digital content are consistent. Among them, frame scaling refers to adjusting the frame information in the metadata file to match the playback parameters of the synchronous digital content. For example, if the playback speed of the video is 30 frames per second, and the display speed of the subtitles is 24 frames per second, the system needs to adjust the frame information in the metadata file to make it consistent with the display speed of the subtitles. Through frame scaling, the video and subtitles can be ensured to be displayed synchronously. Finally, the system synchronously plays the sequence frame digital content and the synchronization digital content according to the metadata file after frame bit scaling. This means that the system will ensure that the sequence frame digital content and the synchronization digital content are always synchronized during playback according to the adjusted metadata file. For example, while playing the video, the subtitles should be consistent with the dialogue or scene changes in the video to ensure that the audience can see the video content and subtitles synchronously.

[0123] For example, suppose you need to apply a 1 second 25 frame (25fps) sequence frame animation to a 2 second 30 frame (30fps) special effect. You can implement frame scaling by following the steps below to ensure that the two can be played synchronously.

[0124] 1. Calculate the total number of frames of special effects:

[0125] The special effect duration is 2 seconds, and the frame rate is 30 frames per second (30fps), so the total number of frames is 2 seconds × 30 frames / second = 60 frames.

[0126] 2. Fill the 25 frames of the sequence frame animation evenly to 60 frames:

[0127] The total number of frames in the sequence frame animation is 25, and it needs to be evenly filled to 60 frames. To achieve this, a mathematical formula can be used to describe this process: j = 60 / 25*i

[0128] Where i is the index of the original sequence frame (from 0 to 24) and j is the index of the scaled new frame (from 0 to 59).

[0129] 3. Processing decimal parts:

[0130] Decimal numbers can be rounded or floored. For example, if you choose to round, you can use the round() function; if you choose to floor, you can use the floor() function.

[0131] 4. Generate a new 60-frame sequence:

[0132] A new 60-frame sequence is generated according to the above formula. Specifically, for each i (from 0 to 24), the corresponding j is calculated and the content of the original frame i is copied to the position of the new frame j.

[0133] 5. Synchronous playback:

[0134] The 60-frame sequence obtained by frame scaling of the 1-second 25-frame (25fps) sequence frame animation is played synchronously with the 2-second 30-frame special effects.

[0135] The above examples can be referenced Figure 3 To understand, Figure 3 A schematic diagram of frame scaling is provided for an embodiment of the present application, in which the upper 1s 25fps is the metadata file content of the digital content of the sequence frames before frame scaling, and the lower 2s 30fps is the metadata file content of the digital content of the sequence frames after frame scaling.

[0136] Through the above implementation, the synchronous playback requirements of multiple digital contents can be effectively handled, and the playback parameters of different contents can be ensured to be consistent, so as to achieve high-quality synchronous playback effects. Whether it is the synchronous display of video and PPT in video conferences, or the synchronous playback of background music and video special effects in games, it can be effectively supported and realized through this implementation.

[0137] It should be noted that, in actual applications, existing sequence frame animations need to be played frame by frame and a picture needs to be set for each frame, which not only leads to a large resource package of sequence frame digital content, which requires a large amount of storage space and a heavy network transmission burden, but also because it can only be played in a preset order, designers have to be constrained by linear structures when conceiving animations, and it is difficult to create animation effects that dynamically respond to changes in user behavior or game status. In this regard, the sequence frame digital content playback method provided in any of the above embodiments of the present application achieves improved creative freedom and allows users to customize playback through a series of technical means, thereby significantly improving user experience and technical effects in many aspects.

[0138] Specifically, some implementations of the present scheme can parse metadata files and load data structures into memory, so that users can generate custom playback instructions through interactive operations, thereby achieving dynamic playback control. This approach can not only improve the flexibility of the creative process, but also enhance the user's creative freedom.

[0139] First, the application scheme allows users to generate custom playback instructions through interactive operations, which means that users can dynamically adjust playback parameters according to their creative needs. For example, users can specify to start playback from a specific frame of the video and set parameters such as playback speed and playback order. This instant response mechanism allows users to adjust the playback effect more intuitively, thereby achieving instant feedback and adjustment during the creative process. In this way, when users are making videos, animations or game special effects, they can adjust the playback parameters as needed at any time, improving creative efficiency and freedom.

[0140] Secondly, the frame scaling technology in this solution allows users to adjust content with different frame rates to the same playback parameters, thereby achieving synchronous playback. For example, users can adjust a 1-second 25-frame sequence frame animation to be played synchronously with a 2-second 30-frame special effect. In this way, users can combine different types of digital content more flexibly to create richer and more diverse works. This technology not only improves the coordination of playback, but also enables users to more freely match different materials when producing multimedia content, thereby achieving more complex creative expressions.

[0141] In addition, this solution allows users to quickly access and process the reference information in the metadata file by loading it into a data structure in memory (such as an array or a mapping table). Traversing the data structure in memory and reading the basic material for playback based on the reference information not only improves playback efficiency, but also allows users to adjust playback parameters in real time during playback. For example, users can dynamically adjust the playback speed or switch the playback order during playback, and the system can respond to these operations quickly to ensure smooth and continuous playback.

[0142] Through these technical means, the present application scheme can not only improve creative freedom, but also allow users to customize playback. Users can create and adjust multimedia content more flexibly, thereby obtaining higher creative freedom and better user experience in multiple fields such as video editing, game development, and multimedia presentations. This method can not only enhance the flexibility and innovation in the creative process, but also enable users to achieve richer and more diverse creative expressions in a variety of scenarios. For example, in video editing, users can easily play video clips with different frame rates synchronously to create smooth transition effects; in game development, users can adjust the playback speed and order of special effects in real time to achieve more realistic visual effects.

[0143] In summary, the present application scheme can achieve the goal of increasing creative freedom and allowing customized playback by dynamically generating playback instructions, frame scaling technology and data structure management in memory. This approach can not only improve flexibility and innovation in the creative process, but also enable users to achieve richer and more diverse creative expressions in a variety of scenarios, thereby greatly improving user experience and technical effects.

[0144] Based on the same inventive concept, a sequence frame digital content playback device is also provided in an embodiment of the present application. The method corresponding to the device may be the sequence frame digital content playback method in the aforementioned embodiment, and its principle of solving the problem is similar to that of the method. The sequence frame digital content playback device provided in an embodiment of the present application can implement the aforementioned sequence frame digital content playback method, and the sequence frame digital content playback device may be implemented by software, hardware, or a combination of software and hardware. For example, the sequence frame digital content playback device may include integrated or separate functional modules or units to perform the corresponding steps in the aforementioned methods. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts may refer to the partial description of the method embodiment. The device embodiment described below is merely illustrative. Please refer to Figure 4 , the sequence frame digital content playback device may include:

[0145] The resource package acquisition module 101 is used to acquire the resource package of the sequence frame digital content to be played;

[0146] The resource package parsing module 102 is used to parse the resource package to obtain a basic material set and a metadata file, wherein the basic material set includes multiple basic materials that are not repeated, and the metadata file records the reference information of the sequence frame positions of the sequence frame digital content to the basic materials, and at least one of the basic materials is referenced by multiple sequence frame positions;

[0147] The resource package playing module 103 is used to read basic materials from the basic material set for playing according to the reference information recorded in the metadata file.

[0148] In some modified implementations, the resource package playing module 103 may include:

[0149] A metadata parsing unit, used to parse the metadata file to obtain a data structure recording reference information between the sequence frame and the basic material, wherein the data structure includes an array or a mapping table;

[0150] A data loading unit, used for loading the data structure into a memory;

[0151] The traversal and playback unit is used to traverse the data structure in the memory, and read the basic material from the basic material set for playback according to the traversed reference information.

[0152] In some modified implementations, the metadata file further records display parameters of each of the basic materials at each corresponding sequence frame position;

[0153] The resource package playing module 103 may include:

[0154] A material reading unit, configured to read the basic material referenced by the sequence frame from the basic material set in the order of the sequence frame according to the reference information recorded in the metadata file;

[0155] The material rendering unit is used to render the basic material according to the display parameters of the basic material in the sequence frame position and then play it.

[0156] In some variations, the device further comprises:

[0157] A remaining frame position detection module is used to determine whether the played basic material corresponds to a sequence frame position that has not been played according to the metadata file;

[0158] A first material cache module, configured to cache the basic material in a cache space if there is a sequence frame position that has not been played, wherein the cache space includes a memory, a processor cache or a video memory;

[0159] The cache destroying module is used to destroy the basic material loaded in the cache space if there is no corresponding sequence frame position that has not been played.

[0160] In some modified implementations, the remaining frame position detection module includes:

[0161] A remaining frame position detection unit, used for traversing the metadata file to determine the last display frame position of each of the basic materials;

[0162] A played judgment unit is used to judge whether the last displayed frame corresponding to the played basic material has been played;

[0163] a non-playing determination unit, for determining, if the basic material that has been played has a sequence frame position that has not been played;

[0164] The played determination unit is used to determine that if the basic material has been played, there is no sequence frame position that has not been played corresponding to the basic material that has been played.

[0165] In some variations, the device further comprises:

[0166] A reference count determination module, used to determine the reference count of each basic material referenced by different sequence frames according to the metadata file;

[0167] The second material cache module is used to cache the basic material corresponding to the reference number greater than a preset reference number threshold into a cache space, wherein the cache space includes a memory, a processor cache or a video memory.

[0168] In some modified implementations, the resource package playing module 103 may include:

[0169] A custom instruction generating unit, used to generate a custom playback instruction in response to a specified interactive operation input by a user;

[0170] A custom parameter determination unit, configured to determine a custom playback parameter according to the custom playback instruction and the metadata file, wherein the playback parameter includes at least one of a playback start frame, a playback sequence, a playback speed, a playback frame number, a playback frame rate, and an end frame;

[0171] The custom playback unit is used to read the basic material from the basic material set for custom playback according to the custom playback parameters and the reference information.

[0172] In some variations, the device further comprises:

[0173] A multi-content playback response module, configured to obtain playback parameters of synchronized digital content to be displayed synchronously with the sequence frame digital content in response to a synchronized playback instruction;

[0174] A frame scaling module, used for scaling the metadata file so that the playback parameters of the sequence frame digital content and the synchronous digital content are consistent;

[0175] The synchronous playing module is used to synchronously play the sequence frame digital content and the synchronous digital content according to the metadata file after frame bit scaling.

[0176] The sequential frame digital content playback device provided in the embodiment of the present application and the sequential frame digital content playback method provided in the aforementioned embodiment of the present application are based on the same inventive concept and have the same beneficial effects.

[0177] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application, and the method corresponding to the electronic device may be the sequential frame digital content playback method in the aforementioned embodiment, and the principle of solving the problem is similar to that of the method. The electronic device provided in an embodiment of the present application includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the sequential frame digital content playback method and / or technical solution of the aforementioned multiple embodiments of the present application.

[0178] The electronic device may be a user device, or a device formed by integrating a user device and a network device through a network, or may be an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.

[0179] Figure 5 The structure of an electronic device suitable for implementing the method and / or technical solution in the embodiment of the present application is shown, and the electronic device 1200 includes a central processing unit (CPU, Central Processing Unit) 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 1202 or the program loaded from the storage part 1208 to the random access memory (RAM, Random Access Memory) 1203. In RAM 1203, various programs and data required for system operation are also stored. CPU 1201, ROM 1202 and RAM1203 are connected to each other through bus 1204. Input / output (I / O, Input / Output) interface 1205 is also connected to bus 1204.

[0180] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), an LED display, an OLED display, etc., and a speaker, etc.; a storage section 1208 including one or more computer-readable media such as a hard disk, an optical disk, a magnetic disk, a semiconductor memory, etc.; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet.

[0181] In particular, the methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the central processing unit (CPU) 1201, the above functions defined in the method of the present application are executed.

[0182] Another embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the methods and / or technical solutions of any one or more embodiments of the present application described above.

[0183] Specifically, the present embodiment may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination therewith.

[0184] Computer readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0185] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0186] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0187] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0188] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0189] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or page components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0190] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0191] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0192] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0193] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

[0194] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in a device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A method for playing sequential frame digital content, wherein: The method comprises: Obtain a resource package of the sequence frame digital content to be played; Parsing the resource package to obtain a basic material set and a metadata file, wherein the basic material set includes a plurality of basic materials that are not repeated, and the metadata file records reference information of the sequence frame positions of the sequence frame digital content to the basic materials, and at least one of the basic materials is referenced by a plurality of the sequence frame positions; According to the reference information recorded in the metadata file, basic materials are read from the basic material set for playback.

2. The method for playing sequential frame digital content according to claim 1, wherein: The step of reading the basic material from the basic material set for playing according to the reference information recorded in the metadata file includes: Parsing the metadata file to obtain a data structure recording reference information between the sequence frame and the basic material, wherein the data structure includes an array or a mapping table; loading the data structure into memory; The data structure is traversed in the memory, and basic materials are read from the basic material set for playback according to the traversed reference information.

3. The method for playing sequential frame digital content according to claim 1, wherein: The metadata file also records the display parameters of each of the basic materials in each sequence frame position corresponding to it; The step of reading the basic material from the basic material set for playing according to the reference information recorded in the metadata file includes: According to the reference information recorded in the metadata file, the basic material referenced by the sequence frame is read from the basic material set in the order of the sequence frame; The basic material is rendered and then played according to the display parameters of the basic material at the sequence frame position.

4. The method for playing sequential frame digital content according to claim 1, wherein: The method further comprises: Determining, according to the metadata file, whether the played basic material corresponds to a sequence frame position that has not been played; If there is a sequence frame position that has not been played, the basic material is cached in a cache space, wherein the cache space includes a memory, a processor cache or a video memory; If there is no corresponding sequence frame position that has not been played, the basic material loaded in the cache space is destroyed.

5. The method for playing sequential frame digital content according to claim 4, wherein: The step of judging whether the played basic material corresponds to a sequence frame position that has not been played according to the metadata file includes: Traversing the metadata file to determine the last display frame position of each of the basic materials; Determine whether the last displayed frame corresponding to the played basic material has been played; If not played, determining that the played basic material corresponds to a sequence frame position that has not been played; If it has been played, it is determined that the played basic material corresponds to no sequence frame position that has not been played.

6. The method for playing sequential frame digital content according to claim 1, wherein: The method further comprises: Determine the number of times each of the basic materials is referenced by frames of different sequences according to the metadata file; The basic material corresponding to the reference count greater than a preset reference count threshold is cached into a cache space, wherein the cache space includes a memory, a processor cache or a video memory.

7. The method for playing sequential frame digital content according to claim 1, wherein: The step of reading the basic material from the basic material set for playing according to the reference information recorded in the metadata file includes: In response to a specified interactive operation input by a user, generating a custom playback instruction; Determine custom playback parameters according to the custom playback instruction and the metadata file, wherein the playback parameters include at least one of a playback start frame, a playback order, a playback speed, a playback frame number, a playback frame rate, and an end frame; According to the custom playback parameters and the reference information, basic materials are read from the basic material set for custom playback.

8. The method for playing sequential frame digital content according to claim 1, wherein: The method further comprises: In response to the synchronous playback instruction, obtaining playback parameters of the synchronous digital content to be displayed synchronously with the sequence frame digital content; By performing frame scaling on the metadata file, the playback parameters of the sequence frame digital content and the synchronous digital content are made consistent; The sequence frame digital content and the synchronization digital content are synchronously played according to the metadata file after frame bit scaling.

9. A sequential frame digital content playback device, wherein: The device comprises: A resource package acquisition module is used to acquire a resource package of the sequence frame digital content to be played; A resource package parsing module, used to parse the resource package to obtain a basic material set and a metadata file, wherein the basic material set includes a plurality of basic materials that are not repeated, and the metadata file records reference information of the sequence frame positions of the sequence frame digital content to the basic materials, and at least one of the basic materials is referenced by a plurality of the sequence frame positions; The resource package playing module is used to read the basic material from the basic material set for playing according to the reference information recorded in the metadata file.

10. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

11. A computer readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Animation resource processing method and device

    CN107886560A

  • Multimedia resource processing method and device and electronic equipment

    CN114359017A

  • Frame animation playing method and device, equipment and storage medium

    CN116320615A

  • Multimedia service data processing method and apparatus, server, and storage medium

    US20190220476A1