Processing method and device for customizing video transition effect, electronic equipment and storage medium

By obtaining the grayscale values ​​of the video stream and transition effect pictures, gradually reducing the transparency of the video stream, the customization function of video transition effect is realized, solving the problem that the transition effect cannot be customized and temporarily modified in the existing technology, and improving the usability and predictability of the video transition effect.

CN119946356APending Publication Date: 2025-05-06XIAMEN TONGSHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510091459.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

Existing video transition effect processing technology cannot achieve custom transition effects, and transition effects cannot be temporarily added or modified.

Method used

By obtaining at least two video streams and transition effect pictures, obtain the grayscale value and coordinate value of each pixel point, and gradually reduce the transparency of the video stream according to the grayscale value during the transition time to complete the custom video transition effect.

Benefits of technology

Implements customization of video transition effects, allowing temporary addition and modification of transition effects, increasing the number of available transition effects, and providing predictable transition effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946356A_ABST
    Figure CN119946356A_ABST
Patent Text Reader

Abstract

The invention discloses a processing method and device for customizing a video transition effect, electronic equipment and a storage medium, and the processing method comprises the steps: obtaining at least two video streams, obtaining a transition effect picture, obtaining a gray value of each pixel point in the transition effect picture and a coordinate value corresponding to the gray value, stacking the ending frame of the first video stream above the starting frame of the second video stream, setting transition time, triggering the two video streams to perform transition, and in the transition time, gradually reducing the transparency of each pixel point in the ending frame of the first video stream from 100% to 0, the transparency reduction speed is in direct proportion to the gray value of each pixel point in the transition effect picture until the starting frames of the second video stream are all displayed to complete transition. The video transition effect allows custom and temporary addition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video transition effect processing, and in particular to a processing method, device, electronic equipment and storage medium for customizing video transition effects. Background Art

[0002] The production of multi-camera live broadcasts, television, movies, or self-media often requires the application of video transition effect processing technology. Specifically, if a film or TV work contains multiple video streams, if two adjacent video streams are directly spliced, the transition between the two video streams will appear very abrupt, and the picture effect of the film or TV work will be extremely poor. In order to ensure that the transition between two adjacent video streams is smoother and more beautiful, and to improve the picture effect of the film or TV work, it is necessary to use computer technology to insert a video transition effect between two adjacent video streams, so as to splice the two video streams together.

[0003] However, through research on existing video transition effect processing technologies, it is found that existing video transition effect processing technologies usually configure preset transition effects in video production software or director controllers. When it is necessary to switch the screen, the corresponding preset transition effect is called and applied between the two video streams, thereby realizing the switching of film and television works or live broadcast screens with preset transition effects.

[0004] Through observation, it is found that the existing application of transition effects has the following problems: the transition effects can only use the existing configuration, cannot be temporarily added, and cannot be customized.

[0005] In view of this, the inventor has made in-depth considerations and actively researched, improved and tested the above-mentioned video transition effect to develop and design the present invention in order to solve the many deficiencies and inconveniences caused by the imperfections in the processing of the above-mentioned video transition effect. Summary of the invention

[0006] The object of the present invention is to provide a processing method, device, electronic device and storage medium for customizing video transition effects, so as to solve the above-mentioned problems.

[0007] In order to achieve the above object, the solution of the present invention is: A method for processing a custom video transition effect, the method comprising the following steps: Step 101, obtaining at least two video streams: a first video stream and a second video stream, and storing the video streams in a storage module; Step 102: Obtain a transition effect picture, and store the transition effect picture in a storage module; Step 103, obtaining the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value; Step 104, overlay the end frame of the first video stream on the start frame of the second video stream, set the transition time, and trigger the two video streams to transition. During the transition time, the transparency of each pixel in the end frame of the first video stream gradually decreases from 100% to 0, and the speed of transparency reduction is proportional to the grayscale value of each pixel in the transition effect picture, until the start frame of the second video stream is fully displayed to complete the transition.

[0008] Preferably, in step 101, the method for obtaining the video stream includes obtaining a live video to be broadcasted locally accessed by a camera, or obtaining a video to be processed locally uploaded by a user.

[0009] Preferably, in step 102, the method for obtaining the transition effect picture includes obtaining the picture uploaded locally by the user.

[0010] Preferably, in step 103, after parsing the transition effect picture through the picture decoding module, the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value are obtained.

[0011] Preferably, in step 104, the processing method further includes setting a feathering value, and forming a feathering boundary at a position where the transparency of each pixel in the end frame of the first video stream is equal to the grayscale value of the pixel in the transition effect picture.

[0012] In order to achieve the above object, the present invention also provides a processing device for customizing video transition effects, the processing device comprising: Storage module, used to store video streams and transition effect pictures; A video acquisition module, used to acquire at least two video streams: a first video stream and a second video stream, and store the video streams in a storage module; The picture acquisition module is used to acquire the transition effect picture and store the transition effect picture in the storage module; The image decoding module is used to obtain the grayscale value of each pixel in the transition effect image and its corresponding coordinate value; A transition processing module, the transition processing module includes a video processing unit and a transition trigger unit, the video processing unit is used to stack the end frame of the first video stream on the start frame of the second video stream, after setting the transition time, the transition trigger unit is used to trigger the two video streams to transition, within the transition time, the video processing unit is used to gradually reduce the transparency of each pixel in the end frame of the first video stream from 100% to 0, and the transparency reduction speed is proportional to the grayscale value of each pixel in the transition effect picture, until the start frame of the second video stream is fully displayed to complete the transition.

[0013] Preferably, the transition processing module also includes a feathering processing unit for setting a feathering value and forming a feathering boundary at a position where the transparency of each pixel in the end frame of the first video stream is equal to the grayscale value of the pixel in the transition effect picture.

[0014] In order to achieve the above-mentioned objectives, the present invention also provides an electronic device for customizing video transition effects, the electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to call the computer program stored in the memory to execute each step in the method for processing the custom video transition effects.

[0015] In order to achieve the above-mentioned object, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each step in the processing method of the custom video transition effect is implemented.

[0016] After adopting the above scheme, the following beneficial effects are achieved.

[0017] 1. Users can store the prepared transition effect pictures in the storage module and directly call them when transitioning between two video streams to add the prepared video transition effects. Users can customize the transition effect pictures so that the video transition effects have customized functions.

[0018] 2. Users can also temporarily upload transition effect pictures to the storage module and directly call them when transitioning between two video streams, thereby adding the prepared video transition effects, allowing the custom function of video transition effects to be temporarily added.

[0019] 3. Transition effect pictures take up little memory, and users can save more transition effect pictures, which greatly increases the number of available transition effects. Transition effect pictures can be temporarily added, deleted, and replaced, so there is no upper limit to the number of available transition effects in theory.

[0020] 4. The grayscale value information of the transition effect picture is intuitively visible, because the transition effect corresponds to the grayscale value information of the transition effect picture. Therefore, the user can foresee the actual effect of the transition effect in the application process in advance based on the grayscale value distribution of the transition effect picture, making the transition effect predictable. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 The present invention is a flowchart of a preferred embodiment of a method for processing a customized video transition effect.

[0022] Figure 2 The present invention is a schematic structural diagram of a preferred embodiment of a device for processing customized video transition effects.

[0023] Figure 3 The present invention is a structural schematic diagram of a preferred embodiment of an electronic device with customized video transition effects. DETAILED DESCRIPTION

[0024] In order to further explain the technical solution of the present invention, the present invention is described in detail below through specific embodiments.

[0025] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicating orientations or positional relationships are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0026] like Figure 1 As shown, a preferred embodiment of a processing method for a customized video transition effect of the present invention is provided, and the processing method comprises the following steps: Step 101, obtaining at least two video streams: a first video stream and a second video stream, and storing the video streams in a storage module; Step 102, obtaining a transition effect picture, and storing the transition effect picture in the storage module; Step 103, obtaining the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value; Step 104, stacking the end frame of the first video stream on the start frame of the second video stream, setting the transition time, triggering the two video streams to transition, and within the transition time, the transparency of each pixel in the end frame of the first video stream gradually decreases from 100% to 0, and the speed of reducing the transparency is proportional to the grayscale value of each pixel in the transition effect picture, until the start frame of the second video stream is fully displayed to complete the transition.

[0027] It should be noted that, in step 101, the method for obtaining the video stream includes obtaining the live video to be broadcasted locally accessed by the camera, or obtaining the video to be processed locally uploaded by the user.

[0028] It should be noted that, in step 102, the method for obtaining the transition effect picture includes obtaining the picture uploaded locally by the user.

[0029] It should be noted that in step 103, after the transition effect picture is parsed by the picture decoding module, the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value are obtained.

[0030] It should be noted that, in step 104, the processing method further includes setting a feathering value, and forming a feathering boundary at a position where the transparency of each pixel in the end frame of the first video stream is equal to the grayscale value of the pixel in the transition effect picture. In this way, a feathering effect is formed at the transition position where the end frame of the first video stream gradually becomes invisible and the start frame of the second video stream gradually becomes visible, so that the video transition has a blending and mutual transparency effect.

[0031] In one embodiment, camera A connects live video A to be broadcast locally, and camera B connects live video B to be broadcast locally, the real-time frame of live video A is the end frame of the first video stream, and the real-time frame of live video B is the start frame of the second video stream. The end frame of the first video stream is stacked on the start frame of the second video stream, and a transition effect picture and the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value are obtained. The transition time is set to 5 seconds, and the transition is performed by triggering the two video streams. During the transition time, the transparency of each pixel in the end frame of the first video stream gradually decreases from 100% to 0, until the start frame of the second video stream is fully displayed to complete the transition, thereby achieving the transition from the live screen of camera A to the live screen of camera B after the transition effect is applied.

[0032] In another embodiment, the user uploads the video A to be processed and the video B to be processed locally, the end frame of the video A to be processed is the end frame of the first video stream, the start frame of the video B to be processed is the start frame of the second video stream, the end frame of the first video stream is stacked on the start frame of the second video stream, the transition effect picture and the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value are obtained, the transition time is set to 5 seconds, and the transition is performed by triggering the two video streams. During the transition time, the transparency of each pixel in the end frame of the first video stream gradually decreases from 100% to 0, until the start frame of the second video stream is fully displayed to complete the transition, thereby realizing the splicing of the video A to be processed with the video B to be processed after applying the transition effect.

[0033] The key point of the present invention is that the processing method of the customized video transition effect provided by the embodiment of the present invention has the following beneficial effects.

[0034] 1. Users can store the prepared transition effect pictures in the storage module and directly call them when transitioning between two video streams to add the prepared video transition effects. Users can customize the transition effect pictures so that the video transition effects have customized functions.

[0035] 2. Users can also temporarily upload transition effect pictures to the storage module and directly call them when transitioning between two video streams, thereby adding the prepared video transition effects, allowing the custom function of video transition effects to be temporarily added.

[0036] 3. Transition effect pictures take up little memory, and users can save more transition effect pictures, which greatly increases the number of available transition effects. Transition effect pictures can be temporarily added, deleted, and replaced, so there is no upper limit to the number of available transition effects in theory.

[0037] 4. The grayscale value information of the transition effect picture is intuitively visible, because the transition effect corresponds to the grayscale value information of the transition effect picture. Therefore, the user can foresee the actual effect of the transition effect in the application process in advance based on the grayscale value distribution of the transition effect picture, making the transition effect predictable.

[0038] like Figure 2 As shown in the figure, a preferred embodiment of a processing device for customizing video transition effects of the present invention is provided, and the processing device comprises: a storage module 201, which is used to store video streams and transition effect pictures; a video acquisition module 202, which is used to acquire at least two video streams: a first video stream and a second video stream, and store the video streams in the storage module 201; an image acquisition module 203, which is used to acquire transition effect pictures, and store the transition effect pictures in the storage module 201; an image decoding module 204, which is used to acquire the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value; a transition processing module 205, which is used to convert the grayscale value of each pixel in the transition effect picture into a grayscale value; and a transition processing module 205, which is used to convert the grayscale value of each pixel in the transition effect picture into a grayscale value. The field processing module 205 includes a video processing unit 2051 and a transition trigger unit 2052. The video processing unit 2051 is used to stack the end frame of the first video stream on top of the start frame of the second video stream. After setting the transition time, the transition trigger unit 2052 is used to trigger the two video streams to transition. During the transition time, the video processing unit 2051 is used to gradually reduce the transparency of each pixel in the end frame of the first video stream from 100% to 0, and the speed of transparency reduction is proportional to the grayscale value of each pixel in the transition effect picture, until the start frame of the second video stream is fully displayed to complete the transition.

[0039] The transition processing module 205 further includes a feathering processing unit 2053, which is used to set a feathering value and form a feathering boundary at the position where the transparency of each pixel in the end frame of the first video stream is equal to the grayscale value of the pixel in the transition effect picture. In this way, a feathering effect is formed at the transition position where the end frame of the first video stream gradually becomes invisible and the start frame of the second video stream gradually appears, so that the video transition has a blending and mutual transparency effect.

[0040] It should be noted that the device for processing custom video transition effects provided in the embodiment of the present invention can be applied to devices such as broadcast stations, mobile phones, computers, servers, etc. that can process video transition effects.

[0041] The processing device for custom video transition effects provided in the embodiment of the present invention can implement each process implemented by the processing method for custom video transition effects described above, and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0042] like Figure 3 As shown, a preferred embodiment of an electronic device for customizing video transition effects of the present invention is shown, the electronic device includes a memory 301, a processor 302 and a computer program stored in the memory 301 and executable on the processor 302, wherein the processor 302 is used to call the computer program stored in the memory 301 to perform the following steps: obtaining at least two video streams: a first video stream and a second video stream, and storing the video streams in a storage module; obtaining a transition effect picture, and storing the transition effect picture in the storage module; obtaining the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value; stacking the end frame of the first video stream on the start frame of the second video stream, setting the transition time, and triggering the two video streams to transition, within the transition time, the transparency of each pixel in the end frame of the first video stream gradually decreases from 100% to 0, and the speed of transparency reduction is proportional to the grayscale value of each pixel in the transition effect picture, until the start frame of the second video stream is fully displayed to complete the transition.

[0043] Optionally, the processor 302 is further used to call the computer program stored in the memory 301 to perform the following steps: set a feathering value, and form a feathering boundary at the position where the transparency of each pixel in the end frame of the first video stream is equal to the grayscale value of the pixel in the transition effect picture. In this way, a feathering effect is formed at the transition position where the end frame of the first video stream gradually becomes invisible and the start frame of the second video stream gradually appears, so that the video transition has a blending and mutual transparency effect.

[0044] The electronic device provided by the embodiment of the present invention can implement each process of the above-mentioned processing method for customizing video transition effects, and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0045] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each step in the processing method for customizing video transition effects provided by the embodiment of the present invention is implemented. The same technical effect can be achieved, and to avoid repetition, it will not be described here.

[0046] The above description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is obvious that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that ordinary technicians in the field can realize and use various different exemplary embodiments of the present invention and various different selections and changes. Any appropriate changes or modifications made by ordinary technicians in the field of technology should be regarded as not departing from the patent scope of the present invention.

Claims

1. A method for processing a custom video transition effect, characterized in that: The processing method comprises the following steps: Step 101, obtaining at least two video streams: a first video stream and a second video stream, and storing the video streams in a storage module; Step 102: Obtain a transition effect picture, and store the transition effect picture in a storage module; Step 103, obtaining the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value; Step 104, overlay the end frame of the first video stream on the start frame of the second video stream, set the transition time, and trigger the two video streams to transition. During the transition time, the transparency of each pixel in the end frame of the first video stream gradually decreases from 100% to 0, and the speed of transparency reduction is proportional to the grayscale value of each pixel in the transition effect picture, until the start frame of the second video stream is fully displayed to complete the transition.

2. The method for processing a custom video transition effect as claimed in claim 1, characterized in that: In step 101, the method for obtaining a video stream includes obtaining a live video to be broadcasted locally accessed by a camera, or obtaining a video to be processed locally uploaded by a user.

3. The method for processing a custom video transition effect as claimed in claim 1, characterized in that: In step 102, the method for obtaining the transition effect picture includes obtaining the picture uploaded locally by the user.

4. The method for processing a custom video transition effect as claimed in claim 1, characterized in that: In step 103, after the transition effect picture is parsed by the picture decoding module, the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value are obtained.

5. The method for processing a custom video transition effect as claimed in claim 1, characterized in that: In step 104, the processing method further includes setting a feathering value, and forming a feathering boundary at a position where the transparency of each pixel in the end frame of the first video stream is equal to the grayscale value of the pixel in the transition effect picture.

6. A processing device for customizing video transition effects, characterized in that: The processing device comprises: A storage module (201), used for storing video streams and transition effect pictures; A video acquisition module (202) is used to acquire at least two video streams: a first video stream and a second video stream, and store the video streams in a storage module (201); A picture acquisition module (203), used for acquiring a transition effect picture and storing the transition effect picture in the storage module (201); A picture decoding module (204), used to obtain the grayscale value of each pixel in the transition effect picture and its corresponding coordinate value; A transition processing module (205), the transition processing module (205) comprising a video processing unit (2051) and a transition triggering unit (2052), the video processing unit (2051) being used to stack the end frame of the first video stream on the start frame of the second video stream, after setting the transition time, the transition triggering unit (2052) being used to trigger the two video streams to transition, within the transition time, the video processing unit (2051) being used to gradually reduce the transparency of each pixel in the end frame of the first video stream from 100% to 0, the transparency reduction speed being proportional to the grayscale value of each pixel in the transition effect picture, until the start frame of the second video stream is fully displayed to complete the transition.

7. The device for processing a custom video transition effect as claimed in claim 6, characterized in that: The transition processing module (205) also includes a feathering processing unit (2053) for setting a feathering value and forming a feathering boundary at a position where the transparency of each pixel point in the end frame of the first video stream is equal to the grayscale value of the pixel point in the transition effect picture.

8. An electronic device with a customizable video transition effect, characterized in that: The electronic device comprises a memory (301), a processor (302), and a computer program stored in the memory (301) and executable on the processor (302), wherein the processor (302) is used to call the computer program stored in the memory (301) to execute each step in the method for processing a custom video transition effect as described in any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, each step in the method for processing a custom video transition effect as claimed in any one of claims 1 to 5 is implemented.