CN113873342A - Video transmission method, video transmission device, electronic equipment and computer-readable storage medium - Google Patents

Video transmission method, video transmission device, electronic equipment and computer-readable storage medium Download PDF

Info

Publication number
CN113873342A
CN113873342A CN202110726816.2A CN202110726816A CN113873342A CN 113873342 A CN113873342 A CN 113873342A CN 202110726816 A CN202110726816 A CN 202110726816A CN 113873342 A CN113873342 A CN 113873342A
Authority
CN
China
Prior art keywords
network mode
video data
code stream
server
monitoring
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
CN202110726816.2A
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 CN202110726816.2A priority Critical patent/CN113873342A/en
Publication of CN113873342A publication Critical patent/CN113873342A/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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video transmission method, a video transmission device, electronic equipment and a computer readable storage medium, wherein the video transmission method comprises the following steps: the method comprises the steps that monitoring equipment collects current video data in real time and detects the current video data to judge whether a preset event occurs or not; responding to a preset event, and detecting a first network mode currently supported by the monitoring equipment; and sending the current video data to a server by using a first code stream transmitted by the video data matched with the first network mode. Therefore, the smoothness of the code stream can be improved, and the video playing pause phenomenon of the monitoring platform is reduced.

Description

Video transmission method, video transmission device, electronic equipment and computer-readable storage medium
Technical Field
The present invention relates to the field of video monitoring technologies, and in particular, to a video transmission method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
Cellular 5G networks have become increasingly commercialized, and more devices integrate cellular 5G modules through which data transmission is accomplished efficiently at ultra-high bandwidth. The 5G monitoring equipment also applies the honeycomb 5G technology, transmits the collected video data to the monitoring platform in real time, and realizes remote, high-definition and real-time viewing of the monitoring data. Currently, cellular 5G networks support traditional voice intercom functionality in addition to wireless data transmission. When the monitoring equipment is carrying out high definition data transmission, if equipment has triggered long-range pronunciation and talkbacks, and can not use VONR or VOLTE function because of module ability or environmental reason, monitoring equipment can fall back to 4G LTE, even 2G GSM mode from original 5G NR mode, accomplishes the voice conversation. Since the monitoring device is in a lower network mode during this period, the uplink bandwidth of the network will be greatly reduced, which directly results in video transmission jam and unsmooth picture during this period.
Disclosure of Invention
The invention provides a video transmission method, a video transmission device, electronic equipment and a computer readable storage medium. The video transmission device can solve the problems of unsmooth video transmission and unsmooth pictures.
In order to solve the above technical problems, a first technical solution provided by the present invention is: there is provided a video transmission method including: the method comprises the steps that monitoring equipment collects current video data in real time and detects the current video data to judge whether a preset event occurs or not; responding to a preset event, and detecting a first network mode currently supported by the monitoring equipment; and sending the current video data to a server by using a first code stream transmitted by the video data matched with the first network mode.
The step of detecting a first network mode currently supported by the monitoring device in response to the occurrence of a preset event includes: responding to the occurrence of a preset event, sending a communication request by the monitoring equipment to carry out voice communication with the monitoring platform; a first network mode supported by the monitoring device in a voice communication state is detected.
The method comprises the following steps of collecting current video data in real time by monitoring equipment, detecting the current video data, and judging whether a preset event occurs or not, wherein the steps comprise: responding to the situation that no preset event occurs, and acquiring a second network mode supported by the monitoring equipment; and sending the current video data to the server by using a second code stream transmitted by the video data matched with the second network mode.
The method comprises the following steps of sending current video data to a server by using a first code stream transmitted by video data matched with a first network mode, and then: ending the voice communication state of the monitoring equipment, and detecting a third network mode supported by the monitoring equipment in a non-voice communication state; if the third network mode is the same as the first network mode, sending the video data acquired again to the server by using the first code stream; and if the third network mode is different from the first network mode, sending the video data acquired again to the server by using a third code stream transmitted by the video data matched with the third network mode.
Wherein, the step of obtaining the second network mode supported by the monitoring device in response to the absence of the preset event includes: responding to the condition that a preset event does not occur, and detecting whether the monitoring equipment currently supports a 5G network mode or not so as to obtain a second network mode; the step of sending the current video data to the server by using the second code stream transmitted by the video data matched with the second network mode comprises the following steps: and responding to the support of the 5G network mode, and sending the current video data to a server by using a second code stream of video data transmission matched with the 5G network mode.
Wherein the step of detecting a first network mode currently supported by the monitoring device in response to the occurrence of a preset event includes: responding to a preset event, and detecting whether the monitoring equipment supports the 5G network mode currently; in response to that the 5G network mode is not supported, detecting whether the monitoring device supports a 4G network mode, a 3G network mode or a 2G network mode, and further determining the first network mode currently supported by the monitoring device; the step of sending the current video data to a server by using a first code stream transmitted by the video data matched with the first network mode comprises the following steps: and sending the current video data to a server by using a first code stream of video data transmission matched with the 4G network mode, the 3G network mode or the 2G network mode.
Wherein, the step of ending the voice communication state of the monitoring device and detecting the third network mode supported by the monitoring device in the non-voice communication state comprises: and ending the voice communication state of the monitoring equipment, detecting whether the monitoring equipment further supports a 4G network mode, a 3G network mode or a 2G network mode in a non-voice communication state, and further determining the third network mode.
Wherein, the method further comprises: receiving a parameter adjusting instruction from the server, and detecting a fourth network mode currently supported by the monitoring equipment based on the parameter adjusting instruction; and sending the currently acquired video data to the server by using a fourth code stream transmitted by the video data matched with the fourth network mode.
In order to solve the above technical problems, a second technical solution provided by the present invention is: there is provided a video transmission method including: the monitoring platform receives a first code stream; decoding the first code stream, and further playing the current video data; wherein the first code stream is matched with a first network mode currently supported by the monitoring equipment
Wherein, after decoding the first code stream and further playing the current video data, the method further comprises: sending a parameter adjusting instruction so that the monitoring equipment detects a fourth network mode currently supported by the monitoring equipment based on the parameter adjusting instruction; receiving the fourth code stream, and decoding the fourth code stream to play the currently acquired video data; and matching the fourth code stream with a fourth network mode currently supported by the monitoring equipment.
Wherein the step of sending a parameter adjustment instruction comprises: and detecting the picture quality of the video currently played by the monitoring platform, and sending the parameter adjusting instruction when the picture quality is less than a preset value.
The step of detecting the picture quality of the video currently played by the monitoring platform and sending the parameter adjusting instruction when the picture quality is less than a preset value comprises the following steps: and if the currently played video is subjected to any one of pause, flicker and blur, sending the parameter adjusting instruction.
In order to solve the above technical problems, a third technical solution provided by the present invention is: there is provided a video transmission apparatus including: the first detection module is used for acquiring current video data in real time by the monitoring equipment and detecting the current video data so as to judge whether a preset event occurs or not; the second detection module is used for responding to the occurrence of a preset event and detecting a first network mode currently supported by the monitoring equipment; and the sending module is used for sending the current video data to a server by using a first code stream transmitted by the video data matched with the first network mode.
In order to solve the above technical problems, a fourth technical solution provided by the present invention is: there is provided a video transmission apparatus including: the receiving module is used for receiving the first code stream; the decoding module is used for decoding the first code stream so as to play the current video data; and the first code stream is matched with a first network mode currently supported by the monitoring equipment.
In order to solve the above technical problems, a fifth technical solution provided by the present invention is: provided is an electronic device including: a memory storing program instructions and a processor retrieving the program instructions from the memory to perform any of the video transmission methods described above.
In order to solve the above technical problems, a sixth technical solution provided by the present invention is: there is provided a computer readable storage medium storing a program file executable to implement the video transmission method of any one of the above.
The video transmission method provided by the invention has the beneficial effects that the method is different from the situation in the prior art, and can be used for sending the current video data to the server based on the first code stream of the video data transmission matched with the network mode currently supported by the monitoring equipment when a preset event occurs. Therefore, the smoothness of the code stream can be improved, and the video playing pause phenomenon of the monitoring platform is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
fig. 1 is a flowchart illustrating a video transmission method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a video transmission method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a video transmission method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating a video transmission method according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fifth embodiment of a video transmission method according to the present invention;
FIG. 6 is a flowchart illustrating a sixth embodiment of a video transmission method according to the present invention;
FIG. 7 is a schematic structural diagram of a video transmission apparatus according to a first embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a video transmission apparatus according to a second embodiment of the present invention;
FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
FIG. 10 is a structural diagram of an embodiment of a computer-readable storage medium according to the invention.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it should be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a schematic flow chart of a video transmission method according to a first embodiment of the present invention specifically includes:
step S11: the monitoring equipment collects current video data in real time and detects the current video data to judge whether a preset event occurs.
In order to ensure the safety of citizens, monitoring equipment is arranged in each area to monitor the safety condition of each area. The monitoring equipment records videos of the areas, encodes the recorded videos and uploads the encoded videos to the server in a code stream mode, and the server sends the videos to each monitoring platform, such as a safety monitoring system. Therefore, the condition of the area in the safety control center can be informed in time.
In one embodiment, the monitoring device collects current video data in real time and detects the current video data to determine whether a preset event occurs. For example, the monitoring device detects currently collected video data to determine whether unsafe accidents such as fire, robbery, collapse, etc. occur. Specifically, the monitoring equipment performs feature extraction, feature identification and other processing on image frames in the collected video data, and further determines whether the images have fire, robbery, collapse and other preset events, and if yes, determines that the preset events occur.
Step S12: in response to the occurrence of a preset event, a first network mode currently supported by the monitoring device is detected.
When a preset event occurs, a first network mode currently supported by the monitoring equipment is detected. Specifically, the 5G monitoring device is taken as an example for description, when the 5G monitoring device is installed, internal software of the 5G monitoring device limits the video transmission, and the video is encoded by using the encoding parameters corresponding to the 5G NR mode, so as to obtain a code stream. However, the cellular 5G network may be unstable, for example, the network mode may be changed from the 5G NR mode to the 4G TEL mode, and at this time, the video is still encoded by the encoding parameter corresponding to the 5G NR mode, which may cause the smoothness of the code stream to be insufficient, so that the video sent by the server to the monitoring platform end is blocked. In order to reduce this problem, in the method of this embodiment, when a preset event is detected, a first network mode currently supported by the monitoring device is detected, and the current video transmission data is sent to the server by using a first code stream of video data transmission matched with the first network mode currently supported by the monitoring device. Thereby alleviating the video seizure phenomenon.
Step S13: and sending the current video data to a server by using a first code stream transmitted by the video data matched with the first network mode.
Specifically, the current video transmission data is sent to the server by using a first code stream of video data transmission matched with a first network mode currently supported by the monitoring equipment.
For example, if the first network mode supported by the current monitoring device is the 5G NR mode, the current video transmission data is sent to the server by using the first code stream of the video data transmission matched with the 5G NR mode. At this time, the first code stream sent by the monitoring device to the server may be an ultra high definition code stream, and further, the video data sent by the server to the monitoring platform is ultra high definition video image quality.
And if the first network mode supported by the current monitoring equipment is the 4G TEL mode, transmitting the current video transmission data to the server by using the first code stream of the video data transmission matched with the 4G TEL mode. At this time, the first code stream sent by the monitoring device to the server may be a high definition code stream, and further, the video data sent by the server to the monitoring platform is high definition video image quality.
And if the first network mode supported by the current monitoring equipment is the 2G GSM mode, transmitting the current video transmission data to the server by using the first code stream of the video data transmission matched with the 2G GSM mode. At this time, the first code stream sent by the monitoring device to the server may be a standard definition code stream, and further, the video data sent by the server to the monitoring platform is standard definition video image quality.
The monitoring equipment sends the first code stream to the server, and then sends the current video data to the server, and the server can further send the current video data to the monitoring platform, so that the monitoring platform can play the picture of the monitoring area without blocking, and the condition of the preset event of the monitoring area can be accurately known.
The method of the embodiment can select the first code stream matched with the monitoring equipment for video data transmission according to the network mode supported by the monitoring equipment, and send the current video data to the server by using the first code stream. Therefore, the fluency of the code stream can be improved, the fluency of the video pictures acquired by the monitoring platform can be further improved, and the video pictures are prevented from being jammed.
Fig. 2 is a schematic flow chart of a video transmission method according to a second embodiment of the present invention. Wherein steps S21 and S24 are the same as steps S11 and S13 in the first embodiment shown in fig. 1. The difference is that the present embodiment further includes, after step S21 and before step S24:
step S22: in response to the occurrence of a preset event, the monitoring device issues a communication request to perform voice communication with the monitoring platform.
At present, monitoring equipment with a voice call function is installed and used in many areas, the equipment can trigger the voice call function while transmitting video data, and the voice call function can affect video transmission.
Specifically, a monitoring apparatus having a voice call function is taken as an example for explanation. In this embodiment, when detecting that a preset event occurs in the current video data, the monitoring device triggers a voice call function, sends a communication request to the server, and further enables the server to forward the communication request to the monitoring platform, so that the specific condition of the preset event in the area is reflected to the monitoring platform in a voice mode in combination with a video mode.
Step S23: a first network mode supported by the monitoring device in a voice communication state is detected.
In this embodiment, when a preset event is detected, a voice communication function of the monitoring device is triggered, and a first network mode supported by the monitoring device is detected when the monitoring device is in a voice communication state. Specifically, for example, when the monitoring device is not in the communication state, and it is registered in the 5G NR mode, the current video data may be sent to the server by using the first code stream of the video data transmission matched with the 5G NR mode. When the monitoring device is in a voice communication state, the monitoring device falls back from the 5G NR mode to the 4G LTE mode, and at the moment, the current video data is sent to the server by using a first code stream of video data transmission matched with the 4G LTE mode.
By means of the method, when a preset event occurs, the communication function of the monitoring equipment can be triggered, the network mode of the monitoring equipment under the communication function is detected, and video data transmission is carried out by means of the code stream matched with the network mode. Therefore, the fluency of the code stream can be ensured when the monitoring equipment is in a communication state, the fluency of the video pictures acquired by the monitoring platform is further improved, and the video picture blockage is reduced.
In another embodiment, when the monitoring device is installed, the function of the monitoring device may be initialized, so as to determine the module, the SIM card, and the network mode supported by the operator environment of the monitoring device. In an embodiment, a monitoring device may be used to dial a public telephone, for example, 10086, 10010, and the like, during a call, if the monitoring device is still registered in the 5G NR mode, it indicates that the monitoring device supports the VONR network technology, and if the monitoring device falls back from the 5G NR mode to the 4G LTE, it indicates that the current system does not support the 5G VONR technology, and only supports the 4G LTE technology. That is to say, after the voice call function of the monitoring device is triggered, the video data needs to be encoded by using the encoding parameters corresponding to the 4G LTE technology. By the method, when the preset event occurs, the current video data can be sent to the server by directly utilizing the first code stream of the video data transmission matched with the 4G LTE mode. In another embodiment, it may further be detected whether the network mode supported by the monitoring device falls back from 4G to a 3G or 2G network mode in the communication state, and if so, the current video data is sent to the server by using the first code stream of the video data transmission matched with the 3G or 2G network mode.
Further, in an embodiment, the network mode supported by the monitoring device may be detected at intervals of a preset time period, and then the corresponding video data transmission code stream is selected according to the detection result to transmit the video data. Therefore, the code stream fluency of the monitoring equipment can be ensured in real time, the fluency of the video pictures acquired by the monitoring platform is further improved, and the video picture blockage is reduced.
Further, after the voice communication state of the monitoring device is finished, the third network mode supported by the monitoring device in the non-voice communication state is detected again. And if the third network mode is the same as the first network mode in the voice communication state, continuously utilizing the first code stream (the first code stream is a video transmission code stream matched with the first network mode) to send the video data acquired again to the server. And if the third network mode is different from the first network mode in the communication state, sending the video data acquired again to the server by using a third code stream transmitted by the video data matched with the third network mode.
Fig. 3 is a flowchart illustrating a video transmission method according to a third embodiment of the present invention. Wherein steps S31, S32, and S33 are the same as steps S11, S12, and S13 in the first embodiment shown in fig. 1, except that the embodiment further includes, after step S33:
step S34: and responding to the condition that the preset event does not occur, and acquiring a second network mode supported by the monitoring equipment.
Specifically, if the preset event does not occur, the second network mode supported by the monitoring device may be acquired in a preset time period. It is assumed that the network modes supported by the monitoring device can be detected once every 3 minutes. For example, in 8: 00, detecting the network mode supported by the monitoring equipment to obtain a second network mode supported by the monitoring equipment at the moment; in the following step 8: 03 detects the network mode supported by the monitoring device, and obtains a second network mode supported by the monitoring device at this time.
Step S35: and sending the current video data to the server by using a second code stream transmitted by the video data matched with the second network mode.
Specifically, the current video data is sent to the server by using a second code stream transmitted by the video data matched with the second network mode.
In the method of this embodiment, when a preset event does not occur, the network mode supported by the monitoring device is detected at intervals of a preset time period. The method and the device can ensure that the monitoring equipment can transmit the collected video data by the code stream suitable for the network mode in real time, and further ensure that the code stream transmitted by the monitoring equipment in real time is smooth. The video pause played by the monitoring platform can be further reduced.
Fig. 4 is a flowchart illustrating a video transmission method according to a fourth embodiment of the present invention. In the present embodiment, steps S41, S42, S43, and S44 are the same as steps S21, S22, S23, and S24 shown in fig. 2, except that the present embodiment further includes, after step S44:
step S45: and receiving a parameter adjusting instruction from the server, and detecting a fourth network mode currently supported by the monitoring equipment based on the parameter adjusting instruction.
In this embodiment, after a preset event occurs and the monitoring device is in a voice communication state and establishes a voice communication connection with the monitoring platform, if video data received by the monitoring platform is blocked or has insufficient definition, a parameter adjustment instruction is further sent to the server, the server forwards the parameter adjustment instruction to the monitoring device, and the monitoring device detects a fourth network mode currently supported by the monitoring device based on the parameter adjustment instruction.
Step S46: and sending the currently acquired video data to the server by using a fourth code stream transmitted by the video data matched with the fourth network mode.
And the monitoring equipment transmits the currently acquired video data to the server by using a fourth code stream transmitted by the video data matched with the fourth network mode.
This example is illustrated by: in the following step 8: and 00, when the monitoring equipment detects a preset event, a communication request is sent to establish voice communication connection with the monitoring platform, a first network mode supported currently is detected in a voice communication state, the first code stream of video data transmission matched with the first network mode is utilized, the currently acquired video data is sent to a server, and the server sends the video data to the monitoring platform for video playing. In the following step 8: 05, the monitoring platform finds that the video is blocked, sends a parameter adjusting instruction to the server, the server forwards the parameter adjusting instruction to the monitoring equipment, the monitoring equipment detects a currently supported fourth network mode again based on the parameter adjusting instruction, and sends the currently acquired video data to the server by using a fourth code stream of video data transmission matched with the fourth network mode, and then the video data is displayed on the monitoring platform. In another embodiment, it may be further detected whether the fourth network mode is the same as the first network mode, and if so, it indicates that the video blocking phenomenon is not the network mode, and at this time, the parameter of the code stream may be reduced. For example, if the high definition code stream is obtained by encoding in the first network mode, the standard definition code stream can be obtained by encoding, so as to solve the video blocking phenomenon.
Through the mode of the embodiment, a user can conduct on-site command on-site workers through the monitoring platform and the monitoring equipment.
In an embodiment of the present application, it is assumed that the monitoring device is registered to the 5G network mode at installation. When a preset event does not occur, continuously detecting whether the monitoring equipment supports the 5G network mode or not so as to obtain a second network mode; and if the monitoring equipment currently supports the 5G network mode, the second network mode is the 5G network mode, and the current video data is sent to the server by using a second code stream transmitted by the video data matched with the 5G network mode. When a preset event occurs, detecting whether the monitoring equipment supports the 5G network mode or not, or whether the monitoring equipment establishes voice communication with the monitoring platform or not, and detecting whether the monitoring equipment supports the 5G network mode or not in the voice communication state. And if the 5G network mode is supported, the first network mode is the 5G network mode, and the current video data is sent to the server by using a first code stream transmitted by the video data matched with the 5G network mode. If the monitoring device does not support the 5G network mode, further detecting whether the monitoring device supports the 4G network mode, the 3G network mode or the 2G network mode, and further determining a first network mode currently supported by the monitoring device. When the monitoring device supports the 4G network mode, the first network mode is the 4G network mode, when the monitoring device supports the 3G network mode, the first network mode is the 3G network mode, and when the monitoring device supports the 2G network mode, the first network mode is the 2G network mode. And sending the current video data to a server by using a first code stream of video data transmission matched with the 4G network mode, the 3G network mode or the 2G network mode. Further, the voice communication state of the monitoring device is ended, whether the monitoring device further supports the 4G network mode, the 3G network mode or the 2G network mode in the non-communication state is detected, and then the third network mode is determined. And judging whether the third network mode is the same as the first network mode, if so, encoding the video data acquired again by using the first code stream. And if not, sending the video data acquired again to the server by using a third code stream transmitted by the video data matched with the third network mode.
It should be noted that, in the present application, the first code stream, the second code stream, the third code stream, and the fourth code stream all represent the definition of video data transmission, such as high definition, standard definition, and the like.
Fig. 5 is a flowchart illustrating a video transmission method according to a fifth embodiment of the present invention. The method specifically comprises the following steps:
step S51: and the monitoring platform receives the first code stream.
The monitoring equipment transmits the current video data to the server by using a first code stream matched with the video data transmission of the currently supported first network mode, the server sends the first code stream to the monitoring platform, and the monitoring platform receives the first code stream.
Step S52: and decoding the first code stream, and further playing the current video data.
And the monitoring platform decodes the first code stream so as to play the current video data.
In this embodiment, the first code stream matches the first network mode currently supported by the monitoring device, and compared with the situation in the prior art, the fluency of the code stream is improved, and further, the pause phenomenon of the current video data played by the monitoring platform is reduced.
Fig. 6 is a flowchart illustrating a video transmission method according to a sixth embodiment of the present invention. Step S61 and step S62 are the same as step S51 and step S52 in the fifth embodiment shown in fig. 5, except that the embodiment further includes, after step S62:
step S63: and sending a parameter adjusting instruction so that the monitoring equipment detects the fourth network mode currently supported by the monitoring equipment based on the parameter adjusting instruction.
Specifically, the picture quality of the video currently played by the monitoring platform is detected, when the picture quality is smaller than a preset value, the parameter adjusting instruction is sent to the server, and the server sends the parameter adjusting direct current to the monitoring equipment, so that the monitoring equipment detects a fourth network mode currently supported by the monitoring equipment based on the parameter adjusting instruction.
Specifically, if the video currently played by the monitoring platform is any one of jammed, flickering and fuzzy, the parameter adjusting instruction is sent to the server, and the server issues the parameter adjusting direct current to the monitoring equipment, so that the monitoring equipment detects a fourth network mode currently supported by the monitoring equipment based on the parameter adjusting instruction.
Step S64: and receiving the fourth code stream, and decoding the fourth code stream to play the currently acquired video data.
Specifically, the monitoring device sends the currently acquired video data to the server by using a fourth code stream transmitted by the video data matched with a currently supported fourth network mode, the server issues the fourth code stream to the monitoring platform, and the monitoring platform receives and decodes the fourth code stream to play the currently acquired video data.
The method can improve the fluency of the code stream in real time, and further reduces the pause phenomenon of the current video data played by the monitoring platform.
Fig. 7 is a schematic structural diagram of a video transmission device according to a first embodiment of the invention. The video transmission apparatus of this embodiment is a monitoring device, and specifically includes: a first detection module 71, a second detection module 72 and a sending module 73.
The first detection module 71 is configured to collect current video data in real time by a monitoring device, and detect the current video data to determine whether a preset event occurs.
The second detecting module 72 is configured to detect a first network mode currently supported by the monitoring device in response to occurrence of a preset event. Specifically, when a preset event occurs, the second detection module 72 detects a first network mode currently supported by the monitoring device. Specifically, the method comprises the following steps. The 5G monitoring device is taken as an example for explanation, when the 5G monitoring device is installed, its internal software limits that when the video is transmitted, the video is encoded by using the encoding parameters corresponding to the 5G NR mode, so as to obtain a code stream. However, the cellular 5G network may be unstable, for example, the mode may be changed from the 5G NR mode to the 4G TEL mode, and at this time, the video is still encoded by the encoding parameter corresponding to the 5G NR mode, which may cause the smoothness of the code stream to be insufficient, so that the video sent by the server to the monitoring platform end is jammed. In order to reduce this problem, in the method of this embodiment, when detecting that a preset event occurs, a first network mode currently supported by the monitoring device is detected, and the current video transmission data is sent to the server by using a first code stream of video data transmission matched with the first network mode currently supported by the monitoring device. Thereby alleviating the video seizure phenomenon. In an embodiment, the second detecting module 72 is further configured to issue a communication request to perform voice communication with the monitoring platform in response to occurrence of a preset event, and detect a first network mode supported by the monitoring device in a voice communication state. At present, monitoring equipment with a voice call function is installed and used in many areas, the equipment can trigger the voice call function while transmitting video data, and the voice call function can affect video transmission.
Specifically, a monitoring apparatus having a voice call function is taken as an example for explanation. In this embodiment, when the second detection module 72 detects that the preset event occurs in the current video data, the monitoring device triggers the voice call function to send a communication request to the server, so that the server transfers the communication request to the monitoring platform, and the specific condition of the preset event in the area is reflected to the monitoring platform in a voice manner in combination with a video manner. In this embodiment, when a preset event is detected, a voice communication function of the monitoring device is triggered, and a first network mode supported by the monitoring device is detected when the monitoring device is in a voice communication state. Specifically, for example, when the monitoring device is not in the communication state, and is registered in the 5G NR mode, the current video data may be sent to the server by using the first code stream of the video data transmission matched with the 5G NR mode. When the monitoring device is in a voice communication state, the monitoring device falls back from the 5G NR mode to the 4G LTE mode, and at the moment, the current video data is sent to the server by using a first code stream of video data transmission matched with the 4G LTE mode.
By the device of the embodiment, when a preset event occurs, the communication function of the monitoring equipment is triggered, the network mode of the monitoring equipment under the communication function is detected, and video data transmission is performed by using the code stream matched with the network mode. Therefore, the fluency of the code stream can be ensured when the monitoring equipment is in a communication state, the fluency of the video pictures acquired by the monitoring platform is further improved, and the video picture blockage is reduced.
In an embodiment, the second detecting module 72 is further configured to acquire a second network mode supported by the monitoring device in response to that the preset event does not occur.
In an embodiment, the second detecting module 72 is further configured to detect, after the voice communication state of the monitoring device is ended, a third network mode supported by the monitoring device in the non-voice communication state again.
In an embodiment, the second detecting module 72 is further configured to receive a parameter adjustment instruction from the server, and detect a fourth network mode currently supported by the monitoring device based on the parameter adjustment instruction.
The sending module 73 is configured to send the current video data to the server by using the first code stream of the video data transmission matched with the first network mode.
In an embodiment, the sending module 73 is further configured to send the current video data to the server by using a second code stream of the video data transmission matched with the second network mode.
In an embodiment, the sending module 73 is further configured to continue to send the video data collected again to the server by using the first code stream when the third network mode is the same as the first network mode in the voice communication state. And when the third network mode is different from the first network mode in the communication state, sending the video data acquired again to the server by using a third code stream transmitted by the video data matched with the third network mode.
In an embodiment, the sending module 73 is further configured to send the currently acquired video data to the server by using a fourth code stream of the video data transmission matched with the fourth network mode.
Referring to fig. 8, a schematic structural diagram of a video transmission device according to a second embodiment of the present invention is shown, where the video transmission device of this embodiment is a monitoring platform, and specifically includes: a receiving module 81 and a decoding module 82.
The receiving module 81 is configured to receive a first code stream. Specifically, the monitoring device sends the current video data to the server by using a first code stream matched with a first network mode currently supported, the server sends the first code stream to the monitoring platform, and the monitoring platform receives the first code stream. Compared with the prior art, the first code stream is matched with the first network mode currently supported by the monitoring equipment, so that the fluency of the code stream is improved, and further, the pause phenomenon of the current video data played by the monitoring platform is reduced.
The decoding module 82 is configured to decode the first code stream, so as to play the current video data.
In an embodiment, the decoding module 82 is further configured to send a parameter adjustment instruction, so that the monitoring device detects a fourth network mode currently supported by the monitoring device based on the parameter adjustment instruction, receives the fourth code stream, and decodes the fourth code stream to play the currently acquired video data.
Specifically, when the video is blocked or the video is unclear, the monitoring platform sends a parameter adjusting instruction to the server, and the server sends the parameter adjusting instruction to the monitoring device, so that the monitoring device detects the fourth network mode currently supported by the monitoring device based on the parameter adjusting instruction. The monitoring equipment transmits the currently acquired video data to the server by using a fourth code stream transmitted by the video data matched with a currently supported fourth network mode, the server transmits the fourth code stream to the monitoring platform, and the monitoring platform receives and decodes the fourth code stream to play the currently acquired video data.
The device can improve the fluency of the code stream in real time, and further reduces the pause phenomenon of the current video data played by the monitoring platform.
Referring to fig. 9, a schematic structural diagram of an electronic device according to an embodiment of the invention is shown, where the electronic device includes a memory 202 and a processor 201 that are connected to each other.
The memory 202 is used to store program instructions implementing the methods of the apparatus of any of the above.
The processor 201 is used to execute program instructions stored by the memory 202.
The processor 201 may also be referred to as a Central Processing Unit (CPU). The processor 201 may be an integrated circuit chip having signal processing capabilities. The processor 201 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 202 may be a memory bank, a TF card, etc., and may store all information in the electronic device of the device, including input raw data, computer programs, intermediate operation results, and final operation results. It stores and retrieves information based on the location specified by the controller. With the memory, the electronic device can only have the memory function to ensure the normal operation. The memories of electronic devices are classified into a main memory (internal memory) and an auxiliary memory (external memory) according to their purposes, and also into an external memory and an internal memory. The external memory is usually a magnetic medium, an optical disk, or the like, and can store information for a long period of time. The memory refers to a storage component on the main board, which is used for storing data and programs currently being executed, but is only used for temporarily storing the programs and the data, and the data is lost when the power is turned off or the power is cut off.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a system server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application.
Please refer to fig. 10, which is a schematic structural diagram of a computer-readable storage medium according to the present invention. The storage medium of the present application stores a program file 203 capable of implementing all the methods described above, wherein the program file 203 may be stored in the storage medium in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. The aforementioned storage device includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or terminal devices, such as a computer, a server, a mobile phone, and a tablet.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures or equivalent flow transformations that are made by using the contents of the present specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (16)

1. A video transmission method, comprising:
the method comprises the steps that monitoring equipment collects current video data in real time and detects the current video data to judge whether a preset event occurs or not;
responding to a preset event, and detecting a first network mode currently supported by the monitoring equipment;
and sending the current video data to a server by using a first code stream transmitted by the video data matched with the first network mode.
2. The video transmission method according to claim 1, wherein the step of detecting the first network mode currently supported by the monitoring device in response to the occurrence of the preset event comprises:
responding to the preset event, the monitoring equipment sends a communication request to carry out voice communication with a monitoring platform;
detecting that the monitoring device is in the first network mode supported in a voice communication state.
3. The video transmission method according to claim 1, wherein the step of the monitoring device acquiring current video data in real time and detecting the current video data to determine whether a preset event occurs comprises:
responding to the situation that the preset event does not occur, and acquiring a second network mode supported by the monitoring equipment;
and sending the current video data to a server by using a second code stream transmitted by the video data matched with the second network mode.
4. The video transmission method according to claim 2, wherein the step of sending the current video data to a server using the first code stream transmitted by using the video data matched with the first network mode further comprises:
ending the voice communication state of the monitoring equipment, and detecting a third network mode supported by the monitoring equipment in a non-voice communication state;
if the third network mode is the same as the first network mode, sending the video data acquired again to a server by using the first code stream;
and if the third network mode is different from the first network mode, sending the video data acquired again to a server by using a third code stream transmitted by the video data matched with the third network mode.
5. The video transmission method according to claim 3, wherein the step of acquiring the second network mode supported by the monitoring device in response to the absence of the preset event comprises:
responding to the condition that the preset event does not occur, and detecting whether the monitoring equipment currently supports a 5G network mode or not so as to obtain a second network mode;
the step of sending the current video data to a server by using a second code stream transmitted by the video data matched with the second network mode comprises the following steps:
and responding to the support of the 5G network mode, and sending the current video data to a server by using a second code stream of video data transmission matched with the 5G network mode.
6. The video transmission method according to claim 5, wherein the step of detecting the first network mode currently supported by the monitoring device in response to the occurrence of the preset event comprises:
responding to the occurrence of the preset event, and detecting whether the monitoring equipment currently supports the 5G network mode;
in response to that the 5G network mode is not supported, detecting whether the monitoring device supports a 4G network mode, a 3G network mode or a 2G network mode, and further determining the first network mode currently supported by the monitoring device;
the step of sending the current video data to a server by using a first code stream transmitted by the video data matched with the first network mode comprises the following steps:
and sending the current video data to a server by using a first code stream of video data transmission matched with the 4G network mode, the 3G network mode or the 2G network mode.
7. The video transmission method according to claim 5, wherein the step of ending the voice communication state of the monitoring device and detecting the third network mode supported by the monitoring device in the non-voice communication state comprises:
and ending the voice communication state of the monitoring equipment, detecting whether the monitoring equipment further supports a 4G network mode, a 3G network mode or a 2G network mode in a non-voice communication state, and further determining the third network mode.
8. The video transmission method according to claim 1, wherein the method further comprises:
receiving a parameter adjusting instruction from the server, and detecting a fourth network mode currently supported by the monitoring equipment based on the parameter adjusting instruction;
and sending the currently acquired video data to a server by using a fourth code stream transmitted by the video data matched with the fourth network mode.
9. A video transmission method, comprising:
the monitoring platform receives a first code stream;
decoding the first code stream, and further playing current video data;
and the first code stream is matched with a first network mode currently supported by the monitoring equipment.
10. The video transmission method according to claim 9, wherein after the step of decoding the first bitstream to play the current video data, the method further comprises:
sending a parameter adjusting instruction to enable the monitoring equipment to detect a fourth network mode currently supported by the monitoring equipment based on the parameter adjusting instruction;
receiving a fourth code stream, and decoding the fourth code stream to play currently acquired video data;
and matching the fourth code stream with a fourth network mode currently supported by the monitoring equipment.
11. The video transmission method according to claim 10, wherein the step of sending the parameter adjustment command includes:
and detecting the picture quality of the video currently played by the monitoring platform, and sending the parameter adjusting instruction when the picture quality is less than a preset value.
12. The video transmission method according to claim 11, wherein the step of detecting the picture quality of the video currently played by the monitoring platform and sending the parameter adjustment instruction when the picture quality is less than a preset value comprises:
and if the currently played video is subjected to any one of pause, flicker and blur, sending the parameter adjusting instruction.
13. A video transmission apparatus, comprising:
the first detection module is used for collecting current video data in real time by monitoring equipment and detecting the current video data so as to judge whether a preset event occurs or not;
the second detection module is used for responding to a preset event and detecting a first network mode currently supported by the monitoring equipment;
and the sending module is used for sending the current video data to a server by using a first code stream transmitted by the video data matched with the first network mode.
14. A video transmission apparatus, comprising:
the receiving module is used for receiving the first code stream;
the decoding module is used for decoding the first code stream so as to play the current video data;
and the first code stream is matched with a first network mode currently supported by the monitoring equipment.
15. An electronic device, comprising: a memory storing program instructions and a processor retrieving the program instructions from the memory to perform the video transmission method of any of claims 1-8 or 9-12.
16. A computer-readable storage medium, characterized in that a program file is stored, which can be executed to implement the video transmission method according to any one of claims 1-8 or 9-12.
CN202110726816.2A 2021-06-29 2021-06-29 Video transmission method, video transmission device, electronic equipment and computer-readable storage medium Pending CN113873342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110726816.2A CN113873342A (en) 2021-06-29 2021-06-29 Video transmission method, video transmission device, electronic equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110726816.2A CN113873342A (en) 2021-06-29 2021-06-29 Video transmission method, video transmission device, electronic equipment and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN113873342A true CN113873342A (en) 2021-12-31

Family

ID=78990092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110726816.2A Pending CN113873342A (en) 2021-06-29 2021-06-29 Video transmission method, video transmission device, electronic equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN113873342A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928765A (en) * 2022-05-05 2022-08-19 维沃移动通信有限公司 Control method, control device, electronic equipment and readable storage medium
CN115278376A (en) * 2022-05-25 2022-11-01 西安万像电子科技有限公司 Audio and video data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040674A (en) * 2018-07-23 2018-12-18 华为技术有限公司 A kind of data transmission method and device
CN111132214A (en) * 2019-12-18 2020-05-08 东莞宇龙通信科技有限公司 Voice call method, device, electronic equipment and medium
CN111970484A (en) * 2020-07-14 2020-11-20 中通服网盈科技有限公司 Operation and maintenance system and operation and maintenance method suitable for video monitoring equipment
CN112188576A (en) * 2020-09-22 2021-01-05 展讯通信(上海)有限公司 Power consumption optimization method, device, equipment and medium for 5G terminal during service concurrence

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040674A (en) * 2018-07-23 2018-12-18 华为技术有限公司 A kind of data transmission method and device
CN111132214A (en) * 2019-12-18 2020-05-08 东莞宇龙通信科技有限公司 Voice call method, device, electronic equipment and medium
CN111970484A (en) * 2020-07-14 2020-11-20 中通服网盈科技有限公司 Operation and maintenance system and operation and maintenance method suitable for video monitoring equipment
CN112188576A (en) * 2020-09-22 2021-01-05 展讯通信(上海)有限公司 Power consumption optimization method, device, equipment and medium for 5G terminal during service concurrence

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928765A (en) * 2022-05-05 2022-08-19 维沃移动通信有限公司 Control method, control device, electronic equipment and readable storage medium
CN115278376A (en) * 2022-05-25 2022-11-01 西安万像电子科技有限公司 Audio and video data transmission method and device
CN115278376B (en) * 2022-05-25 2024-03-22 西安万像电子科技有限公司 Audio and video data transmission method and device

Similar Documents

Publication Publication Date Title
US10728594B2 (en) Method and apparatus for transmitting data of mobile terminal
CN107277423B (en) Method and device for packet loss retransmission
US9788017B2 (en) Video analytics with pre-processing at the source end
CN113873342A (en) Video transmission method, video transmission device, electronic equipment and computer-readable storage medium
US20110026591A1 (en) System and method of compressing video content
CN110536168B (en) Video uploading method and device, electronic equipment and storage medium
EP2986020B1 (en) Method and apparatus for adjusting video quality based on network environment
US11184614B2 (en) Apparatus and method for processing image
CN113794903A (en) Video image processing method and device and server
JP6809114B2 (en) Information processing equipment, image processing system, program
JP2003163914A (en) Monitor system and picture transmission unit
CN112203126B (en) Screen projection method, screen projection device and storage medium
CN112543348A (en) Remote screen recording method, device, equipment and computer readable storage medium
CN111953980A (en) Video processing method and device
US10085050B2 (en) Method and apparatus for adjusting video quality based on network environment
CN107734278B (en) Video playback method and related device
KR20120058763A (en) Apparatus and method for transmitting video data in video device
US20220078456A1 (en) Method and apparatus for video transcoding
CN116962613A (en) Data transmission method and device, computer equipment and storage medium
CN117193685A (en) Screen projection data processing method, electronic equipment and storage medium
KR20020037116A (en) Remote sensing device and method using mobile telephone terminal
US9451288B2 (en) Inferred key frames for fast initiation of video coding sessions
WO2018123078A1 (en) Monitoring camera system
JP2001275105A (en) Image compression transmission system
KR100974444B1 (en) Observation Moving Picture Providing System, Server and Method for Admitting Multiple Access

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