Material package generation method and device, equipment and computer medium

By classifying common resources and differential resources in digital content creation, and generating information reference information for format resources, packaging and generating material packages solves the problem of independent preparation of the plain material packages in the existing technology, improved production and maintenance efficiency, reduce Cost.

CN119356668AActive Publication Date: 2025-01-24SHANGHAI BILIBILI TECH CO LTD

Patent Information

Application Number
CN202411397376.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-01-24
Estimated Expiration
2044-10-08

AI Technical Summary

Technical Problem

In the field of digital content creation and distribution, the prior art requires independent preparation of material packages for each frame, resulting in low production and maintenance efficiency and high cost.

Method used

By displaying demand information according to the multi -format content of the target digital content, determine public resources and differentiated resources, and generate information reference information of format resources, create format resource description files, and finally pack out to generate material packages.

Benefits of technology

It realizes the integration of all resources required for different frames in one material package, improves the production efficiency of material packages, reduces production costs, simplifies the production process, and improves maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356668A_ABST
    Figure CN119356668A_ABST
Patent Text Reader

Abstract

The invention provides a material package generation method, device and equipment and a computer readable medium, and the method comprises the steps: determining all content resources used for generating target digital content according to the multi-picture display demand information of the target digital content, and enabling the content resources to comprise a public resource for multiplexing a plurality of pictures and a difference resource for a single picture to use; the method comprises the steps that firstly, according to content resources needed by each picture, picture resource reference information corresponding to each picture is determined, then a picture resource description file is created according to the picture resource reference information, and according to the picture resource description file and all the content resources, a material package is generated through packaging; by dividing the content resources into the public resources and the difference resources and associating the public resources and the difference resources with the pictures through the reference relation, cross-picture efficient reuse of the public resources can be achieved, and compared with the prior art, the production process of the material package can be effectively simplified, the workload of a designer can be reduced, the production efficiency of the material package can be improved, and the production cost can be 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 material package generation method, device, equipment and computer-readable medium. 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 content creation and distribution, with the popularization of mobile devices and diversified display platforms, multi-frame adaptation of special effects materials has become a key issue that needs to be solved urgently.

[0004] Traditionally, in order to adapt to different display requirements, such as horizontal and vertical modes, designers need to prepare a set of materials for each frame, which means that each frame requires a complete set of resources. Therefore, in order to achieve multi-frame adaptation of special effects, each special effect needs to produce multiple complete material packages, which requires designers to spend a lot of work on material production and maintenance, which is not only inefficient but also costly.

[0005] In view of the above problems, it is necessary to provide a technical solution for generating material packages with higher efficiency and lower cost. Summary of the invention

[0006] Multiple aspects of the present application provide a material package generation method, device, equipment and computer-readable storage medium to improve the production and maintenance efficiency of the material package and reduce the production and maintenance cost of the material package.

[0007] In one aspect of the present application, a method for generating a material package is provided, wherein the method comprises:

[0008] Determine all content resources for generating the target digital content according to the multi-frame display requirement information of the target digital content, wherein the content resources include common resources for multiplexing of multiple frames and differential resources for use of a single frame;

[0009] Determine frame resource reference information corresponding to each frame according to the content resources required by each frame, wherein the frame resource reference information corresponding to the multiple frames includes reference information to the same public resource;

[0010] Creating a frame resource description file according to the frame resource reference information;

[0011] According to the frame resource description file and all the content resources, a material package is generated by packaging.

[0012] Another aspect of the present application provides a material package generation device, wherein the device includes:

[0013] A content resource determination module, used to determine all content resources for generating target digital content according to the multi-frame display requirement information of the target digital content, wherein the content resources include common resources for multiplexing of multiple frames and differential resources for use of a single frame;

[0014] A reference information determination module, used to determine frame resource reference information corresponding to each frame according to the content resources required by each frame, wherein the multiple frame resource reference information corresponding to the multiple frames includes reference information to the same public resource;

[0015] A description file generation module, used to create a frame resource description file according to the frame resource reference information;

[0016] The resource packaging module is used to package and generate a material package according to the frame resource description file and all the content resources.

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

[0018] at least one processor; and

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

[0020] 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 so that the at least one processor can execute the material package generation method as described above.

[0021] In another aspect of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions can be executed by a processor to implement the material package generation method as described above.

[0022] In the solution provided by the embodiment of the present application, all content resources for generating the target digital content are determined according to the multi-frame display requirement information of the target digital content, wherein the content resources include common resources for multiple frames to be reused and differential resources for a single frame to be used, and then according to the content resources required for each frame, frame resource reference information corresponding to each frame is determined, wherein the multiple frame resource reference information corresponding to the multiple frames includes reference information to the same common resource, and then a frame resource description file is created according to the frame resource reference information, and then, according to the frame resource description file and the content resources, a material package is packaged to generate a material package, so that All resources required for different frames are integrated in one material package, and the internal frame resource description file is used to accurately guide the reference of resources under different frames. By dividing the content resources into public resources and differential resources and associating them with the frames through reference relationships, efficient reuse of public resources across frames can be achieved. Compared with the existing technology, there is no need to generate complete material packages for each frame separately, which can effectively simplify the production process of material packages, reduce the workload of designers, improve the production efficiency of material packages and reduce production costs. In addition, later maintenance only needs to maintain individual content resources and reference information in this material package, so it can also effectively improve maintenance efficiency and reduce maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] 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.

[0024] 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:

[0025] Figure 1 A schematic diagram of a process for generating a material package according to an embodiment of the present application;

[0026] Figure 2 A schematic diagram of the structure of a material package provided in an embodiment of the present application;

[0027] Figure 3 A schematic diagram of the structure of a material package generation device provided in an embodiment of the present application;

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

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

[0030] 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.

[0031] 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.

[0032] 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.

[0033] 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.

[0034] In view of the problems of low production and maintenance efficiency and high cost caused by the need to produce a complete set of material packages for each frame when producing special effects in the prior art, the embodiments of the present application provide a material package generation method, device, equipment and computer-readable storage medium to improve the production and maintenance efficiency of material packages and reduce the production and maintenance costs of material packages. It determines all content resources for generating target digital content according to multi-frame display demand information of target digital content, wherein the content resources include public resources for multiple frames to be reused and differential resources for a single frame to be used, and then determines frame resource reference information corresponding to each frame according to the content resources required for each frame, wherein the multiple frame resource reference information corresponding to the multiple frames includes reference information to the same public resource, and then determines the frame resource reference information corresponding to each frame according to the frame resource reference information. The information creates a frame resource description file. Next, according to the frame resource description file and all the content resources, a material package is packaged to generate the material package, so that all the resources required for different frames can be integrated in one material package, and the internal frame resource description file is used to accurately guide the reference of resources under different frames. By dividing the content resources into public resources and differential resources and associating them with the frames through reference relationships, the public resources can be efficiently reused across frames. Compared with the prior art, there is no need to generate a complete material package for each frame respectively, which can effectively simplify the production process of the material package, reduce the workload of designers, improve the production efficiency of the material package and reduce the production cost. In addition, the later maintenance only needs to maintain the individual content resources and reference information in the material package, so it can also effectively improve the maintenance efficiency and reduce the maintenance cost.

[0035] The following is an exemplary description of the material package generation method, device, equipment and computer-readable storage medium provided in the present application.

[0036] In actual scenarios, the execution subject of the material package generation 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 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.

[0037] Figure 1 The following is a processing flow of a material package generation method provided in an embodiment of the present application, wherein the method at least includes the following processing steps:

[0038] Step S101, according to the multi-frame display requirement information of the target digital content, all content resources for generating the target digital content are determined, wherein the content resources include common resources for multiplexing of multiple frames and differential resources for use of a single frame.

[0039] Among them, the target digital content can be any digital content to be produced, including but not limited to visual effects (such as video effects, game effects, photography effects, etc.), applications, web pages, games, etc., all of which can achieve more convenient multi-frame support based on the technical solution provided in the embodiments of the present application.

[0040] The above-mentioned content resources refer to various materials used in the process of digital content creation and distribution, including but not limited to multimedia elements such as images, videos, and audio. In order to meet the multi-frame display requirements of the target digital content, the embodiment of the present application needs to determine the content resources required for each of the multiple frames, so as to obtain all content resources that can meet the multi-frame display requirements. In order to realize the cross-frame reuse of content resources, it is necessary to classify all content resources according to the characteristics of whether they can be reused. For example, the content resources that can be reused are classified as common resources, and the content resources that cannot be reused are classified as differential resources.

[0041] Among them, public resources can be shared between different frames, and only one copy is needed, without the need to prepare a separate copy for each frame. For example, some audio files or common background elements may be the same in different frames, so only one copy is needed.

[0042] Differential resources are customized to fit specific frames. For example, the image sizes for horizontal and vertical screens are different, and designers need to provide different image versions for these two frames respectively.

[0043] In some modified implementations, step S101, determining all content resources for generating target digital content according to multi-frame display requirement information of the target digital content, may include:

[0044] Acquire multi-frame display requirement information of target digital content, wherein the multi-frame display requirement information includes content resource requirement information corresponding to each frame required to display the target digital content;

[0045] Checking for duplicate content in the multi-frame display demand information, and adding a classification identifier to the content resource demand information according to the duplicate checking result, wherein the classification identifier includes a common resource identifier and a difference resource identifier;

[0046] Generate a content resource requirement list according to all the content resource requirement information with added classification identifiers;

[0047] Acquire all prepared content resources according to the content resource requirement list.

[0048] In specific implementation, the designer may upload the multi-frame display demand information of the target digital content, and the multi-frame display demand information includes the information of the multiple frames required to be displayed for the target digital content, and the content resource demand information corresponding to each frame, and the content resource demand information may include but is not limited to at least one of the name, format, size, dimension, ratio, clarity, etc. of the content resource required for each frame. After obtaining the multi-frame display demand information, the execution subject of the embodiment of the present application may summarize, organize and classify all content resource demand information according to the multi-frame display demand information. Among them, it is important to check for duplicates of all content resource demand information, and then add classification marks to the content resource demand information according to the duplicate checking results. For example, repeated content resource demand information indicates that the content resource described by it is used by multiple frames, and it is identified as a public resource, and a public resource mark is added to the content resource demand information. Non-repeated content resource demand information indicates that the content resource described by it is only used by one frame, and it is identified as a differential resource, and a differential resource mark is added to the content resource demand information. For example, by comparing at least one of the above information, background music with the same name and format required by multiple frames can be classified as common resources, and pictures required by only one frame can be classified as differential resources. After sorting and classification, a content resource requirement list for producing target digital content can be generated and output. After the designer produces all corresponding content resources according to the content resource requirement list, the execution subject of this application can obtain all the produced content resources according to the content resource requirement list to facilitate the subsequent generation of material packages.

[0049] Through this implementation, multi-frame display requirement information can be automatically detected and classified through human-computer interaction, and a content resource requirement list can be output. The designer can then prepare corresponding content resources based on the content resource requirement list, where only one copy of public resources is required. The device can then obtain all the prepared content resources based on the content resource requirement list to produce subsequent material packages.

[0050] Step S102: determining frame resource reference information corresponding to each frame according to the content resources required by each frame, wherein the frame resource reference information corresponding to the multiple frames includes reference information to the same public resource.

[0051] Among them, the frame resource reference information refers to the information that describes the reference relationship between the frame and the content resource. The embodiment of the present application adopts a reference method to realize the association between the frame and the content resource, and then based on the reference relationship, when a certain frame needs to be displayed, the content resource referenced by it is directly called to load and display. Based on this technical concept, all content resources can be added to a total material package without the need to produce corresponding material packages for each frame, thereby simplifying the production steps of the material package, and realizing efficient reuse of public resources across frames, reducing the workload of designers, improving the production efficiency of the material package and reducing production costs, and later maintenance only needs to maintain the individual content resources and reference information in the material package, so it can also effectively improve maintenance efficiency and reduce maintenance costs.

[0052] Step S103: creating a frame resource description file according to the frame resource reference information.

[0053] After the frame resource reference information is formed, a corresponding frame resource description file can be generated to record the frame resource reference information. In practical applications, JSON, XML or other forms of metadata formats can be used to record the frame resource reference information. The embodiment of the present application does not limit this, and its purpose is to record the frame resource reference information in a simple and easy-to-read manner.

[0054] Step S104: Packing and generating a material package according to the frame resource description file and all content resources.

[0055] After creating the frame resource description file, all content resources that meet the multi-frame display requirement information of the target digital content and the frame resource description file can be packaged together to generate a material package. Subsequently, no matter what frame is displayed, the corresponding content resources can be selected from the material package according to the frame resource description file for loading and display, which is convenient and quick.

[0056] The above-mentioned material package generation method provided in the embodiment of the present application determines all content resources for generating target digital content according to the multi-frame display requirement information of the target digital content, wherein the content resources include common resources for multiple frames to be reused and differential resources for a single frame to be used, and then determines frame resource reference information corresponding to each frame according to the content resources required for each frame, wherein the multiple frame resource reference information corresponding to the multiple frames includes reference information to the same common resource, and then creates a frame resource description file according to the frame resource reference information, and then, based on the frame resource description file and the content resources, packages and generates a material package, from It is possible to integrate all the resources required for different frames in one material package, and use the internal frame resource description file to accurately guide the reference of resources under different frames. By dividing the content resources into public resources and differential resources and associating them with the frames through reference relationships, it is possible to achieve efficient reuse of public resources across frames. Compared with the existing technology, there is no need to generate a complete material package for each frame, which can effectively simplify the production process of the material package, reduce the workload of designers, improve the production efficiency of the material package and reduce production costs. In addition, later maintenance only needs to maintain the individual content resources and reference information in the material package, so it can also effectively improve maintenance efficiency and reduce maintenance costs.

[0057] In some modified implementations, after all content resources for generating target digital content are determined in step S101, the following steps may also be included:

[0058] Generate corresponding annotation information for each of the content resources, wherein the annotation information includes at least one of an identifier, a resource path, a resource type, an applicable frame, and a reusability identifier;

[0059] Correspondingly, the above step S102 determines the frame resource reference information corresponding to each frame according to the content resources required by each frame, which may include:

[0060] According to the content resources required for each frame and the annotation information of each content resource, frame resource reference information corresponding to each frame is determined.

[0061] The identifier is a unique code or name assigned to each content resource, which is used to uniquely identify the resource. The identifier can be a string or a number to ensure that each content resource will not be confused with other content resources in the entire material package. Through the identifier, the rendering engine can quickly locate the specific resource in the frame resource description file and load the corresponding file as needed.

[0062] The resource path refers to the specific location of the content resource in the material package, usually a file system path or a relative path, which is used to instruct the rendering engine how to find and load a specific resource. The path information enables the rendering engine to accurately extract the required resources from the material package based on the reference information in the description file.

[0063] Resource type refers to the specific type of content resource, such as image (JPEG, PNG), video (MP4, AVI), audio (MP3, WAV), etc. Resource type information is used to tell the rendering engine how to handle specific resources. For example, image files may need to be decoded and displayed, while audio files need to be played.

[0064] Applicable aspect ratio refers to the aspect ratio that the content resource is suitable for, such as 16:9 (widescreen), 9:16 (vertical screen), 4:3 (standard screen), etc. Applicable aspect ratio information can help the rendering engine determine when and how to use specific resources. For example, a picture suitable for 16:9 aspect ratio may not be loaded in 9:16 aspect ratio.

[0065] The reusability mark is a mark or label that indicates whether a content resource can be used in different frames. When a resource is marked as a public resource, it means that it can be used in multiple frames and there is no need to prepare a separate copy for each frame. On the contrary, if the resource is not a public resource, it means that it is designed specifically for a specific frame and cannot be used in other frames.

[0066] In an embodiment of the present application, it is necessary to combine the content resource requirement list required for each frame and the annotation information of each resource to generate specific frame resource reference information. In this way, the generated frame resource reference information records which resources are required for each frame, and clarifies the specific location and sharing of these resources through annotation information (especially resource path and reusability identification). For example, for a 16:9 frame, if an image needs to be used, the reference information will include the path and reusability identification of the image. If the image is also applicable to other frames, it will be marked as a "public resource" in the reusability identification.

[0067] For example, suppose you need to generate a material package that supports both 16:9 and 9:16 aspect ratios.

[0068] The resources required for 16:9 aspect ratio include:

[0069] Image A (identifier imgA, path images / imgA.jpg, type image, applicable aspect ratio 16:9, reusability flag false)

[0070] Video B (identifier vidB, path videos / vidB.mp4, type video, applicable aspect ratio 16:9, reusability flag false)

[0071] Audio C (identifier audC, path audios / audC.mp3, type audio, applicable frame all, reusability flag true)

[0072] The resources required for the 9:16 frame include:

[0073] Image D (identifier imgD, path images / imgD.jpg, type image, applicable aspect ratio 9:16, reusability flag false)

[0074] Video E (identifier vidE, path videos / vidE.mp4, type video, applicable aspect ratio 9:16, reusability flag false)

[0075] Audio C (identifier audC, path audios / audC.mp3, type audio, applicable frame all, reusability flag true)

[0076] The frame resource reference information is generated based on the content resources required for each frame and the annotation information of each content resource. The example is as follows:

[0077] Reference information for 16:9 aspect ratio:

[0078] Image A: {"identifier":"imgA","path":"images / imgA.jpg","type":"image","aspectRatio":"16:9","isCommon":false}

[0079] Video B: {"identifier":"vidB","path":"videos / vidB.mp4","type":"video","aspectRatio":"16:9","isCommon":false}

[0080] Audio C: {"identifier":"audC","path":"audios / audC.mp3","type":"audio","aspectRatio":"all","isCommon":true}

[0081] Reference information for the 9:16 frame:

[0082] Image D: {"identifier":"imgD","path":"images / imgD.jpg","type":"image","aspectRatio":"9:16","isCommon":false}

[0083] Video E: {"identifier":"vidE","path":"videos / vidE.mp4","type":"video","aspectRatio":"9:16","isCommon":false}

[0084] Audio C: {"identifier":"audC","path":"audios / audC.mp3","type":"audio","aspectRatio":"all","isCommon":true}

[0085] The above description is merely an exemplary description and does not limit the scope of protection of the present application.

[0086] There may be a variety of implementations for the above step S103. For example, a corresponding frame resource description file may be generated for each frame, or a general frame resource description file may be generated, in which all frames and frame resource reference information thereof are recorded. The embodiments of the present application are not limited thereto, and all of them may achieve the purpose of the embodiments of the present application and shall be within the protection scope of the present application.

[0087] In some implementations, the above step S103, creating a frame resource description file according to the frame resource reference information, may include:

[0088] According to the frame resource reference information corresponding to each frame, a frame resource description file for the frame is created to obtain multiple frame resource description files corresponding to multiple frames.

[0089] In this implementation mode, a plurality of frame resource description files are generated by one-to-one correspondence between frames and frame resource description files, and each frame resource description file records frame resource reference information corresponding to a frame. In this way, for each frame supported, there will be a corresponding description file. For example, if 9 different frame information (such as 16v9, 9v16, 1v1, 4v3, 3v4, 18v9, 9v18, 21v9, 9v21) are supported, then 9 frame resource description files will be generated, and each description file contains information about all content resources referenced by the frame. When it is necessary to display the target digital content in a certain frame, it is only necessary to directly read the frame resource description file corresponding to the frame, and then query the required content resources based on the frame resource description file and load them to quickly and accurately display the correct content.

[0090] For reference Figure 2 To understand, Figure 2 A schematic diagram of the structure of a material package provided in an embodiment of the present application, such as Figure 2 As shown, the material package is used to support the display of two frame sizes, 16v9 and 9v16. The difference resources include the horizontal screen pictures corresponding to 16v9 and the vertical screen pictures corresponding to 9v16. The public resources include mask videos and background music. It also includes two frame resource description files 16v9.json and 9v16.json, and schematically marks the reference relationship between the frame resource description file and the content resource. Among them, 16v9.json references the public resource and the difference resource "horizontal screen picture", and 9v16.json references the public resource and the difference resource "vertical screen picture".

[0091] This implementation allows each frame to have its own independent description file, so that for each frame, the loading of the required resources can be controlled very accurately. When the client software needs to load the resources of a specific frame, it can directly read the description file corresponding to the frame, so as to quickly find and load the required resources, effectively simplifying the resource loading process. There is no need to process the information of multiple frames, only the description file of the currently required frame needs to be processed. In addition, when the resources of a certain frame change, only the description file of the corresponding frame needs to be updated without affecting the description files of other frames, which is convenient for maintenance and updating.

[0092] Based on the above implementation, in some modified implementations, the method may further include:

[0093] Creating an entry file of the material package according to the multiple frame resource description files, wherein the entry file records the corresponding relationship between each frame and the frame resource description file;

[0094] The above step S014 packages the frame resource description file and all the content resources to generate a material package, which may include:

[0095] A material package is generated by packaging the frame resource description file, all content resources and the entry file.

[0096] Among them, the entry file refers to the file that serves as the loading point or starting point of the material package, which is used to record the correspondence between each frame and its corresponding frame resource description file. It is equivalent to a navigation directory of the material package, so that the rendering engine can quickly locate the frame resource description file required for a specific frame, thereby efficiently loading the required resources.

[0097] In this embodiment, by creating an entry file, the organizational structure of the material package becomes clearer and easier to manage and maintain. At the same time, the entry file serves as a navigation directory, so that the rendering engine can quickly find the required frame resource description file according to the entry file, avoiding the process of traversing the entire material package to find the resource description file, thereby improving loading efficiency and reducing user waiting time. In addition, by concentrating the information of all frame resource description files in one entry file, the resources of the entire material package can be managed more efficiently, which is particularly beneficial for large-scale projects or scenes that need to be updated frequently. For example, developers or maintenance personnel can quickly understand the overall structure of the material package by viewing the entry file, and it is easier to find the reuse of resources, which helps to further optimize the resource management strategy. In addition, the existence of the entry file makes the maintenance and update of the material package more convenient. When it is necessary to add or delete frames, it is only necessary to update the information in the entry file without manually adjusting the position of each frame resource description file. For example, if a new frame needs to be added, it is only necessary to add a new record in the entry file and create a corresponding frame resource description file without modifying the location information of other files.

[0098] In some other modified implementations, the above step S103 creates a frame resource description file according to the frame resource reference information, which may include:

[0099] Summarizing the frame resource reference information corresponding to each frame and creating a frame resource description file;

[0100] Correspondingly, the above step S104 packages the frame resource description file and all the content resources to generate a material package, which may include:

[0101] The frame resource description file is used as an entry file and packaged with all the content resources to generate a material package.

[0102] Through this implementation, a total frame resource description file can be created, which summarizes the resource reference information of all frames. The summarized frame resource description file serves as an entry file and acts as a navigation directory for the material package, allowing the rendering engine to quickly locate the resource description information required for a specific frame.

[0103] This implementation method centralizes all frames and their resource reference information in one file, which is conducive to unified management and maintenance, and can provide a global perspective to facilitate viewing and comparing resource usage between different frames. For example, because the frame resource description file contains the frame resource reference information of all frames, developers can have a holistic view when performing integration work, easily discover resource reuse, and help further optimize resource management strategies. In addition, when cross-frame analysis or global adjustments are required, a total description file will be more convenient than multiple separate files.

[0104] Based on any of the above implementations, in some modified implementations, the above step S103 creates a frame resource description file according to the frame resource reference information, which may include:

[0105] A frame resource description file in JSON format is created according to the frame resource reference information.

[0106] JSON (JavaScript Object Notation) is a lightweight data exchange format that is easy for humans to read and write, and easy for machines to parse and generate. Using JSON format to create a frame resource description file can ensure the standardization and consistency of the description file.

[0107] This implementation method, by creating a frame resource description file in JSON format, can improve the standardization and readability of the frame resource description file, making the description file easy to write and parse, and easy to maintain and expand. In addition, since the rendering engine can easily parse the JSON file and quickly obtain the content resources required for each frame, it can also improve the resource loading efficiency, reduce the time of traversing the entire material package to find resource description information, and improve the user experience; at the same time, the description file in JSON format simplifies the maintenance of the material package, allowing developers to easily modify or add new frame information, ensuring consistency and easy extensibility, and facilitating support for more frames or resource types in the future.

[0108] It should be noted that, in actual applications, the existing method of generating independent material packages for each frame not only increases the workload and maintenance cost of designers, but also forces the material management platform and users to download multiple duplicate contents. In addition, the client software needs to select the corresponding material package for loading according to the current screen direction, which increases the complexity and resource consumption of the program. The material package generation method provided in any of the above embodiments of the present application significantly reduces the overall size of the material package by incorporating public resources for multiple frames into the material package and reusing these resources in different frames, avoiding the redundancy caused by the need to prepare a whole set of resources independently for each frame in the traditional method, and optimizing the utilization of storage space; in addition, the present application solution supports the customization of differential resources for a single frame, so that the material package can support the reuse of public resources across frames and meet the special needs of specific frames, thereby improving the adaptability and flexibility of the material package in different application scenarios; in addition, the present application solution combines the intelligent loading mechanism of the rendering engine, and can only load the newly added or changed resources when switching between different frames, rather than reloading the whole set of materials, thereby reducing the delay in the switching process, improving the smoothness when switching between different frames, and improving the user experience. In addition, when the material needs to be updated, you only need to modify the public resources or the differential resources of a specific frame, without having to update each frame version separately. This can effectively simplify the version control and maintenance process and reduce long-term maintenance costs.

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

[0110] The content resource determination module 101 is used to determine all content resources for generating target digital content according to the multi-frame display requirement information of the target digital content, wherein the content resources include common resources for multiplexing of multiple frames and differential resources for single frame;

[0111] The reference information determination module 102 is used to determine the frame resource reference information corresponding to each frame according to the content resources required by each frame, wherein the multiple frame resource reference information corresponding to the multiple frames includes reference information to the same public resource;

[0112] A description file generating module 103, used for creating a frame resource description file according to the frame resource reference information;

[0113] The resource packaging module 104 is used to package and generate a material package according to the frame resource description file and all the content resources.

[0114] In some modified implementations, the content resource determination module 101 includes:

[0115] A demand information acquisition unit, configured to acquire multi-frame display demand information of target digital content, wherein the multi-frame display demand information includes content resource demand information corresponding to each frame required to be displayed for the target digital content;

[0116] a duplicate checking unit, configured to check for duplicate content in the multi-frame display demand information, and add a classification mark to the content resource demand information according to the duplicate checking result, wherein the classification mark includes a common resource mark and a difference resource mark;

[0117] A content resource requirement list generating unit, configured to generate a content resource requirement list according to all the content resource requirement information with added classification identifiers;

[0118] The content resource acquisition unit is used to acquire all prepared content resources according to the content resource requirement list.

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

[0120] A marking module, configured to generate corresponding marking information for each of the content resources, wherein the marking information includes at least one of an identifier, a resource path, a resource type, an applicable frame, and a reusability identifier;

[0121] The reference information determination module 102 includes:

[0122] The reference information determining unit is used to determine the frame resource reference information corresponding to each frame according to the content resources required by each frame and the annotation information of each content resource.

[0123] In some modified implementations, the description file generation module 103 includes:

[0124] The multiple description file generating unit is used to create a frame resource description file for each frame according to the frame resource reference information corresponding to the frame, so as to obtain multiple frame resource description files corresponding to multiple frames.

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

[0126] An entry file creation module, used to create an entry file of the material package according to the multiple frame resource description files, wherein the entry file records the corresponding relationship between each frame and the frame resource description file;

[0127] The resource packaging module 104 includes:

[0128] The first resource packaging unit is used to package and generate a material package according to the frame resource description file, all content resources and the entry file.

[0129] In some modified implementations, the description file generation module 103 includes:

[0130] A single description file generating unit, used for aggregating frame resource reference information corresponding to each frame and creating a frame resource description file;

[0131] The resource packaging module 104 includes:

[0132] The second resource packaging unit is used to package the frame resource description file as an entry file with all the content resources to generate a material package.

[0133] In some modified implementations, the description file generation module 103 includes:

[0134] The JSON file generating unit is used to create a frame resource description file in JSON format according to the frame resource reference information.

[0135] The material package generation device provided in the embodiment of the present application is based on the same inventive concept as the material package generation method provided in the aforementioned embodiment of the present application and has the same beneficial effects.

[0136] 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 material package generation method in the aforementioned embodiment, and its 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 material package generation method and / or technical solution of the aforementioned multiple embodiments of the present application.

[0137] 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.

[0138] Figure 4 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.

[0139] 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.

[0140] 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.

[0141] 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.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] 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).

[0146] 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.

[0147] 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.

[0148] 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.

[0149] 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.

[0150] 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.

[0151] 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.

[0152] 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.

[0153] 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 generating a material package, wherein: The method comprises: Determine all content resources for generating the target digital content according to the multi-frame display requirement information of the target digital content, wherein the content resources include common resources for multiplexing of multiple frames and differential resources for use of a single frame; Determine frame resource reference information corresponding to each frame according to the content resources required by each frame, wherein the frame resource reference information corresponding to the multiple frames includes reference information to the same public resource; Creating a frame resource description file according to the frame resource reference information; According to the frame resource description file and all the content resources, a material package is generated by packaging.

2. The material package generation method according to claim 1, wherein: The step of determining all content resources for generating the target digital content according to the multi-frame display requirement information of the target digital content includes: Acquire multi-frame display requirement information of target digital content, wherein the multi-frame display requirement information includes content resource requirement information corresponding to each frame required to display the target digital content; Checking for duplicate content in the multi-frame display demand information, and adding a classification identifier to the content resource demand information according to the duplicate checking result, wherein the classification identifier includes a common resource identifier and a difference resource identifier; Generate a content resource requirement list according to all the content resource requirement information with added classification identifiers; Acquire all prepared content resources according to the content resource requirement list.

3. The material package generation method according to claim 1, wherein: After determining all content resources for generating target digital content, the method further includes: Generate corresponding annotation information for each of the content resources, wherein the annotation information includes at least one of an identifier, a resource path, a resource type, an applicable frame, and a reusability identifier; Determining frame resource reference information corresponding to each frame according to the content resources required for each frame includes: According to the content resources required for each frame and the annotation information of each content resource, frame resource reference information corresponding to each frame is determined.

4. The material package generation method according to claim 1, wherein: The step of creating a frame resource description file according to the frame resource reference information includes: According to the frame resource reference information corresponding to each frame, a frame resource description file for the frame is created to obtain multiple frame resource description files corresponding to multiple frames.

5. The material package generation method according to claim 4, wherein: The method further comprises: Creating an entry file of the material package according to the multiple frame resource description files, wherein the entry file records the corresponding relationship between each frame and the frame resource description file; The step of packaging and generating a material package according to the frame resource description file and all the content resources includes: A material package is generated by packaging the frame resource description file, all content resources and the entry file.

6. The material package generation method according to claim 1, wherein: The step of creating a frame resource description file according to the frame resource reference information includes: Summarizing the frame resource reference information corresponding to each frame and creating a frame resource description file; The step of packaging and generating a material package according to the frame resource description file and all the content resources includes: The frame resource description file is used as an entry file and packaged with all the content resources to generate a material package.

7. The material package generation method according to claim 1, wherein: The step of creating a frame resource description file according to the frame resource reference information includes: A frame resource description file in JSON format is created according to the frame resource reference information.

8. A material package generation device, wherein: The device comprises: A content resource determination module, used to determine all content resources for generating target digital content according to the multi-frame display requirement information of the target digital content, wherein the content resources include common resources for multiplexing of multiple frames and differential resources for use of a single frame; A reference information determination module, used to determine frame resource reference information corresponding to each frame according to the content resources required by each frame, wherein the multiple frame resource reference information corresponding to the multiple frames includes reference information to the same public resource; A description file generation module, used to create a frame resource description file according to the frame resource reference information; The resource packaging module is used to package and generate a material package according to the frame resource description file and all the content resources.

9. 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 7.

10. 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 7.

Citation Information

Patent Citations

  • Method and system for automatically generating an advertisement

    CN109493116A

  • Video synthesis method and device, computer equipment and storage medium

    CN110545476A

  • Interface element display method, device and equipment and storage medium

    CN110876067A

  • Media content editing method and device, electronic equipment and storage medium

    CN116668418A

  • Picture switching method, device and equipment and computer medium

    CN119356781A

Cited By

  • Picture switching method, device and equipment and computer medium

    CN119356781A

  • Frame switching method, device, equipment and computer medium

    CN119356781B