CN113411669A - Video special effect processing method and device - Google Patents

Video special effect processing method and device Download PDF

Info

Publication number
CN113411669A
CN113411669A CN202110669201.0A CN202110669201A CN113411669A CN 113411669 A CN113411669 A CN 113411669A CN 202110669201 A CN202110669201 A CN 202110669201A CN 113411669 A CN113411669 A CN 113411669A
Authority
CN
China
Prior art keywords
image
special effect
video
effect mode
fade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110669201.0A
Other languages
Chinese (zh)
Inventor
贾佳
李永配
李亚军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110669201.0A priority Critical patent/CN113411669A/en
Publication of CN113411669A publication Critical patent/CN113411669A/en
Pending legal-status Critical Current

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/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/4402Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440245Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42692Internal components of the client ; Characteristics thereof for reading from or writing on a volatile storage medium, e.g. Random Access Memory [RAM]
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4622Retrieving content or additional data from different sources, e.g. from a broadcast channel and the Internet

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Studio Circuits (AREA)

Abstract

The invention provides a video special effect processing method and a device, wherein the method comprises the following steps: receiving a video source switching instruction which is sent by an MCU and is used for switching a first image to a second image, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters; the first image and the second image are subjected to video special effect processing according to the video special effect mode and the special effect mode parameters, the problems that two or more paths of reading caches are needed and resource consumption is large in the related technology can be solved, only one path of reading cache is needed, logic resource consumption is low, and the video special effect can be achieved without reading an old video source and a new video source in parallel.

Description

Video special effect processing method and device
Technical Field
The invention relates to the field of image processing, in particular to a video special effect processing method and device.
Background
A fade-in and fade-out is a technique in a movie to represent a temporal-spatial transition. In movies, it is common to use "fade" to separate time spaces, indicating a passage of a plot, fade out representing a play or the end of a passage; the fade-in represents a scene or the beginning of a paragraph, which can give the viewer a complete sense of the paragraph. The 'light' is not a lens or a picture, and is represented by the 'light' which is not an image but a process of fading in and out of the picture. It is rhythmically soothing, has lyric meaning, and can create an expressive atmosphere.
At present, the fade-in and fade-out effect is ubiquitous and can be seen in television movies and network videos frequently, and the design of the function basically adopts a pure software production mode. As the requirement of the user of the dedicated video device for the video display effect increases, the function is gradually presented in some dedicated video devices, for example, the video splicing and video splitting functions in the monitoring platform system, the command and dispatch system, and the video conference system are not trivial, and the functions are implemented in a PC (Personal computer) processing scheme, a DSP (Digital signal processing) chip scheme, an ARM (Advanced RISE Machine) control scheme, an FPGA (Field Programmable Gate Array) processing scheme, and the like, and the stability and the transmission delay of the processed data are different.
Because of its ultra-high brightness, contrast and ultra-large size, an LED (Light-emitting diode) display screen has been widely used in advertisement, ceremony, live broadcast and other presentation occasions. A general LED display screen control system consists of a video processor, a sending card and a receiving card. The video processor has rich input interfaces, can convert any input source into a DVI (Digital Visual Interface) or HDMI (High Definition Multimedia Interface) signal, and transmits the signal to the sending card through a cable. The sending card buffers and processes the image input by DVI or HDMI interface, then converts the control signal and image data into data packet with fixed format according to specific protocol, and transmits the data packet to the receiving card through gigabit Ethernet or other interface. After the receiving card receives the signal with the specific format, the control signal is separated from the image data, and the image of the specific area is sent to the lamp panel module connected with the receiving card according to the requirement of the control signal, so that the display of the local image is completed; and the plurality of receiving cards work together to complete the display of the complete picture of the LED display screen. In general, at a presentation site, it is often necessary to switch between pictures from different input sources. In the related technology, two or more paths of reading cache are needed, and the resource consumption is large.
Aiming at the problems that two or more paths of reading cache are needed and the resource consumption is large in the related technology, no solution is provided.
Disclosure of Invention
The embodiment of the invention provides a video special effect processing method and device, which are used for at least solving the problems that two or more paths of reading cache are needed and the resource consumption is large in the related technology.
According to an embodiment of the present invention, there is provided a video special effect processing method including: receiving a video source switching instruction which is sent by an MCU (micro control controller, micro control unit) and switches from a first image to a second image, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters; and carrying out video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
In one exemplary embodiment, the video special effect processing the first image and the second image according to the video special effect mode and the special effect mode parameter includes: if the video special effect mode is a fade-in fade-out mode, reading the first image, and performing fade-out processing on the first image according to the special effect mode parameter; and after the first image fading-out processing is finished and preset time is set, reading the second image, and fading-in processing is carried out on the second image according to the special effect mode parameters.
In one exemplary embodiment, the fading out process of the first image according to the special effect mode parameter includes: the special effect mode parameters comprise total fade-out time and a brightness descending step length, and the display brightness of the first image is controlled to be gradually reduced by the brightness descending step length according to the total fade-out time until the display brightness of the first image is 0; and outputting a fade-out completion signal when the display brightness of the first image is 0.
In one exemplary embodiment, the fade-in processing of the second image according to the special effect mode parameter includes: if the special effect mode parameter comprises total fade-in time and brightness increment step length, controlling the display brightness of the second image to be increased by the brightness increment step length according to the total fade-in time until the display brightness of the second image is 255.
In one exemplary embodiment, the video special effect processing the first image and the second image according to the video special effect mode and the special effect mode parameter includes: if the video special effect mode is an insertion and insertion mode, reading the first image, and reading the second image after a preset time interval; and carrying out video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
In one exemplary embodiment, the video special effect processing the first image and the second image according to the video special effect mode and the special effect mode parameter includes:
and controlling the second image to increase progressively with each row of effective pixel points or each column of effective pixel points according to the step length of each frame of effective pixels, and simultaneously controlling the first image to decrease progressively with each row of effective pixel points or each column of effective pixel points, wherein the effective pixel points are determined according to the step length of each frame of effective pixels, and the special effect mode parameter comprises the step length of each frame of effective pixels.
In one exemplary embodiment, the method further comprises: writing the mask stream of the second image into a Double Data Rate (DDR) through a mask module in a manner that the effective pixel points of each line or the effective pixel points of each row are increased progressively, and covering the pixel points of the second image with the decreased pixel points of the first image in a manner that the pixel points of the second image are increased progressively.
According to still another embodiment of the present invention, there is also provided a video special effects processing apparatus including: the receiving module is used for receiving a video source switching instruction which is sent by the MCU and is used for switching from a first image to a second image, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters; and the processing module is used for carrying out video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameters.
In an exemplary embodiment, the processing module includes: a first fade-out processing unit, configured to, if the video special effect mode is a fade-in fade-out mode, read the first image, and perform fade-out processing on the first image according to the special effect mode parameter; and the second fade-out processing unit is used for reading the second image after the first image fade-out processing is finished and a preset time interval, and performing fade-in processing on the second image according to the special effect mode parameter.
In an exemplary embodiment, the processing module is further configured to: if the special effect mode parameter comprises total fade-out time and a brightness descending step length, controlling the display brightness of the first image to descend by the brightness descending step length according to the total fade-out time until the display brightness of the first image is 0; and outputting a fade-out completion signal when the display brightness of the first image is 0.
In an exemplary embodiment, the processing module is further configured to: if the special effect mode parameter comprises total fade-in time and brightness increment step length, controlling the display brightness of the second image to be increased by the brightness increment step length according to the total fade-in time until the display brightness of the second image is 25.
In an exemplary embodiment, the processing module is further configured to: if the video special effect mode is an insertion and insertion mode, reading the first image, and reading the second image after a preset time interval; and carrying out video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
In an exemplary embodiment, the processing module is further configured to: and controlling the second image to increase progressively with each row of effective pixel points or each column of effective pixel points according to the step length of each frame of effective pixels, and simultaneously controlling the first image to decrease progressively with each row of effective pixel points or each column of effective pixel points, wherein the effective pixel points are determined according to the step length of each frame of effective pixels, and the special effect mode parameter comprises the step length of each frame of effective pixels.
In an exemplary embodiment, the apparatus further includes: and writing the mask stream of the second image into a double-rate synchronous dynamic random access memory (DDR) through a mask module in a mode that the effective pixel points of each row or the effective pixel points of each column are increased progressively, and covering the pixel points of the second image with the pixel points of the first image which are decreased progressively in a mode that the effective pixel points of each row or the effective pixel points of each column are increased progressively.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, a video source switching instruction which is sent by an MCU and is used for switching from a first image to a second image is received, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters; the first image and the second image are subjected to video special effect processing according to the video special effect mode and the special effect mode parameters, the problems that two or more paths of reading caches are needed and resource consumption is large in the related technology can be solved, only one path of reading cache is needed, logic resource consumption is low, and the video special effect can be achieved without reading an old video source and a new video source in parallel.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a video special effect processing method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a video effects processing method according to an embodiment of the invention;
fig. 3 is a flowchart illustrating a video effects processing method according to an alternative embodiment of the present invention;
fig. 4 is a flow chart of a video effects processing method according to an alternative embodiment of the present invention;
fig. 5 is a flowchart illustrating a video effects processing method according to an alternative embodiment of the present invention (iii);
fig. 6 is a flowchart illustrating a video effects processing method according to an alternative embodiment of the present invention (four);
fig. 7 is a schematic diagram of an operation architecture of a video special effect processing method according to an alternative embodiment of the present invention;
FIG. 8 is a flow diagram illustrating the implementation of video switching special effects with very low resources in accordance with an alternative embodiment of the present invention;
fig. 9 is a block diagram of a video effect processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a video special effect processing apparatus according to an alternative embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a hardware structure block diagram of a mobile terminal of a video special effects processing method according to an embodiment of the present invention, and as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the video special effects processing method in the embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby executing various functional applications and controlling telnet, that is, implementing the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a video special effect processing method operating in the mobile terminal or the network architecture is provided, and fig. 2 is a flowchart of the video special effect processing method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, receiving a video source switching instruction which is sent by an MCU and is used for switching from a first image to a second image, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters;
step S204, performing video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
Receiving a video source switching instruction which is sent by the MCU and is used for switching from a first image to a second image through the steps S202 to S204, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters; the first image and the second image are subjected to video special effect processing according to the video special effect mode and the special effect mode parameters, the problems that two or more paths of reading caches are needed and resource consumption is large in the related technology can be solved, only one path of reading cache is needed, logic resource consumption is low, and the video special effect can be achieved without reading an old video source and a new video source in parallel.
Fig. 3 is a flowchart illustrating a video special effects processing method according to an alternative embodiment of the present invention (i), as shown in fig. 3, the step S204 includes:
step S302, if the video special effect mode is a fade-in fade-out mode, reading the first image, and performing fade-out processing on the first image according to the special effect mode parameter;
step S304, after the first image fade-out processing is completed and a preset time is set, reading the second image, and performing fade-in processing on the second image according to the special effect mode parameter.
Namely, the video special effect processing needs to determine a video special effect mode, fade-out processing is performed on the first image according to the special effect mode parameters in the fade-in fade-out mode, and the second image is processed after the first image processing is completed.
Fig. 4 is a flowchart illustrating a video special effects processing method according to an alternative embodiment of the present invention (ii), and as shown in fig. 4, the step S302 includes:
step S402, if the special effect mode parameter includes the total fade-out time and the brightness decrement step, controlling the display brightness of the first image according to the total fade-out time to decrement by the brightness decrement step until the display brightness of the first image is 0;
in step S404, when the display brightness of the first image is 0, a fade-out completion signal is output.
That is, performing the fade-out process on the first image requires: the brightness of the first image is controlled to decrease according to the total fade-out time, and when the brightness is 0, a fade-out completion signal is output.
In an alternative embodiment, the step S304 includes: if the special effect mode parameter comprises the total fade-in time and the brightness increment step, controlling the display brightness of the second image to be increased by the brightness increment step according to the total fade-in time until the display brightness of the second image is 255.
That is, performing the fade-out process on the first image requires controlling the brightness of the second image to be increased up to 255 in accordance with the total fade-out time.
Fig. 5 is a flowchart illustrating a video special effects processing method according to an alternative embodiment of the present invention (three), and as shown in fig. 5, the step S204 includes:
step S502, if the video special effect mode is an insertion and insertion mode, reading the first image, and reading the second image after a preset time interval;
step S504, performing video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
Namely, the video special effect processing needs to determine a video special effect mode, fade-out processing is performed on the first image according to the special effect mode parameters in the plug-in and plug-out mode, and the second image is processed after the first image processing is completed.
In an alternative embodiment, the step S204 includes:
and controlling the second image to increase progressively with each row of effective pixel points or each column of effective pixel points according to the step length of each frame of effective pixels, and simultaneously controlling the first image to decrease progressively with each row of effective pixel points or each column of effective pixel points, wherein the effective pixel points are determined according to the step length of each frame of effective pixels, and the special effect mode parameter comprises the step length of each frame of effective pixels.
That is, performing video special effects processing requires: and controlling the effective pixel points of the second image to increase progressively according to the step length of each frame of effective pixel, and simultaneously controlling the effective pixel points of the first image to decrease progressively.
Fig. 6 is a flowchart of a video special effects processing method according to an alternative embodiment of the present invention, which is schematically shown in fig. 6 (four), and the method further includes:
step S602, writing the mask stream of the second image into a double rate synchronous dynamic random access memory DDR by the mask module in a manner that the effective pixel points in each row or the effective pixel points in each column are increased incrementally, and covering the pixel points of the second image with the pixel points of the first image which are decreased incrementally.
Namely, the mask code stream of the second image can be written into the DDR in a manner of increasing the number of pixels through the mask module, and the pixels of the first image are covered.
Fig. 7 is a schematic diagram of an operation architecture of a video special effect processing method according to an alternative embodiment of the present invention, as shown in fig. 7, including: MCU, FPGA and DDR;
the MCU controls the FPGA through a switching instruction and is connected with the FPGA through a multi-channel video input interface outside the FPGA; the FPGA reads the DDR special effect output and controls the DDR to be collected and written through a mask;
specifically, the Video source has multiple interfaces, including DVI, HDMI, VGA (Video Graphics Array ), DP (display port, DisplayPort), only the earliest inserted source is inserted in order, the second inserted source is gated to FPGA if the earliest inserted source is pulled out, the main control MCU can control and detect the state and information of the Video source, output the Video source to FPGA, FPGA writes the input Video stream into DDR after simple processing, output reads DDR according to the parameters of the main control configuration, and convert it to the required format for output and display.
Fig. 8 is a flowchart illustrating a video switching special effect with very low resources according to an alternative embodiment of the present invention, as shown in fig. 8, including:
step S1, receiving a video source switching instruction and fade-in and fade-out parameters sent by the MCU;
step S2, switching one special effect mode; performing step S3 or step S8;
step S3, opening fade-in and fade-out;
step S4, simply calculating the output video stream according to the total fade-out time and the fade-out step length of each frame;
step S5, outputting a completion signal after the total fade-out time is reached;
step S6, waiting for two frames of time, switching sources for the MCU, and outputting a current frame;
step S7, triggering a fade-in mode of a new video source, and simply calculating an output video stream according to the total fade-in time and each frame fade-in step length;
step S8, opening the wipe-in wipe-out;
step S9, opening a mask module, and outputting a mask stream of response according to the parameters configured by the master control;
step S10, all masks of two frame time are generated for waiting for the original stable input of a new video and then performing the mask according to the step length of the pixel under the effective display of each frame;
step S11, writing DDR together with the image of the new video source;
step S12, reading DDR and outputting video stream;
in step S13, the video source switching ends.
The method specifically comprises the following steps:
step 1, when a video source is switched, a master control sends a switching instruction and corresponding parameters to an FPGA.
And 2, the FPGA selects a special effect implementation mode, and controls the mask generation module according to whether the current source is locked and the switching instruction and the parameters sent by the master control.
And 3, if the fade-in fade-out special effect is realized, outputting a path of DDR reading module to generate a standard video stream, reading the data of the old picture by only a path of DDR reading module, and configuring the parameters according to the master control on the basis of outputting the old picture: (the total fade-out time of the old picture and the fade-out step length of each frame, the brightness parameter is decreased progressively according to the total fade-out time and the fade-out step length of each frame), the output video image is multiplied by the corresponding brightness parameter and then output until the brightness parameter is decreased progressively to 0, and at this moment, a fade-out completion signal is output. (here, it is not necessary to use a read buffer module to read the picture data of the new video source in parallel, and the two modules are overlapped to realize fade-in and fade-out). The output module receives the completion signal and then outputs the completion signal for keeping two frame times. The output picture at this moment is frozen in order to give the MCU sufficient time for switching sources and ensure acquisition locking, and avoid starting fade-out operation when reading wrong images from the DDR. And after the time of two frames is reached, reading and outputting the image of the new video source from the DDR, and starting to realize the fade-in effect. According to the parameters configured by the master control: (the total fade-in time of the new picture and the fade-in step length of each frame, and the brightness parameter is increased progressively according to the total fade-in time and the fade-in step length of each frame), and the output video image is multiplied by the corresponding brightness parameter and then output until the brightness parameter is increased progressively to 255.
Step 4, if the special effect of erasing in and erasing out is realized, the mask module is started, all masks in two frame times are used for writing into the DDR after a new video source is stably input, and after the two frame times are finished, the mask module configures the following parameters according to the main control: (the step length of each effective pixel of each frame of the new picture is increased progressively according to the step length of each effective pixel, if the parameter is 0, the new picture is not displayed, if the parameter is 10, the acquisition resolution is 1920, the step length of each effective pixel displayed by each frame is 10, 192 frames are needed to display a complete new video source picture), a corresponding mask stream is output and an acquired video image enter a write DDR module together, each line of the video image in each frame of DDR only covers a part of a new image, and at the moment, the output read DDR module normally outputs no operation. This way, the right-to-left and right-to-left rubbing can be realized. (here need not to use a way to read the buffer module again in parallel, to read the data of the new picture, the two are overlapped at the same time to realize the wipe-in and wipe-out).
Example 2
An embodiment of the present invention further provides a video special effect processing apparatus, and fig. 9 is a structural diagram of the video special effect processing apparatus according to the embodiment of the present invention, as shown in fig. 9, including:
a receiving module 902, configured to receive a video source switching instruction, which is sent by the MCU and is used to switch from a first image to a second image, where the video source switching instruction includes a video special effect mode and a special effect mode parameter;
a processing module 904, configured to perform video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
By the device, the problems that two or more paths of reading caches are needed and the resource consumption is large in the related technology can be solved, only one path of reading cache is needed, the logic resource consumption is low, and the video special effect can be realized without reading an old video source and a new video source in parallel.
Fig. 10 is a schematic structural diagram of a video special effects processing apparatus according to an alternative embodiment of the present invention, and as shown in fig. 10, the processing module 904 includes:
a first fade-out processing unit 1002, configured to read the first image and perform fade-out processing on the first image according to the special effect mode parameter if the video special effect mode is a fade-in fade-out mode;
a second fade-out processing unit 1004, configured to read the second image after the first image fade-out processing is completed and a preset time interval elapses, and perform fade-in processing on the second image according to the special effect mode parameter.
Namely, the video special effect processing needs to determine a video special effect mode, fade-out processing is performed on the first image according to the special effect mode parameters in the fade-in fade-out mode, and the second image is processed after the first image processing is completed.
In an optional embodiment, the processing module is further configured to: if the special effect mode parameter comprises the total fade-out time and the brightness descending step length, controlling the display brightness of the first image to descend by the brightness descending step length according to the total fade-out time until the display brightness of the first image is 0; and outputting a fade-out completion signal when the display brightness of the first image is 0.
That is, performing the fade-out process on the first image requires: the brightness of the first image is controlled to decrease according to the total fade-out time, and when the brightness is 0, a fade-out completion signal is output.
In an optional embodiment, the processing module is further configured to: if the special effect mode parameter comprises the total fade-in time and the brightness incremental step, controlling the display brightness of the second image to be incrementally increased by the brightness incremental step according to the total fade-in time until the display brightness of the second image is 255.
That is, performing the fade-out process on the first image requires controlling the brightness of the second image to be increased up to 255 in accordance with the total fade-out time.
In an optional embodiment, the processing module is further configured to: if the video special effect mode is an insertion and insertion mode, reading the first image, and reading the second image after a preset time interval; and carrying out video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
Namely, the video special effect processing needs to determine a video special effect mode, fade-out processing is performed on the first image according to the special effect mode parameters in the plug-in and plug-out mode, and the second image is processed after the first image processing is completed.
In an optional embodiment, the processing module is further configured to: and controlling the second image to increase progressively with each row of effective pixel points or each column of effective pixel points according to the step length of each frame of effective pixels, and simultaneously controlling the first image to decrease progressively with each row of effective pixel points or each column of effective pixel points, wherein the effective pixel points are determined according to the step length of each frame of effective pixels, and the special effect mode parameter comprises the step length of each frame of effective pixels.
That is, performing video special effects processing requires: and controlling the effective pixel points of the second image to increase progressively according to the step length of each frame of effective pixel, and simultaneously controlling the effective pixel points of the first image to decrease progressively.
In an optional embodiment, the apparatus further comprises: and writing the mask stream of the second image into a double-rate synchronous dynamic random access memory (DDR) through a mask module in a mode that the effective pixel points of each row or the effective pixel points of each column are increased progressively, and covering the pixel points of the second image with the pixel points of the first image which are decreased progressively in a mode that the effective pixel points of each row or the effective pixel points of each column are increased progressively.
Namely, the mask code stream of the second image can be written into the DDR in a manner of increasing the number of pixels through the mask module, and the pixels of the first image are covered.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a video source switching instruction which is sent by the MCU and is used for switching from a first image to a second image, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters;
s2, performing video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a video source switching instruction which is sent by the MCU and is used for switching from a first image to a second image, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters;
s2, performing video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for processing a video special effect, comprising:
receiving a video source switching instruction which is sent by a Micro Control Unit (MCU) and is used for switching a first image to a second image, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters;
and carrying out video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
2. The method of claim 1, wherein video special effects processing the first image and the second image according to the video special effects mode and the special effects mode parameters comprises:
if the video special effect mode is a fade-in fade-out mode, reading the first image, and performing fade-out processing on the first image according to the special effect mode parameter;
and reading the second image, and performing fade-in processing on the second image according to the special effect mode parameter.
3. The method of claim 2, wherein the fading out the first image according to the special effect mode parameter comprises:
if the special effect mode parameter comprises total fade-out time and a brightness descending step length, controlling the display brightness of the first image to descend by the brightness descending step length according to the total fade-out time until the display brightness of the first image is 0;
and outputting a fade-out completion signal when the display brightness of the first image is 0.
4. The method of claim 2, wherein the fading in the second image according to the special effect mode parameter comprises:
if the special effect mode parameter comprises total fade-in time and brightness increment step length, controlling the display brightness of the second image to be increased by the brightness increment step length according to the total fade-in time until the display brightness of the second image is 255.
5. The method of claim 1, wherein video special effects processing the first image and the second image according to the video special effects mode and the special effects mode parameters comprises:
if the video special effect mode is an insertion and insertion mode, reading the first image, and reading the second image after a preset time interval;
and carrying out video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameter.
6. The method of claim 5, wherein video special effects processing the first image and the second image according to the video special effects mode and the special effects mode parameters comprises:
and controlling the second image to increase progressively with each row of effective pixel points or each column of effective pixel points according to the step length of each frame of effective pixels, and simultaneously controlling the first image to decrease progressively with each row of effective pixel points or each column of effective pixel points, wherein the effective pixel points are determined according to the step length of each frame of effective pixels, and the special effect mode parameter comprises the step length of each frame of effective pixels.
7. The method of claim 6, further comprising:
and writing the mask stream of the second image into a double-rate synchronous dynamic random access memory (DDR) through a mask module in a mode that the effective pixel points of each row or the effective pixel points of each column are increased progressively, and covering the pixel points of the second image with the pixel points of the first image which are decreased progressively in a mode that the effective pixel points of each row or the effective pixel points of each column are increased progressively.
8. A video special effects processing apparatus, comprising:
the receiving module is used for receiving a video source switching instruction which is sent by the micro control unit MCU and is used for switching from a first image to a second image, wherein the video source switching instruction comprises a video special effect mode and special effect mode parameters;
and the processing module is used for carrying out video special effect processing on the first image and the second image according to the video special effect mode and the special effect mode parameters.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202110669201.0A 2021-06-16 2021-06-16 Video special effect processing method and device Pending CN113411669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110669201.0A CN113411669A (en) 2021-06-16 2021-06-16 Video special effect processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110669201.0A CN113411669A (en) 2021-06-16 2021-06-16 Video special effect processing method and device

Publications (1)

Publication Number Publication Date
CN113411669A true CN113411669A (en) 2021-09-17

Family

ID=77684528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110669201.0A Pending CN113411669A (en) 2021-06-16 2021-06-16 Video special effect processing method and device

Country Status (1)

Country Link
CN (1) CN113411669A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339446A (en) * 2021-12-28 2022-04-12 北京百度网讯科技有限公司 Audio and video editing method, device, equipment, storage medium and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795366A (en) * 2009-02-04 2010-08-04 青岛海信电器股份有限公司 Progressive channel switching method and television using same
CN105554416A (en) * 2015-12-24 2016-05-04 深圳市捷视飞通科技股份有限公司 FPGA (Field Programmable Gate Array)-based high-definition video fade-in and fade-out processing system and method
CN107749956A (en) * 2017-09-27 2018-03-02 北京嗨动视觉科技有限公司 Video source switches special efficacy realization device and video source switching special efficacy implementation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795366A (en) * 2009-02-04 2010-08-04 青岛海信电器股份有限公司 Progressive channel switching method and television using same
CN105554416A (en) * 2015-12-24 2016-05-04 深圳市捷视飞通科技股份有限公司 FPGA (Field Programmable Gate Array)-based high-definition video fade-in and fade-out processing system and method
CN107749956A (en) * 2017-09-27 2018-03-02 北京嗨动视觉科技有限公司 Video source switches special efficacy realization device and video source switching special efficacy implementation method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339446A (en) * 2021-12-28 2022-04-12 北京百度网讯科技有限公司 Audio and video editing method, device, equipment, storage medium and program product
CN114339446B (en) * 2021-12-28 2024-04-05 北京百度网讯科技有限公司 Audio/video editing method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
JP7270661B2 (en) Video processing method and apparatus, electronic equipment, storage medium and computer program
CN107548558B (en) Source apparatus, control method thereof, sink apparatus, and image quality improvement processing method thereof
CN111698556B (en) 8K video processing system and method for Micro LED
US11106421B2 (en) Display method and system for wireless intelligent multi-screen display
CN109426472A (en) Multimedia play system and multimedia player
CN111615684A (en) Variable pixel rate display interface
US10303419B2 (en) Information processing system, display processing apparatus, display processing method, and recording medium
CN109272923B (en) Subtitle rolling display method and system based on multi-screen equipment and storage medium
CN105554416A (en) FPGA (Field Programmable Gate Array)-based high-definition video fade-in and fade-out processing system and method
CN110012336B (en) Picture configuration method, terminal and device of live interface
CN116419018A (en) Vehicle-mounted multi-screen simultaneous display method based on USB wired screen projection
CN105975168A (en) OSD menu fading-in and fading-out method and device
CN113411669A (en) Video special effect processing method and device
CN113518257B (en) Multisystem screen projection processing method and equipment
CN107580228B (en) Monitoring video processing method, device and equipment
TW201431381A (en) Auxiliary data encoding in video data
CN104182193B (en) High-definition large screen display method and system and large screen workstation
CN112040284B (en) Synchronous display control method and device of multiple display screens and storage medium
CN117014673A (en) Core board for guiding and broadcasting machine and guiding and broadcasting system
CN216700149U (en) Image output control system based on android system
CN102665048A (en) Method and system for implementation of multi-picture composition
US20150067508A1 (en) Point-to-point content navigation using an auxiliary device
CN114979541A (en) Video display system
CN113490040A (en) HDMI (high-definition multimedia interface) -based transmission method and related device
CN211018937U (en) Multi-screen synchronous playing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210917