WO2023104007A1 - 视频特效包的生成方法、装置、设备及存储介质 - Google Patents

视频特效包的生成方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023104007A1
WO2023104007A1 PCT/CN2022/136778 CN2022136778W WO2023104007A1 WO 2023104007 A1 WO2023104007 A1 WO 2023104007A1 CN 2022136778 W CN2022136778 W CN 2022136778W WO 2023104007 A1 WO2023104007 A1 WO 2023104007A1
Authority
WO
WIPO (PCT)
Prior art keywords
special effect
control
user
panel
script
Prior art date
Application number
PCT/CN2022/136778
Other languages
English (en)
French (fr)
Inventor
吕阳
马锐锋
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Priority claimed from CN202111506367.7A external-priority patent/CN114187169B/zh
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2023104007A1 publication Critical patent/WO2023104007A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region

Definitions

  • the present disclosure relates to the technical field of computer software, for example, to a method, device, device and storage medium for generating an image special effect package.
  • the disclosure provides a method, device, device, and storage medium for generating a video special effect package, which can generate a special effect package based on a node system, and improve the generation efficiency of the special effect package.
  • the present disclosure provides a method for generating a video special effect package, including:
  • the acquisition control, the frame capture control, the selection control and the setting control are connected in sequence, so that the captured video frame is used as the input of the original empty input in the target special effect control to generate a video special effect package.
  • the present disclosure also provides a device for generating a video special effect package, including:
  • the target special effect control determination module is set to obtain a special effect control whose input is empty in the general special effect panel as the target special effect control;
  • the special effect information acquisition module is configured to obtain the special effect information in the target special effect control, and switch to the script special effect panel;
  • the control creation module is configured to create an acquisition control, a frame capture control, a selection control corresponding to the special effect information, and a setting control corresponding to the special effect information in the script special effect panel according to the creation operation triggered by the user;
  • the video special effect package generating module is configured to connect the acquisition control, the frame grabbing control, the selection control and the setting control in turn, so that the captured video frame is used as the original empty input in the target special effect control Input to generate a video effects package.
  • the present disclosure also provides an electronic device, the electronic device comprising:
  • a storage device configured to store one or more programs
  • the one or more processing devices When the one or more programs are executed by the one or more processing devices, the one or more processing devices are made to implement the above-mentioned method for generating a video special effect package.
  • the present disclosure further provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the above-mentioned method for generating a video special effect package is realized.
  • FIG. 1 is a flow chart of a method for generating a video special effect package provided by an embodiment of the present disclosure
  • Fig. 2 is a connection example diagram of multiple functional controls in a general special effect panel provided by an embodiment of the present disclosure
  • Fig. 3 is an example diagram of generating and acquiring controls provided by an embodiment of the present disclosure
  • Fig. 4 is an example diagram of a generation setting control provided by an embodiment of the present disclosure.
  • Fig. 5 is a connection diagram of multiple functional controls in a script special effect panel provided by an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a device for generating a video special effect package provided by an embodiment of the present disclosure
  • Fig. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “including but not limited to”.
  • the term “based on” is “based at least in part on”.
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • the general effect panel (Effect Graph) in the node system can perform special effect processing on one or more pictures.
  • Effect Graph includes the core function controls of special effect control, video frame input control and scene output control and other extended function controls. This article mainly explains the working principle of Effect Graph from the workflow of core functional controls.
  • Some video special effects need to directly or indirectly use the picture of one frame forward in the current frame, such as forming "illusion” special effects or “freeze frame” special effects.
  • the functions of the script effect panel (Script Graph) and the general effect panel (Effect Graph) in the node system are combined to generate a frame capture effect package.
  • FIG. 1 is a flow chart of a method for generating a video special effect package provided by an embodiment of the present disclosure. This embodiment is applicable to the case of generating a video special effect package based on a node system.
  • the method can be executed by a device for generating a video special effect package.
  • the device can be composed of hardware and/or software, and can generally be integrated into a device capable of generating a video special effect package, and the device can be an electronic device such as a server, a mobile terminal, or a server cluster.
  • the method includes the following steps:
  • Step 110 obtaining a special effect control whose input is empty in the general special effect panel, and determining it as the target special effect control.
  • the general special effect panel includes a video frame input control, at least one special effect control and a scene output control, and the video frame input control, at least one special effect control and scene output control are connected according to a set rule.
  • FIG. 2 is a connection example diagram of multiple functional controls in a general special effect panel provided in an embodiment of the present disclosure.
  • the general special effect panel includes a video frame input control, three special effect controls and The scene output control, wherein one input of the second special effect control (special effect control 2 in the figure) is empty, then the special effect control 2 is determined as the target special effect control.
  • Step 120 obtain the special effect information in the target special effect control, and switch to the script special effect panel.
  • the special effect control carries special effect information, and the special effect information indicates what kind of special effect processing the special effect control performs on the input video frame.
  • the special effect information is displayed through the special effect information bar in the special effect control, and the user can obtain it intuitively. After obtaining the special effect information, switch the current interface to the script special effect panel.
  • Step 130 create an acquisition control, a frame capture control, a selection control corresponding to the special effect information and a setting control corresponding to the special effect information in the script special effect panel according to the creation operation triggered by the user.
  • the acquisition control is used to obtain the special effect information of the target special effect control from the resource panel; the frame capture control is used to cache multiple video frames; the selection control is used to select the cached video frames; the setting control control is used to set the selected video frame input to the target special effect control, so as to be merged with other input video frames of the target special effect control.
  • the process of creating the acquisition control corresponding to the special effect information in the script special effect panel according to the creation operation triggered by the user may be: obtaining the special effect information from the resource panel; dragging the special effect information into the script special effect panel based on the user's drag operation , and receive the acquisition option selected by the user, and generate the acquisition control corresponding to the special effect information.
  • the resource panel contains a variety of special effect information. Users can select the required special effect information from the resource panel, drag the special effect information into the special effect script panel, and select the "Get” option to generate the corresponding acquisition control of the special effect information .
  • FIG. 3 is an example diagram of generating an acquisition control provided by an embodiment of the present disclosure. As shown in Figure 3, assuming that the required special effect information is "special effect information 2", the user drags special effect information 2 into the script special effect panel, and selects the "Get (Get)” option, and then obtains the acquisition control of special effect information 2 .
  • the process of creating a frame capture control in the script special effect panel according to the creation operation triggered by the user may be: creating an initial frame capture control in the script special effect panel according to the creation operation triggered by the user; The number of captured video frames is set to generate a frame capture control.
  • the number of captured video frames can be the number of video frames that can be cached by the frame capture control. Assuming that the number of video frames is set to 10, it means that the frame capture control can cache 10 video frames.
  • the capture The frame control deletes the first video frame in the cache, thereby storing the 11th video frame.
  • the method of creating the selection control according to the creation operation triggered by the user in the script special effect panel may be: creating an initial selection control in the script special effect panel according to the creation operation triggered by the user; receiving the secondary selection control set by the user in the initial selection control Select the target video frame among the captured video frames to generate a selection control.
  • the sequence number of the selected target video frame is less than or equal to the number of video frames set in the frame grabbing control, so as to ensure that it is selected from the video frames cached in the frame grabbing control.
  • the value set by the user is 3, it means that the video frame with sequence number 3 is selected from the cached video frames as the target video frame.
  • the process of creating the setting control corresponding to the special effect information in the script special effect panel according to the creation operation triggered by the user may be: obtaining the special effect information from the resource panel; dragging the special effect information into the script special effect panel based on the user's drag operation , and receive the setting option selected by the user, and generate the setting control corresponding to the special effect information.
  • the resource panel contains a variety of special effect information. Users can select the desired special effect information from the resource panel, drag the special effect information into the special effect script panel, and select the "Settings” option to generate the setting controls corresponding to the special effect information .
  • FIG. 4 is an example diagram of a generation setting control provided by an embodiment of the present disclosure. As shown in Figure 4, assuming that the required special effect information is "special effect information 2", the user drags special effect information 2 into the script special effect panel, and selects the "Get (Set)” option, and then obtains the setting control of special effect information 2 .
  • the following steps are also included: adding a trigger control on the script special effect panel, and receiving the frame capture trigger condition set by the user in the trigger control; combining the output of the trigger control with the frame capture control input connected.
  • the frame grabbing trigger condition is to trigger the frame grabbing operation every N frames, N ⁇ 0. Connect the output of the trigger control to the input of the frame capture control to trigger the frame capture control to capture frames and cache them.
  • the value of N can be set according to actual requirements, and is not limited here.
  • Step 140 connect the acquisition control, the frame capture control, the selection control and the setting control in sequence, so as to input the captured video frames into the target special effect control to generate a video special effect package.
  • FIG. 5 is a connection diagram of multiple functional controls in a script special effect panel provided by an embodiment of the present disclosure. As shown in FIG. 5 , from left to right, it includes an acquisition control corresponding to the special effect information 2, a trigger control, a frame capture control, a selection control and a setting control corresponding to the special effect information 2.
  • the trigger condition in the trigger control is to capture each frame, the number of video frames set by the frame capture control is 5, and the selection control is set to select the video frame whose serial number is 2. It can be seen from Figure 5 that the frame capture control is connected to the setting control, and this channel is used for triggering.
  • the following steps are further included: creating a video frame input control, at least one special effect control and scene output in the general special effect panel according to a user-triggered creation operation control; select one of the special effect controls as the target special effect control, and set at least two inputs to the target special effect control; connect the video frame input control, at least one special effect control and scene output control in sequence according to the set rules based on the user's trigger connection operation, And leave one input of the target effect control blank.
  • the special effect control carries special effect information and grid information.
  • the video frame input control is used to input a video frame for subsequent special effect processing, and the video frame input control may include a built-in video frame input control and a static video frame input control.
  • the built-in video frame input control can be the input of the video frame captured by the camera of the current terminal device, and the static video frame input control can be the input of the video already stored in the terminal device.
  • the function of the special effect control can add special effects to the input picture.
  • Special effect information and grid information can be set in the special effect control.
  • the special effect information can be the special effect (such as mirror processing, denoising processing, etc.)
  • the size and position of the added special effects, the grid information can include grid vertex coordinates and normal information, etc.
  • the grid information can be a full-screen quadrilateral, indicating that special effects are processed on the entire image.
  • the scene output control is used to display the video frames processed by special effects.
  • a special effect control whose input is empty in the general special effect panel is obtained, and determined as the target special effect control; the special effect information in the target special effect control is obtained, and switched to the script special effect panel; in the script special effect panel according to
  • the creation operation triggered by the user creates the acquisition control, frame capture control, selection control and setting control corresponding to the special effect information; connect the acquisition control, frame capture control, selection control and setting control in sequence to capture the captured video Frame input target effects controls to generate video effects packages.
  • the method for generating a video special effect package provided by an embodiment of the present disclosure can generate a frame capture special effect package based on a node system, and improve the generation efficiency of the special effect package.
  • FIG. 6 is a schematic structural diagram of a device for generating a video special effect package provided by an embodiment of the present disclosure. As shown in FIG. 6 , the device includes:
  • the target special effect control determination module 210 is set to obtain a special effect control with empty input in the general special effect panel as the target special effect control;
  • the special effect information acquisition module 220 is set to obtain the special effect information in the target special effect control and switch to the script special effect Panel;
  • control creation module 230 is set to in the script special effect panel according to the creation operation triggered by the user to create the corresponding acquisition control, frame capture control, selection control and special effect information corresponding setting control of special effect information in the script special effect panel;
  • video special effect package generation module 240 set To connect the acquisition control, the frame capture control, the selection control and the setting control in sequence, so as to input the captured video frames into the target special effect control to generate a video special effect package.
  • control creation module 230 is set to:
  • control creation module 230 is set to:
  • control creation module 230 is set to:
  • control creation module 230 is set to:
  • a trigger control adding module which is set to:
  • a general special effect panel control connection module which is set to:
  • the special effect control carries special effect information; select one of the special effect controls as the target special effect control, and set the target special effect control Set at least two inputs; connect the video frame input control, at least one special effect control, and the scene output control in sequence according to the set rules based on the user's trigger connection operation, and leave one input of the target special effect control empty.
  • the above-mentioned device can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and effects for executing the above-mentioned methods.
  • the above-mentioned device can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and effects for executing the above-mentioned methods.
  • FIG. 7 it shows a schematic structural diagram of an electronic device 300 suitable for implementing the embodiments of the present disclosure.
  • Electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (Portable Android Device, PAD), portable multimedia players (Portable Media Player, PMP), mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals), fixed terminals such as digital TV (Television, TV), desktop computers, etc., or various forms of servers, such as independent servers or Server cluster.
  • the electronic device 300 shown in FIG. 7 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.
  • an electronic device 300 may include a processing device (such as a central processing unit, a graphics processing unit, etc.)
  • the device 308 loads programs in the random access storage device (Random Access Memory, RAM) 303 to perform various appropriate actions and processes.
  • RAM Random Access Memory
  • various programs and data necessary for the operation of the electronic device 300 are also stored.
  • the processing device 301, ROM 302, and RAM 303 are connected to each other through a bus 304.
  • An input/output (Input/Output, I/O) interface 305 is also connected to the bus 304 .
  • an input device 306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; including, for example, a liquid crystal display (Liquid Crystal Display, LCD) , an output device 307 such as a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309.
  • the communication means 309 may allow the electronic device 300 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 7 shows electronic device 300 having various means, it is not a requirement to implement or possess all of the means shown. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing a method for generating a video special effect package.
  • the computer program may be downloaded and installed from a network via communication means 309, or from storage means 308, or from ROM 302.
  • the processing device 301 When the computer program is executed by the processing device 301, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof.
  • Examples of computer readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Memory (EPROM) or flash memory), optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, 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 can be transmitted by any appropriate medium, including but not limited to: electric wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
  • the client and the server can communicate using any currently known or future network protocols such as Hypertext Transfer Protocol (HyperText Transfer Protocol, HTTP), and can communicate with digital data in any form or medium Communication (eg, communication network) interconnections.
  • Examples of communication networks include local area networks (Local Area Network, LAN), wide area networks (Wide Area Network, WAN), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently existing networks that are known or developed in the future.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains a special effect control whose input is empty in the general special effect panel, and determines it as the target special effect Control; obtain the special effect information in the target special effect control, and switch to the script special effect panel; create the acquisition control, frame capture control, selection control and The setting control corresponding to the special effect information; connecting the acquisition control, the frame grabbing control, the selection control and the setting control in sequence, so as to input the captured video frame into the target special effect control to generate Video Effects Pack.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including a LAN or WAN, or it can be connected to an external computer (eg via the Internet using an Internet Service Provider).
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the unit does not constitute a limitation of the unit itself in one case.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (Field Programmable Gate Arrays, FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (Application Specific Standard Parts, ASSP), System on Chip (System on Chip, SOC), Complex Programmable Logic Device (Complex Programming Logic Device, CPLD) and so on.
  • 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, apparatus, or device.
  • 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, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard drives, RAM, ROM, EPROM or flash memory, optical fibers, CD-ROMs, optical storage devices, magnetic storage devices, or Any suitable combination of the above.
  • the embodiments of the present disclosure disclose a method for generating a video special effect package, including:
  • the acquisition control, the frame capture control, the selection control and the setting control are sequentially connected to input the captured video frames into the target special effect control to generate a video special effect package.
  • creating an acquisition control corresponding to the special effect information in the script special effect panel according to a user-triggered creation operation includes:
  • creating a frame capture control in the script special effect panel according to a user-triggered creation operation includes:
  • creating a selection control in the script special effect panel according to a user-triggered creation operation includes:
  • a selection control is generated by receiving a target video frame selected from captured video frames set by the user in the initial selection control.
  • creating a setting control corresponding to the special effect information in the script special effect panel according to a user-triggered creation operation includes:
  • the script special effects panel after switching to the script special effects panel, it also includes:
  • the frame grabbing trigger condition is to trigger a frame grabbing operation every N frames, N ⁇ 0;
  • the general special effect panel before obtaining a special effect control with an empty input in the general special effect panel, it may further include:

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Circuits (AREA)
  • Studio Devices (AREA)

Abstract

本公开提供了一种视频特效包的生成方法、装置、设备及存储介质。视频特效包的生成方法包括:获取通用特效面板中有一个输入为空的特效控件,确定为目标特效控件;获取所述目标特效控件中的特效信息,并切换至脚本特效面板;在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件、抓帧控件、选择控件及所述特效信息对应的设置控件;将所述获取控件、所述抓帧控件、所述选择控件及所述设置控件依次相连,以将抓取到的视频帧输入所述目标特效控件,以生成视频特效包。

Description

视频特效包的生成方法、装置、设备及存储介质
本申请要求在2021年12月10日提交中国专利局、申请号为202111506367.7的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开涉及计算机软件技术领域,例如涉及一种图像特效包的生成方法、装置、设备及存储介质。
背景技术
特效包的生成主要是通过开发人员采用计算机语言编程实现,该种方式无法实现特效包的批量生成,效率较低。
发明内容
本公开提供一种视频特效包的生成方法、装置、设备及存储介质,可以基于节点系统生成特效包,提高特效包的生成效率。
第一方面,本公开提供了一种视频特效包的生成方法,包括:
获取通用特效面板中有一个输入为空的特效控件,确定为目标特效控件;
获取所述目标特效控件中的特效信息,并切换至脚本特效面板;
在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件、抓帧控件、选择控件及所述特效信息对应的设置控件;
将所述获取控件、所述抓帧控件、所述选择控件及所述设置控件依次相连,以将抓取到的视频帧作为所述目标特效控件中原空输入的输入,以生成视频特效包。
第二方面,本公开还提供了一种视频特效包的生成装置,包括:
目标特效控件确定模块,设置为获取通用特效面板中有一个输入为空的特效控件,作为目标特效控件;
特效信息获取模块,设置为获取所述目标特效控件中的特效信息,并切换至脚本特效面板;
控件创建模块,设置为在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件、抓帧控件、选择控件及所述特效信息对应的设置控件;
视频特效包生成模块,设置为将所述获取控件、所述抓帧控件、所述选择控件及所述设置控件依次相连,以将抓取到的视频帧作为所述目标特效控件中原空输入的输入,以生成视频特效包。
第三方面,本公开还提供了一种电子设备,所述电子设备包括:
一个或多个处理装置;
存储装置,设置为存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理装置执行,使得所述一个或多个处理装置实现上述的视频特效包的生成方法。
第四方面,本公开还提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现上述的视频特效包的生成方法。
附图说明
图1是本公开实施例提供的一种视频特效包的生成方法的流程图;
图2是本公开实施例提供的一种通用特效面板中多个功能控件的连接示例图;
图3是本公开实施例提供的一种生成获取控件的示例图;
图4是本公开实施例提供的一种生成设置控件的示例图;
图5是本公开实施例提供的一种脚本特效面板中多个功能控件的连接图;
图6是本公开实施例提供的一种视频特效包的生成装置的结构示意图;
图7是本公开实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将参照附图描述本公开的实施例。虽然附图中显示了本公开的一些实施例,然而本公开可以通过多种形式来实现,提供这些实施例是为了理解本公开。本公开的附图及实施例仅用于示例性作用。
本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施 例”。其他术语的相关定义将在下文描述中给出。
本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
节点系统中的通用特效面板(Effect Graph)可以对一张或者多张图片进行特效处理。在Effect Graph中,包括特效控件、视频帧输入控件及场景输出控件这几个核心功能控件和其他扩展功能控件。本文主要从核心功能控件的工作流程来说明Effect Graph的工作原理。
有一些视频特效需要在当前帧直接或者间接的使用前向一帧的画面,例如形成“幻觉”特效或者“定格”特效。本实施例中,将节点系统中的脚本特效面板(Script Graph)和通用特效面板(Effect Graph)的功能结合,以生成抓帧特效包。
图1是本公开实施例提供的一种视频特效包的生成方法的流程图,本实施例可适用于基于节点系统生成视频特效包的情况,该方法可以由视频特效包的生成装置来执行,该装置可由硬件和/或软件组成,并一般可集成在具有视频特效包的生成功能的设备中,该设备可以是服务器、移动终端或服务器集群等电子设备。如图1所示,该方法包括如下步骤:
步骤110,获取通用特效面板中有一个输入为空的特效控件,确定为目标特效控件。
在通用特效面板中包含有视频帧输入控件、至少一个特效控件及场景输出控件,且视频帧输入控件、至少一个特效控件及场景输出控件按照设定规则相连。示例性的,图2是本公开实施例提供中的一种通用特效面板中多个功能控件的连接示例图,如图2所示,通用特效面板中包含视频帧输入控件、三个特效控件及场景输出控件,其中,第二个特效控件(图中特效控件2)有一个输入为空,则将特效控件2确定为目标特效控件。
步骤120,获取目标特效控件中的特效信息,并切换至脚本特效面板。
特效控件中携带有特效信息,特效信息表示该特效控件对输入的视频帧做何种特效处理。特效信息通过特效控件中的特效信息栏显示,用户可以直观的获取。在获取到特效信息后,将当前界面切换至脚本特效面板中。
步骤130,在脚本特效面板中根据用户触发的创建操作创建特效信息对应的获取控件、抓帧控件、选择控件及特效信息对应的设置控件。
获取控件用于从资源面板中获取到目标特效控件的特效信息;抓帧控件用于缓存多个视频帧;选择控件用于对缓存的视频帧进行选择;设置控件控件用于将选择的视频帧输入至目标特效控件中,从而与目标特效控件其他输入的视频帧进行融合。
本实施例中,在脚本特效面板中根据用户触发的创建操作创建特效信息对应的获取控件的过程可以是:从资源面板中获取特效信息;基于用户的拖动操作将特效信息拖入脚本特效面板中,并接收用户选择的获取选项,生成特效信息对应的获取控件。
资源面板中包含有多种特效信息,用户可以从资源面板中选择所需的特效信息,并将该特效信息拖入特效脚本面板中,并选择“获取”选项,从而生成特效信息对应的获取控件。示例性的,图3是本公开实施例提供的一种生成获取控件的示例图。如图3所示,假设所需的特效信息为“特效信息2”,则用户将特效信息2拖入脚本特效面板中,并选择“获取(Get)”选项,则获得特效信息2的获取控件。
本实施例中,在脚本特效面板中根据用户触发的创建操作创建抓帧控件的过程可以是:在脚本特效面板中根据用户触发的创建操作创建初始抓帧控件;接收用户在初始抓帧控件中设置的抓取的视频帧数量,生成抓帧控件。
抓取的视频帧数量可以为抓帧控件可以缓存的视频帧数量,假设视频帧数量设置为10,则表示抓帧控件可缓存10个视频帧,当抓取到第11个视频帧后,抓帧控件将缓存的第一个视频帧删除,从而存储第11个视频帧。
本实施例中,在脚本特效面板中根据用户触发的创建操作创建选择控件的方式可以是:在脚本特效面板中根据用户触发的创建操作创建初始选择控件;接收用户在初始选择控件中设置的从抓取的视频帧中选择的目标视频帧,生成选择控件。
被选择的目标视频帧的序号小于或等于抓帧控件中设置的视频帧数量,以保证是从抓帧控件缓存的视频帧选择的。示例性的,在上述示例的基础上,假设用户设置的数值为3,则表示从缓存的视频帧中选择序号为3的视频帧作为目标视频帧。
本实施例中,在脚本特效面板中根据用户触发的创建操作创建特效信息对应的设置控件的过程可以是:从资源面板中获取特效信息;基于用户的拖动操作将特效信息拖入脚本特效面板中,并接收用户选择的设置选项,生成特效信 息对应的设置控件。
资源面板中包含有多种特效信息,用户可以从资源面板中选择所需的特效信息,并将该特效信息拖入特效脚本面板中,并选择“设置”选项,从而生成特效信息对应的设置控件。示例性的,图4是本公开实施例提供的一种生成设置控件的示例图。如图4所示,假设所需的特效信息为“特效信息2”,则用户将特效信息2拖入脚本特效面板中,并选择“获取(Set)”选项,则获得特效信息2的设置控件。
一实施例中,在切换至脚本特效面板之后,还包括如下步骤:在脚本特效面板添加触发控件,并接收用户在触发控件中设置的抓帧触发条件;将触发控件的输出与抓帧控件的输入相连。
抓帧触发条件为每隔N帧触发抓帧操作,N≥0。将触发控件的输出与抓帧控件的输入相连以触发抓帧控件进行抓帧并进行缓存。示例性的,假设N=0,则表示对视频中的每一帧都要进行抓取,若N=1,则表示每隔一帧抓取一视频帧。N的取值可以根据实际需求设置,此处不做限定。
步骤140,将获取控件、抓帧控件、选择控件及设置控件依次相连,以将抓取到的视频帧输入目标特效控件,以生成视频特效包。
在创建好获取控件、抓帧控件、选择控件及设置控件,将获取控件、抓帧控件、选择控件及设置控件依次相连。示例性的,图5是本公开实施例提供的一种脚本特效面板中多个功能控件的连接图。如图5所示,从左到右包括特效信息2对应的获取控件、触发控件、抓帧控件、选择控件及特效信息2对应的设置控件。其中,触发控件中的触发条件为对每一帧进行抓取,抓帧控件设置的视频帧数量为5,选择控件设置选择序号为2的视频帧。从图5中可以看出,抓帧控件与设置控件相连,该通道的作用用于起到触发作用。
一实施例中,在获取通用特效面板中有一个输入为空的特效控件之前,还包括如下步骤:在通用特效面板中根据用户触发的创建操作创建视频帧输入控件、至少一个特效控件及场景输出控件;选择其中一个特效控件为目标特效控件,对目标特效控件设置至少两个输入;基于用户的触发连接操作按照设定规则依次将视频帧输入控件、至少一个特效控件和场景输出控件进行连接,并保留目标特效控件的一个输入为空。
特效控件中携带有特效信息和网格信息。视频帧输入控件用于输入视频帧,以利用后续的特效处理,视频帧输入控件可以包括内置视频帧输入控件及静态视频帧输入控件。内置视频帧输入控件可以为将当前终端设备的摄像头采集的视频帧输入,静态视频帧输入控件可以为将终端设备已经存储的视频输入。特 效控件的功能可以为对输入的图片添加特效。在特效控件中可以设置特效信息和网格信息,特效信息可以为特效控件对待处理视频帧添加的特效(如镜像处理、去噪处理等),网格信息可以为特效控件在待处理视频帧中添加的特效的尺寸及位置,网格信息可以包含网格顶点坐标及法线信息等,例如:网格信息可以是一个全屏的四边形,表示对整幅图进行特效处理。场景输出控件用于将经过特效处理的视频帧进行展示。
本实施例中,为了实现抓帧特效,选择其中一个特效控件为目标特效控件,对目标特效控件设置至少两个输入,并保留目标特效控件的一个输入为空,使得该空输入的输入由脚本特效面板设置。设置过程参见上述实施例,此处不再赘述。
本公开实施例的技术方案,获取通用特效面板中有一个输入为空的特效控件,确定为目标特效控件;获取目标特效控件中的特效信息,并切换至脚本特效面板;在脚本特效面板中根据用户触发的创建操作创建特效信息对应的获取控件、抓帧控件、选择控件及特效信息对应的设置控件;将获取控件、抓帧控件、选择控件及设置控件依次相连,以将抓取到的视频帧输入目标特效控件,以生成视频特效包。本公开实施例提供的视频特效包的生成方法,可以基于节点系统生成抓帧特效包,提高特效包的生成效率。
图6是本公开实施例提供的一种视频特效包的生成装置的结构示意图,如图6所示,该装置包括:
目标特效控件确定模块210,设置为获取通用特效面板中有一个输入为空的特效控件,作为目标特效控件;特效信息获取模块220,设置为获取目标特效控件中的特效信息,并切换至脚本特效面板;控件创建模块230,设置为在脚本特效面板中根据用户触发的创建操作创建特效信息对应的获取控件、抓帧控件、选择控件及特效信息对应的设置控件;视频特效包生成模块240,设置为将获取控件、抓帧控件、选择控件及设置控件依次相连,以将抓取到的视频帧输入目标特效控件,以生成视频特效包。
一实施例中,控件创建模块230,设置为:
从资源面板中获取特效信息;基于用户的拖动操作将特效信息拖入脚本特效面板中,并接收用户选择的获取选项,生成特效信息对应的获取控件。
一实施例中,控件创建模块230,设置为:
在脚本特效面板中根据用户触发的创建操作创建初始抓帧控件;接收用户在初始抓帧控件中设置的抓取的视频帧数量,生成抓帧控件。
一实施例中,控件创建模块230,设置为:
在脚本特效面板中根据用户触发的创建操作创建初始选择控件;接收用户在初始选择控件中设置的从抓取的视频帧中选择的目标视频帧,生成选择控件。
一实施例中,控件创建模块230,设置为:
从资源面板中获取特效信息;基于用户的拖动操作将特效信息拖入脚本特效面板中,并接收用户选择的设置选项,生成特效信息对应的设置控件。
一实施例中,还包括:触发控件添加模块,设置为:
在脚本特效面板添加触发控件,并接收用户在触发控件中设置的抓帧触发条件;其中,抓帧触发条件为每隔N帧触发抓帧操作,N≥0;将触发控件的输出与抓帧控件的输入相连。
一实施例中,还包括:通用特效面板控件连接模块,设置为:
在通用特效面板中根据用户触发的创建操作创建视频帧输入控件、至少一个特效控件及场景输出控件;其中,特效控件中携带有特效信息;选择其中一个特效控件为目标特效控件,对目标特效控件设置至少两个输入;基于用户的触发连接操作按照设定规则依次将视频帧输入控件、至少一个特效控件和场景输出控件进行连接,并保留目标特效控件的一个输入为空。
上述装置可执行本公开前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和效果。未在本实施例中详尽描述的技术细节,可参见本公开前述所有实施例所提供的方法。
下面参考图7,其示出了适于用来实现本公开实施例的电子设备300的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(Television,TV)、台式计算机等等的固定终端,或者多种形式的服务器,如独立服务器或者服务器集群。图7示出的电子设备300仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图7所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储装置(Read-Only Memory,ROM)302中的程序或者从存储装置308加载到随机访问存储装置(Random Access Memory,RAM)303中的程序而执行多种适当的动作和处理。在RAM 303中,还存储有电子设备300操作所需的多种程序和数据。处理装置301、ROM 302以及RAM 303通过总线304彼此相连。输入/输出(Input/Output,I/O)接口305也连接至总线304。
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图7示出了具有多种装置的电子设备300,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行视频特效包的生成方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置308被安装,或者从ROM 302被安装。在该计算机程序被处理装置301执行时,执行本公开实施例的方法中限定的上述功能。
本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如超文本传输协议(HyperText Transfer Protocol,HTTP)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络) 互连。通信网络的示例包括局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取通用特效面板中有一个输入为空的特效控件,确定为目标特效控件;获取所述目标特效控件中的特效信息,并切换至脚本特效面板;在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件、抓帧控件、选择控件及所述特效信息对应的设置控件;将所述获取控件、所述抓帧控件、所述选择控件及所述设置控件依次相连,以将抓取到的视频帧输入所述目标特效控件,以生成视频特效包。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括LAN或WAN—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在一种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上系统(System on Chip,SOC)、复杂可编程逻辑设备(Complex Programming Logic Device,CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、RAM、ROM、EPROM或快闪存储器、光纤、CD-ROM、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开实施例的一个或多个实施例,本公开实施例公开了一种视频特效包的生成方法,包括:
获取通用特效面板中有一个输入为空的特效控件,确定为目标特效控件;
获取所述目标特效控件中的特效信息,并切换至脚本特效面板;
在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件、抓帧控件、选择控件及所述特效信息对应的设置控件;
将所述获取控件、抓帧控件、选择控件及所述设置控件依次相连,以将抓取到的视频帧输入所述目标特效控件,以生成视频特效包。
根据本公开实施例的一个或多个实施例,在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件,包括:
从资源面板中获取所述特效信息;
基于所述用户的拖动操作将所述特效信息拖入所述脚本特效面板中,并接收所述用户选择的获取选项,生成所述特效信息对应的获取控件。
根据本公开实施例的一个或多个实施例,在所述脚本特效面板中根据用户触发的创建操作创建抓帧控件,包括:
在所述脚本特效面板中根据用户触发的创建操作创建初始抓帧控件;
接收所述用户在所述初始抓帧控件中设置的抓取的视频帧数量,生成抓帧控件。
根据本公开实施例的一个或多个实施例,在所述脚本特效面板中根据用户触发的创建操作创建选择控件,包括:
在所述脚本特效面板中根据用户触发的创建操作创建初始选择控件;
接收用户在所述初始选择控件中设置的从抓取的视频帧中选择的目标视频帧,生成选择控件。
根据本公开实施例的一个或多个实施例,在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的设置控件,包括:
从资源面板中获取所述特效信息;
基于所述用户的拖动操作将所述特效信息拖入所述脚本特效面板中,并接收所述用户选择的设置选项,生成所述特效信息对应的设置控件。
根据本公开实施例的一个或多个实施例,在切换至脚本特效面板之后,还包括:
在所述脚本特效面板添加触发控件,并接收所述用户在所述触发控件中设置的抓帧触发条件;其中,所述抓帧触发条件为每隔N帧触发抓帧操作,N≥0;
将所述触发控件的输出与所述抓帧控件的输入相连。
根据本公开实施例的一个或多个实施例,在获取通用特效面板中有一个输入为空的特效控件之前,还包括:
在所述通用特效面板中根据用户触发的创建操作创建视频帧输入控件、至少一个特效控件及场景输出控件;其中,所述特效控件中携带有特效信息;
选择其中一个特效控件为目标特效控件,对所述目标特效控件设置至少两个输入;
基于所述用户的触发连接操作按照设定规则依次将所述视频帧输入控件、所述至少一个特效控件和所述场景输出控件进行连接,并保留所述目标特效控件的一个输入为空。

Claims (10)

  1. 一种视频特效包的生成方法,包括:
    获取通用特效面板中有一个输入为空的特效控件,确定为目标特效控件;
    获取所述目标特效控件中的特效信息,并切换至脚本特效面板;
    在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件、抓帧控件、选择控件及所述特效信息对应的设置控件;
    将所述获取控件、所述抓帧控件、所述选择控件及所述设置控件依次相连,以将抓取到的视频帧输入所述目标特效控件,以生成视频特效包。
  2. 根据权利要求1所述的方法,其中,在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件,包括:
    从资源面板中获取所述特效信息;
    基于所述用户的拖动操作将所述特效信息拖入所述脚本特效面板中,并接收所述用户选择的获取选项,生成所述特效信息对应的获取控件。
  3. 根据权利要求1所述的方法,其中,在所述脚本特效面板中根据用户触发的创建操作创建所述抓帧控件,包括:
    在所述脚本特效面板中根据所述用户触发的创建操作创建初始抓帧控件;
    接收所述用户在所述初始抓帧控件中设置的抓取的视频帧数量,生成所述抓帧控件。
  4. 根据权利要求3所述的方法,其中,在所述脚本特效面板中根据用户触发的创建操作创建所述选择控件,包括:
    在所述脚本特效面板中根据所述用户触发的创建操作创建初始选择控件;
    接收所述用户在所述初始选择控件中设置的从抓取的视频帧中选择的目标视频帧,生成所述选择控件。
  5. 根据权利要求1所述的方法,其中,在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的设置控件,包括:
    从资源面板中获取所述特效信息;
    基于所述用户的拖动操作将所述特效信息拖入所述脚本特效面板中,并接收所述用户选择的设置选项,生成所述特效信息对应的设置控件。
  6. 根据权利要求1所述的方法,在所述切换至脚本特效面板之后,还包括:
    在所述脚本特效面板添加触发控件,并接收所述用户在所述触发控件中设置的抓帧触发条件;其中,所述抓帧触发条件为每隔N帧触发抓帧操作,N≥0;
    将所述触发控件的输出与所述抓帧控件的输入相连。
  7. 根据权利要求1所述的方法,在所述获取通用特效面板中有一个输入为空的特效控件之前,还包括:
    在所述通用特效面板中根据所述用户触发的创建操作创建视频帧输入控件、至少一个特效控件及场景输出控件;其中,所述特效控件中携带有所述特效信息;
    选择一个特效控件为目标特效控件,对所述目标特效控件设置至少两个输入;
    基于所述用户的触发连接操作按照设定规则依次将所述视频帧输入控件、所述至少一个特效控件和所述场景输出控件进行连接,并保留所述目标特效控件的一个输入为空。
  8. 一种视频特效包的生成装置,包括:
    目标特效控件确定模块,设置为获取通用特效面板中有一个输入为空的特效控件,作为目标特效控件;
    特效信息获取模块,设置为获取所述目标特效控件中的特效信息,并切换至脚本特效面板;
    控件创建模块,设置为在所述脚本特效面板中根据用户触发的创建操作创建所述特效信息对应的获取控件、抓帧控件、选择控件及所述特效信息对应的设置控件;
    视频特效包生成模块,设置为将所述获取控件、所述抓帧控件、所述选择控件及所述设置控件依次相连,以将抓取到的视频帧输入所述目标特效控件,以生成视频特效包。
  9. 一种电子设备,包括:
    至少一个处理装置;
    存储装置,设置为存储至少一个程序;
    当所述至少一个程序被所述至少一个处理装置执行,使得所述至少一个处理装置实现如权利要求1-7中任一所述的视频特效包的生成方法。
  10. 一种计算机可读介质,存储有计算机程序,所述程序被处理装置执行时实现如权利要求1-7中任一所述的视频特效包的生成方法。
PCT/CN2022/136778 2021-12-10 2022-12-06 视频特效包的生成方法、装置、设备及存储介质 WO2023104007A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111506367.7A CN114187169B (zh) 2021-12-10 视频特效包的生成方法、装置、设备及存储介质
CN202111506367.7 2021-12-10

Publications (1)

Publication Number Publication Date
WO2023104007A1 true WO2023104007A1 (zh) 2023-06-15

Family

ID=80543077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/136778 WO2023104007A1 (zh) 2021-12-10 2022-12-06 视频特效包的生成方法、装置、设备及存储介质

Country Status (1)

Country Link
WO (1) WO2023104007A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110378986A (zh) * 2019-07-24 2019-10-25 杭州大拿科技股份有限公司 一种习题演示动画生成方法、装置、电子设备和存储介质
CN112312631A (zh) * 2020-10-30 2021-02-02 广州小鹏汽车科技有限公司 一种数据处理的方法和装置
CN112351203A (zh) * 2020-10-26 2021-02-09 北京达佳互联信息技术有限公司 视频拍摄方法、装置、电子设备及存储介质
WO2021047420A1 (zh) * 2019-09-11 2021-03-18 广州华多网络科技有限公司 虚拟礼物特效的渲染方法和装置、直播系统
CN113225450A (zh) * 2020-02-06 2021-08-06 阿里巴巴集团控股有限公司 视频处理方法、视频处理装置及电子设备
CN113452929A (zh) * 2020-03-24 2021-09-28 北京达佳互联信息技术有限公司 视频渲染方法、装置、电子设备及存储介质
CN114187170A (zh) * 2021-12-10 2022-03-15 北京字节跳动网络技术有限公司 图像特效包的生成方法、装置、设备及存储介质
CN114187169A (zh) * 2021-12-10 2022-03-15 北京字节跳动网络技术有限公司 视频特效包的生成方法、装置、设备及存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110378986A (zh) * 2019-07-24 2019-10-25 杭州大拿科技股份有限公司 一种习题演示动画生成方法、装置、电子设备和存储介质
WO2021047420A1 (zh) * 2019-09-11 2021-03-18 广州华多网络科技有限公司 虚拟礼物特效的渲染方法和装置、直播系统
CN113225450A (zh) * 2020-02-06 2021-08-06 阿里巴巴集团控股有限公司 视频处理方法、视频处理装置及电子设备
CN113452929A (zh) * 2020-03-24 2021-09-28 北京达佳互联信息技术有限公司 视频渲染方法、装置、电子设备及存储介质
CN112351203A (zh) * 2020-10-26 2021-02-09 北京达佳互联信息技术有限公司 视频拍摄方法、装置、电子设备及存储介质
CN112312631A (zh) * 2020-10-30 2021-02-02 广州小鹏汽车科技有限公司 一种数据处理的方法和装置
CN114187170A (zh) * 2021-12-10 2022-03-15 北京字节跳动网络技术有限公司 图像特效包的生成方法、装置、设备及存储介质
CN114187169A (zh) * 2021-12-10 2022-03-15 北京字节跳动网络技术有限公司 视频特效包的生成方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN114187169A (zh) 2022-03-15

Similar Documents

Publication Publication Date Title
WO2021082584A1 (zh) 消息交互方法、装置、可读介质及电子设备
EP4262214A1 (en) Screen projection method and apparatus, and electronic device and storage medium
WO2023274354A1 (zh) 视频共享方法、装置、设备及介质
WO2021135626A1 (zh) 菜单项选择方法、装置、可读介质及电子设备
US20230011395A1 (en) Video page display method and apparatus, electronic device and computer-readable medium
WO2023104006A1 (zh) 图像特效包的生成方法、装置、设备及存储介质
WO2023284708A1 (zh) 一种视频处理方法、装置、电子设备和存储介质
US20240078638A1 (en) Image fusion method and apparatus, electronic device, and storage medium
WO2023000888A1 (zh) 云应用的实现方法、装置、电子设备和存储介质
US20230098060A1 (en) Live room setup method and apparatus, electronic device, and storage medium
WO2021218318A1 (zh) 视频传输方法、电子设备和计算机可读介质
WO2023116480A1 (zh) 多媒体内容的发布方法、装置、设备、介质和程序产品
WO2023030224A1 (zh) 一种信息展示方法、装置、电子设备和存储介质
WO2023165370A1 (zh) 一种信息交互方法、装置、显示设备及存储介质
CN115600629B (zh) 车辆信息二维码生成方法、电子设备和计算机可读介质
WO2023216942A1 (zh) 媒体内容的拍摄方法、装置、设备、存储介质和程序产品
WO2023011176A1 (zh) 背景图的生成方法、装置、电子设备和存储介质
CN114489891A (zh) 云应用程序的控制方法、系统、装置、可读介质和设备
WO2024022179A1 (zh) 媒体内容的显示方法、装置、电子设备和存储介质
WO2023207543A1 (zh) 媒体内容的发布方法、装置、设备、存储介质和程序产品
WO2023134509A1 (zh) 视频推流方法、装置、终端设备及存储介质
US11962929B2 (en) Method, apparatus, and device for configuring video special effect, and storage medium
WO2023104007A1 (zh) 视频特效包的生成方法、装置、设备及存储介质
WO2022161393A1 (zh) 信息显示方法、装置、设备及介质
CN114187169B (zh) 视频特效包的生成方法、装置、设备及存储介质

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: 22903429

Country of ref document: EP

Kind code of ref document: A1