WO2022134524A1 - 视频编辑方法和视频编辑装置 - Google Patents

视频编辑方法和视频编辑装置 Download PDF

Info

Publication number
WO2022134524A1
WO2022134524A1 PCT/CN2021/104096 CN2021104096W WO2022134524A1 WO 2022134524 A1 WO2022134524 A1 WO 2022134524A1 CN 2021104096 W CN2021104096 W CN 2021104096W WO 2022134524 A1 WO2022134524 A1 WO 2022134524A1
Authority
WO
WIPO (PCT)
Prior art keywords
animation effect
video
duration
transition animation
clip control
Prior art date
Application number
PCT/CN2021/104096
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
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022134524A1 publication Critical patent/WO2022134524A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/44016Processing 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

Definitions

  • the present disclosure relates to the field of video processing, and in particular, to a video editing method and a video editing device for adjusting transition time.
  • transition processing in the video splicing process is relatively simple, mostly simple splicing or inserting video, picture and other inserts as transitions.
  • the present disclosure provides a video editing method and a video editing apparatus.
  • the technical solutions of the present disclosure are as follows:
  • a video editing method may include the following steps: acquiring and displaying at least two video materials to be spliced; receiving selection of transition animation effects for splicing two adjacent video materials ; in response to the selection, displaying a clip control for changing the duration of the transition animation effect; changing the duration of the transition animation effect based on a change in the length of the clip control; and according to the changed transition
  • the animation effect splices the two adjacent video materials to obtain a combined video material.
  • the clipping controls may be displayed above or below the two adjacent video clips.
  • the vertical center line of the clip control may be aligned with the splicing position of the two adjacent video materials.
  • the length of the clip control may be displayed in proportion to the duration of the transition animation effect.
  • a progress bar corresponding to the duration covered by the transition animation effect of the two adjacent video materials may be displayed in the clip control.
  • the step of changing the duration of the transition animation effect based on a change in the length of the clipping control may include receiving user input for dragging at least one of the left and right ends of the clipping control; and according to The user input changes the length of the clip control to change the duration of the transition animation effect.
  • the step of changing the length of the clip control to change the duration of the transition animation effect according to the user input may include: changing the duration of the transition animation effect based on the left end of the clip control being dragged.
  • a progress bar corresponding to the duration of the animation effect of the first half of the transition animation effect may be displayed accordingly in the clip control; in response to The right end of the clip control is dragged, and a progress bar corresponding to the duration of the animation effect of the second half of the transition animation effect can be displayed accordingly in the clip control.
  • the user input may include one of: hover input, touch input, and input generated by an input tool.
  • a video editing apparatus may include: an acquiring module configured to acquire and display at least two video materials to be spliced; a receiving module configured to receive a pair for splicing adjacent two video materials. selection of transition animation effects for each video material; and a processing module configured to: in response to the selection, display a clip control for changing the duration of the transition animation effect; based on the change in the length of the clip control to change the duration of the transition animation effect; and splicing the two adjacent video materials according to the changed transition animation effect to obtain a combined video material.
  • the clipping controls may be displayed above or below the two adjacent video clips.
  • the vertical center line of the clip control may be aligned with the splicing position of the two adjacent video materials.
  • the length of the clip control may be displayed in proportion to the duration of the transition animation effect.
  • a progress bar corresponding to the duration covered by the transition animation effect of the two adjacent video materials may be displayed in the clip control.
  • the receiving module may be configured to receive user input for dragging at least one of the left and right ends of the clip control.
  • the processing module may be configured to change the length of the clip control to change the duration of the transition animation effect according to the user input.
  • the processing module may be configured to: change the duration of the first half of the transition animation effect based on the left end of the clip control being dragged, wherein the first half and the adjacent two and/or based on the right end of the clip control being dragged to change the duration of the second half animation effect in the transition animation effect, wherein the second half is the same as The second video material in the two adjacent video materials corresponds to each other.
  • the change of the progress bar in the clip control corresponding to the duration of the animation effect of the first half of the transition animation effect may be displayed accordingly
  • the change of the progress bar in the clip control corresponding to the duration of the animation effect in the second half of the transition animation effect can be displayed accordingly.
  • the user input includes one of: hover input, touch input, and input generated by an input tool.
  • an electronic device may include: at least one processor; at least one memory storing computer-executable instructions, wherein the computer-executable instructions are stored by the at least one The processor, when run, causes the at least one processor to perform the video editing method as described above.
  • a non-volatile computer-readable storage medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform video editing as described above method.
  • a computer program product in which instructions are executed by at least one processor in an electronic device to perform the video editing method as described above.
  • the present disclosure controls the duration of the transition animation effect based on the clip control, adjusts the transition effect of the video to be spliced, and can perform video editing more accurately.
  • FIG. 1 is a user interface for transition processing in the related art.
  • FIG. 2 is a schematic diagram of a window for setting the duration of a transition animation effect in the related art.
  • FIG. 3 is a flowchart of a video editing method according to an exemplary embodiment of the present disclosure.
  • FIG. 4 is a user interface for splicing two video materials according to an exemplary embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a video editing device according to an exemplary embodiment of the present disclosure.
  • FIG. 6 is a block diagram of a video editing apparatus according to an exemplary embodiment of the present disclosure.
  • FIG. 7 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • paragraphs are the most basic structural form of TV films, and the content structure of TV films is expressed through paragraphs.
  • transitions or transitions between paragraphs and paragraphs, scenes and scenes are called transitions.
  • Transitions can adjust the overall transition time.
  • the application related to the transition can display the corresponding adjustment interface to the user, and the user can set the time length of the transition through the interface. 's transition.
  • the user interface for transition processing is shown in Figure 1.
  • FIG. 1 is a user interface for transition processing in the related art.
  • the user can select the style of the transition animation effect on the user interface, and then drag the transition control corresponding to the displayed transition animation effect into the middle of the two video clips.
  • the user can input the duration of the transition animation effect in the setting window to complete the setting of the duration of the transition animation effect.
  • the user interface of FIG. 1 can be used to set the duration of the transition animation effect, the adjustment operation is complicated and the time of the parts before and after the transition animation effect cannot be individually adjusted.
  • the duration of the transition animation effect can be set by adding a clip control and dragging both ends of the clip control, and the duration of the parts before and after the transition can be adjusted more flexibly.
  • Fig. 3 is a flowchart showing a video editing method according to an exemplary embodiment.
  • the video editing method can be used for transition processing between at least two video materials/segments.
  • the method shown in FIG. 3 can be executed by any electronic device having an image processing function.
  • the electronic device may be at least one including, for example, a smart phone, a tablet personal computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop PC, Netbook computers, workstations, servers, personal digital assistants (PDAs), portable multimedia players (PMPs), cameras and wearable devices, etc.
  • PDAs personal digital assistants
  • PMPs portable multimedia players
  • step S11 at least two video materials to be spliced are acquired and displayed.
  • a user interface for editing these video clips may be displayed, such as shown in FIG. 4 .
  • FIG. 4 is a user interface for splicing two video materials according to an exemplary embodiment of the present disclosure.
  • the user interface may place and display style buttons for transition animation effects and video clips to be edited.
  • step S12 a selection of a transition animation effect for splicing two adjacent video materials is received.
  • the user can select the style of the transition animation effect that he wants to add in the user interface of FIG. 4 .
  • the user can select the preferred transition animation effect style by touching the style button or the like.
  • step S13 in response to the selection of the transition animation effect, a clip control for changing the duration of the transition animation effect is displayed.
  • the clip control can be a track added after the transition animation effect is selected, and the clip control can be a draggable control.
  • a clip control may be displayed above or below the two adjacent video materials to be edited, as shown in FIG. 4 . In this way, the user can adjust the duration of the transition animation effect with reference to the video more conveniently.
  • a transition animation effect when a user is editing a video, when a transition animation effect needs to be added between two video materials, the user can drag the transition control between the two video materials to be added with a transition. For example, after adding transition controls, a clip track can be added above or below the currently edited video to place and display the clip controls.
  • the clip control can be set as a rectangle and presented in a semi-transparent form, and “handles” are respectively set on the left and right sides of the clip control.
  • “handles” are respectively set on the left and right sides of the clip control.
  • the above examples are only exemplary, and the form and shape of the clipping controls may be set differently. It is also possible to not have "handles" on the left and right sides of the clip controls.
  • the vertical center line of the clip control can be aligned with the splicing position of two adjacent video materials to be edited, such as shown in FIG. 4 .
  • the above-mentioned positions are merely exemplary, and the present disclosure is not limited thereto.
  • the length of the clip controls can be displayed in proportion to the duration of the transition animation effect.
  • a progress bar corresponding to the duration covered by the transition animation effect can be displayed in the clip control. That is, in the clip control, you can display the portion of two adjacent video clips that the transition animation effect covers. For example, the black thick solid bar in the clip control in FIG. 4 is the progress bar.
  • the progress bar can reflect the real duration of the transition animation effect, that is, the duration covered by two adjacent videos.
  • the label or icon of the transition animation effect selected by the user can also be displayed in the clip control, so that the user can view the selected transition animation effect more conveniently.
  • the user interface shown in FIG. 4 is exemplary only, and may be differently laid out and arranged according to design requirements.
  • step S14 the duration of the transition animation effect is changed based on the change of the length of the clip control.
  • the length of the clip control can be changed according to the user. For example, the user can individually change the length of the clip control by dragging the left or right end of the clip control.
  • the length of the clip control may be changed according to the user input to change the duration of the transition animation effect.
  • the duration of the first half of the transition animation effect can be changed based on the left end of the clip control being dragged, wherein the first half corresponds to the first video material in the two adjacent video materials, and can be based on The right end of the clip control is dragged to change the duration of the second half of the transition animation effect, wherein the second half corresponds to the second video material in the two adjacent video materials.
  • the length of the clip control can be equally divided into two parts, one part corresponds to the first half of the transition animation effect, and the other part corresponds to the second half of the transition animation effect.
  • the first half of the transition animation effect may correspond to the first video material (such as the video clip at the front of the two video clips)
  • the second half of the transition animation effect may correspond to the second video material (such as the two video clips).
  • the video clip at the back in the clip corresponds to.
  • the duration of the transition effect when the duration of the transition effect needs to be adjusted, both ends of the clip control can be dragged, and the duration of the transition animation effect can be adjusted correspondingly according to the change in the length of the clip control after dragging.
  • the transition animation effect includes two animation effects (such as the front animation effect and the post animation effect)
  • you drag the left side of the clip control you can adjust the duration of the front animation effect.
  • you drag the right side of the clip control You can adjust the duration of the post-animation effect.
  • a change of the progress bar in the clip control corresponding to the duration of the first half of the transition animation effect is displayed accordingly.
  • the change of the progress bar in the clip control corresponding to the duration of the animation effect of the second half of the transition animation effect is displayed accordingly. That is, the time progress bar in the clip control corresponding to the transition animation effect will change accordingly based on whether the clip control is stretched left or right.
  • the transition animation effect includes the first animation effect and the second animation effect
  • the duration of the first animation effect becomes longer
  • the duration of the first animation effect in the clip control is the same as that of the first animation effect.
  • the corresponding progress bar also stretches to the left accordingly.
  • the duration of the second animation effect becomes longer
  • the progress bar in the clip control corresponding to the second animation effect stretches to the right accordingly.
  • the video may be completely occluded.
  • the duration of the video being completely occluded can be displayed in the clip control. In this way, the user can also see the corresponding duration when adjusting the clip control by dragging. changes to more accurately adjust the desired effect.
  • the user can also change the previously selected transition animation effect through the clip control. For example, each time the user touches the icon of the transition animation effect in the clip control, the current transition animation effect may be changed once in the sequence of the transition animation styles on the user interface.
  • the above-described examples are merely exemplary, and the present disclosure is not limited thereto.
  • step S15 two adjacent video materials are spliced according to the changed transition animation effect to obtain a combined video material.
  • the duration of the transition animation effect can be set by dragging the clip control, and the duration of the parts before and after the transition animation effect can be adjusted individually, so that the user can adjust the transition animation effect more conveniently and accurately.
  • FIG. 5 is a schematic structural diagram of a video editing device of a hardware operating environment according to an embodiment of the present disclosure.
  • the video editing apparatus 500 may include: a processing component 501 , a communication bus 502 , a network interface 503 , an input and output interface 504 , a memory 505 and a power supply component 506 .
  • the communication bus 502 is used to realize the connection and communication between these components.
  • the input-output interface 504 may include a video display (such as a liquid crystal display), a microphone and speakers, and a user interaction interface (such as a keyboard, mouse, touch input device, etc.), and optionally, the input-output interface 504 may also include a standard wired interface , wireless interface.
  • the network interface 503 may include a standard wired interface and a wireless interface (such as a Wi-Fi interface).
  • the memory 505 may be a high-speed random access memory or a stable non-volatile memory.
  • the memory 505 may also be a storage device independent of the aforementioned processing component 501 .
  • FIG. 5 does not constitute a limitation on the video editing apparatus 500, and may include more or less components than those shown, or combine some components, or arrange different components.
  • the memory 505 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, a video editing program, and a database.
  • the network interface 503 is mainly used for data communication with external devices/terminals; the input and output interface 504 is mainly used for data interaction with the user; the processing components 501,
  • the memory 505 may be set in the video editing device 500, and the video editing device 500 invokes the video editing program stored in the memory 505 through the processing component 501 to execute the video editing method provided by the embodiments of the present disclosure.
  • the processing component 501 may include at least one processor, and a computer-executable instruction set is stored in the memory 505. When the computer-executable instruction set is executed by the at least one processor, the video editing method according to an embodiment of the present disclosure is executed. In addition, the processing component 501 may perform encoding operations, decoding operations, and the like. However, the above-described examples are merely exemplary, and the present disclosure is not limited thereto.
  • the processing component 501 can control the input and output interface 504 to acquire and display at least two video materials to be spliced.
  • the processing component 501 can control the input and output interface 504 to receive a selection of a transition animation effect for splicing two adjacent video materials.
  • the processing component 501 can control the input output interface 504 to display a clipping control for changing the duration of the transition animation effect.
  • a progress bar corresponding to the duration covered by the transition animation effect of two adjacent video clips can be displayed in the clip control.
  • the processing component 501 can control the I/O interface 504 to display clip controls above or below the two adjacent video materials.
  • the vertical centerline of the clip control can be aligned with the splicing of two adjacent video clips.
  • the processing component 501 can control the input-output interface 504 to display the length of the clip control in proportion to the duration of the transition animation effect.
  • the processing component 501 can control the input-output interface 504 to receive user input for dragging at least one of the left and right ends of the clip control.
  • the user input may be, for example, one of the following: hover input, touch input, and input generated by an input tool.
  • the processing component 501 can change the duration of the transition animation effect based on the change of the length of the clip control, and splices two adjacent video materials according to the changed transition animation effect to obtain a combined video material.
  • the processing component 501 can change the length of the clip control to change the duration of the transition animation effect according to the user input.
  • the processing component 501 can change the duration of the first half of the transition animation effect based on the left end of the clip control being dragged, wherein the first half corresponds to the first video material among the two adjacent video materials.
  • the processing component 501 can change the duration of the second half of the transition animation effect based on the right end of the clip control being dragged, wherein the second half corresponds to the second video material in the two adjacent video materials.
  • the change of the progress bar in the clip control corresponding to the duration of the animation effect of the first half of the transition animation effect can be displayed accordingly.
  • the change of the progress bar in the clip control corresponding to the duration of the animation effect in the second half of the animation effect can be displayed accordingly.
  • the video editing apparatus 500 may receive or output video or images via the input-output interface 504 .
  • a user may input video or images to processing component 501 via input-output interface 504, or a user may display a processed video or image via input-output interface 504.
  • the video editing apparatus 500 may be a PC computer, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above set of instructions.
  • the video editing device 500 does not have to be a single electronic device, but can also be any collection of devices or circuits capable of individually or jointly executing the above-mentioned instructions (or instruction sets).
  • Video editing device 500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces locally or remotely (eg, via wireless transmission).
  • the processing component 501 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a special purpose processor system, a microcontroller or a microprocessor.
  • processing components 501 may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
  • Processing component 501 can execute instructions or code stored in memory, where memory 505 can also store data. Instructions and data may also be sent and received over a network via network interface 503, which may employ any known transport protocol.
  • the memory 505 may be integrated with the processor, eg, RAM or flash memory arranged within an integrated circuit microprocessor or the like. Additionally, memory 505 may comprise a separate device, such as an external disk drive, storage array, or any other storage device that may be used by a database system.
  • the memory and the processor may be operatively coupled, or may communicate with each other, eg, through I/O ports, network connections, etc., to enable the processor to read files stored in the memory.
  • Fig. 6 is a block diagram of a video editing apparatus according to an exemplary embodiment.
  • the video editing apparatus 600 may include an acquiring module 601 , a receiving module 602 and a processing module 603 .
  • Each module in the video editing apparatus 600 may be implemented by one or more modules, and the name of the corresponding module may vary according to the type of the module. In various embodiments, some modules in the video editing apparatus 600 may be omitted, or additional modules may also be included.
  • modules/elements according to various embodiments of the present disclosure may be combined to form a single entity, and thus may equivalently perform the functions of the corresponding modules/elements prior to combination.
  • the acquiring module 601 can acquire and display at least two video materials to be spliced.
  • the receiving module 602 may receive a selection of a transition animation effect for splicing two adjacent video materials.
  • the processing module 603 may display a clip control for changing the duration of the transition animation effect, change the duration of the transition animation effect based on the change in the length of the clip control, and change the duration of the transition animation effect according to the changed duration.
  • the transition animation effect splices two adjacent video clips to obtain a combined video clip.
  • Clip controls can be displayed above or below two adjacent video clips.
  • the vertical centerline of the clip control can be aligned with the splicing of two adjacent video clips.
  • the length of the clip control can be displayed proportional to the duration of the transition animation effect.
  • a progress bar corresponding to the duration covered by the transition animation effect of two adjacent video clips can be displayed in the clip control.
  • the receiving module 602 can receive user input for dragging at least one of the left and right ends of the clip control.
  • User input may include one of: hover input, touch input, and input generated by an input tool.
  • the input tool may include a mouse, a keyboard, an electronic pen, and the like.
  • the processing module 603 can change the length of the clip control according to the user input to change the duration of the transition animation effect.
  • the processing module 603 can change the duration of the first half of the transition animation effect based on the left end of the clip control being dragged, wherein the first half corresponds to the first video material in the two adjacent video materials.
  • the processing module 603 may change the duration of the second half of the transition animation effect based on the right end of the clip control being dragged, wherein the second half corresponds to the second video material in the two adjacent video materials.
  • the change of the progress bar in the clip control corresponding to the duration of the animation effect of the first half of the transition animation effect can be displayed accordingly.
  • the change of the progress bar in the clip control corresponding to the duration of the animation effect in the second half of the animation effect can be displayed accordingly.
  • the present disclosure can be applied to a scene where the duration occupied by the front and rear parts of the transition animation effect is flexibly adjusted.
  • an electronic device can be provided. 7 is a block diagram of an electronic device according to an embodiment of the present disclosure, the electronic device 700 may include at least one memory 702 and at least one processor 701, the at least one memory 702 stores a set of computer-executable instructions, when the computer-executable instructions When the collection is executed by the at least one processor 701, the video editing method according to various embodiments of the present disclosure is executed.
  • the processor 701 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a special purpose processor system, a microcontroller or a microprocessor.
  • processor 701 may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
  • the memory 702 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, a video editing program, and a database.
  • the memory 702 may be integrated with the processor 701, eg, RAM or flash memory may be arranged within an integrated circuit microprocessor or the like. Additionally, memory 702 may comprise a separate device, such as an external disk drive, storage array, or any other storage device that may be used by a database system. The memory 702 and the processor 701 may be operatively coupled, or may communicate with each other, eg, through I/O ports, network connections, etc., to enable the processor 701 to read files stored in the memory 702 .
  • the electronic device 700 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of electronic device 700 may be connected to each other via a bus and/or network.
  • a video display such as a liquid crystal display
  • a user interaction interface such as a keyboard, mouse, touch input device, etc.
  • the electronic device 700 may be a PC computer, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above set of instructions.
  • the electronic device 700 is not necessarily a single electronic device, but can also be a collection of any device or circuit capable of individually or jointly executing the above-mentioned instructions (or instruction sets).
  • Electronic device 700 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces locally or remotely (eg, via wireless transmission).
  • FIG. 7 do not constitute a limitation, and may include more or less components than those shown, or combine some components, or arrange different components.
  • non-volatile computer-readable storage medium storing instructions, wherein the instructions, when executed by at least one processor, cause the at least one processor to perform the video editing method according to the present disclosure .
  • Examples of non-volatile computer-readable storage media herein include: read only memory (ROM), random access programmable read only memory (PROM), electrically erasable programmable read only memory (EEPROM), random access Memory (RAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Flash, Non-Volatile Memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW , DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard drive ( HDD), solid state drives (SSD), card memory (such as multimedia cards, secure digital (SD) cards, or extreme digital
  • the computer programs in the non-transitory computer-readable storage media described above can be executed in environments deployed in computer equipment such as clients, hosts, agents, servers, etc., and, in one example, the computer programs and any associated Data, data files and data structures are distributed over networked computer systems so that computer programs and any associated data, data files and data structures are stored, accessed and executed in a distributed fashion by one or more processors or computers.
  • a computer program product can also be provided, wherein instructions in the computer program product can be executed by a processor of a computer device to complete the above video editing method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开关于一种视频编辑方法和视频编辑装置。所述视频编辑方法可包括以下步骤:获取并显示待拼接的至少两个视频素材;接收对用于拼接相邻两个视频素材的转场动画效果的选择;响应于所述选择,显示用于改变所述转场动画效果的时长的剪辑控件;基于所述剪辑控件的长度的改变来改变所述转场动画效果的时长;以及根据改变后的转场动画效果将所述相邻两个视频素材进行拼接以得到合并的视频素材。本公开能够更加灵活地改变转场动画效果的时长

Description

视频编辑方法和视频编辑装置
相关申请的交叉引用
本公开要求2020年12月21日提交的申请号为“202011518892.6”中国专利的优先权。
技术领域
本公开涉及视频处理领域,尤其涉及一种用于调整转场时间的视频编辑方法和视频编辑装置。
背景技术
随着视频(尤其是短视频)的不断推广与发展,越来越多的用户开始在视频平台制作和分享视频。用户在制作视频时,可以将两个视频片段拼接为一段完整的视频。为了使两个视频片段在播放过程中可以自然过渡,在对多个视频片段进行拼接时,视频的衔接处需要做转场处理。目前,在视频拼接过程中进行的转场处理较为简单,多为简单拼接或插入视频、图片等插片作为过渡。
发明内容
本公开提供一种视频编辑方法和视频编辑装置。本公开的技术方案如下:
根据本公开的一些实施例,提供一种视频编辑方法,可包括以下步骤:获取并显示待拼接的至少两个视频素材;接收对用于拼接相邻两个视频素材的转场动画效果的选择;响应于所述选择,显示用于改变所述转场动画效果的时长的剪辑控件;基于所述剪辑控件的长度的改变来改变所述转场动画效果的时长;以及根据改变后的转场动画效果将所述相邻两个视频素材进行拼接以得到合并的视频素材。
可选地,可在所述相邻两个视频素材的上方或下方显示所述剪辑控件。
可选地,所述剪辑控件的垂直中心线可与所述相邻两个视频素材的拼接处对齐。
可选地,所述剪辑控件的长度与所述转场动画效果的时长可被成比例地显示。
可选地,在所述剪辑控件中可显示与所述相邻两个视频素材被所述转场动画效果覆盖的时长相应的进度条。
可选地,基于所述剪辑控件的长度的改变来改变所述转场动画效果的时长的步骤可包括接收用于拖动所述剪辑控件的左端和右端中的至少一端的用户输入;并且根据所述用户 输入改变所述剪辑控件的长度以改变所述转场动画效果的时长。
可选地,根据所述用户输入改变所述剪辑控件的长度以改变所述转场动画效果的时长的步骤可包括:基于所述剪辑控件的左端被拖动来改变所述转场动画效果中的前半部分动画效果的时长,其中,所述前半部分与所述相邻两个视频素材中的第一视频素材相应;和/或基于所述剪辑控件的右端被拖动来改变所述转场动画效果中的后半部分动画效果的时长,其中,所述后半部分与所述相邻两个视频素材中的第二视频素材相应。
可选地,响应于所述剪辑控件的左端被拖动,与所述转场动画效果的前半部分动画效果的时长相应的进度条可在所述剪辑控件中的变化被相应地显示;响应于所述剪辑控件的右端被拖动,与所述转场动画效果的后半部分动画效果的时长相应的进度条可在所述剪辑控件中的变化被相应地显示。
可选地,所述用户输入可包括以下项之一:悬停输入、触摸输入和由输入工具产生的输入。
根据本公开的一些实施例,提供一种视频编辑装置,可包括:获取模块,被配置为获取并显示待拼接的至少两个视频素材;接收模块,被配置为接收对用于拼接相邻两个视频素材的转场动画效果的选择;以及处理模块,被配置为:响应于所述选择,显示用于改变所述转场动画效果的时长的剪辑控件;基于所述剪辑控件的长度的改变来改变所述转场动画效果的时长;以及根据改变后的转场动画效果将所述相邻两个视频素材进行拼接以得到合并的视频素材。
可选地,可在所述相邻两个视频素材的上方或下方显示所述剪辑控件。
可选地,所述剪辑控件的垂直中心线可与所述相邻两个视频素材的拼接处对齐。
可选地,所述剪辑控件的长度与所述转场动画效果的时长可被成比例地显示。
可选地,在所述剪辑控件中可显示与所述相邻两个视频素材被所述转场动画效果覆盖的时长相应的进度条。
可选地,接收模块可被配置为接收用于拖动所述剪辑控件的左端和右端中的至少一端的用户输入。
可选地,处理模块可被配置为根据所述用户输入改变所述剪辑控件的长度以改变所述转场动画效果的时长。
可选地,处理模块可被配置为:基于所述剪辑控件的左端被拖动来改变所述转场动画效果中的前半部分动画效果的时长,其中,所述前半部分与所述相邻两个视频素材中的第一视频素材相应;和/或基于所述剪辑控件的右端被拖动来改变所述转场动画效果中的后半部分动画效果的时长,其中,所述后半部分与所述相邻两个视频素材中的第二视频素材相 应。
可选地,响应于所述剪辑控件的左端被拖动,与所述转场动画效果的前半部分动画效果的时长相应的进度条在所述剪辑控件中的变化可被相应地显示,响应于所述剪辑控件的右端被拖动,与所述转场动画效果的后半部分动画效果的时长相应的进度条在所述剪辑控件中的变化可被相应地显示。
可选地,所述用户输入包括以下项之一:悬停输入、触摸输入和由输入工具产生的输入。
根据本公开的一些实施例,提供一种电子设备,所述电子设备可包括:至少一个处理器;至少一个存储计算机可执行指令的存储器,其中,所述计算机可执行指令在被所述至少一个处理器运行时,促使所述至少一个处理器执行如上所述的视频编辑方法。
根据本公开的一些实施例,提供一种存储指令的非易失性计算机可读存储介质,当所述指令被至少一个处理器运行时,促使所述至少一个处理器执行如上所述的视频编辑方法。
根据本公开的一些实施例,提供一种计算机程序产品,所述计算机程序产品中的指令被电子装置中的至少一个处理器运行以执行如上所述的视频编辑方法。
本公开基于剪辑控件控制转场动画效果的时长,调整待拼接视频的过渡效果,视频编辑能够更加准确地进行。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。
图1是相关技术中用于转场处理的用户界面。
图2是相关技术中用于设置转场动画效果时长的窗口的示意图。
图3是根据本公开一示例性实施例示出的一种视频编辑方法的流程图。
图4是根据本公开一示例性实施例示出的用于拼接两个视频素材的用户界面。
图5是根据本公开一示例性实施例示出的一种视频编辑设备的结构示意图。
图6是根据本公开一示例性实施例示出的一种视频编辑装置的框图。
图7是根据本公开一示例性实施例示出的一种电子设备的框图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
提供参照附图的以下描述以帮助对由权利要求及其等同物限定的本公开的实施例的全面理解。包括各种特定细节以帮助理解,但这些细节仅被视为是示例性的。因此,本领域的普通技术人员将认识到在不脱离本公开的范围和精神的情况下,可对描述于此的实施例进行各种改变和修改。此外,为了清楚和简洁,省略对公知的功能和结构的描述。
以下描述和权利要求中使用的术语和词语不限于书面含义,而仅由发明人用来实现本公开的清楚且一致的理解。因此,本领域的技术人员应清楚,本公开的各种实施例的以下描述仅被提供用于说明目的而不用于限制由权利要求及其等同物限定的本公开的目的。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
每个段落(构成电视片的最小单位是镜头,一个个镜头连接在一起形成的镜头序列)都具有某个单一的、相对完整的意思,如表现一个动作过程,表现一种相关关系,表现一种含义等等。它是电视片中一个完整的叙事层次,就像戏剧中的幕,小说中的章节一样,一个个段落连接在一起,就形成了完整的电视片。因此,段落是电视片最基本的结构形式,电视片在内容上的结构层次是通过段落表现出来的。而段落与段落、场景与场景之间的过渡或转换,就叫做转场。
转场可以调整整体过渡时间。通常在进行转场处理时,关于转场的应用可向用户显示相应的调整界面,用户可通过该界面设置转场的时间长度,设置完成后,该应用按照新设置的转场总时长完成相应的转场。例如,用于转场处理的用户界面如图1所示。
图1是相关技术中用于转场处理的用户界面。
参照图1,用户可在用户界面上选择转场动画效果的样式,之后可将显示的转场动画效果对应的转场控件拖入两个视频片段中间。当需要调整转场动画效果的时长时,可以点击转场控件,此时,弹出一个设置窗口,如图2所示。用户可在设置窗口中输入转场动画效果的持续时间来完成对转场动画效果时长的设置。
虽然使用图1的用户界面可实现转场动画效果时长的设置,但是调整操作复杂并且无法单独调整转场动画效果前后部分的时间。
根据本公开的实施例,可通过添加剪辑控件并拖动剪辑控件的两端来设置转场动画效果的时长并且更加灵活地调整转场前后部分的时长。在下文中,根据本公开的各种实施例,将参照附图对本公开的方法、装置以及设备进行详细描述。
图3是根据一示例性实施例示出的一种视频编辑方法的流程图,如图3所示,视频编辑方法可用于至少两个视频素材/片段之间的转场处理。图3所示的方法可由任意具有图像处理功能的电子设备执行。电子设备可以是包括如下中的至少一个:例如,智能电话、平板个人计算机(PC)、移动电话、视频电话、电子书阅读器(e-book reader)、桌上型PC、膝上型PC、上网本计算机、工作站、服务器、个人数字助理(PDA)、便携式多媒体播放器(PMP)、相机和可穿戴装置等。
参照图3,在步骤S11中,获取并显示待拼接的至少两个视频素材。例如,当用户输入两个或多个视频片段(视频素材)至电子设备后,可显示用于编辑这些视频片段的用户界面,例如图4所示。图4是根据本公开一示例性实施例示出的用于拼接两个视频素材的用户界面。
在图4中,用户界面可放置并显示关于转场动画效果的样式按钮以及待编辑的视频片段。
在步骤S12中,接收对用于拼接相邻两个视频素材的转场动画效果的选择。用户可在图4用户界面中选择想要添加的转场动画效果的样式。用户可通过触摸样式按钮等方式来选择喜欢的转场动画效果样式。
在步骤S13中,响应于对转场动画效果的选择,显示用于改变转场动画效果的时长的剪辑控件。
剪辑控件可以是在选择转场动画效果后新增的轨道,剪辑控件可以是可拖动的控制控件。
在用户选择转场动画效果样式后,可在待编辑的相邻两个视频素材的上方或下方显示剪辑控件,如图4所示。这样,用户可更加方便地参照视频来调整转场动画效果的时长。
可选地,用户在剪辑视频时,当两个视频素材之间需要加入转场动画效果时,可拖动转场控件到需要加入转场的两个视频素材之间。例如,在转场控件添加后,可在当前编辑的视频上方或者下方增加一条剪辑轨道,用于放置和显示剪辑控件。
根据本公开的实施例,剪辑控件可被设置为矩形并且以半透明形式呈现,在剪辑控件左右两侧分别设置由“拉手”。然而,上述示例仅是示例性的,剪辑控件的形式和形状可被不同的设置。也可在剪辑控件的左右两侧不设置有“拉手”。
剪辑控件的垂直中心线可与待编辑的相邻两个视频素材的拼接处对齐,诸如图4所示。 然而,上述位置仅是示例性的,本公开不限于此。
可成比例地显示剪辑控件的长度可与转场动画效果的时长。
为了增强转场动画效果的可视化,可在剪辑控件中可显示与相邻两个视频素材被转场动画效果覆盖的时长相应的进度条。也就是说,在剪辑控件中,可显示转场动画效果所覆盖的相邻两个视频素材的部分。例如,图4中剪辑控件中的黑色粗实条为所述进度条。进度条可反映出转场动画效果的真实时长,即相邻两个视频中被覆盖的时长。
此外,在剪辑控件中也可显示用户选择转场动画效果的标号或图标,这样,用户可更加方便地查看所选的转场动画效果。
图4所示的用户界面仅是示例性的,可根据设计需求被不同地布局和设置。
在步骤S14中,基于剪辑控件的长度的改变来改变转场动画效果的时长。可根据用户改变剪辑控件的长度。例如,用户可通过拖动剪辑控件的左端或右端来单独地改变剪辑控件的长度。
在接收到用于拖动剪辑控件的左端和右端中的至少一端的用户输入后,可根据该用户输入改变剪辑控件的长度以改变转场动画效果的时长。具体地,可基于剪辑控件的左端被拖动来改变转场动画效果中的前半部分动画效果的时长,其中,所述前半部分与相邻两个视频素材中的第一视频素材相应,可基于剪辑控件的右端被拖动来改变转场动画效果中的后半部分动画效果的时长,其中,所述后半部分与相邻两个视频素材中的第二视频素材相应。
为了更加直观地、方便地调整转场动画效果时长,可将剪辑控件的长度平均分为两份,一部分与转场动画效果的前半部分对应,另一部分与转场动画效果的后半部分对应,相应地,转场动画效果的前半部分可与第一视频素材(诸如两个视频片段中位置靠前的视频片段)对应,转场动画效果的后半部分与第二视频素材(诸如两个视频片段中位置靠后的视频片段)对应。
作为示例,当需要调整转场效果的时长时,可以拖动剪辑控件的两端,根据拖动后剪辑控件的长短变化,对应调整转场动画效果的时长。当转场动画效果包括两个动画效果时(如前动画效果、后动画效果时),如果拖动剪辑控件的左侧,则可调整前动画效果的时长,如果拖动剪辑控件的右侧,则可调整后动画效果的时长。
响应于剪辑控件的左端被拖动,与转场动画效果的前半部分动画效果的时长相应的进度条在剪辑控件中的变化被相应地显示。响应于剪辑控件的右端被拖动,与转场动画效果的后半部分动画效果的时长相应的进度条在剪辑控件中的变化被相应地显示。即剪辑控件中的与转场动画效果相应的时间进度条会基于剪辑控件被向左拉伸或向右拉伸而相应地改 变。
例如,在转场动画效果包括第一动画效果和第二动画效果的情况下,在用户向左拖动剪辑控件时,第一动画效果的时长变长,在剪辑控件中的与第一动画效果相应的进度条也相应地向左拉伸。在用户向右拖动剪辑控件时,第二动画效果的时长变长,在剪辑控件中的与第二动画效果相应的进度条相应地向右拉伸。上述示例仅是为了说明显示效果,本公开不限于此。
转场的过程中可能出现视频完全被遮挡的过程,相应地,在剪辑控件中可显示视频完全被遮挡的持续时间,这样,用户在通过拖动调整剪辑控件时,也可以看到相应的时长变化,从而更加准确地调整所需要的效果。
此外,用户也可通过剪辑控件来改变先前选择的转场动画效果。例如,用户每触摸一次剪辑控件中的转场动画效果的图标,当前转场动画效果可按照用户界面上转场动画样式的顺序被一次改变。然而,上述示例仅是示例性的,本公开不限于此。
在步骤S15中,根据改变后的转场动画效果将相邻两个视频素材进行拼接以得到合并的视频素材。
在调整完转场动画效果后,可在相邻两个视频片段之间插入该转场动画效果以得到合并的完整视频。
根据本公开的实施例,可通过拖动剪辑控件来设置转场动画效果的时长,并且能够单独地调整转场动画效果前后部分的时长,使得用户更加方便、准确地调整转场动画效果。
图5是本公开实施例的硬件运行环境的视频编辑设备的结构示意图。
如图5所示,视频编辑设备500可包括:处理组件501、通信总线502、网络接口503、输入输出接口504、存储器505以及电源组件506。其中,通信总线502用于实现这些组件之间的连接通信。输入输出接口504可以包括视频显示器(诸如,液晶显示器)、麦克风和扬声器以及用户交互接口(诸如,键盘、鼠标、触摸输入装置等),可选地,输入输出接口504还可包括标准的有线接口、无线接口。网络接口503可选的可包括标准的有线接口、无线接口(如无线保真接口)。存储器505可以是高速的随机存取存储器,也可以是稳定的非易失性存储器。存储器505可选的还可以是独立于前述处理组件501的存储装置。
本领域技术人员可以理解,图5中示出的结构并不构成对视频编辑设备500的限定,可包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图5所示,作为一种存储介质的存储器505中可包括操作系统、数据存储模块、网络通信模块、用户接口模块、视频编辑程序以及数据库。
在图5所示的视频编辑设备500中,网络接口503主要用于与外部设备/终端进行数据 通信;输入输出接口504主要用于与用户进行数据交互;视频编辑设备500中的处理组件501、存储器505可被设置在视频编辑设备500中,视频编辑设备500通过处理组件501调用存储器505中存储的视频编辑程序,执行本公开实施例提供的视频编辑方法。
处理组件501可以包括至少一个处理器,存储器505中存储有计算机可以执行指令集合,当计算机可以执行指令集合被至少一个处理器执行时,执行根据本公开实施例的视频编辑方法。此外,处理组件501可执行编码操作和解码操作等。然而,上述示例仅是示例性的,本公开不限于此。
处理组件501可控制输入输出接口504获取并显示待拼接的至少两个视频素材。
处理组件501可控制输入输出接口504接收对用于拼接相邻两个视频素材的转场动画效果的选择。
响应于对转场动画效果的选择,处理组件501可控制输入输出接口504显示用于改变转场动画效果的时长的剪辑控件。在剪辑控件中可显示与相邻两个视频素材被转场动画效果覆盖的时长相应的进度条。
处理组件501可控制输入输出接口504在相邻两个视频素材的上方或下方显示剪辑控件。剪辑控件的垂直中心线可与相邻两个视频素材的拼接处对齐。
处理组件501可控制输入输出接口504成比例地显示剪辑控件的长度与转场动画效果的时长。
处理组件501可控制输入输出接口504接收用于拖动剪辑控件的左端和右端中的至少一端的用户输入。用户输入可以是例如包括以下项之一:悬停输入、触摸输入和由输入工具产生的输入。
处理组件501可基于剪辑控件的长度的改变来改变转场动画效果的时长,并且根据改变后的转场动画效果将相邻两个视频素材进行拼接以得到合并的视频素材。
处理组件501可根据用户输入改变剪辑控件的长度以改变转场动画效果的时长。
处理组件501可基于剪辑控件的左端被拖动来改变转场动画效果中的前半部分动画效果的时长,其中,所述前半部分与相邻两个视频素材中的第一视频素材相应。
处理组件501可基于剪辑控件的右端被拖动来改变转场动画效果中的后半部分动画效果的时长,其中,所述后半部分与相邻两个视频素材中的第二视频素材相应。
响应于剪辑控件的左端被拖动,与转场动画效果的前半部分动画效果的时长相应的进度条在剪辑控件中的变化可被相应地显示,响应于剪辑控件的右端被拖动,与转场动画效果的后半部分动画效果的时长相应的进度条在剪辑控件中的变化可被相应地显示。
视频编辑设备500可经由输入输出接口504接收或输出视频或图像。例如,用户可经 由输入输出接口504将视频或图像输入至处理组件501,或者用户可经由输入输出接口504显示处理后的视频或图像。
作为示例,视频编辑设备500可以是PC计算机、平板装置、个人数字助理、智能手机、或其他能够执行上述指令集合的装置。这里,视频编辑设备500并非必须是单个的电子设备,还可以是任何能够单独或联合执行上述指令(或指令集)的装置或电路的集合体。视频编辑设备500还可以是集成控制系统或系统管理器的一部分,或者可以被配置为与本地或远程(例如,经由无线传输)以接口互联的便携式电子设备。
在视频编辑设备500中,处理组件501可包括中央处理器(CPU)、图形处理器(GPU)、可编程逻辑装置、专用处理器系统、微控制器或微处理器。作为示例而非限制,处理组件501还可以包括模拟处理器、数字处理器、微处理器、多核处理器、处理器阵列、网络处理器等。
处理组件501可运行存储在存储器中的指令或代码,其中,存储器505还可以存储数据。指令和数据还可以经由网络接口503而通过网络被发送和接收,其中,网络接口503可以采用任何已知的传输协议。
存储器505可以与处理器集成为一体,例如,将RAM或闪存布置在集成电路微处理器等之内。此外,存储器505可包括独立的装置,诸如,外部盘驱动、存储阵列或任何数据库系统可以使用的其他存储装置。存储器和处理器可以在操作上进行耦合,或者可以例如通过I/O端口、网络连接等互相通信,使得处理器能够读取存储在存储器中的文件。
图6是根据一示例性实施例示出的一种视频编辑装置的框图。参照图6,视频编辑装置600可包括获取模块601、接收模块602和处理模块603。视频编辑装置600中的每个模块可由一个或多个模块来实现,并且对应模块的名称可根据模块的类型而变化。在各种实施例中,可省略视频编辑装置600中的一些模块,或者还可包括另外的模块。此外,根据本公开的各种实施例的模块/元件可被组合以形成单个实体,并且因此可等效地执行相应模块/元件在组合之前的功能。
参照图6,获取模块601可获取并显示待拼接的至少两个视频素材。
接收模块602可接收对用于拼接相邻两个视频素材的转场动画效果的选择。
响应于对转场动画效果的选择,处理模块603可显示用于改变该转场动画效果的时长的剪辑控件,基于剪辑控件的长度的改变来改变转场动画效果的时长,并且根据改变后的转场动画效果将相邻两个视频素材进行拼接以得到合并的视频素材。
剪辑控件可被显示在相邻两个视频素材的上方或下方。剪辑控件的垂直中心线可与相邻两个视频素材的拼接处对齐。
剪辑控件的长度与转场动画效果的时长可被成比例地显示。
在剪辑控件中可显示与相邻两个视频素材被转场动画效果覆盖的时长相应的进度条。
接收模块602可接收用于拖动剪辑控件的左端和右端中的至少一端的用户输入。用户输入可包括以下项之一:悬停输入、触摸输入和由输入工具产生的输入。输入工具可以包括鼠标、键盘、电子笔等。
处理模块603可根据用户输入改变剪辑控件的长度以改变转场动画效果的时长。
处理模块603可基于剪辑控件的左端被拖动来改变转场动画效果中的前半部分动画效果的时长,其中,所述前半部分与相邻两个视频素材中的第一视频素材相应。
处理模块603可基于剪辑控件的右端被拖动来改变转场动画效果中的后半部分动画效果的时长,其中,所述后半部分与相邻两个视频素材中的第二视频素材相应。
响应于剪辑控件的左端被拖动,与转场动画效果的前半部分动画效果的时长相应的进度条在剪辑控件中的变化可被相应地显示,响应于剪辑控件的右端被拖动,与转场动画效果的后半部分动画效果的时长相应的进度条在剪辑控件中的变化可被相应地显示。
根据本公开的实施例,可应用于灵活调整转场动画效果前后部分所占时长不同的场景。
根据本公开的实施例,可提供一种电子设备。图7是根据本公开实施例的电子设备的框图,该电子设备700可包括至少一个存储器702和至少一个处理器701,所述至少一个存储器702存储有计算机可执行指令集合,当计算机可执行指令集合被至少一个处理器701执行时,执行根据本公开各种实施例的视频编辑方法。
处理器701可包括中央处理器(CPU)、图形处理器(GPU)、可编程逻辑装置、专用处理器系统、微控制器或微处理器。作为示例而非限制,处理器701还可包括模拟处理器、数字处理器、微处理器、多核处理器、处理器阵列、网络处理器等。
作为一种存储介质的存储器702可包括操作系统、数据存储模块、网络通信模块、用户接口模块、视频编辑程序以及数据库。
存储器702可与处理器701集成为一体,例如,可将RAM或闪存布置在集成电路微处理器等之内。此外,存储器702可包括独立的装置,诸如,外部盘驱动、存储阵列或任何数据库系统可使用的其他存储装置。存储器702和处理器701可在操作上进行耦合,或者可例如通过I/O端口、网络连接等互相通信,使得处理器701能够读取存储在存储器702中的文件。
此外,电子设备700还可包括视频显示器(诸如,液晶显示器)和用户交互接口(诸如,键盘、鼠标、触摸输入装置等)。电子设备700的所有组件可经由总线和/或网络而彼此连接。
作为示例,电子设备700可以是PC计算机、平板装置、个人数字助理、智能手机、或其他能够执行上述指令集合的装置。这里,电子设备700并非必须是单个的电子设备,还可以是任何能够单独或联合执行上述指令(或指令集)的装置或电路的集合体。电子设备700还可以是集成控制系统或系统管理器的一部分,或者可被配置为与本地或远程(例如,经由无线传输)以接口互联的便携式电子设备。
本领域技术人员可理解,图7中示出的结构并不构成对的限定,可包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
根据本公开的实施例,还可提供一种存储指令的非易失性计算机可读存储介质,其中,当指令被至少一个处理器运行时,促使至少一个处理器执行根据本公开的视频编辑方法。这里的非易失性计算机可读存储介质的示例包括:只读存储器(ROM)、随机存取可编程只读存储器(PROM)、电可擦除可编程只读存储器(EEPROM)、随机存取存储器(RAM)、动态随机存取存储器(DRAM)、静态随机存取存储器(SRAM)、闪存、非易失性存储器、CD-ROM、CD-R、CD+R、CD-RW、CD+RW、DVD-ROM、DVD-R、DVD+R、DVD-RW、DVD+RW、DVD-RAM、BD-ROM、BD-R、BD-R LTH、BD-RE、蓝光或光盘存储器、硬盘驱动器(HDD)、固态硬盘(SSD)、卡式存储器(诸如,多媒体卡、安全数字(SD)卡或极速数字(XD)卡)、磁带、软盘、磁光数据存储装置、光学数据存储装置、硬盘、固态盘以及任何其他装置,所述任何其他装置被配置为以非暂时性方式存储计算机程序以及任何相关联的数据、数据文件和数据结构并将所述计算机程序以及任何相关联的数据、数据文件和数据结构提供给处理器或计算机使得处理器或计算机能执行所述计算机程序。上述非易失性计算机可读存储介质中的计算机程序可在诸如客户端、主机、代理装置、服务器等计算机设备中部署的环境中运行,此外,在一个示例中,计算机程序以及任何相关联的数据、数据文件和数据结构分布在联网的计算机系统上,使得计算机程序以及任何相关联的数据、数据文件和数据结构通过一个或多个处理器或计算机以分布式方式存储、访问和执行。
根据本公开的实施例中,还可提供一种计算机程序产品,该计算机程序产品中的指令可由计算机设备的处理器执行以完成上述视频编辑方法。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (21)

  1. 一种视频编辑方法,其特征在于,包括:
    获取并显示待拼接的至少两个视频素材;
    接收对用于拼接相邻两个视频素材的转场动画效果的选择;
    响应于所述选择,显示用于改变所述转场动画效果的时长的剪辑控件;
    基于所述剪辑控件的长度的改变来改变所述转场动画效果的时长;
    根据改变后的转场动画效果将所述相邻两个视频素材进行拼接以得到合并的视频素材。
  2. 根据权利要求1所述的视频编辑方法,其特征在于,在所述相邻两个视频素材的上方或下方显示所述剪辑控件。
  3. 根据权利要求1或2所述的视频编辑方法,其特征在于,所述剪辑控件的长度与所述转场动画效果的时长被成比例地显示。
  4. 根据权利要求1至3中任一项所述的视频编辑方法,其特征在于,在所述剪辑控件中显示与所述相邻两个视频素材被所述转场动画效果覆盖的时长相应的进度条。
  5. 根据权利要求1所述的视频编辑方法,其特征在于,所述基于所述剪辑控件的长度的改变来改变所述转场动画效果的时长包括:
    接收用于拖动所述剪辑控件的左端和右端中的至少一端的用户输入;
    根据所述用户输入改变所述剪辑控件的长度以改变所述转场动画效果的时长。
  6. 根据权利要求5所述的视频编辑方法,其特征在于,所述根据所述用户输入改变所述剪辑控件的长度以改变所述转场动画效果的时长包括:
    基于所述剪辑控件的左端被拖动来改变所述转场动画效果中的前半部分动画效果的时长,其中,所述前半部分与所述相邻两个视频素材中的第一视频素材相应;和/或
    基于所述剪辑控件的右端被拖动来改变所述转场动画效果中的后半部分动画效果的时长,其中,所述后半部分与所述相邻两个视频素材中的第二视频素材相应。
  7. 根据权利要求6所述的视频编辑方法,其特征在于,
    响应于所述剪辑控件的左端被拖动,与所述转场动画效果的前半部分动画效果的时长相应的进度条在所述剪辑控件中的变化被相应地显示,
    响应于所述剪辑控件的右端被拖动,与所述转场动画效果的后半部分动画效果的时长相应的进度条在所述剪辑控件中的变化被相应地显示。
  8. 根据权利要求1至7中任一项所述的视频编辑方法,其特征在于,所述剪辑控件的 垂直中心线与所述相邻两个视频素材的拼接处对齐。
  9. 根据权利要求5至7中任一项所述的视频编辑方法,其特征在于,所述用户输入包括以下项之一:悬停输入、触摸输入和由输入工具产生的输入。
  10. 一种视频编辑装置,其特征在于,包括:
    获取模块,被配置为获取并显示待拼接的至少两个视频素材;
    接收模块,被配置为接收对用于拼接相邻两个视频素材的转场动画效果的选择;
    处理模块,被配置为:
    响应于所述选择,显示用于改变所述转场动画效果的时长的剪辑控件;
    基于所述剪辑控件的长度的改变来改变所述转场动画效果的时长;
    根据改变后的转场动画效果将所述相邻两个视频素材进行拼接以得到合并的视频素材。
  11. 根据权利要求10所述的视频编辑装置,其特征在于,在所述相邻两个视频素材的上方或下方显示所述剪辑控件。
  12. 根据权利要求10或11所述的视频编辑装置,其特征在于,所述剪辑控件的垂直中心线与所述相邻两个视频素材的拼接处对齐。
  13. 根据权利要求10至12中任一项所述的视频编辑装置,其特征在于,所述剪辑控件的长度与所述转场动画效果的时长被成比例地显示。
  14. 根据权利要求10至13中任一项所述的视频编辑装置,其特征在于,在所述剪辑控件中显示与所述相邻两个视频素材被所述转场动画效果覆盖的时长相应的进度条。
  15. 根据权利要求10所述的视频编辑装置,其特征在于,接收模块被配置为接收用于拖动所述剪辑控件的左端和右端中的至少一端的用户输入,
    其中,处理模块被配置为根据所述用户输入改变所述剪辑控件的长度以改变所述转场动画效果的时长。
  16. 根据权利要求15所述的视频编辑装置,其特征在于,处理模块被配置为:
    基于所述剪辑控件的左端被拖动来改变所述转场动画效果中的前半部分动画效果的时长,其中,所述前半部分与所述相邻两个视频素材中的第一视频素材相应;和/或
    基于所述剪辑控件的右端被拖动来改变所述转场动画效果中的后半部分动画效果的时长,其中,所述后半部分与所述相邻两个视频素材中的第二视频素材相应。
  17. 根据权利要求16所述的视频编辑装置,其特征在于,
    响应于所述剪辑控件的左端被拖动,与所述转场动画效果的前半部分动画效果的时长相应的进度条在所述剪辑控件中的变化被相应地显示,
    响应于所述剪辑控件的右端被拖动,与所述转场动画效果的后半部分动画效果的时长相应的进度条在所述剪辑控件中的变化被相应地显示。
  18. 根据权利要求15至17中任一项所述的视频编辑装置,其特征在于,所述用户输入包括以下项之一:悬停输入、触摸输入和由输入工具产生的输入。
  19. 一种电子设备,其特征在于,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现如权利要求1至9中任一项所述的视频编辑方法。
  20. 一种非易失性计算机可读存储介质,当所述非易失性计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如权利要求1至9中任一项所述的视频编辑方法。
  21. 一种计算机程序产品,包括计算机指令,其特征在于,所述计算机指令被处理器执行时实现权利要求1至9中任一项所述的视频编辑方法。
PCT/CN2021/104096 2020-12-21 2021-07-01 视频编辑方法和视频编辑装置 WO2022134524A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011518892.6A CN112702656A (zh) 2020-12-21 2020-12-21 视频编辑方法和视频编辑装置
CN202011518892.6 2020-12-21

Publications (1)

Publication Number Publication Date
WO2022134524A1 true WO2022134524A1 (zh) 2022-06-30

Family

ID=75509419

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/104096 WO2022134524A1 (zh) 2020-12-21 2021-07-01 视频编辑方法和视频编辑装置

Country Status (2)

Country Link
CN (1) CN112702656A (zh)
WO (1) WO2022134524A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115515006A (zh) * 2022-08-19 2022-12-23 北京达佳互联信息技术有限公司 视频处理方法、装置、电子设备及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702656A (zh) * 2020-12-21 2021-04-23 北京达佳互联信息技术有限公司 视频编辑方法和视频编辑装置
CN113315883B (zh) * 2021-05-27 2023-01-20 北京达佳互联信息技术有限公司 调整视频组合素材的方法和装置
CN113825017A (zh) * 2021-09-22 2021-12-21 北京达佳互联信息技术有限公司 视频编辑方法和视频编辑装置
CN114268741B (zh) * 2022-02-24 2023-01-31 荣耀终端有限公司 转场动效生成方法、电子设备和存储介质
CN116055798A (zh) * 2022-07-08 2023-05-02 脸萌有限公司 视频处理方法、装置及电子设备

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6670966B1 (en) * 1998-11-10 2003-12-30 Sony Corporation Edit data creating device and edit data creating method
CN104184960A (zh) * 2014-08-19 2014-12-03 厦门美图之家科技有限公司 一种对视频文件进行特效处理的方法
CN110868631A (zh) * 2018-08-28 2020-03-06 腾讯科技(深圳)有限公司 视频剪辑方法、装置、终端及存储介质
CN111083526A (zh) * 2019-12-31 2020-04-28 广州酷狗计算机科技有限公司 视频转场方法、装置、计算机设备及存储介质
CN111669623A (zh) * 2020-06-28 2020-09-15 腾讯科技(深圳)有限公司 视频特效的处理方法、装置以及电子设备
CN111787395A (zh) * 2020-05-27 2020-10-16 北京达佳互联信息技术有限公司 视频生成方法、装置、电子设备及存储介质
CN112004136A (zh) * 2020-08-25 2020-11-27 广州市百果园信息技术有限公司 一种视频剪辑的方法、装置、设备和存储介质
CN112702656A (zh) * 2020-12-21 2021-04-23 北京达佳互联信息技术有限公司 视频编辑方法和视频编辑装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW520602B (en) * 2001-06-28 2003-02-11 Ulead Systems Inc Device and method of editing video program
CN107770457B (zh) * 2017-10-27 2020-01-21 维沃移动通信有限公司 一种视频制作方法及移动终端、计算机可读存储介质
CN108322837A (zh) * 2018-01-10 2018-07-24 链家网(北京)科技有限公司 基于图片的视频生成方法及装置
WO2019140621A1 (zh) * 2018-01-19 2019-07-25 深圳市大疆创新科技有限公司 视频处理方法及终端设备
CN110162343B (zh) * 2019-04-10 2023-04-07 北京梧桐车联科技有限责任公司 应用启动方法及装置、电子设备及存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6670966B1 (en) * 1998-11-10 2003-12-30 Sony Corporation Edit data creating device and edit data creating method
CN104184960A (zh) * 2014-08-19 2014-12-03 厦门美图之家科技有限公司 一种对视频文件进行特效处理的方法
CN110868631A (zh) * 2018-08-28 2020-03-06 腾讯科技(深圳)有限公司 视频剪辑方法、装置、终端及存储介质
CN111083526A (zh) * 2019-12-31 2020-04-28 广州酷狗计算机科技有限公司 视频转场方法、装置、计算机设备及存储介质
CN111787395A (zh) * 2020-05-27 2020-10-16 北京达佳互联信息技术有限公司 视频生成方法、装置、电子设备及存储介质
CN111669623A (zh) * 2020-06-28 2020-09-15 腾讯科技(深圳)有限公司 视频特效的处理方法、装置以及电子设备
CN112004136A (zh) * 2020-08-25 2020-11-27 广州市百果园信息技术有限公司 一种视频剪辑的方法、装置、设备和存储介质
CN112702656A (zh) * 2020-12-21 2021-04-23 北京达佳互联信息技术有限公司 视频编辑方法和视频编辑装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115515006A (zh) * 2022-08-19 2022-12-23 北京达佳互联信息技术有限公司 视频处理方法、装置、电子设备及存储介质
CN115515006B (zh) * 2022-08-19 2023-10-17 北京达佳互联信息技术有限公司 视频处理方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN112702656A (zh) 2021-04-23

Similar Documents

Publication Publication Date Title
WO2022134524A1 (zh) 视频编辑方法和视频编辑装置
KR102148541B1 (ko) 리본을 사용하여 애플리케이션 사용자 인터페이스에 액세스하는 기법
US9576386B2 (en) Multi-layered slide transitions
US10003737B2 (en) Video processing device, video processing method, and video processing program
US20060253783A1 (en) Story template structures associated with story enhancing content and rules
US20130097552A1 (en) Constructing an animation timeline via direct manipulation
US9607179B2 (en) Providing display content according to confidential information
US10528251B2 (en) Alternate video summarization
WO2022199054A1 (zh) 视频编辑方法和视频编辑装置
US9727547B2 (en) Media interface tools and animations
US20170075507A1 (en) Displaying user activity in real-time collaborative editing systems
US20230326110A1 (en) Method, apparatus, device and media for publishing video
US9372609B2 (en) Asset-based animation timelines
WO2017008646A1 (zh) 一种在触控终端上选择多个目标的方法和设备
US10595086B2 (en) Selection and display of differentiating key frames for similar videos
US11003467B2 (en) Visual history for content state changes
US20230326489A1 (en) Generation of visual effects based on text
US20220270647A1 (en) Method and device for editing video
WO2023128864A2 (en) Visual effect design using multiple preview windows
US20150143243A1 (en) Hierarchical presentation editor
US20210286478A1 (en) Dynamic data density display
Smith et al. Adobe After Effects CS6 Digital Classroom
US10627997B1 (en) System and method for highlighting dependent slides while editing master slides of a presentation
US11928078B2 (en) Creating effect assets while avoiding size inflation
CN113825017A (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: 21908529

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21908529

Country of ref document: EP

Kind code of ref document: A1

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 15-01-2024)