CN105827633B - Video transmission method and device - Google Patents

Video transmission method and device Download PDF

Info

Publication number
CN105827633B
CN105827633B CN201610301211.8A CN201610301211A CN105827633B CN 105827633 B CN105827633 B CN 105827633B CN 201610301211 A CN201610301211 A CN 201610301211A CN 105827633 B CN105827633 B CN 105827633B
Authority
CN
China
Prior art keywords
video
channels
transmitted
channel
current
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.)
Active
Application number
CN201610301211.8A
Other languages
Chinese (zh)
Other versions
CN105827633A (en
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 CN201610301211.8A priority Critical patent/CN105827633B/en
Publication of CN105827633A publication Critical patent/CN105827633A/en
Application granted granted Critical
Publication of CN105827633B publication Critical patent/CN105827633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

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

Abstract

The invention discloses a video transmission method and a device, comprising the following steps: determining the total bandwidth of the current network and determining the code stream of the video transmitted by each current video channel; when the network bandwidth which is required to be occupied by the sum of the code streams of the videos transmitted by the video channels is larger than the total bandwidth of the current network, the videos transmitted by the video channels are combined according to a preset rule and then are transmitted from the video channels respectively. Therefore, by adopting the scheme, all video channels can be monitored under the condition of smooth playing under the condition of insufficient bandwidth, and the required video picture quality is also ensured while the video playing is smooth.

Description

Video transmission method and device
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a video transmission method and apparatus.
Background
When the existing monitoring equipment (for example, a DVR (Digital Video Recorder), an NVR (Network Video Recorder), etc.) performs multi-channel monitoring, each Video channel establishes a corresponding Network connection, and each Network connection is independent from each other and has an independent data link, a Network handle, and other resources. When a user needs to monitor a plurality of video channels simultaneously, the same number of network connections are correspondingly established. These network connections are able to meet functional requirements with a sufficient amount of network bandwidth. However, under the condition of insufficient bandwidth, each network connection occupies resources, and meanwhile, if the video resolution and the code stream are high, the network load pressure is high, the bandwidth is tight, and partial data loss occurs in video transmission, so that the phenomena of video blocking, mosaic and the like occur when a client displays the video. If normal transmission under the condition of insufficient bandwidth is ensured by frame loss (such as only transmitting I frames) or reducing the code stream, the picture quality is affected, and the video is not smooth. If the quality of the picture and the fluency of the video are to be ensured, the final solution is to reduce the monitoring of the channel number and reduce the size of the code stream in the network transmission, which can cause that some channels cannot be monitored in real time.
The defects of the prior art are as follows: in the case of insufficient bandwidth, if all video channels are monitored, the video playing is not smooth, and the video picture quality is affected.
Disclosure of Invention
The invention provides a video transmission method and a video transmission device, which are used for ensuring that all video channels can be monitored under the condition of smooth playing under the condition of insufficient bandwidth, and ensuring the required video picture quality while the video playing is smooth.
The embodiment of the invention provides a video transmission method, which comprises the following steps:
determining the total bandwidth of the current network and determining the code stream of the video transmitted by each current video channel;
when the network bandwidth which is required to be occupied by the sum of the code streams of the videos transmitted by the video channels is larger than the total bandwidth of the current network, the videos transmitted by the video channels are combined according to a preset rule and then are transmitted from the video channels respectively.
Preferably, the determination of whether the current network total bandwidth is larger than the network bandwidth that needs to be occupied by the sum of the code streams of the videos transmitted by the video channels is performed by determining whether the current network total bandwidth can guarantee the picture resolution of each video and/or whether the current network total bandwidth can guarantee the picture quality transmission of each video.
Preferably, the determination of the current network total bandwidth and the determination of the current video code stream transmitted by each video channel are performed when there is a video channel request for transmitting video.
Preferably, the videos transmitted by the video channels are combined according to a preset rule and then transmitted from the video channels, and the videos transmitted by the video channels are combined through a video splicing technology and then transmitted from the video channels.
Preferably, in the process of transmitting the video from each video channel after combining the videos transmitted by each video channel by the video splicing technology, transmitting the video from one video channel after combining the videos transmitted by a plurality of video channels includes:
determining each video channel which needs to be combined through a video splicing technology;
splicing the video pictures of the videos transmitted by the video channels to obtain a spliced video picture;
and transmitting the spliced video pictures in a video channel.
Preferably, the predetermined rule is predetermined according to a priority of each video channel.
An embodiment of the present invention provides a video transmission apparatus, including:
the determining module is used for determining the total bandwidth of the current network and determining the code stream of the video transmitted by each current video channel;
and the transmission module is used for combining the videos transmitted by the video channels according to a preset rule and then respectively transmitting the video from each video channel when the network bandwidth required to be occupied by the sum of the code streams of the videos transmitted by the current video channels is larger than the total bandwidth of the current network.
Preferably, the transmission module is further configured to determine whether the current network total bandwidth is greater than a network bandwidth that needs to be occupied by a sum of code streams of videos transmitted by the current video channels by determining whether the current network total bandwidth can guarantee a picture resolution of each video and/or whether the current network total bandwidth can guarantee image quality transmission of each video.
Preferably, the determining module is further configured to determine a current total bandwidth of the network and determine a code stream of a video transmitted by each current video channel when there is a video channel request for transmitting a video.
Preferably, the transmission module is further configured to combine videos transmitted by the video channels through a video splicing technique and transmit the combined videos from the video channels.
Preferably, the transmission module is further configured to, in the process of transmitting from each video channel after combining videos transmitted by each video channel by a video splicing technique, transmit from one video channel after combining videos transmitted by a plurality of video channels, and includes:
determining each video channel which needs to be combined through a video splicing technology;
splicing the video pictures of the videos transmitted by the video channels to obtain a spliced video picture;
and transmitting the spliced video pictures in a video channel.
Preferably, the transmission module is further configured to preset the preset rule according to a priority of each video channel.
The invention has the following beneficial effects:
when the network bandwidth required to be occupied by the sum of the code streams of the videos transmitted by the video channels is larger than the total network bandwidth, namely the bandwidth cannot meet the requirements of the video channels, the videos transmitted by the video channels are combined according to a preset rule and then are transmitted from the video channels, and partial videos are combined, so that the network bandwidth occupied by the partial videos can be reduced, and the smooth playing of the videos is ensured; meanwhile, the image quality of the required video is ensured to be clear. Therefore, by adopting the scheme, all video channels can be monitored under the condition of smooth playing under the condition of insufficient bandwidth, and the required video picture quality is also ensured while the video playing is smooth.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart illustrating an implementation of a video transmission method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an overall apparatus for video transmission according to an embodiment of the present invention;
FIG. 3 is an internal schematic diagram of an overall apparatus for video transmission according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a setting of priority of a monitoring video channel of a bank according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an exemplary implementation of a video transmission method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an implementation flow of the adaptive algorithm 1 according to the embodiment of the present invention;
FIG. 7 is a schematic diagram of a flow chart of an implementation of the adaptive algorithm 2 according to an embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating monitoring browser usage in accordance with an embodiment of the present invention;
FIG. 9 is a diagram illustrating monitoring the effectiveness of browser usage according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a video transmission apparatus according to an embodiment of the invention.
Detailed Description
The following describes embodiments of the present invention with reference to the drawings.
Fig. 1 is a schematic flow chart of an implementation of a video transmission method, as shown in the figure, the method may include the following steps:
step 101, determining the total bandwidth of a current network, and determining the code stream of a video transmitted by each current video channel;
and 102, when the network bandwidth required to be occupied by the sum of the code streams of the videos transmitted by the video channels is larger than the total bandwidth of the current network, combining the videos transmitted by the video channels according to a preset rule and then transmitting the video from the video channels respectively.
For the implementation of step 102, the current network total bandwidth is calculated, and whether the current network total bandwidth meets the sum of the code streams of the videos transmitted by the current video channels is judged. Under the condition of ensuring the support, each video channel is allowed to establish independent network connection for video transmission. If the video stream does not meet the requirement, namely under the condition of insufficient bandwidth, the unimportant video channels are combined into the same video channel according to the preset rule, and independent network connection is established for the channel to carry out video transmission, so that the code stream can be compressed, the occupied network bandwidth is reduced, and the video is smoothly played. According to the preset rule, the required important video channels can still be transmitted by using the independent network connection, so that the definition of the important video channels is ensured.
In the implementation, whether the current network total bandwidth is larger than the network bandwidth required to be occupied by the sum of the code streams of the videos transmitted by the current video channels or not is judged, and whether the current network total bandwidth can guarantee the picture resolution of each video or not and/or whether the current network total bandwidth can guarantee the picture quality transmission of each video or not can be judged.
Specifically, under the condition of insufficient bandwidth, the network load pressure is large, the bandwidth is short, and partial data loss occurs in video transmission, so that when a client displays the video, phenomena such as pause and mosaic occur, the video image quality is affected, and the smooth video transmission is ensured through a frame loss and code stream reduction mode, so that the video resolution is reduced. Therefore, whether the current network total bandwidth is larger than the network bandwidth required to be occupied by the sum of the code streams of the videos transmitted by the current video channels can be judged by judging whether the current network total bandwidth can guarantee the picture resolution of each video and/or whether the current network total bandwidth can guarantee the picture quality transmission of each video. These two cases will be explained in the following embodiments by the examples of fig. 6 and 7, respectively.
In implementation, the determination of the current network total bandwidth and the determination of the code stream of the video transmitted by each current video channel may be performed when there is a video channel request for transmitting the video.
Specifically, when a user sends a request channel video command, the network bandwidth of the current device is acquired, the size of the code stream of the video channel which is transmitting the video is acquired, and the size of the code stream of the current request channel is acquired. And calculating whether the channel code stream of the current request meets the current network bandwidth condition or not according to the data.
In the implementation step 102, videos transmitted through each video channel are combined according to a preset rule and then transmitted through each video channel, which involves the combination and the preset rule.
In implementation, the videos transmitted by the video channels are combined according to a preset rule and then transmitted from the video channels respectively, or the videos transmitted by the video channels are combined through a video splicing technology and then transmitted from the video channels.
In implementation, when the splicing process is performed on one of the video channels, the following steps may be performed: in the process of transmitting from each video channel after combining videos transmitted by each video channel by a video splicing technology, transmitting from one video channel after combining videos transmitted by a plurality of video channels may include:
determining each video channel which needs to be combined through a video splicing technology;
splicing the video pictures of the videos transmitted by the video channels to obtain a spliced video picture;
and transmitting the spliced video pictures in a video channel.
In an implementation, the preset rule may be preset according to a priority of each video channel.
Specifically, when the preset rule is set, the preset rule may be set according to the needs of the user, for example, the user sets a priority for each video channel, and the important channel is considered to have a high priority and the unimportant channel has a low priority. And the channel priority set by the user is used as a reference basis for the combination of video pictures of which video channels need to be processed in the post-processing.
In specific implementation, the example combining the priority can be as follows: according to the preset rule preset in the above example, the videos transmitted by the video channels are combined according to the priority of the video channels, the video channels with low priority are spliced to form a video picture, and the spliced video picture is transmitted in one video channel, so that the method is equivalent to combining a plurality of video channels into one video channel. In the video channel, the sub-pictures of each channel are combined, so that the effect of transmitting a plurality of video pictures by one video channel is realized. The resolution of each small picture which is spliced after being compressed can be reduced by splicing a plurality of video pictures, but the video channels belong to unimportant channels for users, so the video channels are within the acceptable range of the users, and meanwhile, the resolution is reduced after being compressed, so smooth playing can be ensured.
For example, when a new video channel request exists, a video channel code stream of the current request is calculated, whether the network bandwidth required to be occupied by the sum of the video channel code stream of the current request and the code stream of the video channel requested before is larger than the total bandwidth condition of the current network is judged, if the bandwidth is larger than the upper limit, a channel with the lowest priority is selected from channels which are transmitted in the video at the moment, the resolution ratio required to be compressed of the channel is calculated according to the current network bandwidth, and a newly sent video picture and an originally sent video picture are spliced into a video picture.
In order that the invention may be more clearly understood, specific examples are set forth below.
An application environment of the embodiment of the present invention is first described.
Fig. 2 is a schematic structural diagram of an overall apparatus for video transmission, which may include: a video input device 201, a user interaction and video processing and service device 202 and a client 203.
The video input device may be an analog camera and DVR, or a webcam and NVR, or a webcam and hybrid DVR, etc., for inputting video into the user interaction and video processing and service device.
And the user interaction and video processing and service device is used for outputting the video to the client for displaying and receiving an instruction of a user for requesting a video channel through the client.
The internal principles of the device in fig. 2 are explained below.
Fig. 3 is an internal schematic diagram of an overall video transmission device, which includes: the system comprises a video input system, a user instruction interaction system, a picture splicing system, a network video service system, a client and the like.
(1) Video input system
The video input system provides video services to the user, such as DVR, NVR, hybrid DVR, and the like. The device has multiple video inputs, such as 4 paths, 8 paths, 16 paths and the like.
(2) User instruction interaction system
The user sets a priority to each video channel, with important channels having a high priority and unimportant channels having a low priority. The set priority is stored in the user instruction interaction system, the user instruction interaction system sets the video channel priority set by the user into the video input system, and the priority of the video channel is arranged to be used as a reference basis for splicing video pictures transmitted by which video channels are processed in the later period.
Then, the user requests the video from the video input system, can request multiple videos simultaneously, and can initiate the request again in the case of the request already. These requests and configurations of the user will be processed in the user instruction interaction system.
After the user sends the video channel request instruction, the user instruction interaction system acquires the network bandwidth of the current device, the size of the video code stream transmitted in the video channel and the size of the video code stream of the current video channel request. And calculating whether the channel code stream of the current request meets the current bandwidth condition or not according to the data. If the bandwidth upper limit is exceeded, selecting the channel with the lowest priority from the channels which are transmitted in the video at the moment, changing the channel video stream into a picture splicing system, and not directly transmitting the channel video stream into a network video service system. Meanwhile, the user instruction interactive system calculates the resolution ratio of the channel to be compressed according to the current network bandwidth, and controls the picture splicing system to make adjustment again.
(3) Picture splicing system
And the picture splicing system performs picture splicing on the sent video channels to form a picture, and the spliced video picture is used as a video channel. This is equivalent to combining multiple video channels into one video channel. In the video channel, the sub-pictures of each video channel are combined, so that the effect of transmitting a plurality of video pictures in one video channel is realized. The stitching of multiple video pictures also results in a reduced resolution of each small picture, but is within the user's acceptance since these video channels are of a non-critical channel to the user.
(4) Network video service system
After receiving the input videos, the network video service system transmits the videos to the client through the network connection. After the network video service system receives the independent videos of the high-priority channel, each path of video is transmitted to the client as an independent network connection, and the network transmission real-time performance and the picture definition of the important channels are guaranteed. The stitched picture is transmitted to the client as an independent network connection.
(5) Client terminal
And the client receives and displays the multi-channel videos output by the network video service system.
The following description will be given by taking a specific embodiment of the video monitoring of the bank in the above application environment as an example.
Video surveillance of a bank typically includes video surveillance of a bank lobby, counter, gate and interior aisles of the bank, roads outside the bank, and the like. The priority of each video channel to be monitored must be unique, and the important order of each video channel can be distinguished through the priority.
The following priorities of video monitoring areas of a bank can be generally set:
(1) bank lobby (highest priority)
The bank lobby has the most comprehensive visual angle, can monitor the whole service hall and has the highest priority.
(2) Counter (higher priority)
Secondly, the counter is used for monitoring the handling details of specific services, the appearance of the client and the like.
(3) Bank doorway (priority level)
(4) Inner corridor (lower priority)
(5) Road outside bank (lowest priority)
Fig. 4 is a schematic diagram of setting the priority of a monitoring video channel of a bank, specifically, the priority setting of each video monitoring area of the bank may be as shown in fig. 4:
the bank lobby 1 is set as a first priority, and the bank lobby 2 is set as a second priority;
the counter 1 (important customer) is set as the third priority, and the counter 2 (common customer) is set as the fourth priority;
the bank door 1 is set as a fifth priority, and the bank door 2 is set as a sixth priority;
setting the corridor inside the bank as the seventh priority;
the out-of-bank road 1 is set to the eighth priority, and the out-of-bank road 2 is set to the ninth priority.
After the user sets the priority for the video channels of each monitoring area of the bank, the user instructs the interactive system to request the monitored video channels, the user instructs the interactive system to send the video transmitted by each video channel into the picture splicing system and the network video service system respectively according to the preset rule for processing under the condition of insufficient bandwidth, and each processed video channel is output to the client for displaying. The following is a detailed description:
fig. 5 is a schematic flow chart of a specific implementation of a video transmission method, as shown in the figure, the method may include the following steps:
step 501, the user sets the priority of each video channel according to the importance of each video channel, and the specific implementation is as shown in fig. 4;
step 502, a user initiates a request for monitoring a plurality of video channels to a user instruction interaction system;
step 503, calculating the total bandwidth of the current network and the code stream of the video transmitted by each current video channel;
step 504, judging whether the current network total bandwidth is larger than the network bandwidth which needs to be occupied by the sum of the code streams of the videos transmitted by the current video channels, if so, turning to step 505, and if not, turning to step 506;
step 505, sending an instruction to a network video service system, taking each video channel as a path independently for video transmission, and turning to step 510;
step 506, determining a low-priority video channel needing video picture combination and a video channel for single video transmission according to a self-adaptive algorithm;
step 507, sending the video channel with low priority to be combined into a picture splicing system;
step 508, the picture stitching system compresses and stitches the video transmitted by the low-priority video channel which needs to be subjected to video picture combination;
509, sending the video transmitted by the video channel of the independent video transmission and the video coded by the picture splicing system into a network video service system;
step 510, the network video service system outputs videos transmitted by each video channel;
and 511, displaying the output video transmitted by each video channel on the client.
For the specific implementation of the above video transmission method, it should be noted that:
(1) compared with the common user instruction interaction processing, the user instruction interaction system in the embodiment is more complex. The method has the advantages that special processing is carried out on the network with insufficient bandwidth, the requirement that a client needs to monitor multiple paths simultaneously is met, meanwhile, the smoothness of video transmission and the definition of important channels are guaranteed, and the picture transmission effect is improved
(2) When a user makes a video monitoring request, the user instruction interactive system calculates the current bandwidth condition and judges whether the current bandwidth meets the code stream sum of the number of paths requested by the user. Only if support is ensured, each channel is allowed to establish independent network connection for video transmission. Otherwise, the multi-channel video is calculated, channels needing picture splicing are calculated according to the priority of each current channel and the code stream size of each channel, and the channels with lower priorities are spliced into a video picture to be sent as the picture of one video channel. Other important channels are still transported using a separate network connection. Therefore, under the limited bandwidth, the monitoring of multiple channels is realized, the video smoothness and the definition of important channels are ensured, and the picture transmission effect is improved
(3) The size of the code stream transmitted by the video is calculated based on the current bandwidth condition when the video is requested each time, and the transmitted code stream is within the network bandwidth under most conditions, so that the transmission effect of the picture is ensured, and the phenomena of frame loss, blocking and the like caused by poor network conditions can be avoided.
(4) If a user who has started network monitoring requests to monitor a new video channel again in the later operation process, the user instruction processing system calculates whether the current request meets the current bandwidth condition or not at first. For unsatisfied channels, the channels needed to be spliced are calculated, and the network video service system is controlled to close the network connection of the channels, and only one connection is reserved. The transmission of the stitched picture will be handled over this connection. Therefore, the interaction process of the device and the user is reduced, and the user experience is improved. The requirement of multi-path monitoring of a user is met under the condition of insufficient bandwidth, and meanwhile, the clear and smooth of important channels are ensured, and unimportant channels are also in the monitoring range.
The implementation of the adaptive algorithm in step 506 is described below.
Because the resolution and the image quality are two different concepts, whether the current bandwidth meets the requirement that each path of video image is above the lowest resolution and whether the current bandwidth meets the requirement that each path of video image is transmitted according to the original image quality are different judgment modes.
(1) The resolution is reduced, and the effect of reducing the code stream can be achieved, because the length and the width of the picture are reduced, the code stream is reduced.
(2) Under the condition of keeping the resolution unchanged, the image quality is reduced, and the effect of reducing the code stream can be achieved. For example, the resolution is 1080p, the length and the width are 1920 × 1080, but the texture is very clear and the effect is very fresh on a picture with high image quality. Carefully observing the picture with low image quality, the picture is relatively blurred, and particularly, the texture of the picture is very rough at the contacted edge of different objects. This is related to the compressed mode algorithm. Such as H264 algorithm, the effect of coding different code streams is different.
Whether the current bandwidth meets the judgment condition that each video image is above the lowest resolution ratio is explained in the adaptive algorithm 1, and whether the current bandwidth meets the judgment condition that each video image is transmitted according to the original image quality is explained in the adaptive algorithm 2.
Fig. 6 is a schematic flow chart of an implementation of the adaptive algorithm 1, which may include the following steps as shown in the figure:
601, judging whether the current network bandwidth can ensure that the resolution of each video picture is above the set minimum resolution, if so, turning to 602, and if not, turning to 605;
step 602, selecting a video channel with the highest priority;
603, calculating the residual bandwidth under the condition of ensuring that the video image resolution of the rest video channels is the set lowest resolution;
step 604, determining whether the remaining bandwidth meets the picture resolution of the selected video channel, if yes, turning to step 607, and if not, turning to step 605;
605, combining all the video channels into a video picture without priority;
step 606, sending the combined video picture as a video channel to a network video service system, and turning to step 609;
step 607, sending the selected video channel to the network video service system;
step 608, judging whether the remaining video channels exist, if yes, turning to step 602, and if not, turning to step 609;
and step 609, ending.
For the specific implementation of the adaptive algorithm 1, it should be noted that:
(1) the minimum image quality (minimum resolution) of the channel picture needs to be set firstly, and the video picture after synthesis can also meet the monitoring requirements of the client. On the premise of ensuring the minimum image quality (minimum resolution) of each video image, the priority processing of the important channel is carried out.
(2) When the bandwidth is small and one important channel cannot be processed, a compression splicing processing strategy for all channels is adopted to ensure that all requested pictures can be monitored.
Fig. 7 is a schematic flow chart of an implementation of the adaptive algorithm 2, which may include the following steps as shown in the figure:
step 701, judging whether the current network bandwidth can ensure that each path of video picture can be transmitted according to the original image quality, if so, turning to step 702, and if not, turning to step 706;
step 702, selecting a video channel with the lowest priority;
step 703, removing the selected low priority channel from the video input channel;
step 704, determining whether the remaining video channels can meet the original image quality transmission at the current bandwidth, if yes, turning to step 707, and if not, turning to step 705;
step 705, judging whether residual video channels exist, if so, turning to step 702, and if not, turning to step 706;
step 706, all video channels do not differentiate priority, each path is transmitted separately, and step 709 is carried out;
step 707, combining all selected low priority video channels with video pictures;
step 708, sending the rest high-priority video channels and the video channel where the combined video picture is located to a network video service system, and turning to step 710;
step 709, sending all video channels to the network video service system, and turning to step 710;
and step 710, ending.
For the specific implementation of the adaptive algorithm 2, it should be noted that:
(1) the self-adaptive algorithm does not need to set minimum guaranteed image quality (minimum resolution), but guarantees as many original image channels as possible, and the self-adaptive algorithm is suitable for the condition that a user does not care about the image quality of a low-priority channel and only cares about the original image quality of a high-priority video channel as much as possible.
(2) When the bandwidth is small and one important channel cannot be processed, a compression splicing processing strategy for all the channels is adopted to ensure that all requested video pictures can be monitored.
The two examples of adaptive algorithms are listed above, but the adaptive algorithms are not limited to these two examples, as long as the adaptive algorithms that can compress the code stream and reduce the bandwidth can be implemented.
How the user uses the video transmission method will be described below.
FIG. 8 is a schematic view of monitoring browser usage by clicking the "all on" button in FIG. 8. After clicking, the equipment performs self-adaptive calculation according to the total bandwidth of the current network and the priority of each video channel set by the user, the effect is shown in fig. 9, the road 1 outside the bank, the road 2 outside the bank, the door 1 of the bank and the door 2 of the bank are spliced into a video picture, the lobby 1 of the bank, the lobby 2 of the bank and the counter are independently transmitted, the picture of the important video channel is clear, and due to the compression of the code stream, all the video channels are smoothly transmitted and are not blocked.
Based on the same inventive concept, the embodiment of the present invention further provides a video transmission apparatus, and as the principle of solving the problem of these devices is similar to that of a video transmission method, the implementation of these devices can refer to the implementation of the method, and repeated details are not repeated.
Fig. 10 is a schematic structural diagram of a video transmission apparatus, as shown in the figure, the apparatus may include:
a determining module 1001, configured to determine a total bandwidth of a current network and determine a code stream of a video transmitted by each current video channel;
the transmission module 1002 is configured to, when a network bandwidth that needs to be occupied by a sum of code streams of videos transmitted by the current video channels is greater than a total bandwidth of a current network, combine videos transmitted by the video channels according to a preset rule and transmit the video from the video channels, respectively.
In implementation, the transmission module may further be configured to determine whether the current network total bandwidth is greater than a network bandwidth that needs to be occupied by a sum of code streams of videos transmitted by the current video channels by determining whether the current network total bandwidth can guarantee a picture resolution of each video and/or whether the current network total bandwidth can guarantee image quality transmission of each video.
In an implementation, the transmission module may be further configured to preset the preset rule according to a priority of each video channel.
In an implementation, the determining module may be further configured to determine, when there is a video channel request for transmitting a video, a current total network bandwidth, and determine a code stream of the video transmitted by each current video channel.
In implementation, the transmission module may further be configured to combine videos transmitted through the video channels by using a video splicing technique and transmit the combined videos from the video channels.
In implementation, the transmission module may further be configured to, in a process of transmitting from each video channel after combining videos transmitted by each video channel by a video splicing technique, transmit from one video channel after combining videos transmitted by a plurality of video channels, including:
determining each video channel which needs to be combined through a video splicing technology;
splicing the video pictures of the videos transmitted by the video channels to obtain a spliced video picture;
and transmitting the spliced video pictures in a video channel.
In summary, under the condition of insufficient bandwidth, that is, the network bandwidth that needs to be occupied by the sum of the code streams of the videos transmitted by the video channels is greater than the total bandwidth of the current network, the videos transmitted by the video channels are combined according to the preset rule and then transmitted from the video channels, and the unimportant videos are combined, so that the code streams can be compressed, the occupied network bandwidth is reduced, the videos can be smoothly played, and the image quality of the important videos is ensured to be clear. Therefore, by adopting the scheme, under the condition of insufficient bandwidth, if all video channels are monitored, the video picture quality is improved while the video is smoothly played.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A video transmission method, comprising:
determining the total bandwidth of the current network and determining the code stream of the video transmitted by each current video channel;
when the network bandwidth required to be occupied by the sum of the code streams of the videos transmitted by the video channels is larger than the total bandwidth of the current network, the videos transmitted by the video channels are combined through a video splicing technology and then transmitted from the video channels.
2. The method of claim 1, wherein the determining whether the current network total bandwidth is larger than the network bandwidth required to be occupied by the sum of the code streams of the videos transmitted by the video channels determines whether the current network total bandwidth can guarantee the picture resolution of each video and/or whether the current network total bandwidth can guarantee the picture quality transmission of each video.
3. The method of claim 1, wherein determining the current total network bandwidth and determining the current video stream transmitted by each video channel is performed when a video channel request for transmitting video is received.
4. The method of claim 1, wherein in the process of transmitting from each video channel after combining the videos transmitted by each video channel by a video splicing technique, transmitting from one video channel after combining the videos transmitted by several video channels, comprises:
determining each video channel which needs to be combined through a video splicing technology;
splicing the video pictures of the videos transmitted by the video channels to obtain a spliced video picture;
and transmitting the spliced video pictures in a video channel.
5. The method of claim 1, wherein the combining the video transmitted by the video channels by a video splicing technique comprises:
and combining the videos transmitted by the video channels according to the priority of the video channels.
6. A video transmission apparatus, comprising:
the determining module is used for determining the total bandwidth of the current network and determining the code stream of the video transmitted by each current video channel;
and the transmission module is used for combining the videos transmitted by the video channels through a video splicing technology and then transmitting the combined videos from the video channels when the network bandwidth required to be occupied by the sum of the code streams of the videos transmitted by the current video channels is larger than the total network bandwidth.
7. The apparatus of claim 6, wherein the transmission module is further configured to determine whether the current network total bandwidth is larger than a network bandwidth that needs to be occupied by a sum of code streams of the videos transmitted by the current video channels by determining whether the current network total bandwidth can guarantee a picture resolution of each video and/or whether the current network total bandwidth can guarantee picture quality transmission of each video.
8. The apparatus of claim 6, wherein the determining module is further configured to determine a current total bandwidth of the network when there is a video channel request for transmitting video, and determine a code stream of video transmitted by each current video channel.
9. The apparatus of claim 6, wherein the transmission module is further configured to, during transmission from each video channel after combining the videos transmitted by each video channel through a video splicing technique, combine the videos transmitted by several video channels and transmit from one video channel, and includes:
determining each video channel which needs to be combined through a video splicing technology;
splicing the video pictures of the videos transmitted by the video channels to obtain a spliced video picture;
and transmitting the spliced video pictures in a video channel.
10. The apparatus of claim 6, wherein the transmission module is further configured to combine the video transmitted by the video channels through a video splicing technique, and comprises: and combining the videos transmitted by the video channels according to the priority of the video channels.
CN201610301211.8A 2016-05-06 2016-05-06 Video transmission method and device Active CN105827633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610301211.8A CN105827633B (en) 2016-05-06 2016-05-06 Video transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610301211.8A CN105827633B (en) 2016-05-06 2016-05-06 Video transmission method and device

Publications (2)

Publication Number Publication Date
CN105827633A CN105827633A (en) 2016-08-03
CN105827633B true CN105827633B (en) 2021-02-02

Family

ID=56529238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610301211.8A Active CN105827633B (en) 2016-05-06 2016-05-06 Video transmission method and device

Country Status (1)

Country Link
CN (1) CN105827633B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791886B (en) * 2016-11-16 2020-03-17 深圳市梦网百科信息技术有限公司 Panoramic video distribution method and system based on visual characteristics
CN106603975A (en) * 2016-12-01 2017-04-26 广东威创视讯科技股份有限公司 Display method, apparatus and system of monitoring videos
CN107155093B (en) * 2017-06-21 2020-10-23 普联技术有限公司 Video preview method, device and equipment
CN109151584B (en) * 2018-09-07 2020-10-27 华为技术有限公司 Method and device for controlling network flow
CN109474852A (en) * 2018-12-17 2019-03-15 深圳创维数字技术有限公司 Television program playing method, device, equipment and readable storage medium storing program for executing
CN109922318B (en) * 2019-03-22 2020-02-07 重庆紫光华山智安科技有限公司 Multi-channel video transmission scheduling method and device, storage medium and electronic terminal
CN111954031B (en) * 2019-05-14 2024-04-30 西安光启智能技术有限公司 Method and system for dynamically adjusting frame extraction rate of video stream
CN112839238B (en) * 2019-11-22 2023-03-24 腾讯科技(深圳)有限公司 Screen projection playing method and device and storage medium
CN111510735B (en) * 2020-04-21 2022-11-01 新石器慧通(北京)科技有限公司 Encoding transmission method and device for multi-channel video in weak network environment and unmanned vehicle
CN111432251B (en) * 2020-04-26 2022-03-22 浙江宇视科技有限公司 Video processing method, video processing device, electronic equipment and medium
CN111866586B (en) * 2020-07-28 2022-08-02 精英数智科技股份有限公司 Underground video data processing method and device, electronic equipment and storage medium
CN112203043A (en) * 2020-09-14 2021-01-08 中标慧安信息技术股份有限公司 Video transmission method and system
CN115550598A (en) * 2022-09-14 2022-12-30 北京融讯科创技术有限公司 Video conference configuration method and device, terminal equipment and storage medium
CN116405620B (en) * 2023-06-06 2023-08-22 深圳市拓阔科技有限公司 Video picture switching method, terminal equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867825A (en) * 2010-06-25 2010-10-20 中国传媒大学 Device for circularly monitoring multi-channel video and method thereof
CN101977305A (en) * 2010-10-27 2011-02-16 北京中星微电子有限公司 Video processing method, device and system
CN102006451A (en) * 2010-11-18 2011-04-06 中兴通讯股份有限公司 Method, system and MCU (Micro Control Unit) for realizing multipicture in cascade meeting
CN102098443A (en) * 2010-12-28 2011-06-15 华为终端有限公司 Camera, communication system and corresponding image processing method
CN102469296A (en) * 2010-11-08 2012-05-23 上海天跃科技股份有限公司 Dynamic bandwidth detection and intelligent transmission method for video monitoring
CN102547212A (en) * 2011-12-13 2012-07-04 浙江元亨通信技术股份有限公司 Splicing method of multiple paths of video images
CN102740045A (en) * 2011-04-02 2012-10-17 上海天跃科技股份有限公司 Dynamic bandwidth detection and intelligent transmission method aiming at video monitoring
CN104539896A (en) * 2014-12-25 2015-04-22 桂林远望智能通信科技有限公司 Intelligent panoramic monitoring and hotspot close-up monitoring system and method
CN104601935A (en) * 2013-10-31 2015-05-06 深圳市朗驰欣创科技有限公司 Frame splicing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068345B (en) * 2007-05-24 2010-06-23 杭州华三通信技术有限公司 Video frequency monitoring method and system and network transmission equipment
CN104333767B (en) * 2014-10-10 2019-07-02 厦门雅迅网络股份有限公司 A kind of Vehicular video monitoring system multichannel priority control method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867825A (en) * 2010-06-25 2010-10-20 中国传媒大学 Device for circularly monitoring multi-channel video and method thereof
CN101977305A (en) * 2010-10-27 2011-02-16 北京中星微电子有限公司 Video processing method, device and system
CN102469296A (en) * 2010-11-08 2012-05-23 上海天跃科技股份有限公司 Dynamic bandwidth detection and intelligent transmission method for video monitoring
CN102006451A (en) * 2010-11-18 2011-04-06 中兴通讯股份有限公司 Method, system and MCU (Micro Control Unit) for realizing multipicture in cascade meeting
CN102098443A (en) * 2010-12-28 2011-06-15 华为终端有限公司 Camera, communication system and corresponding image processing method
CN102740045A (en) * 2011-04-02 2012-10-17 上海天跃科技股份有限公司 Dynamic bandwidth detection and intelligent transmission method aiming at video monitoring
CN102547212A (en) * 2011-12-13 2012-07-04 浙江元亨通信技术股份有限公司 Splicing method of multiple paths of video images
CN104601935A (en) * 2013-10-31 2015-05-06 深圳市朗驰欣创科技有限公司 Frame splicing method and device
CN104539896A (en) * 2014-12-25 2015-04-22 桂林远望智能通信科技有限公司 Intelligent panoramic monitoring and hotspot close-up monitoring system and method

Also Published As

Publication number Publication date
CN105827633A (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN105827633B (en) Video transmission method and device
US20200382575A1 (en) Video encoding using starve mode
US7587454B2 (en) Video streaming parameter optimization and QoS
JP6845808B2 (en) Methods and systems for smart adaptive video streaming driven by perceptual quality estimation
CN105915937A (en) Panoramic video playing method and device
CN110891177B (en) Denoising processing method, device and machine equipment in video denoising and video transcoding
JP6595287B2 (en) Monitoring system, monitoring method, analysis apparatus and analysis program
US20140313281A1 (en) Dynamic allocation of encoders
CN106131670A (en) A kind of adaptive video coding method and terminal
CN106162232A (en) video playing control method and device
Zanforlin et al. SSIM-based video admission control and resource allocation algorithms
CN105898384B (en) A kind of method and apparatus of streaming media video mixing frame per second control
CN103685963B (en) image display processing method and device
CN110300278A (en) Video transmission method and equipment
CN104954804A (en) Self-adaptive image resolution processing method
CN114363649A (en) Video processing method, device, equipment and storage medium
JP6660869B2 (en) Remote work support system and worker terminal
JP2005020731A (en) Image data processing method of mobile communication terminal
JP4810088B2 (en) Image processing apparatus, image processing method, and program thereof
WO2015176489A1 (en) Screen brightness adjustment method, multipoint controller unit mcu and terminal
GB2552376A (en) Method and device for efficiently generating, based on a video flow, a plurality of video streams required by modules of a video surveillance system
CN110958434A (en) Multi-image splicing method and system and computer readable storage medium
CN115190325A (en) Frame loss control method, device, equipment, storage medium and program product
US20140327781A1 (en) Method for video surveillance, a related system, a related surveillance server, and a related surveillance camera
US11880966B2 (en) Image quality assessment apparatus and image quality assessment method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant