CN119356668A - Material package generation method, device, equipment and computer medium - Google Patents
Material package generation method, device, equipment and computer medium Download PDFInfo
- Publication number
- CN119356668A CN119356668A CN202411397376.0A CN202411397376A CN119356668A CN 119356668 A CN119356668 A CN 119356668A CN 202411397376 A CN202411397376 A CN 202411397376A CN 119356668 A CN119356668 A CN 119356668A
- Authority
- CN
- China
- Prior art keywords
- frame
- resource
- content
- resources
- reference information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0633—Workflow analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- General Business, Economics & Management (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Game Theory and Decision Science (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application provides a material package generation method, a device, equipment and a computer readable medium, which are used for determining all content resources used for generating target digital content according to multi-frame display demand information of the target digital content, wherein the content resources comprise public resources for multiplexing multiple frames and difference resources for using a single frame, then the frame resource reference information corresponding to each frame is determined according to the content resources required by each frame, then a frame resource description file is created according to the frame resource reference information, and a material package is generated according to the frame resource description file and all content resources in a packaging mode.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer readable medium for generating a material packet.
Background
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 to be taken as an admission of prior art as including in this section.
In the field of digital content creation and distribution, along with the popularization of mobile equipment and diversified display platforms, multi-frame adaptation of special effect materials becomes a key problem to be solved urgently.
Conventionally, in order to accommodate different display requirements, such as landscape and portrait modes, a designer needs to prepare a set of materials for each frame separately, which means that each frame requires a complete set of resources. Therefore, in order to realize multi-frame adaptation of special effects, each special effect needs to manufacture a plurality of complete material packages, which requires a great deal of work load of designers to produce and maintain materials, and therefore, the efficiency is low and the cost is high.
In view of the above, there is a need to provide a material packet generation technical solution that is more efficient and less costly.
Disclosure of Invention
Aspects of the present application provide a material package generating method, apparatus, device, and computer-readable storage medium for improving production maintenance efficiency of material packages and reducing production maintenance costs of material packages.
In one aspect of the present application, a method for generating a material packet is provided, where the method includes:
Determining all content resources for generating the target digital content according to the multi-frame display demand information of the target digital content, wherein the content resources comprise public resources for multiplexing multiple frames and difference resources for using a single frame;
Determining picture resource reference information corresponding to each picture according to the content resource required by each picture, wherein the picture resource reference information corresponding to a plurality of pictures comprises reference information for the same public resource;
Creating a drawing resource description file according to the drawing resource reference information;
and packaging and generating a material package according to the drawing resource description file and all the content resources.
In another aspect of the present application, there is provided a material packet generating apparatus, wherein the apparatus includes:
The content resource determining module is used for determining 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 comprise public resources for multiplexing multiple frames and difference resources for using a single frame;
The reference information determining module is used for 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 a plurality of frames comprises reference information for the same public resource;
the description file generation module is used for creating a description file of the drawing resource according to the drawing resource reference information;
and the resource packaging module is used for packaging and generating a material package according to the drawing resource description file and all the content resources.
In another aspect of the present application, there is provided an electronic apparatus including:
at least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the material packet generation method as described above.
In another aspect of the present application, there is provided a computer-readable storage medium having stored thereon computer program instructions executable by a processor to implement the material package generating method as described above.
According to the scheme provided by the embodiment of the 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 comprise public resources for multiplexing multiple frames and difference resources for using a single frame, then frame resource reference information corresponding to each frame is determined according to the content resources required by each frame, wherein the frame resource reference information corresponding to the frames comprises reference information for the same public resource, then frame resource description files are created according to the frame resource reference information, and then, all the resources required by different frames are integrated in one material package, and the reference of the resources under different frames is accurately guided by using the internal frame resource description files.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a material packet generating method according to an embodiment of the present application;
Fig. 2 is a schematic structural diagram of a material package according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of a material packet generating device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an electronic device suitable for implementing aspects of embodiments of the present application;
the same or similar reference numbers in the drawings refer to the same or similar parts.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In one exemplary configuration of the application, the terminal, the devices of the services network each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer-readable media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer program instructions, data structures, modules of the program, or other data. Examples of storage media for a computer 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, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device.
Aiming at the problems that when special effects are produced in the prior art, a set of complete material package is required to be produced for each picture respectively, production and maintenance efficiency is low and cost is high, the embodiment of the application provides a material package generation method, device, equipment and computer readable storage medium, which are used for improving the production and maintenance efficiency of the material package and reducing the production and maintenance cost of the material package, all content resources for generating the target digital content are determined according to multi-picture display requirement information of the target digital content, wherein the content resources comprise public resources for multiplexing multiple pictures and differential resources for using a single picture, then the picture resource reference information corresponding to each picture is determined according to the content resources required by each picture, wherein the picture resource reference information corresponding to the picture comprises reference information for the same public resource, then a picture resource description file is created according to the picture resource reference information, next, all content resources are packed and generated according to the picture resource description file, thereby the material package can be integrated in one picture package, different picture resources can be integrated, the required by using the picture resource can be accurately designed, the different picture resource can be used for realizing the production efficiency, the production and the material package can be reduced, the production cost is reduced, the relation can be effectively compared with the current material package is reduced, and the production cost is reduced by the current and the material resource can be respectively, and the production cost is reduced by the relation is effectively compared with the conventional picture resource and the material package, and the later maintenance only needs to maintain the individual content resources and the reference information in the material package, so that the maintenance efficiency can be effectively improved and the maintenance cost can be reduced.
The following describes exemplary embodiments of a method, an apparatus, a device, and a computer-readable storage medium for generating a material packet according to the present application.
In an actual scenario, the execution body of the material packet generating method provided by the embodiment of the application may be user equipment, or equipment formed by integrating user equipment and network equipment through a network, or may also be an application program running on the above equipment, where the user equipment includes, but is not limited to, various terminal devices such as a computer, a mobile phone, a tablet computer, an intelligent watch, a bracelet, and the like, and the network equipment includes, but is not limited to, implementation such as a network host, a single network server, a plurality of network server sets, or a computer set based on cloud computing. Here, the Cloud is composed of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual computer composed of a group of loosely coupled computer sets.
Fig. 1 shows a process flow of a material packet generating method according to an embodiment of the present application, where the method at least includes the following processing steps:
step S101, determining 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 comprise common resources for multiplexing multiple frames and differential resources for using a single frame.
The target digital content may be any digital content to be manufactured, including but not limited to visual special effects (such as video special effects, game special effects, photographic special effects, etc.), application programs, web pages, games, etc., which can realize more convenient multi-frame support based on the technical scheme provided by the embodiment of the application.
The 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, audios and the like. In order to meet the multi-frame display requirement of the target digital content, the embodiment of the application needs to respectively determine the required content resources for a plurality of frames, thereby obtaining all the content resources capable of meeting the multi-frame display requirement, and in order to realize cross-frame multiplexing of the content resources, all the content resources need to be classified according to the multiplexing characteristics, for example, the content resources capable of being multiplexed are divided into public resources, and the content resources incapable of being multiplexed are divided into difference resources.
The common resource can be shared among different pictures, only one copy is needed to be prepared, and an independent copy is not needed to be prepared for each picture. For example, some audio files or common background elements may be identical under different frames, so only one copy need be saved.
The difference resource is customized to accommodate a particular frame, such as a different picture size for the landscape screen and the portrait screen, and the designer needs to provide different versions of the picture for each frame.
In some modified embodiments, this step S101, determining all content resources for generating the target digital content according to the multi-frame presentation requirement information of the target digital content may include:
Acquiring multi-frame display requirement information of target digital content, wherein the multi-frame display requirement information comprises content resource requirement information corresponding to each frame required to be displayed of the target digital content;
searching for duplication of the content resource demand information in the multi-frame display demand information, and adding a classification identifier to the content resource demand information according to a duplication searching result, wherein the classification identifier comprises a public resource identifier and a differential resource identifier;
Generating a content resource demand list according to all the content resource demand information added with the classification identification;
and acquiring all the manufactured content resources according to the content resource demand list.
In specific implementation, the designer may upload multi-frame display requirement information of the target digital content, where the multi-frame display requirement information includes multiple frame information required to be displayed by the target digital content and content resource requirement information corresponding to each frame, and the content resource requirement information may include, but is not limited to, at least one of name, format, size, dimension, proportion, definition and the like of a content resource required by each frame. After acquiring the multi-frame display requirement information, the execution main body of the embodiment of the application can summarize, sort and classify all content resource requirement information according to the multi-frame display requirement information, wherein the important point is that all content resource requirement information is checked and repeated, then classification identification is added to the content resource requirement information according to the check and repeated result, for example, repeated content resource requirement information indicates that the described content resource is used by multiple frames, the repeated content resource requirement information is identified as a public resource, public resource identification is added to the content resource requirement information, non-repeated content resource requirement information indicates that the described content resource is only used by one frame, the repeated content resource requirement information is identified as a difference resource, and the difference resource identification is added to the content resource requirement information. For example, by comparing the at least one item of information, background music with the same name and format required by multiple frames can be divided into public resources, and only pictures required by one frame can be divided into difference resources. After sorting and classifying, a content resource demand list for producing target digital content can be generated and output, and after a designer produces all corresponding content resources according to the content resource demand list, the execution body of the application can obtain all produced content resources according to the content resource demand list so as to facilitate the subsequent generation of material packages.
According to the embodiment, the multi-frame display demand information can be automatically detected and classified in a man-machine interaction mode, then a content resource demand list is output, and then a designer prepares corresponding content resources according to the content resource demand list, wherein only one part of public resources are needed to be prepared, and then equipment can acquire all prepared content resources according to the content resource demand list so as to manufacture subsequent material packages.
Step S102, according to the content resources required by each picture, picture resource reference information corresponding to each picture is determined, wherein a plurality of picture resource reference information corresponding to a plurality of pictures comprises reference information for the same common resource.
The frame resource reference information is information describing the reference relation between the frames and the content resources, the relation between the frames and the content resources is realized in a reference mode, then the referenced content resources are directly called for loading and displaying when a certain frame needs to be displayed based on the reference relation, based on the technical conception, all the content resources can be added into one total material package without respectively manufacturing corresponding material packages for each frame, so that the manufacturing steps of the material package are simplified, the cross-frame efficient multiplexing of common resources can be realized, the workload of a designer is reduced, the production efficiency of the material package is improved, the production cost is reduced, and the later maintenance is only required to maintain the individual content resources and the reference information in the material package, so that the maintenance efficiency is also effectively improved, and the maintenance cost is reduced.
And step S103, creating a drawing resource description file according to the drawing resource reference information.
After the frame resource reference information is formed, a corresponding frame resource description file can be generated to record the frame resource reference information, and in practical application, the frame resource reference information can be recorded in a JSON, XML or other form of metadata format.
And step S104, packaging and generating a material package according to the drawing resource description file and all the content resources.
After the drawing resource description file is created, all content resources meeting the requirement information of multi-drawing display of the target digital content and the drawing resource description file can be packaged together to generate a material package, and then no matter what kind of drawing is displayed, corresponding content resources can be selected from the material package according to the drawing resource description file for loading and displaying, so that the method is convenient and quick.
According to the material package generation method provided by the embodiment of the application, all content resources for generating the target digital content are determined according to the multi-frame display demand information of the target digital content, wherein the content resources comprise public resources for multiplexing multiple frames and difference resources for using a single frame, then frame resource reference information corresponding to each frame is determined according to the content resources required by each frame, wherein the frame resource reference information corresponding to the frames comprises reference information for the same public resource, then frame resource description files are created according to the frame resource reference information, and then, all the resources required by different frames are integrated in one material package according to the frame resource description files and all the content resources, and the reference of the resources under different frames is accurately guided by using the internal frame resource description files.
In some modification embodiments, after determining all content resources for generating the target digital content in step S101, it may further include:
generating corresponding annotation information for each content resource, wherein the annotation information comprises at least one of an identifier, a resource path, a resource type, an applicable drawing and a reusability identifier;
Correspondingly, the step S102 determines, according to the content resources required for each frame, frame resource reference information corresponding to each frame, which may include:
And determining the picture resource reference information corresponding to each picture according to the content resource required by each picture and the labeling information of each content resource.
Wherein an Identifier (Identifier) refers to a unique code or name assigned to each content resource for uniquely identifying the resource. The identifier may be a string or number to ensure that each content asset is not confused with other content assets throughout the material package. Through the identifier, the rendering engine can quickly locate a specific resource in the drawing resource description file and load a corresponding file as required.
The resource path refers to a specific location of a content resource in a material package, typically a path or relative path of a file system, for indicating how a rendering engine finds and loads 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.
The resource type refers to a specific category of content resources, such as images (JPEG, PNG), video (MP 4, AVI), audio (MP 3, WAV), etc., and is used to tell the rendering engine how to handle a specific resource, for example, an image file may need to be decoded and displayed, and an audio file needs to be played.
Applicable frames refer to what kind or kinds of frame proportions the content resource is applicable to, e.g. 16:9 (wide screen), 9:16 (vertical screen), 4:3 (standard screen), etc. The applicable frame information can help the rendering engine determine when and how to use a particular resource. For example, a picture suitable for a 16:9 frame may not be loaded at a 9:16 frame.
A reusability indicator is a label or tag that indicates whether a content asset can be used commonly between different frames, and when a asset is marked as a common asset, it means that it can be used under multiple frames without the need to prepare a separate copy for each frame. Conversely, if the resource is not a public resource, it means that it is specifically designed for a particular frame and cannot be used under other frames.
In the embodiment of the application, specific drawing resource reference information is generated by combining the content resource requirement list required by each drawing and the labeling information of each resource. In this way, the generated frame resource reference information records which resources are needed for each frame, and the specific location and sharing of these resources is specified by the annotation information (in particular, the resource path and the reusability identifier). For example, for a 16:9 frame, if an image is required to be used, the path and reusability identifier of the image will be included in the reference information, and if the image is applicable to other frames at the same time, the image will be marked as a "public resource" in the reusability identifier.
For example, suppose that a material package needs to be generated that supports both 16:9 and 9:16 frames, where,
The resources required for the 16:9 frame include:
Image A (identifier imgA, path images/imgA. Jpg, type image, applicable frame 16:9, reusability identifier false)
Video B (identifier vidB, path video/video dB. Mp4, type video, applicable frame 16:9, reusability identifier false)
Audio C (identifier audC, path audios/audC.mp3, type audio, applicable frame all, reusability identifier true)
The resources required for the 9:16 frame include:
Image D (identifier imgD, path images/imgD. Jpg, type image, applicable frame 9:16, reusability identifier false)
Video E (identifier vidE, path video/vidE.mp4, type video, applicable frame 9:16, reusability identifier false)
Audio C (identifier audC, path audios/audC.mp3, type audio, applicable frame all, reusability identifier true)
The picture resource reference information generated according to the content resource required by each picture and the labeling information of each content resource is exemplified as follows:
16:9 frame reference information:
image processing apparatus A:{"identifier":"imgA","path":"images/imgA.jpg","type":"image","aspectRatio":"16:9","isCommon":false}
Video frequency B:{"identifier":"vidB","path":"videos/vidB.mp4","type":"video","aspectRatio":"16:9","isCommon":false}
Audio C { "identifier }" audC } "path:" audios/audC.mp3"," type ":" audio "," aspectRatio ":" all "," isCommon ": true }
9:16 Frame reference information:
image processing apparatus D:{"identifier":"imgD","path":"images/imgD.jpg","type":"image","aspectRatio":"9:16","isCommon":false}
Video frequency E:{"identifier":"vidE","path":"videos/vidE.mp4","type":"video","aspectRatio":"9:16","isCommon":false}
Audio C { "identifier }" audC } "path:" audios/audC.mp3"," type ":" audio "," aspectRatio ":" all "," isCommon ": true }
The foregoing is illustrative only and is not intended to limit the scope of the application.
For the step S103, there may be various embodiments, for example, a corresponding frame resource description file may be generated for each frame, or a total frame resource description file may be generated, where all frames and frame resource reference information thereof are recorded in the frame resource description file, which is not limited by the embodiment of the present application, and all the embodiments of the present application may achieve the purposes of the embodiment of the present application, and all the embodiments are within the scope of protection of the present application.
In some embodiments, the creating the drawing resource description file according to the drawing resource reference information in step S103 may include:
and creating the picture resource description file for each picture according to the picture resource reference information corresponding to the picture, so as to obtain a plurality of picture resource description files corresponding to a plurality of pictures.
In this embodiment, a plurality of frame resource description files are generated in a one-to-one correspondence manner between frames and frame resource description files, where each frame resource description file records frame resource reference information corresponding to a frame, so that for each frame supported, there is a corresponding description file, for example, if 9 different frame information (such as 16v9, 9v16, 1v1, 4v3, 3v4, 18v9, 9v18, 21v9, 9v 21) is supported, 9 frame resource description files are generated, and each description file includes information of all content resources referenced by the frame. When the target digital content needs to be displayed in a certain picture, only the picture resource description file corresponding to the picture needs to be directly read, and then the required content resource is inquired and loaded based on the picture resource description file, so that the correct content can be rapidly and accurately displayed.
As can be understood with reference to fig. 2, fig. 2 is a schematic structural diagram of a material package provided by an embodiment of the present application, and as shown in fig. 2, the material package is used for supporting two kinds of pictures of 16v9 and 9v16, the difference resource includes a horizontal screen picture corresponding to 16v9 and a vertical screen picture corresponding to 9v16, the common resource includes a mask video and background music, and further includes two picture resource description files 16v9.Json and 9v16.Json, and reference relationships between the picture resource description files and content resources are schematically marked, where 16v9.Json refers to the common resource and the difference resource "horizontal screen picture", and 9v16.Json refers to the common resource and the difference resource "vertical screen picture".
According to the embodiment, each picture is allowed to have independent description files, so that the loading of required resources of each picture can be controlled very accurately, when client software needs to load the resources of a specific picture, the description files corresponding to the picture can be read directly, so that the required resources can be found and loaded quickly, the resource loading flow is effectively simplified, the information of a plurality of pictures does not need to be processed, only the description files of the current required picture need to be processed, in addition, when the resources of a certain picture change, only the description files of the corresponding picture need to be updated, the description files of other pictures are not influenced, and the maintenance and the updating are convenient.
On the basis of the above embodiments, in some modified embodiments, the method may further include:
Creating an entry file of the material package according to the plurality of drawing resource description files, wherein the entry file records the corresponding relation between each drawing and the drawing resource description file;
Step S014 described above is based on the drawing resource description file and the all content resources, packaging to generate a material package may include:
and packaging according to the drawing resource description file, all the content resources and the entry file to generate a material package.
The entry file is a file serving as a loading point or a starting point of the material package, and is used for recording a corresponding relation between each frame and the corresponding frame resource description file, and the corresponding relation is equivalent to a navigation directory of the material package, so that the rendering engine can quickly locate the frame resource description file required by a specific frame, and therefore required resources can be loaded efficiently.
According to the method and the device, the portal file is created, so that the organization structure of the material package becomes clearer, management and maintenance are facilitated, meanwhile, the portal file is used as a navigation directory, a rendering engine can quickly find required drawing resource description files according to the portal file, the process of traversing the whole material package to find the resource description files is avoided, loading efficiency is improved, and waiting time of a user is shortened. In addition, by concentrating the information of all the frame resource description files in one entry file, the resources of the entire material package can be managed more efficiently, which is particularly advantageous for large-scale projects or scenes requiring frequent updating. For example, a developer or maintainer can quickly know the overall structure of the material package by looking at the entry file, so that the reuse condition of the resource can be found more easily, and the resource management strategy can be further optimized. In addition, the existence of the entry file makes maintenance and update of the material package more convenient, when the frames need to be added or deleted, only the information in the entry file needs to be updated, and the position of each frame resource description file does not need to be manually adjusted, for example, if a new frame needs to be added, only a new record needs to be added in the entry file, and the corresponding frame resource description file is created, and the position information of other files does not need to be modified.
In other alternative embodiments, the creating the drawing resource description file according to the drawing resource reference information in the step S103 may include:
summarizing the picture resource reference information corresponding to each picture, and then creating a picture resource description file;
correspondingly, the step S104 of packaging the frame resource description file and the all content resources to generate a material package may include:
and packaging the drawing resource description file serving as an entry file with all the content resources to generate a material package.
According to the embodiment, a total frame resource description file can be created, the file summarizes resource reference information of all frames, and the summarized frame resource description file serves as an entry file to serve as a navigation directory of a material package, so that a rendering engine can quickly locate resource description information required by a specific frame.
According to the embodiment, all the pictures and the resource reference information thereof are concentrated in one file, unified management and maintenance are facilitated, a global view angle can be provided, and resource use conditions among different pictures can be conveniently checked and compared. For example, because the drawing resource description file contains the drawing resource reference information of all the drawings, a developer can have an integral view when carrying out the integration work, and the reuse condition of the resources can be easily found, thereby being beneficial to further optimizing the resource management strategy. In addition, when cross-frame analysis or global adjustment is required, a total description file may be more convenient than multiple individual files.
On the basis of any of the above embodiments, in some modified embodiments, the creating a description file of the drawing resource according to the drawing resource reference information in the step S103 may include:
And creating the drawing resource description file in the JSON format according to the drawing resource reference information.
JSON (JavaScript Object Notation) is a lightweight data exchange format, which is easy for a person to read and write, and easy for a machine to analyze and generate. The drawing resource description file is created by adopting the JSON format, so that the standardization and consistency of the description file can be ensured.
In the embodiment, the frame resource description file is created by adopting the JSON format, so that the standardization and readability of the frame resource description file can be improved, the description file is easy to write and analyze and convenient to maintain and expand, in addition, the rendering engine can easily analyze the JSON file and quickly acquire the content resource required by each frame, therefore, the resource loading efficiency can be improved, the time for traversing the whole material package to search the resource description information can be reduced, and the user experience can be improved; meanwhile, the JSON format description file simplifies maintenance work of the material package, so that a developer can easily modify or add new drawing information, consistency and expansibility are ensured, and more drawings or resource types are supported in the future conveniently.
In practical application, the existing method of generating independent material packages for each frame increases workload and maintenance cost of a designer, forces a material management platform and a user to download multiple repeated contents, and in addition, client software needs to select corresponding material packages according to current screen directions to load, thereby increasing complexity of programs and resource consumption. In addition, the scheme supports customizing different resources for a single frame, so that the material package can support multiplexing common resources across frames, can meet the special requirements of specific frames and improve the adaptability and flexibility of the material package under different application scenes, and in addition, the scheme combines an intelligent loading mechanism of a rendering engine, so that when different frames are switched, only newly added or changed resources are needed to be loaded instead of reloading the whole set of materials, thereby reducing delay in the switching process, improving the smoothness when switching among different frames and improving the user experience. In addition, when the materials need to be updated, only the public resources or the difference resources of the specific frames need to be modified, each frame version does not need to be updated independently, version control and maintenance flow can be simplified effectively, and long-term maintenance cost is reduced.
Based on the same inventive concept, the embodiment of the present application further provides a material packet generating device, where the corresponding method of the device may be the material packet generating method in the foregoing embodiment, and the principle of solving the problem is similar to that of the method. The material packet generating device provided by the embodiment of the application can implement the material packet generating method, and the material packet generating device can be realized by software, hardware or a combination of the software and the hardware. For example, the material package generating apparatus may include integrated or separate functional modules or units to perform the corresponding steps in the methods described above. Since the apparatus embodiments are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The device embodiments described below are merely illustrative. Referring to fig. 3, the material packet generating apparatus may include:
A content resource determining module 101, configured to determine all content resources for generating the target digital content according to the multi-frame display requirement information of the target digital content, where the content resources include a common resource for multiplexing multiple frames and a differential resource for using a single frame;
a reference information determining module 102, configured to determine, according to content resources required by each frame, frame resource reference information corresponding to each frame, where multiple frame resource reference information corresponding to multiple frames includes reference information for the same common resource;
A description file generating module 103, configured to create a description file of the drawing resource according to the reference information of the drawing resource;
and the resource packaging module 104 is configured to package and generate a material package according to the drawing resource description file and the all content resources.
In some variant embodiments, the content resource determination module 101 includes:
The system comprises a demand information acquisition unit, a display unit and a display unit, wherein the demand information acquisition unit is used for acquiring multi-frame display demand information of target digital content, and the multi-frame display demand information comprises content resource demand information corresponding to each frame required to be displayed by the target digital content;
The duplicate checking unit is used for checking duplicate of the content resource demand information in the multi-frame display demand information, and adding a classification identifier to the content resource demand information according to a duplicate checking result, wherein the classification identifier comprises a public resource identifier and a differential resource identifier;
a content resource demand list generating unit, configured to generate a content resource demand list according to all the content resource demand information added with the classification identifier;
And the content resource acquisition unit is used for acquiring all the manufactured content resources according to the content resource demand list.
In some variations, the apparatus further comprises:
The marking module is used for generating corresponding marking information for each content resource, wherein the marking information comprises at least one of an identifier, a resource path, a resource type, an applicable drawing and a reusability identifier;
the reference information determining module 102 includes:
And the reference information determining unit is used for determining the frame resource reference information corresponding to each frame according to the content resources required by each frame and the marking information of each content resource.
In some variant embodiments, the description file generating module 103 includes:
And the multi-description file generation unit is used for creating the picture resource description file for each picture according to the picture resource reference information corresponding to the picture, so as to obtain a plurality of picture resource description files corresponding to a plurality of pictures.
In some variations, the apparatus further comprises:
An entry file creating module, configured to create an entry file of the material package according to the plurality of drawing resource description files, where the entry file records a correspondence between each of the drawings and the drawing resource description file;
the resource packaging module 104 includes:
And the first resource packaging unit is used for packaging and generating a material package according to the drawing resource description file, all the content resources and the entry file.
In some variant embodiments, the description file generating module 103 includes:
the single description file generation unit is used for summarizing the picture resource reference information corresponding to each picture and then creating a picture resource description file;
the resource packaging module 104 includes:
and the second resource packaging unit is used for packaging the drawing resource description file serving as an entry file with all the content resources to generate a material package.
In some variant embodiments, the description file generating module 103 includes:
And the JSON file generation unit is used for creating a drawing resource description file in a JSON format according to the drawing resource reference information.
The material packet generating device provided by the embodiment of the application has the same beneficial effects as the material packet generating method provided by the previous embodiment of the application due to the same inventive concept.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, where the method corresponding to the electronic device may be the material packet generating method in the foregoing embodiment, and the principle of solving the problem is similar to that of the method. The electronic device provided by the embodiment of the application comprises at least one processor and a memory in communication connection with the at least one processor, 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 packet generation method and/or the technical scheme of the plurality of embodiments of the application.
The electronic device may be a user device, or a device formed by integrating the user device and a network device through a network, or may also be an application running on the device, where the user device includes, but is not limited to, a computer, a mobile phone, a tablet computer, a smart watch, a bracelet, and other various terminal devices, and the network device includes, but is not limited to, a network host, a single network server, a plurality of network server sets, or a computer set based on cloud computing, where the network device is implemented, and may be used to implement a part of processing functions when setting an alarm clock. Here, the Cloud is composed of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual computer composed of a group of loosely coupled computer sets.
Fig. 4 shows a structure of an electronic device suitable for implementing the method and/or technical solution in an embodiment of the present application, the electronic device 1200 includes a central processing unit (CPU, central Processing Unit) 1201, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1202 or a program loaded from a storage portion 1208 into a random access Memory (RAM, random Access Memory) 1203. In the RAM 1203, various programs and data required for the system operation are also stored. The CPU 1201, ROM 1202, and RAM 1203 are connected to each other through a bus 1204. An Input/Output (I/O) interface 1205 is also connected to the bus 1204.
Connected to the I/O interface 1205 are an input section 1206 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, and the like, an output section 1207 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), an LED display, an OLED display, and the like, and a speaker, 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, and the like, and a communication section 1209 including a network interface card such as a LAN (local area network ) card, a modem, and the like. The communication section 1209 performs communication processing via a network such as the internet.
In particular, the methods and/or embodiments of the present application may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 1201.
Another embodiment of the present application also provides a computer readable storage medium having stored thereon computer program instructions executable by a processor to implement the method and/or the technical solution of any one or more of the embodiments of the present application described above.
In particular, the present embodiments may employ 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 can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
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.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowchart or block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple elements or page components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform part of the steps of the methods described in the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same, and although the present application has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present application.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the apparatus claims can also be implemented by means of one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411397376.0A CN119356668B (en) | 2024-10-08 | 2024-10-08 | Material package generation method, device, equipment and computer medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411397376.0A CN119356668B (en) | 2024-10-08 | 2024-10-08 | Material package generation method, device, equipment and computer medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN119356668A true CN119356668A (en) | 2025-01-24 |
| CN119356668B CN119356668B (en) | 2025-09-30 |
Family
ID=94305410
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411397376.0A Active CN119356668B (en) | 2024-10-08 | 2024-10-08 | Material package generation method, device, equipment and computer medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119356668B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119356781A (en) * | 2024-10-08 | 2025-01-24 | 上海哔哩哔哩科技有限公司 | Frame switching method, device, equipment and computer medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109493116A (en) * | 2018-10-15 | 2019-03-19 | 上海基分文化传播有限公司 | A kind of method and system that advertisement automatically generates |
| CN110545476A (en) * | 2019-09-23 | 2019-12-06 | 广州酷狗计算机科技有限公司 | Video synthesis method and device, computer equipment and storage medium |
| CN110876067A (en) * | 2018-08-31 | 2020-03-10 | 广州虎牙信息科技有限公司 | Interface element display method, device, equipment and storage medium |
| WO2022068511A1 (en) * | 2020-09-29 | 2022-04-07 | 华为技术有限公司 | Video generation method and electronic device |
| CN116668418A (en) * | 2023-06-02 | 2023-08-29 | 北京字跳网络技术有限公司 | Editing method, device, electronic device and storage medium of media content |
| CN119356781A (en) * | 2024-10-08 | 2025-01-24 | 上海哔哩哔哩科技有限公司 | Frame switching method, device, equipment and computer medium |
-
2024
- 2024-10-08 CN CN202411397376.0A patent/CN119356668B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110876067A (en) * | 2018-08-31 | 2020-03-10 | 广州虎牙信息科技有限公司 | Interface element display method, device, equipment and storage medium |
| CN109493116A (en) * | 2018-10-15 | 2019-03-19 | 上海基分文化传播有限公司 | A kind of method and system that advertisement automatically generates |
| CN110545476A (en) * | 2019-09-23 | 2019-12-06 | 广州酷狗计算机科技有限公司 | Video synthesis method and device, computer equipment and storage medium |
| WO2022068511A1 (en) * | 2020-09-29 | 2022-04-07 | 华为技术有限公司 | Video generation method and electronic device |
| CN116668418A (en) * | 2023-06-02 | 2023-08-29 | 北京字跳网络技术有限公司 | Editing method, device, electronic device and storage medium of media content |
| CN119356781A (en) * | 2024-10-08 | 2025-01-24 | 上海哔哩哔哩科技有限公司 | Frame switching method, device, equipment and computer medium |
Non-Patent Citations (1)
| Title |
|---|
| 校易搜全知道: "pr如何将横屏素材变成竖屏", Retrieved from the Internet <URL:https://zhidao.baidu.com> * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119356781A (en) * | 2024-10-08 | 2025-01-24 | 上海哔哩哔哩科技有限公司 | Frame switching method, device, equipment and computer medium |
| CN119356781B (en) * | 2024-10-08 | 2025-09-09 | 上海哔哩哔哩科技有限公司 | Picture switching method, device, equipment and computer medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119356668B (en) | 2025-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112203122A (en) | Artificial intelligence-based similar video processing method and device and electronic equipment | |
| CN112949276A (en) | Report generation method and device, electronic equipment and storage medium | |
| JP2015072708A (en) | Aggregating metadata relating to duplicate images | |
| CN109299352B (en) | Method and device for updating website data in search engine and search engine | |
| CN113688139B (en) | Object storage method, gateway, device and medium | |
| US12360943B2 (en) | Method and apparatus for media scene description | |
| US20130138654A1 (en) | Methods and apparatuses for generating semantic signatures for media content | |
| CN119356668B (en) | Material package generation method, device, equipment and computer medium | |
| US20220028425A1 (en) | System and Method to Customizing Video | |
| CN119356781B (en) | Picture switching method, device, equipment and computer medium | |
| CN109116718B (en) | Method and device for setting alarm clock | |
| CN111325607B (en) | Marketing page construction method, system, equipment and medium | |
| US20170364496A1 (en) | Visualization interface for information object system | |
| CN112486494A (en) | File generation method and device, electronic equipment and computer readable storage medium | |
| CN102054235B (en) | Method and device for building institutional repository based on digital resource service component model | |
| CN117786184A (en) | Configured data visualization method, device and medium | |
| CN112486991B (en) | Database report processing method and device and electronic equipment | |
| US20170286195A1 (en) | Information object system | |
| US20170199729A1 (en) | Application developing method and system | |
| CN116962807A (en) | Video rendering method, device, equipment and storage medium | |
| CN114676372A (en) | Data processing method and device for web game, electronic equipment and storage medium | |
| CN113672685A (en) | Information processing method, equipment and medium | |
| CN112612915A (en) | Picture labeling method and equipment | |
| CN115587074A (en) | Method, device, live broadcast system, equipment and medium for generating special effect resource files | |
| US11748120B1 (en) | Server-based user interface rendering |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |