Video rendering method and device, equipment and storage medium

By adjusting the editing track order and rendering level of the video editing interface, the problem of low freedom of rendering editing materials in the existing technology is solved, and a higher user experience is achieved.

CN119729108APending Publication Date: 2025-03-28BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311266403.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

Among the existing video editing technologies, the video track has the highest rendering level, resulting in text materials and sticker materials that can only be displayed on the video materials, limiting the rendering freedom of multiple editing materials and affecting the user experience.

Method used

By responding to the editing track sequence adjustment operation, the preview position of the video editing effect is obtained, and the respective rendering levels are determined according to the arrangement order of multiple editing tracks, thereby rendering and obtaining the video editing effect.

Benefits of technology

The rendering levels of multiple editing materials are adjusted at will. Text materials and sticker materials can be displayed on or under video materials, which improves the rendering freedom of editing materials and thus improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729108A_ABST
    Figure CN119729108A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a video rendering method and device, equipment and a storage medium, and the method comprises the steps: obtaining a preview position of a video editing effect in response to a received sequence adjustment operation of an editing track where editing materials are located, and determining a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface; according to the arrangement sequence of the multiple different editing tracks, rendering levels corresponding to the multiple editing materials are determined, and the rendering levels are used for representing rendering priorities of the editing materials; and rendering the plurality of editing materials according to the rendering levels corresponding to the plurality of editing materials to obtain a video editing effect at the preview position. The rendering hierarchy of the editing material is determined according to the arrangement sequence of the editing tracks, the degree of freedom of the rendering hierarchy can be improved, and then the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of video editing technology, and more particularly to a video rendering method, apparatus, device and storage medium. Background Art

[0002] Currently, the multiple editing tracks in the video editing interface have different corresponding rendering levels. By adjusting the rendering level of the editing track, you can adjust the display priority of the video material, thereby improving the rendering effect of the video.

[0003] In the prior art, multiple editing tracks in a video editing interface may include video tracks, text tracks, sticker tracks, etc. Among them, the video track has the highest rendering level, that is, the video material is rendered first, and then the text material, sticker material, etc. are rendered.

[0004] However, the inventors found that the prior art has at least the following technical problems: since the video track has the highest rendering level, text materials, sticker materials, etc. can only be displayed on top of the video materials, resulting in a low degree of rendering freedom for multiple editing materials, which in turn affects the user experience. Summary of the invention

[0005] The embodiments of the present disclosure provide a video rendering method, apparatus, device and storage medium, which can improve the rendering freedom of editing materials and thus improve the user experience.

[0006] In a first aspect, an embodiment of the present disclosure provides a video rendering method, including:

[0007] In response to receiving a sequence adjustment operation of an editing track where an editing material is located, obtaining a preview position of a video editing effect, and determining a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface;

[0008] Determining rendering levels corresponding to the multiple editing materials respectively according to the arrangement order of the multiple different editing tracks, wherein the rendering level is used to indicate the rendering priority of the editing material;

[0009] The multiple editing materials are rendered according to the rendering levels corresponding to the multiple editing materials respectively, so as to obtain the video editing effect at the preview position.

[0010] In a second aspect, an embodiment of the present disclosure provides a video rendering device, including:

[0011] an acquisition module, configured to acquire a preview position of a video editing effect in response to receiving a sequence adjustment operation of an editing track where an editing material is located, and determine a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface;

[0012] A determination module, configured to determine, according to the arrangement order of the multiple different editing tracks, the rendering levels corresponding to the multiple editing materials respectively, wherein the rendering levels are used to indicate the rendering priority of the editing materials;

[0013] The rendering module is used to render the multiple editing materials according to the rendering levels corresponding to the multiple editing materials respectively, so as to obtain the video editing effect at the preview position.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0015] A processor, and a memory communicatively connected to the processor;

[0016] The memory stores computer-executable instructions;

[0017] The processor executes the computer-executable instructions stored in the memory to implement the video rendering method as described in the first aspect above.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the video rendering method described in the first aspect above is implemented.

[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the video rendering method described in the first aspect above.

[0020] The video rendering method, device, equipment and storage medium provided in the present embodiment include: in response to receiving the order adjustment operation of the editing track where the editing material is located, obtaining the preview position of the video editing effect, and determining multiple editing materials corresponding to the preview position, wherein the multiple editing materials are respectively located on multiple different editing tracks in the video editing interface; according to the arrangement order of the multiple different editing tracks, determining the rendering level corresponding to each of the multiple editing materials, wherein the rendering level is used to indicate the rendering priority of the editing material; according to the rendering level corresponding to each of the multiple editing materials, rendering the multiple editing materials to obtain the video editing effect at the preview position. In the embodiment of the present disclosure, since the rendering level corresponding to each of the multiple editing materials is determined according to the arrangement order of the multiple different editing tracks, the rendering levels of the multiple editing tracks can be adjusted at will, so that text materials, sticker materials, etc. can be displayed above or below the video material, thereby improving the rendering freedom of the editing material and thus improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the 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 creative labor.

[0022] Figure 1 A schematic diagram of a video editing interface provided by an embodiment of the present disclosure;

[0023] Figure 2 A flowchart of a video rendering method provided by an embodiment of the present disclosure;

[0024] Figure 3 A schematic diagram of a video rendering method provided by an embodiment of the present disclosure;

[0025] Figure 4 A flowchart of another video rendering method provided by an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram of another video rendering method provided by an embodiment of the present disclosure;

[0027] Figure 6 A structural block diagram of a video rendering device provided in an embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] 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, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0030] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0031] Currently, the multiple editing tracks in the video editing interface have different corresponding rendering levels. By adjusting the rendering level of the editing track, you can adjust the display priority of the video material, thereby improving the rendering effect of the video.

[0032] In the prior art, multiple editing tracks in a video editing interface may include video tracks, text tracks, sticker tracks, etc. Among them, the video track has the highest rendering level, that is, the video material is rendered first, and then the text material, sticker material, etc. are rendered. However, since the video track has the highest rendering level, the text material, sticker material, etc. can only be displayed on top of the video material, resulting in a low degree of freedom in rendering multiple editing materials, which in turn affects the user experience.

[0033] It can be seen that how to improve the rendering freedom of editing materials to improve user experience is an urgent problem to be solved.

[0034] In order to solve the above problems, the present embodiment provides the following technical concepts: first, in response to receiving the order adjustment operation of the editing track where the editing material is located, the preview position of the video editing effect is obtained, and multiple editing materials corresponding to the preview position are determined, wherein the multiple editing materials are respectively located on multiple different editing tracks in the video editing interface; then, according to the arrangement order of the multiple different editing tracks, the rendering level corresponding to each of the multiple editing materials is determined, wherein the rendering level is used to indicate the rendering priority of the editing material; finally, according to the rendering level corresponding to each of the multiple editing materials, the multiple editing materials are rendered to obtain the video editing effect at the preview position. That is, according to the arrangement order of the multiple different editing tracks, the rendering level corresponding to each of the multiple editing materials is determined, and the rendering levels of the multiple editing tracks can be adjusted at will, so that text materials, sticker materials, etc. can be displayed above or below the video materials, thereby improving the rendering freedom of the editing materials and thus improving the user experience.

[0035] The application scenario of the embodiment of the present disclosure is explained below: the video rendering method provided by the embodiment of the present disclosure can be applied to the scenario of adjusting the rendering level of the editing material. Figure 1 Schematic diagram of a video editing interface provided by an embodiment of the present disclosure. Figure 1 As shown, the video editing interface includes multiple editing materials, namely video clip 1, video clip 2 and text 1. In the present application, the track types of video clip 1, video clip 2 and text 1 are all the same preset track type, so that text 1 can be moved to the bottom of video clip 2, and then the rendering level of text 1 and video clip 2 can be adjusted. That is, text 1 can be displayed above video clip 2 or below video clip 2. The video rendering method provided by the embodiment of the present disclosure is described in detail using a detailed embodiment below.

[0036] Figure 2 The flowchart of a video rendering method provided by the embodiment of the present disclosure is shown in FIG. The execution subject of the method can be a terminal or a server. The embodiment of the present disclosure is described by taking the execution subject as a terminal as an example. Figure 2 As shown, the method includes:

[0037] S201. In response to receiving a sequence adjustment operation of an editing track where an editing material is located, obtaining a preview position of a video editing effect, and determining a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface.

[0038] In the embodiment of the present disclosure, the sequence adjustment operation may be any operation related to the editing track sequence. Optionally, the sequence adjustment operation may include an editing track position adjustment operation and / or an editing track addition operation.

[0039] In the disclosed embodiment, one editing material corresponds to one playback time period. If the preview position of the video editing effect is within the playback time period of the editing material, then the editing material is the editing material corresponding to the preview position. Accordingly, this step is: obtaining multiple candidate editing materials in the video editing interface, for each candidate editing material, if the preview position is within the playback time period of the candidate editing material, then determining that the candidate editing material is the editing material corresponding to the preview position.

[0040] Optionally, multiple candidate editing materials in the video editing interface can be obtained through the material identifier of the editing material. It should be noted that the multiple editing materials do not include audio materials. Accordingly, before obtaining multiple candidate editing materials, the material identifier corresponding to the audio material can be modified to other identifiers. Optionally, the other identifier is a filter identifier. Exemplarily, the material identifier can be represented by clipID, and the filter identifier can be represented by filterID, that is, the clipID corresponding to the audio material is modified to filterID. In this way, it is possible to avoid obtaining the audio material in the video editing interface.

[0041] S202 . Determine rendering levels corresponding to each of the multiple editing materials according to the arrangement order of the multiple different editing tracks, wherein the rendering level is used to indicate a rendering priority of the editing material.

[0042] In the disclosed embodiment, this step may include: according to the arrangement order of multiple different editing tracks, determining the serial number of each editing track in the arrangement order; determining the serial number of the editing track in the arrangement order as the rendering level of the editing material on the editing track, and obtaining the rendering level corresponding to each of the multiple editing materials. Optionally, the serial number of the editing track in the arrangement order can be represented by trackindex, and the rendering level of the editing material can be represented by track_render_index.

[0043] For example, Figure 3 As shown, the multiple editing materials include: video clip 1, video clip 2 and text 1. In the traditional mode, the rendering level of each editing material is determined by setting the rendering level parameter (renderIndex). The rendering level parameter of video clip 1 is set to 1001, the rendering level parameter of video clip 2 is set to 1002, and the rendering level parameter of text 1 is set to 1003. In this way, text 1 is located above video clip 2, and video clip 2 is located above video clip 1.

[0044] In free level mode, the sequence number of the editing track in the arrangement order is determined as the rendering level of the editing material on the editing track. Figure 3 As shown in FIG. 1 , in the arrangement order of the editing tracks, the numbers of video clip 1, video clip 2, and text 1 are 1, 2, and 3, respectively. Accordingly, the rendering level of video clip 1 is 1 ( Figure 3 Track_render_Index=1), the rendering level of video clip 2 is 2 ( Figure 3 Track_render_Index=2), the rendering level of text 1 is 3 ( Figure 3 Track_render_Index=3).

[0045] It should be noted that the current video rendering mode is the free-level mode, which first converts the track types of multiple different editing tracks to the same preset track type. In this way, the arrangement order of the editing tracks can be freely adjusted.

[0046] In the disclosed embodiment, the preset track type may be a video track. Exemplarily, the multiple editing materials include: video clip 1, special effect 1 and text 1. Then the track types of video clip 1, special effect 1 and text 1 are all set to video track. Exemplarily, the special effect track can be represented by EffectTrack, and the video track can be represented by VideoTrack. At this time, the track type EffectTrack of special effect 1 is converted to VideoTrack.

[0047] In an embodiment of the present disclosure, the user can also switch the video rendering mode through a switching operation. The video rendering mode includes a free hierarchy mode and a non-free hierarchy mode. Exemplarily, the switching operation may be a click operation on a switch button corresponding to the free hierarchy. Optionally, in response to receiving a switching operation of the video rendering mode, the mode interface information corresponding to the video rendering mode is obtained; if the mode interface information is a first interface identifier, the video rendering mode is determined to be a free hierarchy mode; if the mode interface information is a second interface identifier, the video rendering mode is determined to be a non-free hierarchy mode.

[0048] Exemplarily, the mode interface information is: render_index_track_mode_on interface. The first interface identifier is true, and the second interface identifier is false. If the mode interface information corresponding to the render_index_track_mode_on interface is true, the video rendering mode is determined to be the free layer mode. If the mode interface information corresponding to the render_index_track_mode_on interface is false, the video rendering mode is determined to be the non-free layer mode.

[0049] S203 , rendering the multiple editing materials according to the rendering levels corresponding to the multiple editing materials respectively, to obtain the video editing effect at the preview position.

[0050] Optionally, according to the rendering levels corresponding to the multiple editing materials respectively, the multiple editing materials are rendered in sequence in an ascending order of the rendering levels to obtain a video editing effect at a preview position.

[0051] For example, Figure 3 As shown, in the order of rendering level from small to large, video clip 1, video clip 2, and text 1 are rendered in sequence. Among them, the edited material rendered later is located above the edited material rendered earlier. That is, text 1 is located above video clip 2, and video clip 2 is located above video clip 1.

[0052] The disclosed embodiment provides a video rendering method: in response to receiving a sequence adjustment operation of an editing track where an editing material is located, obtaining a preview position of a video editing effect, and determining a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface; determining a rendering level corresponding to each of the plurality of editing materials according to an arrangement order of the plurality of different editing tracks, wherein the rendering level is used to indicate a rendering priority of the editing material; rendering the plurality of editing materials according to the rendering level corresponding to each of the plurality of editing materials to obtain a video editing effect at the preview position. In the disclosed embodiment, since the rendering level corresponding to each of the plurality of editing materials is determined according to an arrangement order of the plurality of different editing tracks, the rendering levels of the plurality of editing tracks can be adjusted at will, so that text materials, sticker materials, etc. can be displayed above or below the video material, thereby improving the rendering freedom of the editing material and thus improving the user experience.

[0053] It should be noted that the user can also adjust the rendering effect of the material. In this case, the video editing interface can also include an adjustment track for adjusting the rendering effect. The adjustment track can adjust the rendering effect of the editing material. Figure 4 As shown, the method also includes:

[0054] S401: Determine the rendering level corresponding to the adjustment track.

[0055] In an embodiment of the present disclosure, the adjustment track may include a plurality of rendering adjustment parameters. Optionally, the rendering adjustment parameters include one or more of color temperature, hue, saturation, brightness, contrast, shadows, and highlights.

[0056] In this case, the rendering level corresponding to the adjustment track includes sub-rendering levels corresponding to multiple rendering adjustment parameters. In order to solve the problem that one adjustment track corresponds to multiple sub-rendering levels, the rendering level corresponding to the adjustment track can be enlarged. Accordingly, this step is: for each adjustment track, determine the track level of the adjustment track, and determine the track level of the adjustment track as the rendering level corresponding to the adjustment track; according to the number of multiple rendering adjustment parameters included in the adjustment track, enlarge the rendering level of the adjustment track to obtain a number of sub-rendering levels, wherein the end serial numbers of the multiple sub-rendering levels are different; and determine the sub-rendering levels corresponding to the multiple rendering adjustment parameters in order from small to large according to the end serial numbers of the multiple sub-rendering levels.

[0057] Exemplarily, the magnification of the enlargement process is 100 times. The number of rendering adjustment parameters includes color temperature, hue, saturation, brightness, contrast, shadow and highlight. At this time, the number of rendering adjustment parameters is 7. The rendering level corresponding to the adjustment track is 2. The rendering level of the adjustment track is enlarged to obtain 7 sub-rendering levels, namely: 201, 202, 203, 204, 205, 206 and 207, wherein the end serial numbers of the multiple sub-rendering levels are different. According to the order of the end serial numbers from small to large, it is determined that the sub-rendering level corresponding to the color temperature is 201, the sub-rendering level corresponding to the hue is 202, the sub-rendering level corresponding to the saturation is 203, the sub-rendering level corresponding to the brightness is 204, the sub-rendering level corresponding to the contrast is 205, the sub-rendering level corresponding to the shadow is 206, and the sub-rendering level corresponding to the highlight is 207.

[0058] S402 . According to the rendering level corresponding to the adjustment track and the rendering levels corresponding to the plurality of editing materials, select at least one target editing material having a rendering level smaller than the rendering level corresponding to the adjustment track from the plurality of editing materials.

[0059] Exemplarily, the multiple editing materials include video clip 1, video clip 2, and text 1. The rendering levels corresponding to video clip 1, video clip 2, and text 1 are 1, 3, and 4, respectively. The rendering level corresponding to the adjustment track is 2, and the target editing material with a rendering level less than 2 selected from the multiple editing materials is: video clip 1.

[0060] It should be noted that for multiple sub-rendering levels, by judging the size of the rendering level of the editing material and the first digit of the sub-rendering level, it is determined whether the editing material is the target editing material. For example, the sub-rendering level corresponding to the color temperature is 201, and the first digit is 2. In this case, the rendering level 1 of the video clip 1 is less than 2, then the video clip 1 is the target editing material. The rendering level 1 of the video clip 2 and the text 1 are 3 and 4 respectively, both greater than 2, then the video clip 2 and the text 1 are not the target editing material.

[0061] S403: Adjust the rendering effect of at least one target editing material by adjusting the track.

[0062] Optionally, this step is: adjusting a rendering effect of at least one target editing material by adjusting a plurality of rendering adjustment parameters included in the track.

[0063] Here, if the rendering level is not enlarged, multiple rendering adjustment parameters cannot be inserted between rendering level 2 and rendering level 3. However, the present application sets multiple sub-rendering levels to adjust the rendering effect of the target editing material through multiple rendering adjustment parameters, thereby further improving the rendering freedom of the editing material.

[0064] It should be noted that in free level mode, the track types of multiple editing tracks are the same. In order to avoid confusion between different types of editing materials during transition, it is necessary to determine two editing materials to be transitioned. Accordingly, the method may also include: in response to receiving a transition operation of the editing material, determining a first material identifier of the first editing material before the transition and a second material identifier of the second editing material after the transition; and transitioning the first editing material to the second editing material according to the first material identifier and the second material identifier.

[0065] The material identifier is used to distinguish different editing materials. Optionally, the material identifier includes the material type and the material serial number. For example, the material identifier may be video material 1, video material 2, or text 1.

[0066] Another point to be explained is that if multiple sub-editing materials are displayed on the editing track, the positions of the sub-editing materials can be swapped through the temporary editing track. Accordingly, the method further includes: in response to receiving a position swap operation for the first sub-editing material and the second sub-editing material, creating a temporary editing track; transferring the second sub-editing material to the temporary editing track, adjusting the position of the first sub-editing material to the position of the second sub-editing material; and transferring the second sub-editing material from the temporary editing track to the position of the first sub-editing material.

[0067] For example, Figure 5 As shown in the figure, there are multiple sub-editing materials displayed on the editing track: Material A, Material B and Material C. When the positions of Material A and Material B are swapped, Material A can be transferred to the temporary editing track, and then the position of Material B can be adjusted to the position of Material A, and then Material A can be transferred from the temporary editing track to the position of Material B.

[0068] Here, since the track level of the editing material is consistent with the rendering level of the editing material, the rendering levels of multiple sub-editing materials on the same editing track are the same. In this case, if the positions of the sub-editing materials are swapped, the change of the rendering level can be avoided by creating a temporary editing track, thereby further improving the rendering freedom of the editing material.

[0069] Another point to be explained is that in the free level mode, when exporting a video through multiple editing materials, the playback time of the exported video is determined by the editing material with the longest playback time. Accordingly, the method further includes: in response to the video export operation, determining the playback time corresponding to each editing material; and determining the longest playback time as the playback time of the exported video corresponding to the multiple editing materials.

[0070] Exemplarily, the multiple editing materials include video clip 1, video clip 2, and text 1. Among them, the playback time of video clip 1 is 2 minutes, the playback time of video clip 2 is 1 minute, and the playback time of text 1 is 30 seconds, then the maximum playback time (2 minutes) is determined as the playback time of the exported video corresponding to the multiple editing materials.

[0071] In the disclosed embodiment, if the video rendering mode is the free-level mode, the time interface of the non-free-level mode needs to be discarded. Optionally, the time interface of the non-free-level mode includes: a set duration interface (setDuration interface) and a get duration interface (getDuration interface). That is, the setDuration interface and the getDuration interface need to be discarded.

[0072] Figure 6 This is a structural block diagram of a video rendering device provided by an embodiment of the present disclosure. Figure 6 The video rendering device includes: an acquisition module 601, a determination module 602 and a rendering module 603.

[0073] The acquisition module 601 is used for acquiring a preview position of a video editing effect in response to receiving a sequence adjustment operation of an editing track where an editing material is located, and determining a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in the video editing interface;

[0074] A determination module 602 is used to determine the rendering level corresponding to each of the plurality of editing materials according to the arrangement order of the plurality of different editing tracks, wherein the rendering level is used to indicate the rendering priority of the editing material;

[0075] The rendering module 603 is used to render the multiple editing materials according to the rendering levels corresponding to the multiple editing materials respectively, so as to obtain the video editing effect at the preview position.

[0076] According to one or more embodiments of the present disclosure, the determination module 602 determines the rendering level corresponding to each of the multiple editing materials according to the arrangement order of the multiple different editing tracks, specifically including: determining the sequence number of each of the editing tracks in the arrangement order according to the arrangement order of the multiple different editing tracks; determining the sequence number of the editing track in the arrangement order as the rendering level of the editing material on the editing track, to obtain the rendering level corresponding to each of the multiple editing materials.

[0077] According to one or more embodiments of the present disclosure, the video rendering mode is a free level mode; accordingly, the device further includes: a conversion module; the conversion module is used to convert the track types of the multiple different editing tracks into the same preset track type.

[0078] According to one or more embodiments of the present disclosure, the conversion module is also used to obtain mode interface information corresponding to the video rendering mode in response to receiving a switching operation of the video rendering mode; if the mode interface information is a first interface identifier, the video rendering mode is determined to be a free hierarchy mode; if the mode interface information is a second interface identifier, the video rendering mode is determined to be a non-free hierarchy mode.

[0079] According to one or more embodiments of the present disclosure, the video editing interface also includes an adjustment track for adjusting the rendering effect; the device also includes: an adjustment module; the adjustment module is used to determine the rendering level corresponding to the adjustment track; according to the rendering level corresponding to the adjustment track and the rendering levels corresponding to each of the multiple editing materials, at least one target editing material whose rendering level is smaller than the rendering level corresponding to the adjustment track is selected from the multiple editing materials; and the rendering effect of the at least one target editing material is adjusted through the adjustment track.

[0080] According to one or more embodiments of the present disclosure, the adjustment track includes multiple rendering adjustment parameters, and the rendering level corresponding to the adjustment track includes sub-rendering levels corresponding to each of the multiple rendering adjustment parameters; accordingly, the adjustment module determines the rendering level corresponding to the adjustment track, specifically including: for each adjustment track, determining the track level of the adjustment track, and determining the track level of the adjustment track as the rendering level corresponding to the adjustment track; according to the number of the multiple rendering adjustment parameters included in the adjustment track, amplifying the rendering level of the adjustment track to obtain the multiple sub-rendering levels of the number, wherein the end serial numbers of the multiple sub-rendering levels are different; and determining the sub-rendering levels corresponding to each of the multiple rendering adjustment parameters in order from small to large according to the end serial numbers of the multiple sub-rendering levels.

[0081] According to one or more embodiments of the present disclosure, the device also includes: a transition module; the transition module is used to determine a first material identifier of a first editing material before the transition and a second material identifier of a second editing material after the transition in response to receiving a transition operation of the editing material; and according to the first material identifier and the second material identifier, transition the first editing material to the second editing material.

[0082] According to one or more embodiments of the present disclosure, multiple sub-editing materials are displayed on the editing track; the device also includes: a position adjustment module; the position adjustment module is used to create a temporary editing track in response to receiving a position exchange operation for a first sub-editing material and a second sub-editing material; transfer the second sub-editing material to the temporary editing track, adjust the position of the first sub-editing material to the position of the second sub-editing material; transfer the second sub-editing material from the temporary editing track to the position of the first sub-editing material.

[0083] According to one or more embodiments of the present disclosure, the device also includes: an export module; the export module is used to determine the playback time corresponding to each editing material in response to a video export operation; and determine the maximum playback time as the playback time of the exported video corresponding to the multiple editing materials.

[0084] The acquisition module 601, the determination module 602 and the rendering module 603 are connected in sequence. The video rendering device provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0085] Figure 7 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure. Figure 7 The electronic device 700 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0086] like Figure 7As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. Various programs and data required for the operation of the electronic device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0087] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0088] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0089] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0090] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0091] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

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

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

[0094] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0095] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0096] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0097] In a first aspect, according to one or more embodiments of the present disclosure, a video rendering method is provided, the method comprising:

[0098] In response to receiving a sequence adjustment operation of an editing track where an editing material is located, obtaining a preview position of a video editing effect, and determining a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface;

[0099] Determining rendering levels corresponding to the multiple editing materials respectively according to the arrangement order of the multiple different editing tracks, wherein the rendering level is used to indicate the rendering priority of the editing material;

[0100] The multiple editing materials are rendered according to the rendering levels corresponding to the multiple editing materials respectively, so as to obtain the video editing effect at the preview position.

[0101] According to one or more embodiments of the present disclosure, determining the rendering level corresponding to each of the multiple editing materials according to the arrangement order of the multiple different editing tracks includes: determining the sequence number of each of the editing tracks in the arrangement order according to the multiple different editing tracks; determining the sequence number of the editing track in the arrangement order as the rendering level of the editing material on the editing track, to obtain the rendering level corresponding to each of the multiple editing materials.

[0102] According to one or more embodiments of the present disclosure, the video rendering mode is a free level mode; accordingly, before determining the rendering levels corresponding to the multiple editing materials respectively according to the arrangement order of the multiple different editing tracks, it also includes: converting the track types of the multiple different editing tracks into the same preset track type.

[0103] According to one or more embodiments of the present disclosure, it also includes: in response to receiving a switching operation of a video rendering mode, obtaining mode interface information corresponding to the video rendering mode; if the mode interface information is a first interface identifier, determining that the video rendering mode is a free hierarchy mode; if the mode interface information is a second interface identifier, determining that the video rendering mode is a non-free hierarchy mode.

[0104] According to one or more embodiments of the present disclosure, the video editing interface also includes an adjustment track for adjusting the rendering effect; the method also includes: determining the rendering level corresponding to the adjustment track; selecting at least one target editing material whose rendering level is smaller than the rendering level corresponding to the adjustment track from the multiple editing materials according to the rendering level corresponding to the adjustment track and the rendering levels corresponding to each of the multiple editing materials; and adjusting the rendering effect of the at least one target editing material through the adjustment track.

[0105] According to one or more embodiments of the present disclosure, the adjustment track includes multiple rendering adjustment parameters, and the rendering level corresponding to the adjustment track includes sub-rendering levels corresponding to each of the multiple rendering adjustment parameters; accordingly, determining the rendering level corresponding to the adjustment track includes: for each adjustment track, determining the track level of the adjustment track, and determining the track level of the adjustment track as the rendering level corresponding to the adjustment track; according to the number of the multiple rendering adjustment parameters included in the adjustment track, amplifying the rendering level of the adjustment track to obtain the multiple sub-rendering levels of the number, wherein the end serial numbers of the multiple sub-rendering levels are different; and determining the sub-rendering levels corresponding to each of the multiple rendering adjustment parameters in order from small to large according to the end serial numbers of the multiple sub-rendering levels.

[0106] According to one or more embodiments of the present disclosure, it also includes: in response to receiving a transition operation of an editing material, determining a first material identifier of a first editing material before the transition and a second material identifier of a second editing material after the transition; and transitioning the first editing material to the second editing material according to the first material identifier and the second material identifier.

[0107] According to one or more embodiments of the present disclosure, multiple sub-editing materials are displayed on the editing track; the method also includes: creating a temporary editing track in response to receiving a position exchange operation for a first sub-editing material and a second sub-editing material; transferring the second sub-editing material to the temporary editing track, adjusting the position of the first sub-editing material to the position of the second sub-editing material; and transferring the second sub-editing material from the temporary editing track to the position of the first sub-editing material.

[0108] According to one or more embodiments of the present disclosure, the method further includes: in response to a video export operation, determining a playback duration corresponding to each editing material; and determining a maximum playback duration as the playback duration of the exported video corresponding to the multiple editing materials.

[0109] In a second aspect, according to one or more embodiments of the present disclosure, a video rendering device is provided, the device comprising:

[0110] an acquisition module, configured to acquire a preview position of a video editing effect in response to receiving a sequence adjustment operation of an editing track where an editing material is located, and determine a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface;

[0111] A determination module, configured to determine, according to the arrangement order of the multiple different editing tracks, the rendering levels corresponding to the multiple editing materials respectively, wherein the rendering levels are used to indicate the rendering priority of the editing materials;

[0112] The rendering module is used to render the multiple editing materials according to the rendering levels corresponding to the multiple editing materials respectively, so as to obtain the video editing effect at the preview position.

[0113] According to one or more embodiments of the present disclosure, the determination module determines the rendering level corresponding to each of the multiple editing materials according to the arrangement order of the multiple different editing tracks, specifically including: determining the sequence number of each of the editing tracks in the arrangement order according to the arrangement order of the multiple different editing tracks; determining the sequence number of the editing track in the arrangement order as the rendering level of the editing material on the editing track, to obtain the rendering level corresponding to each of the multiple editing materials.

[0114] According to one or more embodiments of the present disclosure, the video rendering mode is a free level mode; accordingly, the device further includes: a conversion module; the conversion module is used to convert the track types of the multiple different editing tracks into the same preset track type.

[0115] According to one or more embodiments of the present disclosure, the conversion module is also used to obtain mode interface information corresponding to the video rendering mode in response to receiving a switching operation of the video rendering mode; if the mode interface information is a first interface identifier, the video rendering mode is determined to be a free hierarchy mode; if the mode interface information is a second interface identifier, the video rendering mode is determined to be a non-free hierarchy mode.

[0116] According to one or more embodiments of the present disclosure, the video editing interface also includes an adjustment track for adjusting the rendering effect; the device also includes: an adjustment module; the adjustment module is used to determine the rendering level corresponding to the adjustment track; according to the rendering level corresponding to the adjustment track and the rendering levels corresponding to each of the multiple editing materials, at least one target editing material whose rendering level is smaller than the rendering level corresponding to the adjustment track is selected from the multiple editing materials; and the rendering effect of the at least one target editing material is adjusted through the adjustment track.

[0117] According to one or more embodiments of the present disclosure, the adjustment track includes multiple rendering adjustment parameters, and the rendering level corresponding to the adjustment track includes sub-rendering levels corresponding to each of the multiple rendering adjustment parameters; accordingly, the adjustment module determines the rendering level corresponding to the adjustment track, specifically including: for each adjustment track, determining the track level of the adjustment track, and determining the track level of the adjustment track as the rendering level corresponding to the adjustment track; according to the number of the multiple rendering adjustment parameters included in the adjustment track, amplifying the rendering level of the adjustment track to obtain the multiple sub-rendering levels of the number, wherein the end serial numbers of the multiple sub-rendering levels are different; and determining the sub-rendering levels corresponding to each of the multiple rendering adjustment parameters in order from small to large according to the end serial numbers of the multiple sub-rendering levels.

[0118] According to one or more embodiments of the present disclosure, the device also includes: a transition module; the transition module is used to determine a first material identifier of a first editing material before the transition and a second material identifier of a second editing material after the transition in response to receiving a transition operation of the editing material; and according to the first material identifier and the second material identifier, transition the first editing material to the second editing material.

[0119] According to one or more embodiments of the present disclosure, multiple sub-editing materials are displayed on the editing track; the device also includes: a position adjustment module; the position adjustment module is used to create a temporary editing track in response to receiving a position exchange operation for a first sub-editing material and a second sub-editing material; transfer the second sub-editing material to the temporary editing track, adjust the position of the first sub-editing material to the position of the second sub-editing material; transfer the second sub-editing material from the temporary editing track to the position of the first sub-editing material.

[0120] According to one or more embodiments of the present disclosure, the device also includes: an export module; the export module is used to determine the playback time corresponding to each editing material in response to a video export operation; and determine the maximum playback time as the playback time of the exported video corresponding to the multiple editing materials.

[0121] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0122] The memory stores computer-executable instructions;

[0123] The processor executes the computer-executable instructions stored in the memory to implement the video rendering method as described in the first aspect and various possible designs of the first aspect.

[0124] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the video rendering method described in the first aspect and various possible designs of the first aspect is implemented.

[0125] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the video rendering method as described in the first aspect and various possible designs of the first aspect.

[0126] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0127] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0128] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A video rendering method, characterized in that: include: In response to receiving a sequence adjustment operation of an editing track where an editing material is located, obtaining a preview position of a video editing effect, and determining a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface; Determining rendering levels corresponding to the multiple editing materials respectively according to the arrangement order of the multiple different editing tracks, wherein the rendering level is used to indicate the rendering priority of the editing material; The multiple editing materials are rendered according to the rendering levels corresponding to the multiple editing materials respectively, so as to obtain the video editing effect at the preview position.

2. The method according to claim 1, characterized in that The determining, according to the arrangement order of the multiple different editing tracks, the rendering levels corresponding to the multiple editing materials respectively includes: According to the arrangement sequence of the multiple different editing tracks, determining the sequence number of each editing track in the arrangement sequence; The sequence number of the editing track in the arrangement sequence is determined as the rendering level of the editing material on the editing track, and the rendering levels corresponding to the multiple editing materials are obtained.

3. The method according to claim 1, characterized in that The video rendering mode is free-level mode; Accordingly, before determining the rendering levels corresponding to the plurality of editing materials respectively according to the arrangement order of the plurality of different editing tracks, the method further includes: The track types of the multiple different editing tracks are converted into the same preset track type.

4. The method according to claim 3, characterized in that Also includes: In response to receiving a switching operation of a video rendering mode, acquiring mode interface information corresponding to the video rendering mode; If the mode interface information is a first interface identifier, the video rendering mode is determined to be a free-level mode; if the mode interface information is a second interface identifier, the video rendering mode is determined to be a non-free-level mode.

5. The method according to claim 1, characterized in that The video editing interface also includes an adjustment track for adjusting the rendering effect; the method also includes: Determine the rendering level corresponding to the adjustment track; According to the rendering level corresponding to the adjustment track and the rendering levels corresponding to the multiple editing materials, selecting at least one target editing material whose rendering level is lower than the rendering level corresponding to the adjustment track from the multiple editing materials; The rendering effect of the at least one target editing material is adjusted through the adjustment track.

6. The method according to claim 5, characterized in that The adjustment track includes a plurality of rendering adjustment parameters, and the adjustment track includes sub-rendering levels corresponding to the plurality of rendering adjustment parameters; Accordingly, determining the rendering level corresponding to the adjustment track includes: For each adjustment track, determine the track level of the adjustment track, and determine the track level of the adjustment track as the rendering level corresponding to the adjustment track; According to the number of the plurality of rendering adjustment parameters included in the adjustment track, amplifying the rendering level of the adjustment track to obtain the plurality of sub-rendering levels, wherein the end sequence numbers of the plurality of sub-rendering levels are different; The sub-rendering levels corresponding to the multiple rendering adjustment parameters are determined in sequence according to the ascending order of the tail serial numbers of the multiple sub-rendering levels.

7. The method according to claim 1, characterized in that Also includes: In response to receiving a transition operation of an editing material, determining a first material identifier of a first editing material before the transition and a second material identifier of a second editing material after the transition; The first editing material is converted into the second editing material according to the first material identifier and the second material identifier.

8. The method according to claim 1, characterized in that The editing track displays a plurality of sub-editing materials; the method further comprises: In response to receiving a position exchange operation for the first sub-editing material and the second sub-editing material, creating a temporary editing track; Transferring the second sub-editing material to the temporary editing track, and adjusting the position of the first sub-editing material to the position of the second sub-editing material; The second sub-editing material is transferred from the temporary editing track to the location of the first sub-editing material.

9. The method according to claim 1, characterized in that: Also includes: In response to the video export operation, determining the playback duration corresponding to each edited material; The maximum playback duration is determined as the playback duration of the exported videos corresponding to the multiple editing materials.

10. A video rendering device, characterized in that: include: an acquisition module, configured to acquire a preview position of a video editing effect in response to receiving a sequence adjustment operation of an editing track where an editing material is located, and determine a plurality of editing materials corresponding to the preview position, wherein the plurality of editing materials are respectively located on a plurality of different editing tracks in a video editing interface; A determination module, configured to determine, according to the arrangement order of the multiple different editing tracks, the rendering levels corresponding to the multiple editing materials respectively, wherein the rendering levels are used to indicate the rendering priority of the editing materials; The rendering module is used to render the multiple editing materials according to the rendering levels corresponding to the multiple editing materials respectively, so as to obtain the video editing effect at the preview position.

11. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the video rendering method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the video rendering method according to any one of claims 1 to 9 is implemented.

13. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the video rendering method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Audio and video editing method and device and computer readable storage medium

    CN112333536A

  • Information display method and device, electronic equipment and storage medium

    CN113473204A

  • Video preview method and device, equipment and storage medium

    CN114827722A

  • Special effect configuration file generation method and device, equipment and medium

    CN115442639A