Video processing method, card insertion type video processing equipment and storage medium
By introducing a bypass module into the plug-in video processing device, the overlay processing of video data is realized, and the problem of abnormal video data transmission is solved due to the failure of the input card slot, which improves the efficiency and reliability of the device.
Patent Information
- Application Number
- CN202311443357.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2025-05-13
AI Technical Summary
In existing plug-in video processing devices, if no input card is inserted into any input card slot, the video data cannot be transmitted normally, resulting in abnormal pre-monitoring function.
A video processing method is designed to realize the superimposition processing of video data by introducing a bypass module into the plug-in video processing device. The specific steps include: receiving the superimposed video data through the bypass module, generating the first video data and the second video data; performing video data overlay processing in response to the insertion or failure of the input card slot, and passing the result to the pre-monitor module.
This method ensures that video data can be transmitted normally when any input card slot is inserted or not, avoids failure of the pre-monitor module and improves the efficiency of the video processing equipment.
Smart Images

Figure CN119996594A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of video processing technology, and in particular to a video processing method, a plug-in video processing device and a storage medium. Background Art
[0002] At present, video processing equipment usually adopts a plug-in card architecture, in which multiple input card slots are connected in series. If any input card slot is not inserted with an input card, the video data in the video processing device cannot be transmitted normally, and the preview module cannot receive video data, resulting in abnormal preview function. Summary of the invention
[0003] In view of this, the present application provides a video processing method, a plug-in card video processing device and a storage medium to solve the above technical problems.
[0004] The first aspect of the present application provides a video processing method, which is applied to a plug-in video processing device. The plug-in video processing device includes N input card slots, N bypass modules and a preview module. The N bypass modules are connected in series in sequence, the preview module is connected to the Nth bypass module, and the nth input card slot is connected in parallel to the nth bypass module, where n is an integer greater than 1 and less than or equal to N. The method includes: receiving the n-1th superimposed video data through the nth bypass module, and generating first video data and second video data based on the n-1th superimposed video data, wherein the first video data and the second video data are the same; in response to the nth input card slot being inserted into an input card, receiving the first video data and the nth video data through the input card, and superimposing the first video data and the nth video data to obtain the nth superimposed video data; receiving the Nth superimposed video data through the preview module, and performing preview display based on the Nth superimposed video data.
[0005] In some embodiments, the method further includes: in response to the input card not being inserted into the nth input card slot, using the second video data as the nth overlay video data via the nth bypass module.
[0006] In some embodiments, before the step of receiving the n-1th video data, the method includes: in response to a first input card slot being inserted into the input card, receiving first video data through the input card, and using the first video data as first overlay video data through a first bypass module.
[0007] In some embodiments, the plug-in card video processing device also includes a control module. After the step of generating the first video data and the second video data based on the n-1th superimposed video data, the method also includes: establishing a preset network through the control module, and monitoring whether a registration address appears in the preset network; in response to the registration address appearing in the preset network, sending a preset instruction based on the registration address, and determining whether a response instruction appears in the preset network; in response to the response instruction appearing in the preset network, inserting the input card into the nth input card slot; in response to the absence of the response instruction in the preset network, not inserting the input card into the nth input card slot.
[0008] The second aspect of the present application provides a card-type video processing device, comprising N input card slots, N bypass modules and a preview module, wherein the N bypass modules are connected in series in sequence, the preview module is connected to the Nth bypass module, and the nth input card slot is connected in parallel to the nth bypass module, where n is an integer greater than 1 and less than or equal to N; the nth bypass module receives the n-1th superimposed video data, and generates first video data and second video data based on the n-1th superimposed video data, wherein the first video data and the second video data are the same; when an input card is inserted into the nth input card slot, the input card receives the first video data and the nth video data, and superimposes the first video data and the nth video data to obtain the nth superimposed video data; the preview module receives the Nth level superimposed video data from the Nth bypass module, and performs preview display based on the Nth level superimposed video data.
[0009] In some embodiments, each of the bypass modules includes a first processing module and a second processing module connected in series, wherein the first processing module is connected to one end of the corresponding input card slot, and the second processing module is connected to the other end of the corresponding input card slot.
[0010] In some embodiments, the first processing module in the nth bypass module is used to generate the first video data and the second video data from the n-1th overlay video data, and transmit the first video data to the nth input card slot when the input card is inserted into the nth input card slot; and transmit the second video data to the second processing module in the nth bypass module when the input card is not inserted into the nth input card slot.
[0011] In some embodiments, the second processing module in the nth bypass module is used to receive the nth overlay video data or the second video data, and to receive the nth overlay video data when the input card is inserted into the nth input card slot; and to receive the second video data when the input card is not inserted into the nth input card slot, and to use the second video data as the nth overlay video data.
[0012] In some embodiments, the plug-in card video processing device also includes: a control module, which is respectively connected to each of the bypass modules and each of the input card slots, and is used to obtain the status of each of the input card slots, and control each corresponding bypass module based on the status of each of the input card slots; the control module establishes a preset network, and monitors whether a registration address appears in the preset network. When the registration address appears in the preset network, a preset instruction is sent based on the registration address, and it is determined whether a response instruction appears in the preset network; when the response instruction appears in the preset network, the control module inserts the input card into the nth input card slot, and controls the second processing module to receive the nth superimposed video data; when the response instruction does not appear in the preset network, the input card is not inserted into the nth input card slot, and controls the second processing module to receive the second video data.
[0013] A third aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, and when the program instructions are executed by a plug-in card-type video processing device, the video processing method in the first aspect is implemented.
[0014] The present application provides a video processing method, a plug-in video processing device and a storage medium. The nth bypass module of the plug-in video processing device receives the n-1th superimposed video data, and generates the first video data and the second video data based on the n-1th superimposed video data. When the nth input card slot is inserted with an input card, the nth input card slot receives the first video data, the input card receives the first video data through the nth input card slot, receives the nth video data through an external input device, and superimposes the first video data and the nth video data to obtain the nth superimposed video data; when the nth input card slot is not inserted with an input card, the nth bypass module uses the second video data as the nth superimposed video data. When the nth input card slot is inserted with an input card or when no input card is inserted with an input card, the superimposed video data output by the input card can be transmitted normally through the nth bypass module, which can avoid the situation where the pre-monitoring module fails, and improve the efficiency of the plug-in video processing device.
[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 It is a flowchart of an embodiment of a video processing method of the present application;
[0018] Figure 2 It is a structural schematic diagram of an embodiment of the plug-in card type video processing device of the present application;
[0019] Figure 3 yes Figure 1 A schematic diagram of a flow chart of an embodiment before step S11;
[0020] Figure 4 It is a structural schematic diagram of another embodiment of the plug-in card type video processing device of the present application;
[0021] Figure 5 yes Figure 1 A schematic diagram of a flow chart of an embodiment after step S11;
[0022] Figure 6 is a schematic structural diagram of an embodiment of each bypass module in the N bypass modules of the present application;
[0023] Figure 7 is a schematic structural diagram of another embodiment of each bypass module in the N bypass modules of the present application;
[0024] Figure 8 It is a schematic diagram of a framework of an embodiment of the non-volatile computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0025] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification. It is particularly pointed out that the following embodiments are only used to illustrate the present application, but do not limit the scope of the present application. Similarly, the following embodiments are only some embodiments of the present application rather than all embodiments. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradicting each other.
[0028] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.
[0029] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0030] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0031] At present, video processing equipment usually adopts a plug-in card architecture, in which multiple input card slots are connected in series. If any input card slot is not inserted with an input card, the video data in the video processing device cannot be transmitted normally, and the preview module cannot receive video data, resulting in abnormal preview function.
[0032] In order to solve the above problems, this application proposes a video processing method, please refer to Figure 1 , Figure 1 The video processing method of this embodiment is applied to a plug-in video processing device, which can be a personal computer, a professional workstation, a server, a monitoring system, a cinema equipment, a broadcasting equipment, a medical device, an industrial vision system, etc.
[0033] See also Figure 2 , Figure 2 1 is a schematic diagram of the structure of an embodiment of a plug-in card video processing device of the present application. The plug-in card video processing device 300 includes N input card slots 310, N bypass modules 320 and a pre-monitoring module 330, wherein the N input card slots 310 include a first input card slot 311, a second input card slot 311, ..., an n-1th input card slot 312, an nth input card slot 313 and an Nth input card slot 314; the N bypass modules 320 include a first bypass module 321, a second bypass module 321, ..., an n-1th bypass module 322, an nth bypass module 323 and an Nth bypass module 324. N bypass modules 320 are connected in series in sequence, the pre-monitoring module 330 is connected to the Nth bypass module 324, and the nth input card slot 313 is connected to the nth bypass module 323 in parallel, that is, the N input card slots 310 are arranged in one-to-one correspondence with the N bypass modules 320, and n is an integer greater than 1 and less than or equal to N.
[0034] The nth bypass module 323 receives the n-1th superimposed video data, and generates the first video data and the second video data based on the n-1th superimposed video data, wherein the first video data and the second video data are the same. When the nth input card slot 313 is inserted with an input card, the input card receives the first video data and the nth video data, and superimposes the first video data and the nth video data to obtain the nth superimposed video data. The pre-monitoring module 330 receives the Nth level superimposed video data from the Nth bypass module 324, and performs pre-monitoring display based on the Nth level superimposed video data.
[0035] See also Figure 1 , the video processing method may include the following steps:
[0036] Step S11: receiving the n-1th superimposed video data through the n-1th bypass module, and generating first video data and second video data based on the n-1th superimposed video data, wherein the first video data and the second video data are the same.
[0037] Optional, see Figure 2 Each of the N bypass modules 320 may include a signal distributor, which is used to transmit, convert, isolate, and distribute the received signal to different control systems to achieve the function of one-input and multiple-output of industrial signals. In this embodiment, a one-input and two-output signal distributor may be selected, which receives the n-1th superimposed video data and generates the first video data and the second video data based on the n-1th superimposed video data.
[0038] In this example, see Figure 2 The n-1th bypass module 322 is connected to the n-1th bypass module 323, the n-1th bypass module 322 sends the n-1th overlay video data to the n-1th bypass module 323, and the signal distributor in the n-1th bypass module 323 generates the first video data and the second video data based on the n-1th overlay video data, wherein the first video data and the second video data are the same.
[0039] Step S12: in response to the input card being inserted into the nth input card slot, the first video data and the nth video data are received through the input card, and the first video data and the nth video data are superimposed to obtain the nth superimposed video data.
[0040] In some embodiments, the input card can receive the nth video data input from one or more external input devices, where the external input devices may include IPC (IP Camera), SDI (serial digital interface) cameras, etc., which is not limited in this application.
[0041] See also Figure 2 , the nth input card slot 313 is connected to the nth bypass module 323, and the first video data generated by the nth bypass module 323 can be received through the nth input card slot 313. In some embodiments, when an input card is inserted into the nth input card slot 313, the nth input card slot 313 receives the first video data, and the input card receives the first video data through the nth input card slot 313. In other embodiments, when no input card is inserted into the nth input card slot 313, the nth bypass module 323 uses the second video data as the nth superimposed video data.
[0042] Optionally, the overlay processing may include video picture overlay processing, image and text overlay processing, layer blending overlay processing, etc.
[0043] In some embodiments, the overlay processing may include video picture overlay processing, for example, merging the first video data and the nth video data into one display picture to obtain the nth overlay video data.
[0044] In some embodiments, the overlay processing may include text and image overlay processing, for example, the nth video data may be text or pattern, specifically, may include static text, real-time bullet screen information, audience interaction information, real-time game scores, trademark patterns, etc. The nth video data is set above the first video data to obtain the nth overlay video data.
[0045] In some embodiments, the overlay processing may include layer blending overlay processing, for example, mixing the first video data with the nth video data according to a preset ratio and preset transparency to obtain the nth overlay video data.
[0046] Step S13: receiving the Nth superimposed video data through the preview module, and performing preview display based on the Nth superimposed video data.
[0047] In this embodiment, please refer to Figure 2 The preview module 330 is connected to the Nth bypass module 324 to receive the Nth superimposed video data.
[0048] Optionally, the pre-monitoring module 330 may include a pre-monitoring card and a pre-monitoring card slot. The pre-monitoring card may be inserted into the pre-monitoring card slot, receive the Nth superimposed video data, and perform pre-monitoring display based on the Nth superimposed video data. In some embodiments, the pre-monitoring card may send the Nth superimposed video data to a host computer, and perform pre-monitoring display by the host computer. Wherein, the host computer may be a personal computer, a handheld device, a portable device, a tablet device, etc., and this application does not limit this.
[0049] In some embodiments, see Figure 2When the pre-monitoring card is inserted into the pre-monitoring card slot, the pre-monitoring card slot is connected to the Nth bypass module, the pre-monitoring card receives the Nth superimposed video data through the pre-monitoring card slot, sends the Nth superimposed video data to the host computer, and performs pre-monitoring display through the host computer.
[0050] In this embodiment, please refer to Figure 2 , the nth bypass module 323 of the card-insertion video processing device 300 receives the n-1th superimposed video data, and generates the first video data and the second video data based on the n-1th superimposed video data. When the nth input card slot 313 is inserted with an input card, the nth input card slot 313 receives the first video data, the input card receives the first video data through the nth input card slot 313, receives the nth video data through an external input device, and superimposes the first video data and the nth video data to obtain the nth superimposed video data; when the nth input card slot 313 is not inserted with an input card, the nth bypass module 323 uses the second video data as the nth superimposed video data. When the nth input card slot 313 is inserted with an input card or when no input card is inserted with an input card, the superimposed video data output by the input card can be normally transmitted through the nth bypass module 323, which can avoid the situation where the pre-monitoring module fails, and improve the efficiency of the card-insertion video processing device 300.
[0051] See also Figure 3 , Figure 3 yes Figure 1 A flow chart of an embodiment before step S11 in FIG. The steps before step S11 include the following steps:
[0052] Step S21: in response to the first input card slot being inserted with an input card, first video data is received through the input card, and the first video data is used as first superimposed video data through a first bypass module.
[0053] See also Figure 2 , the first input card slot 311 is connected to the first bypass module 321. In some embodiments, when an input card is inserted into the first input card slot 311, the input card receives the first video data input by the external input device. The first input card slot 311 sends the first video data to the first bypass module 321. The first bypass module 321 receives the first video data and uses the first video data as the first superimposed video data.
[0054] Step S22: In response to the first input card slot not being inserted with an input card, an input card is inserted into the nth input card slot, the first video data is received through the input card, and the first video data is used as the first superimposed video data through the nth bypass module.
[0055] See also Figure 2, the first input card slot 311 is connected to the first bypass module 321, and the nth input card slot 313 is connected to the nth bypass module 323. In some embodiments, when the first input card slot 311 is not inserted with an input card, and the nth input card slot 313 is inserted with an input card, the input card receives the first video data input by the external input device. The nth input card slot 313 sends the nth video data to the nth bypass module 323. The nth bypass module 323 receives the first video data and uses the first video data as the first superimposed video data.
[0056] Optionally, in this embodiment, the input card slot with the smallest number among all the input card slots into which the input cards are inserted can be selected as the nth input card slot 313, and the first video data can be received through the nth bypass module 323 connected to the nth input card slot 313, and the first video data can be used as the first superimposed video data.
[0057] See also Figure 4 , Figure 4 It is a structural schematic diagram of another embodiment of the plug-in card type video processing device of the present application. Figure 4 The plug-in video processing device 500 includes Figure 2 The control module 340 includes N input card slots 310, N bypass modules 320 and a pre-monitoring module 330, as well as the connection relationship and function definition between each module, and also includes a control module 340, which is connected to each bypass module and each input card slot, respectively, for obtaining the state of each input card slot, and controlling each corresponding bypass module based on the state of each input card slot. The control module 340 establishes a preset network, and monitors whether a registration address appears in the preset network. In the case where a registration address appears in the preset network, a preset instruction is sent based on the registration address, and it is determined whether a response instruction appears in the preset network. In the case where a response instruction appears in the preset network, the control module 340 inserts an input card into the nth input card slot 313, and the control module 340 controls the nth bypass module 323 to receive the nth superimposed video data; in the case where a response instruction does not appear in the preset network, the nth input card slot is not inserted with an input card, and the control module 340 controls the nth bypass module 323 to receive the second video data.
[0058] See also Figure 5 , Figure 5 yes Figure 1 A flow chart of an embodiment after step S11 in FIG. The following steps are included after step S11:
[0059] Step S31: Establish a preset network through the control module, and monitor whether a registered address appears in the preset network.
[0060] Optional, see Figure 4The control module 340 may include a switch device or a router device, wherein the switch is used to connect network devices and terminal devices; the router is used to realize the interconnection between local area networks, which is not limited in this application.
[0061] See also Figure 4 The control module 340 is used to build a preset network, and the N input card slots 310 and the N bypass modules 320 are respectively connected through the preset network. In some embodiments, when an input card is inserted into the nth input card slot 313 among the N input card slots 310, the nth input card slot 313 registers an address in the preset network based on a preset method, wherein the registered address can be a MAC (Media Access Control Address) of the input card slot.
[0062] The registered address can be a MAC address, which is also called a physical address or hardware address. It is an address code burned into the network card by the network device manufacturer during production. It can be used to confirm the location of the network device.
[0063] Step S32: In response to the presence of a registration address in the preset network, a preset instruction is sent based on the registration address, and it is determined whether a response instruction appears in the preset network.
[0064] When the control module 340 detects that a new registration address appears in the preset network, a preset instruction is sent based on the registration address. When the nth input card slot 313 is normally inserted with an input card, the nth input card slot 313 sends a corresponding response instruction to the preset network based on the preset instruction, and the control module 340 detects that a response instruction appears in the preset network; when the nth input card slot 313 is not normally inserted with an input card, the nth input card slot 313 does not send a corresponding response instruction, for example, the nth input card slot 313 is not inserted with an input card, and for another example, the nth input card slot 313 is not normally inserted with an input card, specifically, the nth input card slot 313 and the input card are abnormally connected and cannot exchange data normally.
[0065] Step S33: In response to a response instruction from the preset network, an input card is inserted into the nth input card slot.
[0066] When the control module 340 detects that a response instruction appears in the preset network, the control module 340 determines that an input card is inserted into the nth input card slot 313. In some embodiments, the control module 340 controls the nth input card slot 313 to receive the first video data. In other embodiments, the control module 340 controls the nth bypass module 323 to send the first video data to the nth input card slot 313.
[0067] Step S34: In response to the default network not receiving a response instruction, the nth input card slot has no input card inserted therein.
[0068] When the control module 340 detects that the preset network has no response command, the control module 340 determines that no input card is inserted into the nth input card slot 313. In some embodiments, the control module 340 controls the nth bypass module 323 to use the second video data as the nth superimposed data.
[0069] See also Figure 6 , Figure 6 Schematic diagram of the structure of an embodiment of each bypass module in the N bypass modules of the present application. The bypass module 710 includes a first processing module 711 and a second processing module 712 connected in series, the first processing module 711 is connected to one end of the corresponding input card slot 720, and the second processing module 712 is connected to the other end of the corresponding input card slot 720.
[0070] In some embodiments, see Figure 2 and Figure 6 The first processing module 711 in the nth bypass module 323 is used to generate the first video data and the second video data from the n-1th superimposed video data. When an input card is inserted into the nth input card slot 313, the first processing module 711 transmits the first video data to the nth input card slot 313; when no input card is inserted into the nth input card slot 313, the first processing module 711 transmits the second video data to the second processing module 712 in the nth bypass module.
[0071] Optionally, the first processing module 711 may be a signal distributor, which is used to transmit, convert, isolate, and distribute the received signal to different control systems to achieve a one-input and multiple-output function for industrial signals. In this embodiment, a one-input and two-output signal distributor may be selected, which receives the n-1th superimposed video data and generates the first video data and the second video data based on the n-1th superimposed video data.
[0072] In some embodiments, see Figure 2 and Figure 6 The second processing module 712 in the nth bypass module 323 is used to receive the nth superimposed video data or the second video data. When an input card is inserted into the nth input card slot 313, the second processing module 712 receives the nth superimposed video data; when no input card is inserted into the nth input card slot 313, the second processing module 712 receives the second video data and uses the second video data as the nth superimposed video data.
[0073] In some embodiments, see Figure 4 and Figure 6, the control module 340 is connected to the second processing module 712, and controls the second processing module 712 to receive the nth superimposed video data or the second video data. For example, when an input card is inserted into the nth input card slot 313, the control module 340 controls the second processing module 712 to receive the nth superimposed video data. For another example, when no input card is inserted into the nth input card slot 313, the control module 340 controls the second processing module 712 to receive the second video data, and uses the second video data as the nth superimposed video data.
[0074] Optionally, the second processing module 712 may be a signal selector, which is a device for selecting one of two or more received signals. In this embodiment, a two-choice signal selector may be selected. When an input card is inserted into the nth input card slot 313, the control module 340 controls the two-choice signal selector to receive the nth superimposed video data; when no input card is inserted into the nth input card slot 313, the control module 340 controls the two-choice signal selector to receive the second video data, and uses the second video data as the nth superimposed video data.
[0075] See also Figure 7 , Figure 7 810 is a schematic diagram of another embodiment of each bypass module in the N bypass modules of the present application. Each bypass module 810 may include a first port 811, a second port 812, a third port 813 and a fourth port 814. Figure 2 and Figure 7 , the third port 813 of the nth bypass module 323 is connected to the input end of the nth input card slot 313, the first port 811 is connected to the output end of the input card slot 820, and the second port 812 is connected to the fourth port 814 of the n-1th bypass module 322. In some embodiments, when an input card is inserted into the nth input card slot 313, the second port 812 of the nth bypass module 323 is connected to the third port 813, and the first port 811 of the nth bypass module 323 is connected to the fourth port 814. In other embodiments, when no input card is inserted into the nth input card slot 313, the second port 812 of the nth bypass module 323 is connected to the fourth port 814.
[0076] Optionally, the bypass module 810 can select a 2*2 matrix switching chip (Cross Point, CP). The matrix switching chip is a device used to realize signal switching and distribution between multiple inputs and one or more outputs. Its main function is to receive signals from multiple input ports and redistribute these signals to one or more output ports.
[0077] In some embodiments, see Figure 2 and Figure 7 , when the input card is inserted into the nth input card slot 313, the second port 812 of the nth bypass module 323 is connected to the fourth port 814 of the n-1th bypass module 322 to receive the n-1th superimposed video data. The second port 812 of the nth bypass module 323 is connected to the third port 813, and the input card receives the n-1th superimposed video data through the third port 813. The input card receives the nth video data input by the external input device, and superimposes the n-1th superimposed video data and the nth video data to obtain the nth superimposed video data, and the input card outputs the nth superimposed video data through the first port 811. The first port 811 of the nth bypass is connected to the fourth port 814, and the nth bypass module 323 outputs the nth superimposed video data through the fourth port 814.
[0078] In some embodiments, see Figure 2 and Figure 7 When no input card is inserted into the nth input card slot, the second port 812 of the nth bypass module 323 is connected to the fourth port 814 of the n-1th bypass module 322 to receive the n-1th superimposed video data. The second port 812 of the nth bypass module 323 is connected to the fourth port 814, and the nth bypass module 323 outputs the nth superimposed video data through the fourth port 814.
[0079] Optional, see Figure 4 and Figure 7 , the control module 340 connects each bypass module 810 of the N bypass modules 320, and controls the connection between the ports in the bypass modules 810. In some embodiments, when an input card is inserted into the nth input card slot 313, the control module 340 controls the second port 812 of the nth bypass module to connect to the third port 813. In some embodiments, when no input card is inserted into the nth input card slot 313, the control module 340 controls the first port 811 of the nth bypass module 323 to connect to the fourth port 814.
[0080] In some embodiments, see Figure 4 and Figure 7, when the input card is inserted into the nth input card slot 313, the second port 812 of the nth bypass module 323 is connected to the fourth port 814 of the n-1th bypass module 322 to receive the n-1th superimposed video data. The control module 340 controls the second port 812 of the nth bypass module 323 to connect to the third port 813, the input card receives the n-1th superimposed video data through the third port 813, the input card receives the nth video data input by the external input device, and superimposes the n-1th superimposed video data and the nth video data to obtain the nth superimposed video data, and the input card outputs the nth superimposed video data through the first port 811. The control module 340 controls the first port 811 of the nth bypass module 323 to connect to the fourth port 814, and the nth bypass module 323 outputs the nth superimposed video data through the fourth port 814.
[0081] In some embodiments, see Figure 4 and Figure 7 When no input card is inserted into the nth input card slot 313, the second port 812 of the nth bypass module 323 is connected to the fourth port 814 of the n-1th bypass module 322 to receive the n-1th superimposed video data. The control module 340 controls the second port 812 of the nth bypass module 323 to connect to the fourth port 814, and the nth bypass module 323 outputs the nth superimposed video data through the fourth port 814.
[0082] See also Figure 8 , Figure 8 The non-volatile computer-readable storage medium 90 stores program instructions 901 that can be run by a plug-in video processing device, and the program instructions 901 are used to implement the steps of any of the above-mentioned video processing method embodiments.
[0083] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0084] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0085] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0086] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0087] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
Claims
1. A video processing method, characterized in that: Applied to a plug-in card video processing device, the plug-in card video processing device comprises N input card slots, N bypass modules and a preview module, the N bypass modules are sequentially connected in series, the preview module is connected to the Nth bypass module, the nth input card slot is connected to the nth bypass module in parallel, n is an integer greater than 1 and less than or equal to N, the method comprises: receiving the n-1th superimposed video data through the n-1th bypass module, and generating first video data and second video data based on the n-1th superimposed video data, wherein the first video data and the second video data are the same; In response to the nth input card slot being inserted with an input card, receiving the first video data and the nth video data through the input card, and superimposing the first video data and the nth video data to obtain nth superimposed video data; The Nth superimposed video data is received through the preview module, and a preview display is performed based on the Nth superimposed video data.
2. The method according to claim 1, characterized in that The method further comprises: In response to the nth input card slot not being inserted with the input card, the second video data is used as the nth overlay video data by the nth bypass module.
3. The method according to claim 1, characterized in that Before the step of receiving the n-1th video data, the method comprises: In response to the first input card slot being inserted into the input card, first video data is received through the input card, and the first video data is used as first superimposed video data through a first bypass module.
4. The method according to claim 1, characterized in that: The card-type video processing device further includes a control module. After the step of generating the first video data and the second video data based on the n-1th superimposed video data, the method further includes: Establishing a preset network through the control module, and monitoring whether a registered address appears in the preset network; In response to the registered address appearing in the preset network, sending a preset instruction based on the registered address, and determining whether a response instruction appears in the preset network; In response to the response instruction appearing in the preset network, the input card is inserted into the nth input card slot; In response to the default network not having the response instruction, the nth input card slot has not been inserted with the input card.
5. A card-type video processing device, characterized in that: The device comprises N input card slots, N bypass modules and a pre-monitoring module, wherein the N bypass modules are sequentially connected in series, the pre-monitoring module is connected to the Nth bypass module, and the nth input card slot is connected to the nth bypass module in parallel, where n is an integer greater than 1 and less than or equal to N; The nth bypass module receives the n-1th superimposed video data, and generates first video data and second video data based on the n-1th superimposed video data, wherein the first video data and the second video data are the same; When an input card is inserted into the nth input card slot, the input card receives the first video data and the nth video data, and performs superposition processing on the first video data and the nth video data to obtain the nth superimposed video data; The preview module receives the Nth level of superimposed video data from the Nth bypass module, and performs preview display based on the Nth level of superimposed video data.
6. The card-type video processing device according to claim 5, characterized in that: Each of the bypass modules includes a first processing module and a second processing module connected in series, wherein the first processing module is connected to one end of the corresponding input card slot, and the second processing module is connected to the other end of the corresponding input card slot.
7. The card-type video processing device according to claim 6, characterized in that: The first processing module in the nth bypass module is used to generate the first video data and the second video data from the n-1th superimposed video data, and transmit the first video data to the nth input card slot when the input card is inserted into the nth input card slot; and transmit the second video data to the second processing module in the nth bypass module when the input card is not inserted into the nth input card slot.
8. The card-type video processing device according to claim 7, characterized in that: The second processing module in the nth bypass module is used to receive the nth overlay video data or the second video data, and to receive the nth overlay video data when the input card is inserted into the nth input card slot; and to receive the second video data when the input card is not inserted into the nth input card slot, and to use the second video data as the nth overlay video data.
9. The card-type video processing device according to claim 6, characterized in that: The card-type video processing device also includes: A control module, connected to each of the bypass modules and each of the input card slots, respectively, for obtaining a state of each of the input card slots, and controlling each of the corresponding bypass modules based on the state of each of the input card slots; The control module establishes a preset network and monitors whether a registration address appears in the preset network. When the registration address appears in the preset network, the control module sends a preset instruction based on the registration address and determines whether a response instruction appears in the preset network. When the response instruction appears in the preset network, the control module inserts the input card into the nth input card slot and controls the second processing module to receive the nth superimposed video data; when the response instruction does not appear in the preset network, the input card is not inserted into the nth input card slot and controls the second processing module to receive the second video data.
10. A non-volatile computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a plug-in card-type video processing device, the method according to any one of claims 1 to 4 is implemented.