Multimedia resource rendering method and device, computer equipment and storage medium

By obtaining and playing multimedia rendering resources on the multimedia editing interface and adding effects of other rendering resource sets in real time, the problem of long loading of rendering templates is solved, the user experience is improved, and the multimedia effect is quickly previewed.

CN119011901APending Publication Date: 2024-11-22BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310582866.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-22
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When rendering audio and video data with complex effects, the prior art leads to a long loading time for rendering templates and poor user experience, especially when resource packages are stored on remote servers and need to be downloaded, it is difficult for users to quickly preview the required effects.

Method used

By obtaining the multimedia rendering resources in the rendering template in the multimedia editing interface, generating the first multimedia data and playing it, adding the playback effects of other rendering resource sets in real time, prioritizing the necessary rendering resources to reduce loading time, and during playback Download non-essential resources while rendering.

Benefits of technology

It reduces the loading time of multimedia resources, improves users' preview experience of multimedia effects, avoids users' long waits, and dynamically adds playback effects without affecting the effect display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011901A_ABST
    Figure CN119011901A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a multimedia resource rendering method and device, computer equipment and a storage medium, and the method comprises the steps: obtaining a plurality of multimedia rendering resources in a rendering template in a multimedia editing interface; generating first multimedia data based on the plurality of multimedia rendering resources, the first multimedia data comprising a first rendering resource set, the first rendering resource set comprising at least part of the multimedia rendering resources; playing the first multimedia data in the multimedia editing interface; in the process of playing the first multimedia data, the playing effect of a second rendering resource set is added in real time, and the second rendering resource set comprises other multimedia rendering resources except the first rendering resource set in the multiple multimedia rendering resources. According to the technical scheme, on the basis that multimedia effect display is not affected, the loading time of the multimedia rendering resources is shortened, and the preview experience of a user on the multimedia effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a rendering method, device, computer equipment and storage medium for multimedia resources. Background Art

[0002] When rendering audio and video data containing complex effects, a corresponding rendering template is usually set. The rendering template includes special effects, filters, stickers, transitions, music, animations, etc., and each effect has a corresponding resource package, which is stored in a remote server and needs to be downloaded before use.

[0003] At present, when rendering complex effects and resource packages stored in remote servers, remote resources are usually defined in the rendering template protocol to traverse all remote resource packages involved in the rendering template and download them in sequence. When the download is complete, the local file path is updated to the rendering template for replay to obtain audio and video effects. However, this will result in a long loading time for the rendering template, making it difficult for users to quickly preview the required audio and video effects, resulting in a poor user experience. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a method, apparatus, computer device and storage medium for rendering multimedia resources to solve the problem of long rendering and loading time of multimedia resources and poor user experience.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for rendering multimedia resources, the method comprising: acquiring multiple multimedia rendering resources in a rendering template in a multimedia editing interface; generating first multimedia data based on the multiple multimedia rendering resources, the first multimedia data comprising a first rendering resource set, the first rendering resource set comprising at least part of the multimedia rendering resources; playing the first multimedia data in the multimedia editing interface; and in the process of playing the first multimedia data, adding a playback effect of a second rendering resource set in real time, the second rendering resource set comprising other multimedia rendering resources among the multiple multimedia rendering resources except the first rendering resource set.

[0006] The rendering method of multimedia resources provided by the embodiment of the present disclosure generates and plays part of the first multimedia data from the multiple multimedia rendering resources obtained in the multimedia editing interface, and processes other multimedia rendering resources based on the playing of the first multimedia data, so as to add the corresponding playback effects of other multimedia rendering resources in real time to the first multimedia data. As a result, the multimedia resources in the rendering template do not need to wait until all downloads are completed before rendering, and can be downloaded and rendered at any time, thereby reducing the loading time of the multimedia resources. Moreover, during the rendering process, some multimedia rendering resources can be processed preferentially to present the corresponding multimedia data to the user, avoiding the user from waiting for a long time, and other multimedia rendering resources can be rendered and played at the same time, so that the corresponding playback effects can be dynamically added based on the playing of the first multimedia data, and the display of the multimedia effects will not be affected, thereby improving the user's preview experience of the multimedia effects.

[0007] In a second aspect, an embodiment of the present disclosure provides a rendering device for multimedia resources, the device comprising: a resource acquisition module, used to acquire multiple multimedia rendering resources in a rendering template in a multimedia editing interface; a generation module, used to generate first multimedia data based on the multiple multimedia rendering resources, the first multimedia data including a first rendering resource set, the first rendering resource set including at least part of the multimedia rendering resources; a playback module, used to play the first multimedia data in the multimedia editing interface; an adding module, used to add the playback effect of a second rendering resource set in real time during the playback of the first multimedia data, the second rendering resource set including other multimedia rendering resources among the multiple multimedia rendering resources except the first rendering resource set.

[0008] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for rendering multimedia resources of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0009] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for rendering multimedia resources of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0011] Figure 1 is a flowchart of a method for rendering multimedia resources according to some embodiments of the present disclosure;

[0012] Figure 2 is a flowchart of another method for rendering multimedia resources according to some embodiments of the present disclosure;

[0013] Figure 3 is a flowchart of another method for rendering multimedia resources according to some embodiments of the present disclosure;

[0014] Figure 4 is a schematic diagram of experimental results of a method for rendering multimedia resources according to some embodiments of the present disclosure;

[0015] Figure 5 is a structural block diagram of a rendering device for multimedia resources according to an embodiment of the present disclosure;

[0016] Figure 6 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0018] When rendering audio and video data that contains complex effects such as special effects, filters, stickers, transitions, music, animations, etc., the rendering template needs to include resource packages such as special effects, filters, stickers, transitions, music, animations, etc., and these resource packages usually exist on remote servers and need to be downloaded for use. Therefore, when rendering a complex effect and the effect resource package exists on a remote server, a description of the remote resource package can be defined in the rendering template, such as an http link; all remote resources involved in the rendering template are traversed, and they are downloaded in order of playback time. After the download is complete, the local file path is updated to the rendering template; multimedia effects are replayed based on the rendering template.

[0019] Since there may be a lot of resources involved in the rendering template, when using the above solution, if you need to play the preview effect at a certain point in time, you need to wait until all the resources corresponding to that point in time are downloaded before you can replay the multimedia effect. This requires a long loading time, and the worse the network, the longer the loading time, which seriously affects the user experience. At the same time, it is difficult to avoid the situation where resource downloads fail due to poor network signals, which makes it impossible to restore the multimedia effects of the rendering template.

[0020] In the present disclosure, when restoring the multimedia effects corresponding to the rendering template, it is not necessary to render all the multimedia effects at once. Some multimedia effects can be restored progressively with the playback time, such as some special effects, stickers, filter effects, etc. Therefore, when there are many sticker resources in the rendering template, the video can be rendered first, and then the stickers can be downloaded while playing. Each sticker is rendered after it is downloaded. The user feels that the effects in the template are constantly being dynamically added during the playback process. Therefore, the loading time of the rendering template is greatly reduced without affecting the user's experience of the multimedia effect preview.

[0021] Based on this, this technical solution divides the rendering resources into essential and non-essential resources, gives priority to the essential rendering resources to present the corresponding multimedia interface to the user, and avoids the user waiting for a long time. For non-essential rendering resources, they can be downloaded and rendered based on the needs of the playback time point, without affecting the display of multimedia effects, thereby improving the user's preview experience of multimedia effects.

[0022] According to an embodiment of the present disclosure, an embodiment of a method for rendering multimedia resources is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0023] In this embodiment, a method for rendering multimedia resources is provided, which can be used in the above-mentioned computer devices, such as mobile phones, tablet computers, computers, etc. Figure 1 is a flowchart of a method for rendering multimedia resources according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:

[0024] Step S101: acquiring multiple multimedia rendering resources in a rendering template in a multimedia editing interface.

[0025] The multimedia editing interface is used to configure the rendering template accordingly. The rendering template is used to define the description for the multimedia rendering resources and to lay out the multimedia rendering resources so that the multimedia data can be loaded according to the rendering template. Multimedia rendering resources are a variety of resource packages required to generate multimedia effects. Specifically, the multimedia rendering resources may include video resource packages, audio resource packages, sticker resource packages, filter resource packages, special effects resource packages, animation resource packages, transition resource packages, etc. The types of multimedia rendering resources are not limited here, and those skilled in the art can choose according to actual needs.

[0026] The technician can pre-configure the rendering template in the multimedia editing interface and configure the required multimedia rendering resources in the rendering template. Accordingly, the multimedia editing interface can obtain multiple multimedia rendering resources included in the rendering template by parsing the configuration information of the rendering template.

[0027] Step S102: Generate first multimedia data based on multiple multimedia rendering resources.

[0028] The first multimedia data includes a first rendering resource set, and the first rendering resource set includes at least part of the multimedia rendering resources.

[0029] Part of the multimedia rendering resources included in the first rendering resource set is input into the rendering layer, and the rendering layer can render the part of the multimedia rendering resources according to the layout associated with the rendering template to generate corresponding first multimedia data.

[0030] Step S103: playing the first multimedia data in the multimedia editing interface.

[0031] The first multimedia data is displayed in a multimedia editing interface so that a user can preview the first multimedia data associated with the first rendering resource set.

[0032] Taking the first rendering resource set including video resources as an example, after identifying the video resources in the rendering template, the video resources are downloaded, and the downloaded video resources are directly sent to the rendering layer for video rendering, so that the video data corresponding to the video resources are displayed in the multimedia interface, and the video data is played in the multimedia interface, so that the user can watch the video playback screen. It can be understood that the video resources included in the first rendering resource set can be distributed at any time node or time period of the video data, that is, the determination of the first rendering resource set can be independent of the time position and time sequence of its playback.

[0033] Step S104: in the process of playing the first multimedia data, adding the playing effect of the second rendering resource set in real time, wherein the second rendering resource set includes other multimedia rendering resources in the plurality of multimedia rendering resources except the first rendering resource set.

[0034] The second rendering resource set is a set of multimedia rendering resources required for playing the first multimedia data. Specifically, the second rendering resource set includes other multimedia rendering resources from the plurality of multimedia rendering resources except the first rendering resource set. The other multimedia rendering resources included in the second rendering resource set can be determined according to the playing time point of the first multimedia data.

[0035] Specifically, during the playback of the first multimedia data, the multimedia rendering resources included in the second rendering resource set are sent to the rendering layer for rendering processing to obtain the playback effect associated with the second rendering resource set. Thus, the playback effect corresponding to the second rendering resource set can be added in real time on the basis of playing the first multimedia data.

[0036] For example, when the first rendering resource set includes video resources and the second rendering resource set includes sticker resources, when the rendering of the video resources is completed and the video playback screen is displayed, the sticker resources in the rendering template can be downloaded and rendered in the rendering layer to obtain sticker data. The sticker data is merged with the video data to dynamically add sticker effects in the video playback screen.

[0037] The rendering method of multimedia resources provided in this embodiment generates and plays part of the first multimedia data from the multiple multimedia rendering resources obtained in the multimedia editing interface, and processes other multimedia rendering resources based on the playing of the first multimedia data, so as to add the corresponding playback effects of other multimedia rendering resources in real time to the first multimedia data. As a result, the multimedia resources in the rendering template do not need to wait for all downloads to be completed before rendering, and can be downloaded and rendered at any time, thereby reducing the loading time of the multimedia resources. Moreover, during the rendering process, some multimedia rendering resources can be processed preferentially to present the corresponding multimedia data to the user, avoiding the user from waiting for a long time, and other multimedia rendering resources can be rendered and played at the same time, so that the corresponding playback effects can be dynamically added based on the playing of the first multimedia data, and the display of the multimedia effects will not be affected, thereby improving the user's preview experience of the multimedia effects.

[0038] In this embodiment, a method for rendering multimedia resources is provided, which can be used in the above-mentioned computer devices, such as mobile phones, tablet computers, computers, etc. Figure 2 is a flowchart of a method for rendering multimedia resources according to an embodiment of the present disclosure, such as Figure 2 As shown, the process includes the following steps:

[0039] Step S201, obtaining multiple multimedia rendering resources in a rendering template in a multimedia editing interface. For detailed description, please refer to the relevant description corresponding to the above embodiment, which will not be repeated here.

[0040] Step S202: Generate first multimedia data based on multiple multimedia rendering resources.

[0041] The first multimedia data includes a first rendering resource set, and the first rendering resource set includes at least part of the multimedia rendering resources.

[0042] Specifically, the first rendering resource set includes essential rendering resources among the plurality of multimedia rendering resources. Accordingly, the above step S202 may include:

[0043] Step S2021: identifying at least one essential rendering resource from a plurality of multimedia rendering resources.

[0044] The required rendering resource is the starting playback resource required for rendering the multimedia effect, that is, the resource that the multimedia effect plays first. For example, if the video needs to be played at the beginning, the required rendering resource is the video resource; if the audio needs to be played at the beginning, the required rendering resource is the audio resource.

[0045] The plurality of multimedia rendering resources include essential rendering resources and non-essential rendering resources. The essential rendering resources are identified from the plurality of multimedia rendering resources according to a preset rule, where the preset rule is a pre-set rule for identifying the essential rendering resources.

[0046] In some implementations, the above step S2021 may include:

[0047] Step a1, identifying whether each multimedia rendering resource carries a necessary identifier.

[0048] The essential identifier is the identifier information carried by the essential rendering resource. When the multimedia rendering resources in the rendering template are acquired, the identifier information carried by each multimedia rendering resource is detected to determine whether the identifier information carried by the resource is an essential identifier.

[0049] Step a2: determine one or more multimedia rendering resources carrying the essential identifier as essential rendering resources.

[0050] When it is determined that there is a multimedia rendering resource with a required mark in the rendering template, the multimedia rendering resource is determined as a required rendering resource, such as all video clips of the main track; when it is determined that there are multiple multimedia rendering resources with required marks in the rendering template, the multiple multimedia rendering resources are determined as required rendering resources, such as only the first video of the main track, all clips of the main track, the audio track, the sticker track, etc. At the same time, resources other than the required rendering resources are determined as non-required rendering resources.

[0051] Therefore, by identifying the necessary identifiers carried by the multimedia rendering resources, the necessary rendering resources can be quickly identified and loaded with priority, so as to ensure the loading speed of the necessary rendering resources.

[0052] Step S2022: Process the necessary rendering resources to generate first multimedia data.

[0053] The first multimedia data includes necessary rendering resources.

[0054] The necessary rendering resources are input to the rendering layer, and the rendering layer can perform rendering processing on the necessary rendering resources to generate first multimedia data including the necessary rendering resources. For example, if the necessary rendering resources are video resources, the rendering layer performs rendering processing on the necessary rendering resources to generate a video screen corresponding to the necessary rendering resources, and the user can preview the first multimedia data associated with the necessary rendering resources through the video screen. It can be understood that the necessary rendering resources can be distributed at any time node or time period of the video data, that is, the determination of the necessary rendering resources can be independent of the time position and time sequence of their playback.

[0055] Step S203: Play the first multimedia data in the multimedia editing interface. For detailed description, please refer to the relevant description of the above embodiment, which will not be repeated here.

[0056] Step S204: during the playback of the first multimedia data, adding the playback effect of the second rendering resource set in real time.

[0057] The second rendering resource set includes other multimedia rendering resources among the multiple multimedia rendering resources except the first rendering resource set.

[0058] Specifically, the above step S204 may include: generating second multimedia data based on the first multimedia data and the second rendering resource set.

[0059] The second multimedia data includes the first multimedia data and at least part of the multimedia rendering resources in the second rendering resource set added in real time.

[0060] On the basis of playing the first multimedia data, the multimedia rendering resources in the second rendering resource set are input into the rendering layer for rendering processing, so as to merge the first multimedia data with the multimedia data obtained by rendering the second rendering resource set to generate the second multimedia data. Thus, when displaying the second multimedia data, the user can preview the first multimedia data and the playback effects of other multimedia rendering resources added to the first multimedia data in real time.

[0061] In some implementations, the second rendering resource set includes non-essential rendering resources among the plurality of multimedia rendering resources. Accordingly, the step of generating the second multimedia data based on the first multimedia data and the second rendering resource set may include:

[0062] Step B: Process one or more non-essential rendering resources within a preset time after processing the essential rendering resources, and generate and play second multimedia data including the non-essential rendering resources based on the processing result on the basis of the first multimedia data.

[0063] The preset duration is a preset interval duration after rendering the essential rendering resources, that is, after completing the rendering processing of the essential rendering resources, the non-essential rendering resources are rendered. Specifically, the non-essential rendering resources are downloaded, and the downloaded non-essential rendering resources are sent to the rendering layer for rendering processing to obtain the second multimedia data including the non-essential rendering resources. Then, the data corresponding to the second rendering resource set is merged with the first multimedia data, and the second multimedia data is played on the basis of playing the first multimedia data.

[0064] In this implementation, by dividing multimedia resources into essential rendering resources and non-essential rendering resources, when rendering, the essential rendering resources are rendered first to generate corresponding first multimedia data for playback in the multimedia interface, and then the non-essential rendering resources are processed to generate corresponding second multimedia data, and the second multimedia data is played on the basis of the first multimedia data. Thus, when rendering multimedia resources, the essential rendering resources can be processed first to present the corresponding multimedia interface to the user, avoiding the user from waiting for a long time, and the non-essential rendering resources can be rendered and played at the same time, so that the multimedia data corresponding to the second rendering resource set can be added dynamically in real time on the basis of playing the first multimedia data, and the display of the multimedia effects will not be affected, which improves the user's preview experience of the multimedia effects.

[0065] In some embodiments, the above step B may include:

[0066] Step b1, when the first multimedia data is played for a preset time, determining the playing position of the first multimedia data.

[0067] The preset duration is the preset playback duration of the first multimedia data, and the playback position is the position reached after the first pair of media data is played for the preset duration. Specifically, the first multimedia data is played according to the corresponding playback track, and the playback track sets the playback time of the multimedia data according to the time dimension, that is, there is a one-to-one correspondence between the playback time and the multimedia data. According to the preset duration of the first multimedia data, the position of the first multimedia data on the playback track can be determined, and the position is the playback position of the first multimedia data.

[0068] Taking the first multimedia data as video data as an example, the video data is played according to the video track, and each frame of video has a corresponding start time and end time. When the video data is played for a preset time, the current playback position of the video data can be determined by combining the preset time, the start time of each frame of video, and the end time of each frame of video.

[0069] Step b2: Based on the playback position, determine the target resource required for the next playback position from the non-essential rendering resources.

[0070] Based on the playback of the first multimedia data, each non-essential rendering resource can be downloaded according to a preset start and end time and loaded into the current first multimedia data. In order to ensure the loading continuity and present a dynamic addition effect, during the playback of the first multimedia data, it can be detected in real time whether the next playback position needs to load the non-essential rendering resource.

[0071] The non-essential rendering resources required to load the next playback position are downloaded as target resources. Even in the case of poor network, this method can download non-essential rendering resources according to playback requirements without waiting for all non-essential rendering resources to be downloaded. This can reduce the waiting time for resource loading and ensure multimedia effects.

[0072] In some optional implementations, the above step b2 may include:

[0073] Step b21, obtaining the loading time corresponding to each non-essential rendering resource, and determining the target playback position of each non-essential rendering resource based on the first multimedia data based on the loading time.

[0074] Step b22, comparing the target playback position with the next playback position, and selecting the target resources required for the next playback position from the non-essential rendering resources according to the comparison result.

[0075] The loading time represents the display time of each non-essential rendering resource. The loading time is pre-configured according to actual needs. There is no specific limitation on the loading time here. Technical personnel in this field can set the loading time of each non-essential rendering resource on the first multimedia data based on debugging results or experience values.

[0076] The playback position of each playback moment of the first multimedia data on the playback track is determined according to the playback time of the first multimedia data. The target playback position of the loading time on the playback track can be determined according to the loading time.

[0077] If the next playback position of the first multimedia data is the same as the target playback position, it means that the next playback position needs to load the corresponding non-essential rendering resource, and the non-essential rendering resource is determined as the target resource required for the next playback position.

[0078] In this embodiment, by determining the loading time corresponding to the non-essential rendering resources, its target playback position based on the first multimedia data can be determined. By combining the target playback position and the next playback position of the first multimedia data, the required target resources can be determined, thereby achieving dynamic scheduling of non-essential rendering resources, which facilitates dynamic acquisition of corresponding target resources based on the actual playback status.

[0079] Step b3: Process the target resource according to a preset priority to generate second multimedia data corresponding to the target resource.

[0080] The preset priority is a pre-set downloading order for each target resource, and the second multimedia data is multimedia data generated by rendering the target resource. Specifically, each target resource is downloaded according to the preset priority, and each target resource can be rendered after each target resource is downloaded, that is, the operation of downloading and rendering is performed for the target resource, thereby obtaining the second multimedia data associated with each target resource in sequence.

[0081] In some optional implementations, the above step b3 may include:

[0082] Step b31, construct multiple download tasks corresponding to the target resources.

[0083] Step b32: Prioritize multiple download tasks based on preset priorities to obtain priority ranking results.

[0084] Step b33, triggering each download task in sequence according to the priority sorting result to generate the second multimedia data.

[0085] Construct multiple download tasks corresponding to the target resources, add each download task to the task queue, and prioritize each download task in the task queue according to the preset priority to obtain the priority sorting result. When downloading, trigger the download task in combination with the priority sorting result. Specifically, different types of target resources have different corresponding priorities. Arrange target resources of different types in descending order of priority, that is, the greater the priority of the target resource, the higher the priority of the corresponding download task.

[0086] For example, the priority of video resources is 100, the priority of audio resources is 99, the priority of filter resources is 98, the priority of special effect resources is 97, and the priority of sticker resources is 96. Different types of target resources correspond to one or more download tasks. The download tasks are sorted according to the priorities of the target resources to obtain the priority sorting results of the download tasks. In this example, the video resource has the highest priority, so the download task corresponding to the video resource is triggered first.

[0087] When a download task is completed, it means that the resource package corresponding to the download task has been downloaded to the local computer. At this time, the downloaded resource package is rendered to obtain multimedia data associated with the resource package.

[0088] In this implementation, by triggering each download task in sequence according to the priority ranking result, it is ensured that the required target resources are loaded first, thereby improving the rendering effect of the multimedia resources.

[0089] In some optional implementations, the above step b33 may include:

[0090] Step c1, detecting whether the number of download tasks exceeds the preset concurrent amount.

[0091] Step c2: when the number of download tasks exceeds the preset concurrent quantity, determine the current download task according to the preset concurrent quantity.

[0092] Step c3, triggering the current download tasks in sequence according to the priority sorting results, and obtaining the second multimedia data corresponding to each download task.

[0093] The preset concurrency is the maximum number of concurrent tasks pre-configured in the business layer, such as 3, 4, 5, etc. There is no limitation on the preset concurrency here, and technicians in this field can determine it according to actual needs.

[0094] The number of download tasks corresponding to the target resource is counted, and the number of download tasks is compared with the preset concurrency to determine whether the number of download tasks corresponding to the target resource exceeds the preset concurrency. When the number of download tasks exceeds the preset concurrency, several download tasks with higher priorities are selected from multiple download tasks according to the preset concurrency and priority sorting results, and the download tasks are executed to trigger the corresponding resource download process, and the downloaded resources are rendered to obtain the corresponding multimedia data.

[0095] Specifically, each time a download task is completed, the download task with the highest priority is taken out from the task queue to meet the maximum task concurrency and continue to download resources, thereby enabling progressive rendering of the target resource.

[0096] It should be noted that following the playback progress of the first multimedia data, the non-essential rendering resources required for the next playback position are detected in real time according to the playback time and playback position of the first multimedia data, so as to give priority to downloading the non-essential rendering resources involved in the content to be played, and re-prioritize the download tasks corresponding to the non-essential rendering resources, and trigger each download task in sequence according to the re-prioritized priority ranking results.

[0097] In this embodiment, when the amount of download tasks corresponding to the target resource exceeds the preset concurrency, multiple download tasks corresponding to the target resource are scheduled according to the preset priority and the preset concurrency. After each download task is completed, a download task with the highest priority is scheduled from the remaining download tasks. This enables progressive rendering of the target resource, greatly reducing the loading time of the resource without affecting the user's preview of the multimedia effects.

[0098] Step b4: playing the second multimedia data based on the first multimedia data.

[0099] On the basis of playing the first multimedia data through the multimedia interface, the second multimedia data obtained by rendering the target resources is loaded onto the current multimedia interface. Therefore, on the basis of playing the first multimedia data, the second multimedia data corresponding to each target resource can be dynamically added to the first multimedia data for playback, thereby realizing the dynamic loading and playback of the second multimedia data.

[0100] Taking the first multimedia data as video data and the second multimedia data as audio data and sticker data as an example, the playback time of audio resources and sticker resources is pre-set. For example, the audio data and sticker data are added 2s after the video data is played. When it is detected that the video data is played to 1.9s, the audio resources and sticker resources required for the next playback position (i.e., the position corresponding to 2s) are determined from the non-essential rendering resources, and the priority of the audio resources is greater than the priority of the sticker resources. Here, the audio resources and sticker resources are used as target resources and downloaded in the order of audio resources first and sticker resources second. After the download of the audio resources is completed, the audio data is rendered and loaded into the video data for audio playback. At the same time, the downloaded sticker resources are dynamically rendered, and the sticker data can be dynamically added to the current video data. The feeling presented to the user is the effect of dynamic addition of stickers.

[0101] Of course, if the audio data is added after 2s of video data playback, and the sticker data is added after 4s of video data playback, then when it is detected that the video data is played to 1.9s, the audio resources required for the next playback position (i.e., the position corresponding to 2s) are determined from the non-essential rendering resources for downloading, and the downloaded audio resources are rendered so that the audio data can be played while the video data is playing. Similarly, when it is detected that the video data is played to 3.9s, the sticker resources required for the next playback position (i.e., the position corresponding to 4s) are determined from the non-essential rendering resources for downloading, and the downloaded sticker resources are rendered so that the sticker data can be dynamically displayed on the video screen while the video data and audio data are playing.

[0102] It is understandable that if there are factors such as network delays, the playback time point after the multimedia rendering resource is initially dynamically loaded may be later than the actual playback node set by the rendering template. For example, in the above example, the sticker display time period is 4s to 8s. When it is detected that the video data is played to 3.9s, the sticker resources required for the next playback position (i.e. the position corresponding to 4s) should be determined from the non-essential rendering resources for download and playback. However, due to network reasons, the sticker resource download is not completed at 4s. After the sticker resource download is completed at 4.2s, the sticker effect can be played again until the sticker display is canceled at 8s.

[0103] The rendering method of multimedia resources provided in this embodiment detects the current playback position to determine the target resources that need to be loaded at the next playback position, thereby being able to dynamically determine the required target resources from the non-essential rendering resources, and being able to prioritize the loading of the multimedia resources to be played, without the need to download all non-essential rendering resources in sequence, thus saving loading time. At the same time, the determined target resources are processed in sequence according to the preset priority, realizing the progressive rendering of non-essential rendering resources, so that the target resources can be dynamically added to the first multimedia data, achieving the effect of dynamic loading, and improving the user's preview experience of multimedia effects.

[0104] In this embodiment, a method for rendering multimedia resources is provided, which can be used in the above-mentioned computer devices, such as mobile phones, tablet computers, computers, etc. Figure 3 is a flowchart of a method for rendering multimedia resources according to an embodiment of the present disclosure, such as Figure 3 As shown, the process includes the following steps:

[0105] Step S301: Acquire multiple multimedia rendering resources in a rendering template in a multimedia editing interface.

[0106] Specifically, the above step S301 includes:

[0107] Step S3011, obtaining resource description information in the rendering template in the multimedia editing interface.

[0108] The resource description information is a download path description for the remote resource package defined in advance by the technician in the rendering template protocol. All multimedia rendering resources included in the rendering template have corresponding resource description information. Specifically, when the rendering template is obtained, the resource description information corresponding to all multimedia rendering resources can be obtained by parsing the protocol information corresponding to the rendering template.

[0109] Step S3012: Acquire corresponding multimedia remote resources based on the resource description information.

[0110] The multimedia remote resource is a multimedia rendering resource stored in a remote server. The download path of the multimedia remote resource can be determined based on the resource description information, and the corresponding remote server can be located based on the download path, so that all multimedia remote resources can be obtained from the remote server pointed to by the download address.

[0111] Step S3013: convert the multimedia remote resources according to a preset conversion protocol to obtain multimedia rendering resources.

[0112] The preset conversion protocol is a data conversion protocol between the remote server and the rendering template. Since multimedia remote resources may come from different servers, and different remote servers have different definitions of data, in order to ensure data consistency, various multimedia remote resources can be converted according to the preset conversion protocol to obtain multimedia rendering resources that can be recognized by the rendering template, and the multimedia rendering resources are filled into the rendering template for subsequent rendering.

[0113] Step S302: Generate first multimedia data based on multiple multimedia rendering resources. The first multimedia data includes a first rendering resource set, and the first rendering resource set includes at least part of the multimedia rendering resources. For detailed description, please refer to the relevant description corresponding to the above embodiment, which will not be repeated here.

[0114] Step S303: Play the first multimedia data in the multimedia editing interface. For detailed description, please refer to the relevant description of the above embodiment, which will not be repeated here.

[0115] Step S304: In the process of playing the first multimedia data, the playback effect of the second rendering resource set is added in real time. The second rendering resource set includes other multimedia rendering resources in the plurality of multimedia rendering resources except the first rendering resource set. For detailed description, please refer to the relevant description corresponding to the above embodiment, which will not be repeated here.

[0116] The rendering method of multimedia rendering resources provided in this embodiment performs protocol conversion on the acquired multimedia remote resources to generate multimedia rendering resources supported by the current rendering template, thereby improving the compatibility with various remote resources.

[0117] As a specific application embodiment of the present disclosure, when multimedia effects are reproduced according to a rendering template, the implementation method is as follows:

[0118] 1) Download the necessary resources in the prepared rendering template (ie, NLEModel) in advance, which are related to audio and video rendering, such as the first main track video clip to be played. Here, the necessary resources in the rendering template are identified in combination with preset rules.

[0119] 2) After downloading the necessary resources, the NLEModel is directly handed over to the rendering layer (ie, the NLEMedia layer) for rendering of the necessary resources. The NLEMedia layer can render the main track video based on the existing necessary resources, so that the user can see the video screen.

[0120] 3) There are many non-essential rendering resources in the NLEModel template. If you download them all at once, it may cause slow resource loading. At this time, you need to download each non-essential rendering resource in sequence according to the pre-priority, such as other video resources, audio resources, sticker / filter resources, various style resources, etc., and the preset priority can support business configuration.

[0121] Specifically, when playing a video, the priority of non-essential rendering resources is sorted according to the current playback position of the video, and the non-essential rendering resources involved in the content to be played are downloaded first. On this basis, resources are selected according to the priority of various types of non-essential rendering resources. For example, if the video resource has the highest priority, the video resource will be downloaded first.

[0122] 4) The downloaded non-essential rendering resources are rendered through the NLEMedia layer to add the effects corresponding to the non-essential rendering resources to the audio and video rendering engine for playback.

[0123] Several groups of experiments were set up through this scheme, and the following results were obtained: Figure 4 The experimental results are shown in the figure. By analyzing the experimental results, we can observe that the average time consumption of each rendering template is optimized by 455ms, the download process of special effects is optimized by 20.2%, and the overall application process of rendering template is optimized by 7.1%. It can be seen that this solution improves the loading speed of rendering templates and improves the user experience.

[0124] In the present embodiment, a rendering device for multimedia resources is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0125] This embodiment provides a rendering device for multimedia rendering resources, such as Figure 5 As shown, including:

[0126] The resource acquisition module 401 is used to acquire multiple multimedia rendering resources in the rendering template in the multimedia editing interface.

[0127] The generating module 402 is configured to generate first multimedia data based on a plurality of multimedia rendering resources, wherein the first multimedia data comprises a first rendering resource set, and the first rendering resource set comprises at least part of the multimedia rendering resources.

[0128] The playing module 403 is used to play the first multimedia data in the multimedia editing interface.

[0129] The adding module 404 is used to add the playing effect of the second rendering resource set in real time during the playing of the first multimedia data, wherein the second rendering resource set includes other multimedia rendering resources in the plurality of multimedia rendering resources except the first rendering resource set.

[0130] In some optional implementations, the generation module 402 may include:

[0131] The identification unit is used to identify at least one necessary rendering resource from a plurality of multimedia rendering resources.

[0132] The resource processing unit is used to process the necessary rendering resources to generate first multimedia data, wherein the first multimedia data includes the necessary rendering resources.

[0133] In some optional implementations, the identification unit may include:

[0134] The identification recognition unit is used to identify whether each multimedia rendering resource carries a necessary identification.

[0135] The essential determination unit is used to determine one or more multimedia rendering resources carrying the essential identification as essential rendering resources.

[0136] In some optional implementations, the adding module 404 may include:

[0137] The data generating unit is configured to generate second multimedia data based on the first multimedia data and the second rendering resource set, wherein the second multimedia data includes the first multimedia data and at least part of the multimedia rendering resources in the second rendering resource set added in real time.

[0138] In some implementations, the second rendering resource set includes non-essential rendering resources among the plurality of multimedia rendering resources, and the data generating unit may include:

[0139] The rendering subunit is used to process one or more non-essential rendering resources within a preset time after processing the essential rendering resources, and based on the processing result, generate and play the second multimedia data including the non-essential rendering resources on the basis of the first multimedia data.

[0140] In some embodiments, the rendering sub-unit is further used to: determine the playback position of the first multimedia data when the first multimedia data is played for a preset duration; based on the playback position, determine the target resources required for the next playback position from non-essential rendering resources; process the target resources according to a preset priority to generate second multimedia data corresponding to the target resources; and play the second multimedia data based on the first multimedia data.

[0141] In some optional embodiments, the above-mentioned rendering sub-unit is also specifically used to: obtain the loading time corresponding to each non-essential rendering resource, and determine the target playback position of each non-essential rendering resource based on the first multimedia data based on the loading time; compare the target playback position with the next playback position, and filter out the target resources required for the next playback position from the non-essential rendering resources according to the comparison results.

[0142] In some optional embodiments, the above-mentioned rendering sub-unit is also specifically used to: construct multiple download tasks corresponding to the target resources; prioritize the multiple download tasks based on preset priorities to obtain priority sorting results; trigger each download task in turn according to the priority sorting results to generate second multimedia data.

[0143] In some optional embodiments, the above-mentioned rendering sub-unit is also specifically used to: detect whether the number of download tasks exceeds the preset concurrency; when the number of download tasks exceeds the preset concurrency, determine the current download task according to the preset concurrency; trigger the current download task in sequence according to the priority sorting results to obtain the second multimedia data corresponding to each download task.

[0144] In some optional implementations, the resource acquisition module 401 may include:

[0145] The information acquisition unit is used to acquire resource description information in the rendering template in the multimedia editing interface.

[0146] The remote resource acquisition unit is used to acquire corresponding multimedia remote resources based on the resource description information.

[0147] The resource conversion unit is used to convert the multimedia remote resources according to a preset conversion protocol to obtain multimedia rendering resources.

[0148] The further functional description of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0149] The rendering device of multimedia resources in this embodiment is presented in the form of functional units, where the units refer to ASIC circuits, processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0150] The rendering device of multimedia resources provided in this embodiment generates and plays part of the first multimedia data from the multiple multimedia rendering resources obtained in the multimedia editing interface, and processes other multimedia rendering resources based on the playing of the first multimedia data, so as to add the corresponding playback effects of other multimedia rendering resources in real time to the first multimedia data. As a result, the multimedia resources in the rendering template do not need to wait until all downloads are completed before rendering, and can be downloaded and rendered at any time, thereby reducing the loading time of the multimedia resources. Moreover, during the rendering process, some multimedia rendering resources can be processed preferentially to present the corresponding multimedia data to the user, avoiding the user from waiting for a long time, and other multimedia rendering resources can be rendered and played at the same time, so that the corresponding playback effects can be dynamically added based on the playing of the first multimedia data, and the display of the multimedia effects will not be affected, thereby improving the user's preview experience of the multimedia effects.

[0151] The present disclosure also provides a computer device having the above Figure 5 A rendering device for the multimedia resources shown.

[0152] See also Figure 6 , Figure 6 is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Figure 6As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0153] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0154] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0155] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0156] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0157] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0158] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0159] The computer device also includes a communication interface for data communication between the computer device and other devices or a communication network.

[0160] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0161] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for rendering multimedia resources, characterized in that: The method comprises: Obtain multiple multimedia rendering resources in the rendering template in the multimedia editing interface; generating first multimedia data based on the plurality of multimedia rendering resources, wherein the first multimedia data comprises a first rendering resource set, and the first rendering resource set comprises at least part of the multimedia rendering resources; Playing the first multimedia data in the multimedia editing interface; During the playing of the first multimedia data, a playing effect of a second rendering resource set is added in real time, where the second rendering resource set includes other multimedia rendering resources among the plurality of multimedia rendering resources except the first rendering resource set.

2. The method according to claim 1, characterized in that The first rendering resource set includes essential rendering resources among the plurality of multimedia rendering resources, and generating first multimedia data based on the plurality of multimedia rendering resources includes: Identifying at least one essential rendering resource from the plurality of multimedia rendering resources; The necessary rendering resources are processed to generate first multimedia data, where the first multimedia data includes the necessary rendering resources.

3. The method according to claim 2, characterized in that The step of identifying at least one necessary rendering resource from the plurality of multimedia rendering resources comprises: Identify whether each of the multimedia rendering resources carries a necessary identifier; One or more multimedia rendering resources carrying the essential identifier are determined as the essential rendering resources.

4. The method according to claim 1, characterized in that: The adding the playback effect of the second rendering resource set in real time during the playback of the first multimedia data includes: Based on the first multimedia data and the second rendering resource set, second multimedia data is generated, where the second multimedia data includes the first multimedia data and at least part of the multimedia rendering resources in the second rendering resource set added in real time.

5. The method according to claim 4, characterized in that The second rendering resource set includes non-essential rendering resources among the plurality of multimedia rendering resources, and the generating second multimedia data based on the first multimedia data and the second rendering resource set includes: Within a preset time period after the essential rendering resources are processed, one or more of the non-essential rendering resources are processed, and based on the processing result, second multimedia data including the non-essential rendering resources are generated and played on the basis of the first multimedia data.

6. The method according to claim 5, characterized in that The method includes: processing one or more non-essential rendering resources within a preset time after processing the essential rendering resources, and generating and playing second multimedia data including the non-essential rendering resources based on the processing result and on the basis of the first multimedia data, including: When the first multimedia data is played for a preset time, determining a playback position of the first multimedia data; Based on the playback position, determining the target resource required for the next playback position from the non-essential rendering resources; Processing the target resource according to a preset priority to generate the second multimedia data corresponding to the target resource; Based on the first multimedia data, the second multimedia data is played.

7. The method according to claim 6, characterized in that The determining, based on the playback position, the target resource required for the next playback position from the non-essential rendering resources comprises: Obtaining a loading time corresponding to each of the non-essential rendering resources, and determining a target playback position of each of the non-essential rendering resources based on the first multimedia data based on the loading time; The target playback position is compared with the next playback position, and the target resource required for the next playback position is filtered out from the non-essential rendering resources according to the comparison result.

8. The method according to claim 6, characterized in that Processing the target resource according to a preset priority to generate the second multimedia data corresponding to the target resource includes: Constructing multiple download tasks corresponding to the target resources; Prioritize the multiple download tasks based on the preset priority level to obtain a priority ranking result; The download tasks are triggered in sequence according to the priority sorting result to generate the second multimedia data.

9. The method according to claim 8, characterized in that The triggering each of the download tasks in sequence according to the priority sorting result to generate the second multimedia data includes: Detecting whether the number of the download tasks exceeds a preset concurrent amount; When the number of the download tasks exceeds the preset concurrent amount, determining the current download task according to the preset concurrent amount; The current download tasks are triggered in sequence according to the priority sorting results to obtain the second multimedia data corresponding to each download task.

10. The method according to claim 1, characterized in that The step of obtaining multiple multimedia rendering resources in a rendering template in a multimedia editing interface includes: Obtain resource description information in the rendering template in the multimedia editing interface; Acquire corresponding multimedia remote resources based on the resource description information; The multimedia remote resource is converted according to a preset conversion protocol to obtain the multimedia rendering resource.

11. A rendering device for multimedia resources, characterized in that: The device comprises: A resource acquisition module, used to acquire multiple multimedia rendering resources in a rendering template in a multimedia editing interface; A generating module, configured to generate first multimedia data based on the plurality of multimedia rendering resources, wherein the first multimedia data comprises a first rendering resource set, and the first rendering resource set comprises at least part of the multimedia rendering resources; A playing module, used for playing the first multimedia data in the multimedia editing interface; An adding module is used to add the playback effect of a second rendering resource set in real time during the playback of the first multimedia data, wherein the second rendering resource set includes other multimedia rendering resources among the multiple multimedia rendering resources except the first rendering resource set.

12. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for rendering multimedia resources according to any one of claims 1 to 10 by executing the computer instructions.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for rendering multimedia resources according to any one of claims 1 to 10.

Citation Information

Cited By

  • Media resource rendering method and apparatus, computer device, and storage medium

    EP4718280A1