Method and device for repairing zero code stream abnormity

By automatically detecting zero-code stream anomalies in video recorders and determining the cause based on the anomaly type, the problem of long manual troubleshooting is solved and the troubleshooting efficiency is improved.

CN119363910APending Publication Date: 2025-01-24ZHEJIANG DAHUA TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411525954.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The zero-code stream abnormality in the video recorder makes manual inspections take a long time and it is difficult to find out the cause.

Method used

When a zero code stream exception occurs on the target device, the exception type is determined based on whether the target application can obtain the target code stream from the target device, and the cause of the exception is determined based on the exception type.

Benefits of technology

The reasons for the abnormality of the zero -code flow of the automatic inspection of the target equipment, which reduces the time consumption of manual investigation and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119363910A_ABST
    Figure CN119363910A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method and device for repairing a zero code stream exception, and the method comprises the steps: determining the type of the zero code stream exception according to whether a target application can obtain a target code stream from target equipment or not under the condition that the zero code stream exception occurs in the target equipment; and determining the reason of the zero code stream exception of the target equipment according to the exception type. According to the method and the device, the problem of relatively long processing time caused by manually checking the reason of zero code stream abnormity of the video recorder in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the computer field, and in particular, to a method and device for repairing a zero code stream anomaly. Background Art

[0002] Video recorders are able to record high-definition videos and provide various monitoring functions, such as remote monitoring, mobile monitoring, etc. Video recorders also have powerful storage and management functions, which can help users better manage monitoring equipment and video files. They are usually used in monitoring systems, such as home monitoring, commercial monitoring, etc.

[0003] In actual use, the video recorder may encounter zero-stream abnormalities such as zero-stream restart, no stream saved to disk, and web stream cannot be displayed. At this time, the customer will feedback the abnormal situation to the relevant staff to manually check the cause of the zero-stream abnormality. However, due to many obstacles such as hardware environment factors and the inability to fully describe the operation, it takes a long time to manually check the cause of the zero-stream abnormality, and even the cause cannot be found.

[0004] There is currently no effective solution to the above problems. Summary of the invention

[0005] The embodiment of the present invention provides a method and device for repairing zero-code stream anomaly, so as to at least solve the problem in the related art that the processing takes a long time due to manual troubleshooting of the cause of zero-code stream anomaly in a video recorder.

[0006] According to one embodiment of the present invention, a method for determining the cause of a zero bitstream exception is provided, comprising: in the event that a zero bitstream exception occurs in a target device, determining the exception type of the zero bitstream exception based on whether the target application can obtain a target bitstream from the target device; and determining the cause of the zero bitstream exception occurring in the target device based on the exception type.

[0007] In an exemplary embodiment, the exception type of the zero code stream exception is determined based on whether the target application can obtain the target code stream from the target device, including: when the target application cannot obtain the target code stream from the main control end of the target device, determining the exception type of the zero code stream exception according to the display screen of the target device; when the target application obtains the target code stream from the main control end and the target code stream is not stored in the hard disk, determining the zero code stream exception as the first exception type.

[0008] In an exemplary embodiment, when the target application cannot obtain the target code stream from the main control terminal of the target device, determining the exception type of the zero code stream exception according to the display screen of the target device includes: when the target application cannot obtain the target code stream from the main control terminal, and the display screen of the target device displays the target code stream abnormally, determining the zero code stream exception as the second exception type. When the target application cannot obtain the target code stream from the main control terminal, and the display screen of the target device displays the target code stream normally, determining the zero code stream exception as the third exception type.

[0009] In an exemplary embodiment, determining the cause of the zero-code stream exception in the target device according to the exception type includes: in the case of the first exception type, determining that the cause of the zero-code stream exception is the hard disk exception; in the case of the second exception type, determining that the cause of the zero-code stream exception is the target chip exception, or the master control end exception, or the target analog camera exception, or the coaxial cable exception between the target analog camera and the target device; in the case of the third exception type, determining that the cause of the zero-code stream exception is the master control end exception.

[0010] In an exemplary embodiment, in the case of the second abnormality type, determining that the cause of the zero code stream abnormality is that the target chip is abnormal, or the main control end is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal, includes: in the case of the second abnormality type, performing a reset operation on a target acquisition channel and a target output channel of the target chip, wherein the target chip includes a plurality of acquisition channels and a plurality of output channels, the acquisition channels and the output channels allow free binding, the target acquisition channel is used to obtain target video data from the target analog camera, the target chip is used to perform digital-to-analog conversion on the target video data, the target output channel is used to transmit the target video data after the digital-to-analog conversion to the main control end, and the target encoding module of the main control end is used to encode the target video data after the digital-to-analog conversion to obtain the target code stream; after performing a reset operation on the target acquisition channel and the target output channel of the target chip, if the target application still cannot obtain the target code stream from the main control end, determining that the cause of the zero code stream abnormality is that the target chip is abnormal, or the main control end is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal.

[0011] In an exemplary embodiment, after performing a reset operation on a target acquisition channel and a target output channel of the target chip, if the target application still cannot obtain the target code stream from the master control end, determining that the cause of the zero code stream abnormality is the target chip abnormality, or the master control end abnormality, or the target analog camera abnormality, or the coaxial cable abnormality between the target analog camera and the target device, includes: determining whether the code streams of other output channels of the target chip are all abnormal, and if so, determining that the cause of the zero code stream abnormality is the target chip abnormality; if not, determining a normal output channel among multiple output channels included in the target chip as the first output channel; after binding the target acquisition channel with the first output channel, if the target application obtains the target code stream from the master control end, determining that the cause of the zero code stream abnormality is the target analog camera abnormality, or the coaxial cable abnormality between the target analog camera and the target device; if the target application still cannot obtain the target code stream from the master control end of the target device, determining that the cause of the zero code stream abnormality is the master control end abnormality.

[0012] In an exemplary embodiment, the method further includes: when it is determined that the cause of the zero code stream abnormality is the abnormality of the master control end, resetting the target encoding module.

[0013] According to another embodiment of the present invention, there is provided an apparatus for determining the cause of a zero bitstream exception, comprising: a first determination module for determining, when a zero bitstream exception occurs in a target device, the exception type of the zero bitstream exception based on whether the target application can obtain the target bitstream from the target device; and a second determination module for determining, based on the exception type, the cause of the zero bitstream exception in the target device.

[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0015] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0016] According to yet another embodiment of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0017] Through the present invention, when a zero-code stream exception occurs in a target device, the exception type of the zero-code stream exception is determined based on whether the target application can obtain the target code stream from the target device; and the cause of the zero-code stream exception in the target device is determined based on the exception type. The purpose of automatically troubleshooting the cause of the zero-code stream exception in the target device by a computer is achieved. Therefore, the problem of a long processing time caused by manually troubleshooting the cause of the zero-code stream exception in a video recorder in the related art can be solved, thereby achieving the effect of reducing time consumption and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for repairing a zero code stream anomaly according to an embodiment of the present invention;

[0019] Figure 2 is a flowchart of a method for repairing a zero-code stream anomaly according to an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of a system architecture according to an embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of an overall process according to an embodiment of the present invention;

[0022] Figure 5 is a system block diagram of a master control terminal according to an embodiment of the present invention;

[0023] Figure 6 4 is a structural block diagram of an apparatus for determining a cause of a zero bitstream anomaly according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0026] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for repairing a zero bitstream anomaly according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (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, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for repairing zero code stream anomalies in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network 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 (Network Interface Controller, referred to as 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 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] In this embodiment, a method for repairing zero bitstream anomaly running on the above mobile terminal is provided. Figure 2 is a flowchart of a method for repairing a zero bitstream anomaly according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0030] Step S202, when a zero bitstream exception occurs in a target device, determining the exception type of the zero bitstream exception according to whether the target application can obtain a target bitstream from the target device;

[0031] The target device may be a video recorder (DVR). Figure 3 The system architecture diagram shown in Figure 2 is shown in Figure 2.

[0032] The front-end analog camera is connected to the DVR device through the coaxial cable. The video data is collected by the analog camera and transmitted to the AD chip (target chip) of the DVR device through the coaxial cable. The AD chip performs digital-to-analog conversion and protocol analysis, and then converts the analog signal into BT656, BT1120 or MIPI signal, and finally transmits the converted signal to the main control end. After the main control end receives the signal, the DVR previews the video data and encodes and saves it to disk.

[0033] Zero bitstream anomalies can be divided into the following three types:

[0034] The first abnormal type is that the target application obtains the target code stream from the master control terminal, and the target code stream is not stored in the hard disk;

[0035] The second abnormality type is that the target application cannot obtain the target code stream from the master terminal, and the display screen of the target device shows an abnormal picture of the target code stream, such as distortion;

[0036] The third abnormal type is that the target application cannot obtain the target code stream from the main control end, and the display screen of the target device normally displays the screen of the target code stream.

[0037] As an optional implementation, the type of the zero bitstream exception may be determined in the following manner:

[0038] In the case that the target application cannot obtain the target code stream from the main control terminal of the target device, determining the exception type of the zero code stream exception according to the display screen of the target device;

[0039] Specifically, when the target application obtains the target code stream from the main control end and the target code stream is not stored in the hard disk, the zero code stream exception is determined as the first exception type.

[0040] When the target application cannot obtain the target code stream from the master control end, and the display screen of the target device displays the target code stream abnormally, the zero code stream abnormality is determined as the second abnormality type.

[0041] When the target application cannot obtain the target code stream from the master control end, and the display screen of the target device normally displays the screen of the target code stream, the zero code stream exception is determined as a third exception type.

[0042] In the above embodiment, the target application can detect the type of zero bitstream anomaly of the target device, actively trigger the self-detection program of the target device, and complete the zero bitstream self-repair process. Compared with the manual investigation of the cause of the zero bitstream anomaly of the target device in the prior art, this embodiment can achieve the technical effect of reducing time consumption and improving efficiency.

[0043] Step S204, determining the reason why the zero bitstream exception occurs in the target device according to the exception type;

[0044] like Figure 4 The figure is a schematic diagram of the overall process according to an embodiment of the present invention, which includes:

[0045] In the case of the first abnormality type, it is determined that the cause of the zero bitstream abnormality is the hard disk abnormality; after excluding the abnormalities of the AD chip and the main control end, a prompt message can be output, such as a pop-up prompt on the interface, to prompt the user that the hard disk is abnormal and it is recommended to replace the hard disk. After replacing the hard disk, check whether the target bitstream is stored in the replaced hard disk to confirm whether the zero bitstream abnormality is resolved.

[0046] In the case of the second abnormality type, determining that the cause of the zero code stream abnormality is that the target chip is abnormal, or the main control terminal is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal;

[0047] Specifically, in the case of the second abnormal type, a reset operation is performed on a target acquisition channel and a target output channel of the target chip, wherein the target chip includes a plurality of acquisition channels and a plurality of output channels, the acquisition channels and the output channels allow free binding, the target acquisition channel is used to obtain target video data from the target analog camera, the target chip is used to perform digital-to-analog conversion on the target video data, the target output channel is used to transmit the target video data after the digital-to-analog conversion to the main control end, and the target encoding module of the main control end is used to encode the target video data after the digital-to-analog conversion to obtain the target code stream;

[0048] like Figure 5 The system block diagram of the main control end is shown, including: video input end VI, video processing unit VPSS, video encoding unit VENC, video output end VO. VENC can perform main stream encoding, auxiliary stream encoding, JPEG encoding, and VO can preview and display.

[0049] After performing a reset operation on the target acquisition channel and the target output channel of the target chip, if the target application still cannot obtain the target code stream from the main control end, it is determined that the cause of the zero code stream abnormality is that the target chip is abnormal, or the main control end is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal.

[0050] Determine whether the code streams of other output channels of the target chip are all abnormal, and if so, determine that the cause of the zero code stream abnormality is that the target chip is abnormal;

[0051] If not, determining a normal output channel among the multiple output channels included in the target chip as the first output channel;

[0052] After the target acquisition channel is bound to the first output channel, if the target application obtains the target code stream from the master control end, it is determined that the cause of the zero code stream abnormality is that the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal;

[0053] If the target application still cannot obtain the target code stream from the main control end of the target device, it is determined that the cause of the zero code stream abnormality is that the main control end is abnormal.

[0054] When it is determined that the cause of the zero code stream abnormality is the abnormality of the master control end, a reset operation is performed on the target encoding module.

[0055] In the case of the third abnormality type, it is determined that the cause of the zero code stream abnormality is the abnormality of the master control end. In the case of determining that the cause of the zero code stream abnormality is the abnormality of the master control end, a target encoding module is reset.

[0056] Optionally, the executor of the above steps may be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone or other terminal, but is not limited thereto.

[0057] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0058] In the present embodiment, a device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0059] Figure 6 is a structural block diagram of an apparatus for determining a zero bitstream abnormality cause according to an embodiment of the present invention, such as Figure 6 As shown, the device comprises:

[0060] A first determination module 62 is used to determine the exception type of the zero bitstream exception according to whether the target application can obtain the target bitstream from the target device when the zero bitstream exception occurs in the target device;

[0061] The second determining module 64 is configured to determine the reason why the zero bitstream exception occurs in the target device according to the exception type.

[0062] In an exemplary embodiment, the above-mentioned device is also used to determine the exception type of the zero code stream exception according to the display screen of the target device when the target application cannot obtain the target code stream from the main control end of the target device; when the target application obtains the target code stream from the main control end and the target code stream is not stored in the hard disk, determine the zero code stream exception as the first exception type.

[0063] In an exemplary embodiment, the above-mentioned device is further used to determine the zero code stream exception as the second exception type when the target application cannot obtain the target code stream from the master control end and the display screen of the target device displays the target code stream abnormally. When the target application cannot obtain the target code stream from the master control end and the display screen of the target device displays the target code stream normally, the zero code stream exception is determined as the third exception type.

[0064] In an exemplary embodiment, the above-mentioned device is also used to determine that the cause of the zero code stream exception is the hard disk exception in the case of the first exception type; in the case of the second exception type, determine that the cause of the zero code stream exception is the target chip exception, or the master control end exception, or the target analog camera exception, or the coaxial cable exception between the target analog camera and the target device; in the case of the third exception type, determine that the cause of the zero code stream exception is the master control end exception.

[0065] In an exemplary embodiment, the above-mentioned device is also used to perform a reset operation on a target acquisition channel and a target output channel of the target chip in the case of the second abnormal type, wherein the target chip includes multiple acquisition channels and multiple output channels, the acquisition channels and the output channels allow free binding, the target acquisition channel is used to obtain target video data from the target analog camera, the target chip is used to perform digital-to-analog conversion on the target video data, the target output channel is used to transmit the target video data after the digital-to-analog conversion to the main control end, and the target encoding module of the main control end is used to encode the target video data after the digital-to-analog conversion to obtain the target code stream; after performing a reset operation on the target acquisition channel and the target output channel of the target chip, if the target application still cannot obtain the target code stream from the main control end, it is determined that the cause of the zero code stream abnormality is that the target chip is abnormal, or the main control end is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal.

[0066] In an exemplary embodiment, the above-mentioned device is also used to determine whether the code streams of other output channels of the target chip are all abnormal. If so, it is determined that the cause of the zero code stream abnormality is the abnormality of the target chip; if not, a normal output channel among the multiple output channels included in the target chip is determined as the first output channel; after binding the target acquisition channel with the first output channel, if the target application obtains the target code stream from the main control end, it is determined that the cause of the zero code stream abnormality is the abnormality of the target analog camera, or the abnormality of the coaxial cable between the target analog camera and the target device; if the target application still cannot obtain the target code stream from the main control end of the target device, it is determined that the cause of the zero code stream abnormality is the abnormality of the main control end.

[0067] In an exemplary embodiment, the above-mentioned device is also used to perform a reset operation on the target encoding module when it is determined that the cause of the zero code stream abnormality is the abnormality of the master control end.

[0068] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0069] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0070] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0071] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0072] In an exemplary embodiment, the electronic device 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.

[0073] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0074] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method described in each embodiment of the present application when executed by a processor.

[0075] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for determining the cause of a zero bitstream anomaly, characterized in that: include: In the case where a zero bitstream exception occurs on a target device, determining the exception type of the zero bitstream exception according to whether a target application can obtain a target bitstream from the target device; The reason why the zero bitstream exception occurs in the target device is determined according to the exception type.

2. The method according to claim 1, characterized in that Determining the exception type of the zero bitstream exception according to whether the target application can obtain the target bitstream from the target device includes: In the case that the target application cannot obtain the target code stream from the main control terminal of the target device, determining the exception type of the zero code stream exception according to the display screen of the target device; When the target application obtains the target code stream from the main control end and the target code stream is not stored in the hard disk, the zero code stream exception is determined as a first exception type.

3. The method according to claim 2, characterized in that In the case that the target application cannot obtain the target code stream from the main control terminal of the target device, determining the exception type of the zero code stream exception according to the display screen of the target device includes: When the target application cannot obtain the target code stream from the master control end, and the display screen of the target device displays an abnormal picture of the target code stream, determining the zero code stream abnormality as a second abnormality type; When the target application cannot obtain the target code stream from the master control end, and the display screen of the target device normally displays the screen of the target code stream, the zero code stream exception is determined as a third exception type.

4. The method according to claim 3, characterized in that Determining a reason why the target device has a zero bitstream exception according to the exception type includes: In the case of the first abnormality type, determining that the cause of the zero bitstream abnormality is the hard disk abnormality; In the case of the second abnormality type, determining that the cause of the zero code stream abnormality is that the target chip is abnormal, or the main control terminal is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal; In case of the third abnormality type, it is determined that the cause of the zero code stream abnormality is the abnormality of the master control end.

5. The method according to claim 4, characterized in that In the case of the second abnormality type, determining that the cause of the zero code stream abnormality is that the target chip is abnormal, or the main control terminal is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal, includes: In the case of the second abnormal type, a reset operation is performed on a target acquisition channel and a target output channel of the target chip, wherein the target chip includes a plurality of acquisition channels and a plurality of output channels, the acquisition channels and the output channels allow free binding, the target acquisition channel is used to obtain target video data from the target analog camera, the target chip is used to perform digital-to-analog conversion on the target video data, the target output channel is used to transmit the target video data after the digital-to-analog conversion to the main control end, and the target encoding module of the main control end is used to encode the target video data after the digital-to-analog conversion to obtain the target code stream; After performing a reset operation on the target acquisition channel and the target output channel of the target chip, if the target application still cannot obtain the target code stream from the main control end, it is determined that the cause of the zero code stream abnormality is that the target chip is abnormal, or the main control end is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal.

6. The method according to claim 5, characterized in that After performing a reset operation on a target acquisition channel and a target output channel of the target chip, if the target application still cannot obtain the target code stream from the master control end, determining that the cause of the zero code stream abnormality is that the target chip is abnormal, or the master control end is abnormal, or the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal, includes: Determine whether the code streams of other output channels of the target chip are all abnormal, and if so, determine that the cause of the zero code stream abnormality is that the target chip is abnormal; If not, determining a normal output channel among the multiple output channels included in the target chip as the first output channel; After the target acquisition channel is bound to the first output channel, if the target application obtains the target code stream from the master control end, it is determined that the cause of the zero code stream abnormality is that the target analog camera is abnormal, or the coaxial cable between the target analog camera and the target device is abnormal; If the target application still cannot obtain the target code stream from the main control end of the target device, it is determined that the cause of the zero code stream abnormality is that the main control end is abnormal.

7. The method according to any one of claims 4 to 6, characterized in that The method further comprises: When it is determined that the cause of the zero code stream abnormality is the abnormality of the master control end, the target encoding module is reset.

8. A device for determining the cause of a zero bitstream anomaly, characterized in that: include: A first determination module is used to determine the exception type of the zero bitstream exception according to whether the target application can obtain the target bitstream from the target device when the zero bitstream exception occurs in the target device; The second determining module is used to determine the reason why the zero bitstream exception occurs in the target device according to the exception type.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.