WO2021189995A1 - 视频渲染方法、装置、电子设备及存储介质 - Google Patents
视频渲染方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2021189995A1 WO2021189995A1 PCT/CN2020/137398 CN2020137398W WO2021189995A1 WO 2021189995 A1 WO2021189995 A1 WO 2021189995A1 CN 2020137398 W CN2020137398 W CN 2020137398W WO 2021189995 A1 WO2021189995 A1 WO 2021189995A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video
- text
- material block
- alpha
- block
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/02—Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
- G11B27/031—Electronic editing of digitised analogue information signals, e.g. audio or video signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44016—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
Definitions
- the present disclosure relates to the field of video processing technology, and in particular, to a video rendering method, device, electronic equipment, and storage medium.
- the present disclosure provides a video rendering method, device, electronic device, and storage medium to at least solve the problem that when two or more video effects need to be rendered to a video in the related art, since two material videos cannot be decoded at the same time, they still need to be used Frame-sequence-based rendering can cause the problem of device freezing caused by too much memory space.
- a video rendering method including: acquiring a video to be rendered and a material video used to render the video to be rendered; the material video is obtained by splicing and combining at least two video special effects
- the video special effect includes a plurality of material pictures; a plurality of material blocks are disassembled from the material video; the material block is obtained by sequentially arranging and combining a plurality of material pictures belonging to the same video special effect; determining the material block At the target position of the video frame of the video; superimpose the material block into the target position of the video frame to complete the video rendering.
- a video rendering device including: an acquisition unit configured to perform acquisition of a to-be-rendered video and a material video for rendering the to-be-rendered video; the material video is at least Two video special effects are spliced and combined, the video special effects include multiple material pictures; the disassembly unit is configured to perform disassembly of multiple material blocks from the material video; the material blocks are composed of multiple pieces belonging to the same video The material pictures of the special effects are arranged and combined in order; the determining unit is configured to determine the target position of the material block in the video frame of the video;
- an electronic device including a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement the foregoing The video rendering method described in the first aspect.
- a storage medium is provided.
- the electronic device can execute the video rendering method described in the first aspect. .
- a computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the device obtains data from the readable storage medium.
- the computer program is read and executed, so that the device executes the video rendering method described in any one of the embodiments of the first aspect.
- the technical solutions provided by the embodiments of the present disclosure can save memory space occupied by video special effects used for video rendering, avoid device jams, and improve the smoothness of video rendering.
- Figure 1 is a schematic diagram of the animation effect of a video special effect.
- Figure 2 is a schematic diagram of a material picture of a video special effect.
- Figure 3 is a schematic diagram of another video special effect material picture.
- Fig. 4 is a diagram showing the internal structure of an electronic device according to an exemplary embodiment.
- Fig. 5 is a flowchart showing a video rendering method according to an exemplary embodiment.
- Fig. 6 is a schematic diagram showing the placement of material pictures of a certain frame of a material video according to an exemplary embodiment.
- Fig. 7 is a schematic diagram of calculation of a current material video memory.
- Fig. 8 is a schematic diagram showing a calculation of a material video memory according to an exemplary embodiment.
- Fig. 9 is a schematic diagram showing a calculation of a first position coordinate according to an exemplary embodiment.
- Fig. 10 is a schematic diagram showing a mapping between a material picture and a target effect picture according to an exemplary embodiment.
- Fig. 11 is a schematic diagram showing a superposition of text images according to an exemplary embodiment.
- Fig. 12 is a schematic diagram showing a superposition of firework materials according to an exemplary embodiment.
- Fig. 13 is a flow chart showing the processing of a material picture according to an exemplary embodiment.
- Fig. 14 is a schematic diagram showing a video rendering effect according to an exemplary embodiment.
- Fig. 15 is a block diagram showing a video rendering device according to an exemplary embodiment.
- the video rendering method provided by the present disclosure can be applied to the device 100 as shown in FIG. 4.
- the device 100 may be a mobile terminal, such as a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so on.
- the device 100 may include one or more of the following components: a processing component 101, a memory 102, a power supply component 103, a multimedia component 104, an audio component 105, an input/output (I/O) interface 106, a sensor component 107, and Communication component 108.
- a processing component 101 a memory 102
- a power supply component 103 a multimedia component 104
- an audio component 105 an input/output (I/O) interface 106
- sensor component 107 a sensor component 107
- Communication component 108 Communication component
- the processing component 101 generally controls the overall operations of the device 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
- the processing component 101 may include one or more processors 110 to execute instructions to complete all or part of the steps of the foregoing method.
- the processing component 101 may include one or more modules to facilitate the interaction between the processing component 101 and other components.
- the processing component 101 may include a multimedia module to facilitate the interaction between the multimedia component 104 and the processing component 101.
- the memory 102 is configured to store various types of data to support operations in the device 100. Examples of such data include instructions for any application or method operating on the device 100, contact data, phone book data, messages, pictures, videos, and the like.
- the memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
- SRAM static random access memory
- EEPROM electrically erasable programmable read-only memory
- EPROM erasable Programmable read only memory
- PROM programmable read only memory
- ROM read only memory
- magnetic memory flash memory
- flash memory magnetic or optical disk.
- the power supply component 103 provides power to various components of the device 100.
- the power supply component 103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 100.
- the multimedia component 104 includes a screen that provides an output interface between the device 100 and the user.
- the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
- the multimedia component 104 includes a front camera and/or a rear camera. When the device 100 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
- the audio component 105 is configured to output and/or input audio signals.
- the audio component 105 includes a microphone (MIC).
- the microphone When the device 100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals.
- the received audio signal can be further stored in the memory 102 or sent via the communication component 108.
- the audio component 105 further includes a speaker for outputting audio signals.
- the I/O interface 106 provides an interface between the processing component 101 and a peripheral interface module.
- the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
- the sensor component 107 includes one or more sensors for providing the device 100 with various aspects of state evaluation.
- the sensor component 107 can detect the on/off status of the device 100 and the relative positioning of components.
- the component is the display and keypad of the device 100.
- the sensor component 107 can also detect the position change of the device 100 or a component of the device 100. , The presence or absence of contact between the user and the device 100, the orientation or acceleration/deceleration of the device 100, and the temperature change of the device 100.
- the sensor assembly 107 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
- the sensor component 107 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor component 107 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- the communication component 108 is configured to facilitate wired or wireless communication between the device 100 and other devices.
- the device 100 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof.
- the communication component 108 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
- the communication component 108 further includes a near field communication (NFC) module to facilitate short-range communication.
- the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- the device 100 can be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gates Array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above-mentioned video rendering method.
- ASIC application-specific integrated circuits
- DSP digital signal processors
- DSPD digital signal processing devices
- PLD programmable logic devices
- FPGA field programmable gates Array
- controller microcontroller, microprocessor, or other electronic components are implemented to implement the above-mentioned video rendering method.
- Fig. 5 is a flowchart showing a video rendering method according to an exemplary embodiment. As shown in Fig. 5, the video rendering method is used in the device 100 of Fig. 4.
- step S51 a to-be-rendered video and a material video for rendering the to-be-rendered video are obtained; the material video is obtained by splicing and combining at least two video special effects, and the video special effects include multiple material pictures.
- each video effect is a combination of multiple material pictures.
- the method may further include the following steps:
- the video special effects is a text special effect composed of text pictures containing text information
- the text material pictures belonging to the same text special effect and belonging to the same text are arranged and combined as text material blocks;
- a material video is obtained by splicing and combining.
- a material video Before rendering the to-be-rendered video, a material video can be spliced and combined for the to-be-rendered video in the early stage, where the material video is obtained by splicing two or more video special effects.
- the material pictures of the video special effects can be neatly placed in the material video according to the special effect requirements.
- the material pictures can be arranged according to the special effect requirements, and then according to the special effect requirements.
- the sequence of arrangement combines the material pictures one by one into each frame of the material video. For material pictures that appear at the same time in the video frame but belong to different video effects, they are spliced in the same frame of the material video.
- the video special effects include text special effects and animation special effects.
- the text special effects are composed of text images containing text information, such as the text effects of two texts "Year of the Rat", and the animation special effects are made of materials other than text images.
- Picture composition for example, a firework special effect can be composed of a firework picture containing fireworks, and a flower special effect can be composed of a flower picture containing flowers.
- Figure 6 is a schematic diagram of the placement of the material pictures of a certain frame of the material video.
- Each frame of the material video will be spliced with text pictures and fireworks pictures that appear at the same time.
- text pictures for text special effects can belong to the same
- a text picture of a text is in a grid area, the grid space is reused and the space is not left as much as possible to achieve the highest utilization of space.
- fireworks pictures with special effects of fireworks can also be placed in a grid area to achieve the highest utilization of space.
- the material pictures in the same grid area are sorted and combined into one material block.
- step S52 multiple material blocks are disassembled from the material video; the material blocks are obtained by sequentially arranging and combining multiple material pictures belonging to the same video special effect.
- the material video when using the material video to render the to-be-rendered video, it is first necessary to disassemble each material picture in the material video, and the disassembly can be performed in tools such as Opengl's vertex shader.
- the material pictures belonging to the same video special effect are neatly placed in a square area. Therefore, when the material pictures are obtained from the material video, the material pictures belonging to the same square (in the The first position coordinates of the material video are the same) in the material block, thereby obtaining the material picture of the material block.
- step S53 the target position of the material block in the video frame of the video is determined.
- the target position of the material block it is possible to set the target position of the material block to be placed in the video frame of the video, so that the desired ideal effect picture can be obtained.
- the material picture that can be set as a material block is placed in the middle of the video frame of the video to be rendered, it can also be placed in the lower left corner of the video frame of the video to be rendered, or it can be set to overlap the entire video frame of the video to be rendered .
- step S54 the material block is superimposed on the target position of the video frame to complete the video rendering.
- the material block After determining the target position of each material block in the video frame in the material video, the material block can be correspondingly superimposed to the target position of the video frame of the to-be-rendered video to achieve video rendering.
- this embodiment splices at least two video special effects into the same material video, and then uses the material video to render the to-be-rendered video, the memory space occupied by the video special effect for video rendering can be saved.
- the four sets of text pictures with text effects and fireworks pictures with fireworks effects are spliced and combined in the same material video (combined video material), and the total memory space occupied is 2150.4KB, which is equivalent Compared with the way that only one video special effect can be converted into video, it reduces the memory space occupation by 46.13%.
- the video to be rendered and the material video used to render the video to be rendered are first obtained; the material video is obtained by splicing and combining multiple video special effects, and the video special effect includes multiple material pictures. Disassemble multiple material blocks in the video frame, determine the target position of the material block in the video frame of the video, and then superimpose the material block into the target position of the video frame to complete the video rendering. This can save the memory space occupied by the video effects used for video rendering, avoid device jams, and improve the smoothness of video rendering.
- the method may further include the following steps:
- the video special effects is a text special effect composed of text pictures containing text information
- the text material pictures belonging to the same text special effect and belonging to the same text are arranged and combined as text material blocks;
- a material video is obtained by splicing and combining.
- text effects and other special effects can be neatly placed in the material video.
- the text pictures of each text in the text effects can be neatly placed, and Arrange the firework pictures with firework effects neatly.
- a corresponding alpha material block can be generated for the text material block, where the alpha picture in the alpha material block corresponds to the text picture in the text material block in a one-to-one correspondence.
- the step S52 may specifically include the following steps: acquiring the first position coordinates of the material block in the material video; disassembling from the material video according to the first position coordinates Material block.
- the material pictures can be divided into small squares (material blocks), and then when the material pictures are obtained, they can be obtained according to the material blocks, so that multiple material pictures belonging to the same video special effect can be obtained at one time.
- the width and height of the material video (pixel value 960*1980) is known, and the width and height (pixel value) of each square is also known.
- the value range of the coordinates is 0 ⁇ 1, set the horizontal axis as the x axis and the vertical axis as the y axis.
- the step S53 may specifically include the following steps: acquiring a coordinate mapping relationship; the coordinate mapping relationship is that the coordinates of the material block at the first position of the material video and the material block at the first position The mapping relationship between the second position coordinates of the video frame of the video; according to the coordinate mapping relationship, the second position coordinates corresponding to the first position coordinates are determined, and the position where the second position coordinates are located is taken as the target Location.
- the extracted material pictures need to be repositioned.
- This embodiment establishes a one-to-one correspondence between the material video and the ideal rendering in advance.
- the second position coordinate of the material picture in the video frame of the video to be rendered can be determined according to the coordinate mapping relationship, and used as the material block in the video of the video to be rendered The target position placed in the frame.
- the coordinate mapping relationship is established according to the required target renderings, so that the four words "Happy Year of the Rat” will be moved from the four points (first position coordinates) in the material video to the video to be rendered. Four points (second position coordinates).
- the material picture in the material video is mapped according to the established coordinate mapping relationship
- the material picture can be superimposed on the second coordinate position of the video frame.
- the background of the material picture is a black background. This involves the superposition and mixing of the material picture and the video frame of the video to be rendered. Note that text pictures and non-text pictures (For example, firework pictures) and video frames are superimposed in a different way.
- step S54 that is, the superimposing the material block into the target position of the video frame includes:
- the material block is a text material block composed of text pictures containing text information
- the text material block and the alpha material block corresponding to the text material block are superimposed on the target position of the video frame; wherein,
- the alpha material block includes alpha pictures corresponding to the text pictures of the text material block one-to-one.
- the material picture of the material block and the alpha picture of the alpha material block are superimposed on the second position coordinates of the video frame of the video.
- the text image is superimposed using the "normal" superimposition method.
- This superimposition method needs to use the alpha channel of the text image, that is, it involves the superposition of the alpha image.
- "Normal" superimposition The formula is:
- color is the video rendering effect picture after overlaying text pictures
- overlay is the RGB value of text pictures (text materials), which is reflected here as the left part of the material video in Figure 6
- base is the RGB value of the video frame
- alpha is the text picture
- Corresponding alpha picture is embodied here as the right part of the material video in Figure 6.
- the "addition" superposition method is adopted for the superposition of non-text pictures and video frames of the video to be rendered.
- This superposition method does not require the use of fireworks materials
- the "addition" superposition formula is:
- color is the video rendering effect picture after superimposing text pictures and fireworks pictures
- overlay is the RGB value of non-text pictures (fireworks materials), here it is reflected in the middle part of the material video in Figure 6, and base is after text pictures have been superimposed The RGB value of the video frame.
- material pictures of different mixing modes such as text pictures of text special effects and fireworks pictures of firework special effects, are spliced into one material video to achieve the purpose of realizing the mixing of multiple video special effects with a low memory space occupation.
- At least two video special effects can be spliced and combined into one material video, and video rendering can be performed on the video.
- a material video contains four sets of text pictures with special text effects: "Gong Xi Fa Cai”, “Happy Year of the Rat”, “Lucky Money”, and “Good Fortune”, as well as a set of fireworks pictures with special effects.
- Figure 13 repeats the steps of splicing and combination, disassembly, positioning, and superimposition, and four video rendering effect diagrams as shown in Figure 14 can be obtained respectively.
- the spatial multiplexing technology of material video proposed in this embodiment puts the material pictures of video special effects, especially text pictures, into a small grid to optimize the effective use area of the material pictures in the material video. It is not necessary to arrange and combine the material pictures of video special effects.
- the rendering method of this embodiment can be used to disassemble, locate and superimpose the material pictures.
- One material video can be used to render multiple videos for the video. Special effects.
- the device memory and performance need to be strictly controlled, for example, for some models, the device memory is greatly optimized, and the smoothness of video rendering is improved.
- steps in the flowchart of FIG. 5 are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in FIG. 5 may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times, and the order of execution of these steps or stages is also It is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
- Fig. 15 is a block diagram showing a video rendering device according to an exemplary embodiment. 15, the device includes an acquisition unit 151, a disassembly unit 152, a determination unit 153, and a rendering unit 154.
- the obtaining unit 151 is configured to perform obtaining a video to be rendered and a material video used to render the video; the material video is obtained by splicing and combining at least two video special effects, and the video special effects include multiple material pictures;
- the disassembling unit 152 is configured to disassemble a plurality of material blocks from the material video; the material blocks are obtained by sequentially arranging and combining a plurality of material pictures belonging to the same video special effect;
- the determining unit 153 is configured to determine the target position of the material block in the video frame of the video;
- the rendering unit 154 is configured to perform superimposition of the material block into the target position of the video frame to complete video rendering.
- the rendering unit 154 is configured to perform when the material block is a text material block composed of text pictures containing text information, the text material block is corresponding to the text material block
- the alpha material block is superimposed on the target position of the video frame; wherein, the alpha material block includes an alpha picture corresponding to the text picture of the text material block one-to-one.
- the disassembly unit 152 is configured to perform acquiring the first position coordinates of the material block in the material video; and disassemble the material video according to the first position coordinates. Unpack the material block.
- the determining unit 153 is configured to perform a coordinate mapping relationship; the coordinate mapping relationship is that the coordinates of the first position of the material block in the material video and the position of the material block are The mapping relationship between the second position coordinates of the video frame of the video to be rendered; the second position coordinate corresponding to the first position coordinate is determined according to the coordinate mapping relationship; the position where the second position coordinate is As the target location.
- the device further includes: a special effect acquisition unit configured to execute acquiring at least two video special effects; the video special effect includes multiple material pictures; and a splicing and combining unit configured to execute
- the video special effects is a text special effect composed of text pictures containing text information
- the text pictures belonging to the same text special effect and belonging to the same text are arranged and combined as a text material block; an alpha for the text material block is generated
- the alpha material block includes an alpha picture one-to-one corresponding to the text picture of the text material block; according to the text material block and the alpha material block, a material video is obtained by splicing and combining.
- an electronic device is also provided.
- the schematic structural diagram of the electronic device may be as shown in FIG. 1.
- the electronic device includes: a processor; a memory for storing executable instructions of the processor;
- the processor is configured to execute the instructions to implement the video rendering method as described in the foregoing embodiments.
- non-transitory computer-readable storage medium including instructions, such as the memory 102 including instructions, and the foregoing instructions may be executed by the processor 120 of the device 100 to complete the foregoing method.
- the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
- a computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the device reads from the readable storage medium And execute the computer program, so that the device executes the video rendering method described in the above embodiment.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Or Creating Images (AREA)
- Studio Circuits (AREA)
Abstract
Description
Claims (20)
- 一种视频渲染方法,包括:获取待渲染视频以及用于渲染所述待渲染视频的素材视频;所述素材视频为通过至少两个视频特效拼接组合所得,所述视频特效包括多张素材图片;从所述素材视频中拆解出多个素材块;所述素材块由多张属于同一视频特效的素材图片按序排列组合所得;确定所述素材块在所述待渲染视频的视频帧的目标位置;将所述素材块叠加至所述视频帧的目标位置中,完成视频渲染。
- 根据权利要求1所述的视频渲染方法,所述将所述素材块叠加至所述视频帧的目标位置中包括:基于所述素材块为包含文字信息的文字图片组成的文字素材块,将所述文字素材块和所述文字素材块对应的alpha素材块,叠加至所述视频帧的目标位置;其中,所述alpha素材块包括与所述文字素材块的文字图片一一对应的alpha图片。
- 根据权利要求1所述的视频渲染方法,所述从所述素材视频中拆解出多个素材块包括:获取所述素材块在所述素材视频中的第一位置坐标;根据所述第一位置坐标从所述素材视频中拆解出素材块。
- 根据权利要求3所述的视频渲染方法,所述确定所述素材块在所述待渲染视频的视频帧的目标位置包括:获取坐标映射关系;所述坐标映射关系为所述素材块在所述素材视频的第一位置坐标与所述素材块在所述待渲染视频的视频帧的第二位置坐标之间的映射关系;根据所述坐标映射关系,确定与所述第一位置坐标对应的第二位置坐标;将所述第二位置坐标所在的位置作为目标位置。
- 根据权利要求1所述的视频渲染方法,所述获取待渲染视频以及用于渲染所述视频的素材视频包括:获取至少两个视频特效;当至少一个所述视频特效为包含文字信息的文字图片组成的文字特效时,将属于同一文字特效且属于同一文字的文字图片进行排列组合,作为文字素材块;生成针对所述文字素材块的alpha素材块,所述alpha素材块包括与所述文字素材块的文字图片一一对应的alpha图片;根据所述文字素材块和所述alpha素材块,拼接组合得到素材视频。
- 一种视频渲染装置,包括:获取单元,被配置为执行获取待渲染视频以及用于渲染所述待渲染视频的素材视频;所述素材视频为通过至少两个视频特效拼接组合所得,所述视频特效包括多张素材图片;拆解单元,被配置为执行从所述素材视频中拆解出多个素材块;所述素材块由多张属于同一视频特效的素材图片按序排列组合所得;确定单元,被配置为执行确定所述素材块在所述视频的视频帧的目标位置;渲染单元,被配置为执行将所述素材块叠加至所述视频帧的目标位置中,完成视频渲染。
- 根据权利要求6所述的视频渲染装置,所述渲染单元,被配置为执行当所述素材块为包含文字信息的文字图片组成的文字素材块时,将所述文字素材块和所述文字素材块对应的alpha素材块,叠加至所述视频帧的目标位置;其中,所述alpha素材块包括与所述文字素材块的文字图片一一对应的alpha图片。
- 根据权利要求6所述的视频渲染装置,所述拆解单元,被配置为执行获取所述素材块在所述素材视频中的第一位置坐标;根据所述第一位置坐标从所述素材视频中拆解出素材块。
- 根据权利要求9所述的视频渲染装置,所述确定单元,被配置为执行获取坐标映射关系;所述坐标映射关系为所述素材块在所述素材视频的第一位置坐标与所述素材块在所述待渲染视频的视频帧的第二位置坐标之间的映射关系;根据所述坐标映射关系,确定与所述第一位置坐标对应的第二位置坐标;将所述第二位置坐标所在的位置作为目标位置。
- 根据权利要求6所述的视频渲染装置,所述装置还包括:特效获取单元,被配置为执行获取至少两个视频特效当至少一个所述视频特效为包含文字信息的文字图片组成的文字特效时,将属于同一文字特效且属于同一文字的文字图片进行排列组合,作为文字素材块;生成针对所述文字素材块的alpha素材块,所述alpha素材块包括与所述文字素材块的文字图片一一对应的alpha图片;根据所述文字素材块和所述alpha素材块,拼接组合得到素材视频。
- 一种电子设备,其特征在于,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现以下操作:获取待渲染视频以及用于渲染所述待渲染视频的素材视频;所述素材视频为通过至少两个视频特效拼接组合所得,所述视频特效包括多张素材图片;从所述素材视频中拆解出多个素材块;所述素材块由多张属于同一视频特效的素材图片按序排列组合所得;确定所述素材块在所述待渲染视频的视频帧的目标位置;将所述素材块叠加至所述视频帧的目标位置中,完成视频渲染。
- 根据权利要求11所述的电子设备,所述处理器被执行为所述指令,以实现以下操作:基于所述素材块为包含文字信息的文字图片组成的文字素材块,将所述文字素材块和所述文字素材块对应的alpha素材块,叠加至所述视频帧的目标位置;其中,所述alpha素材块包括与所述文字素材块的文字图片一一对应的alpha图片。
- 根据权利要求11所述的电子设备,所述处理器被执行为所述指令,以实现以下操作:获取所述素材块在所述素材视频中的第一位置坐标;根据所述第一位置坐标从所述素材视频中拆解出素材块。
- 根据权利要求13所述的电子设备,所述处理器被执行为所述指令,以实现以下操作:获取坐标映射关系;所述坐标映射关系为所述素材块在所述素材视频的第一位置坐标与所述素材块在所述待渲染视频的视频帧的第二位置坐标之间的映射关系;根据所述坐标映射关系,确定与所述第一位置坐标对应的第二位置坐标;将所述第二位置坐标所在的位置作为目标位置。
- 根据权利要求11所述的电子设备,所述处理器被执行为所述指令,以实现以下操作:获取至少两个视频特效;当至少一个所述视频特效为包含文字信息的文字图片组成的文字特效时,将属于同一文字特效且属于同一文字的文字图片进行排列组合,作为文字素材块;生成针对所述文字素材块的alpha素材块,所述alpha素材块包括与所述文字素材块的文字图片一一对应的alpha图片;根据所述文字素材块和所述alpha素材块,拼接组合得到素材视频。
- 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下操作:获取待渲染视频以及用于渲染所述待渲染视频的素材视频;所述素材视频为通过至少两个视频特效拼接组合所得,所述视频特效包括多张素材图片;从所述素材视频中拆解出多个素材块;所述素材块由多张属于同一视频特效的素材图片按序排列组合所得;确定所述素材块在所述待渲染视频的视频帧的目标位置;将所述素材块叠加至所述视频帧的目标位置中,完成视频渲染。
- 根据权利要求16所述的存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下操作:基于所述素材块为包含文字信息的文字图片组成的文字素材块,将所述文字素材块和所述文字素材块对应的alpha素材块,叠加至所述视频帧的目标位置;其中,所述alpha素材 块包括与所述文字素材块的文字图片一一对应的alpha图片。
- 根据权利要求16所述的存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下操作:获取所述素材块在所述素材视频中的第一位置坐标;根据所述第一位置坐标从所述素材视频中拆解出素材块。
- 根据权利要求18所述的存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下操作:获取坐标映射关系;所述坐标映射关系为所述素材块在所述素材视频的第一位置坐标与所述素材块在所述待渲染视频的视频帧的第二位置坐标之间的映射关系;根据所述坐标映射关系,确定与所述第一位置坐标对应的第二位置坐标;将所述第二位置坐标所在的位置作为目标位置。
- 根据权利要求16所述的存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下操作:获取至少两个视频特效;当至少一个所述视频特效为包含文字信息的文字图片组成的文字特效时,将属于同一文字特效且属于同一文字的文字图片进行排列组合,作为文字素材块;生成针对所述文字素材块的alpha素材块,所述alpha素材块包括与所述文字素材块的文字图片一一对应的alpha图片;根据所述文字素材块和所述alpha素材块,拼接组合得到素材视频。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022549142A JP2023515411A (ja) | 2020-03-24 | 2020-12-17 | ビデオレンダリング方法、装置、電子機器及び記憶媒体 |
| US17/889,817 US20220417591A1 (en) | 2020-03-24 | 2022-08-17 | Video rendering method and apparatus, electronic device, and storage medium |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010212800.5A CN113452929B (zh) | 2020-03-24 | 2020-03-24 | 视频渲染方法、装置、电子设备及存储介质 |
| CN202010212800.5 | 2020-03-24 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US17/889,817 Continuation US20220417591A1 (en) | 2020-03-24 | 2022-08-17 | Video rendering method and apparatus, electronic device, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2021189995A1 true WO2021189995A1 (zh) | 2021-09-30 |
Family
ID=77806496
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/137398 Ceased WO2021189995A1 (zh) | 2020-03-24 | 2020-12-17 | 视频渲染方法、装置、电子设备及存储介质 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20220417591A1 (zh) |
| JP (1) | JP2023515411A (zh) |
| CN (1) | CN113452929B (zh) |
| WO (1) | WO2021189995A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114157867A (zh) * | 2021-11-15 | 2022-03-08 | 北京达佳互联信息技术有限公司 | 图像处理方法、装置、电子设备及存储介质 |
| CN114630181A (zh) * | 2022-02-24 | 2022-06-14 | 深圳亿幕信息科技有限公司 | 一种视频处理方法、系统、电子设备及介质 |
| CN114782579A (zh) * | 2022-04-26 | 2022-07-22 | 北京沃东天骏信息技术有限公司 | 一种图像渲染方法及装置、存储介质 |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114187169B (zh) * | 2021-12-10 | 2024-06-28 | 北京字节跳动网络技术有限公司 | 视频特效包的生成方法、装置、设备及存储介质 |
| CN115049776B (zh) * | 2022-04-28 | 2025-08-08 | 广州博冠信息科技有限公司 | 视频渲染方法及装置、存储介质、电子设备 |
| CN117218269A (zh) * | 2022-09-07 | 2023-12-12 | 腾讯科技(深圳)有限公司 | 视频处理方法、装置、设备及存储介质 |
| CN115633212A (zh) * | 2022-09-26 | 2023-01-20 | 深圳市大头兄弟科技有限公司 | 文字动画的生成方法及相关设备 |
| CN115801978A (zh) * | 2022-10-24 | 2023-03-14 | 网易(杭州)网络有限公司 | 特效视频制作方法、装置、电子设备及可读存储介质 |
| CN116132733A (zh) * | 2023-01-20 | 2023-05-16 | 北京字跳网络技术有限公司 | 一种视频展示方法及装置 |
| CN116055700B (zh) * | 2023-03-23 | 2023-06-20 | 北京清扬通信有限公司 | 一种降低网络流量的多路视频处理方法、设备及介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120028706A1 (en) * | 2010-02-24 | 2012-02-02 | Valve Corporation | Compositing multiple scene shots into a video game clip |
| CN103928039A (zh) * | 2014-04-15 | 2014-07-16 | 北京奇艺世纪科技有限公司 | 一种视频合成方法及装置 |
| CN103971713A (zh) * | 2014-05-07 | 2014-08-06 | 厦门美图之家科技有限公司 | 一种视频文件的滤镜处理方法 |
| CN107333176A (zh) * | 2017-08-14 | 2017-11-07 | 北京百思科技有限公司 | 一种分布式视频渲染的方法及系统 |
| CN107770626A (zh) * | 2017-11-06 | 2018-03-06 | 腾讯科技(深圳)有限公司 | 视频素材的处理方法、视频合成方法、装置及存储介质 |
| CN110070551A (zh) * | 2019-04-29 | 2019-07-30 | 北京字节跳动网络技术有限公司 | 视频图像的渲染方法、装置和电子设备 |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4203812B2 (ja) * | 2003-12-29 | 2009-01-07 | ソニー株式会社 | ファイル記録装置、ファイル記録方法、ファイル記録方法のプログラム、ファイル記録方法のプログラムを記録した記録媒体、ファイル再生装置、ファイル再生方法、ファイル再生方法のプログラム及びファイル再生方法のプログラムを記録した記録媒体 |
| JP4340973B2 (ja) * | 2004-12-22 | 2009-10-07 | ソニー株式会社 | 画像編集装置及びビデオ編集装置 |
| JP2008135923A (ja) * | 2006-11-28 | 2008-06-12 | Taiwan Mukojo Kagi Kofun Yugenkoshi | リアルタイムに相互作用する映像の制作方法、映像の制作装置、および映像の制作システム |
| CN101247482B (zh) * | 2007-05-16 | 2010-06-02 | 北京思比科微电子技术有限公司 | 一种实现动态图像处理的方法和装置 |
| JP2013109161A (ja) * | 2011-11-21 | 2013-06-06 | Xing Inc | カラオケシステム、カラオケ端末装置、カラオケ背景編集方法、及びコンピュータプログラム |
| JP5836138B2 (ja) * | 2012-01-17 | 2015-12-24 | オリンパス株式会社 | 撮像装置、画像処理方法およびプログラム |
| CN105874782A (zh) * | 2014-01-03 | 2016-08-17 | 汤姆逊许可公司 | 用于当呈现视频内容时优化至超高清分辨率的画质增强方法、装置和计算机程序产品 |
| CN107071580A (zh) * | 2017-03-20 | 2017-08-18 | 北京潘达互娱科技有限公司 | 数据处理方法及装置 |
| CN108022279B (zh) * | 2017-11-30 | 2021-07-06 | 广州市百果园信息技术有限公司 | 视频特效添加方法、装置及智能移动终端 |
-
2020
- 2020-03-24 CN CN202010212800.5A patent/CN113452929B/zh active Active
- 2020-12-17 JP JP2022549142A patent/JP2023515411A/ja active Pending
- 2020-12-17 WO PCT/CN2020/137398 patent/WO2021189995A1/zh not_active Ceased
-
2022
- 2022-08-17 US US17/889,817 patent/US20220417591A1/en not_active Abandoned
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120028706A1 (en) * | 2010-02-24 | 2012-02-02 | Valve Corporation | Compositing multiple scene shots into a video game clip |
| CN103928039A (zh) * | 2014-04-15 | 2014-07-16 | 北京奇艺世纪科技有限公司 | 一种视频合成方法及装置 |
| CN103971713A (zh) * | 2014-05-07 | 2014-08-06 | 厦门美图之家科技有限公司 | 一种视频文件的滤镜处理方法 |
| CN107333176A (zh) * | 2017-08-14 | 2017-11-07 | 北京百思科技有限公司 | 一种分布式视频渲染的方法及系统 |
| CN107770626A (zh) * | 2017-11-06 | 2018-03-06 | 腾讯科技(深圳)有限公司 | 视频素材的处理方法、视频合成方法、装置及存储介质 |
| CN110070551A (zh) * | 2019-04-29 | 2019-07-30 | 北京字节跳动网络技术有限公司 | 视频图像的渲染方法、装置和电子设备 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114157867A (zh) * | 2021-11-15 | 2022-03-08 | 北京达佳互联信息技术有限公司 | 图像处理方法、装置、电子设备及存储介质 |
| CN114630181A (zh) * | 2022-02-24 | 2022-06-14 | 深圳亿幕信息科技有限公司 | 一种视频处理方法、系统、电子设备及介质 |
| CN114782579A (zh) * | 2022-04-26 | 2022-07-22 | 北京沃东天骏信息技术有限公司 | 一种图像渲染方法及装置、存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113452929A (zh) | 2021-09-28 |
| JP2023515411A (ja) | 2023-04-13 |
| US20220417591A1 (en) | 2022-12-29 |
| CN113452929B (zh) | 2022-10-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2021189995A1 (zh) | 视频渲染方法、装置、电子设备及存储介质 | |
| US11445255B2 (en) | Operation method, device, apparatus and storage medium of playing video | |
| US11315336B2 (en) | Method and device for editing virtual scene, and non-transitory computer-readable storage medium | |
| US12216881B2 (en) | Method for displaying application icon and electronic device | |
| CN111338743B (zh) | 一种界面处理方法、装置及存储介质 | |
| US12170047B2 (en) | Display control method, display control device and storage medium | |
| CN110609649A (zh) | 界面显示方法、装置及存储介质 | |
| US10325569B2 (en) | Method and apparatus for coding image information for display | |
| CN111754607A (zh) | 图片处理方法及装置、电子设备、计算机可读存储介质 | |
| EP3032482A1 (en) | Page display method and apparatus | |
| CN107391073B (zh) | 显示模组及电子设备 | |
| WO2021077621A1 (zh) | 屏幕显示装置、屏幕显示控制方法、屏幕显示控制装置及存储介质 | |
| US20250054454A1 (en) | Image display methods and apparatuses | |
| CN106371714A (zh) | 信息显示方法及装置 | |
| CN111246012B (zh) | 应用界面显示方法、装置及存储介质 | |
| CN112445318B (zh) | 一种对象显示方法、装置、电子设备及存储介质 | |
| CN107920015A (zh) | 发布图片的方法和发布图片的装置 | |
| CN114463478A (zh) | 图像渲染的处理方法、装置及电子设备 | |
| CN109413232B (zh) | 屏幕显示方法及装置 | |
| CN111782321A (zh) | 一种查看页面层级结构的方法、装置及介质 | |
| CN109389547A (zh) | 图像显示方法及装置 | |
| CN115934225A (zh) | 合成方法、装置、电子设备及存储介质 | |
| WO2024259955A1 (zh) | 一种显示方法、第一设备以及第二设备 | |
| CN115222841A (zh) | 元素处理方法、装置、电子设备及计算机可读存储介质 | |
| KR20130066911A (ko) | 휴대용 단말기에서 이미지 드로우 속도를 개선하기 위한 장치 및 방법 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20926655 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2022549142 Country of ref document: JP Kind code of ref document: A |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06/02/2023) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20926655 Country of ref document: EP Kind code of ref document: A1 |