CN112203043A - Video transmission method and system - Google Patents

Video transmission method and system Download PDF

Info

Publication number
CN112203043A
CN112203043A CN202010961383.4A CN202010961383A CN112203043A CN 112203043 A CN112203043 A CN 112203043A CN 202010961383 A CN202010961383 A CN 202010961383A CN 112203043 A CN112203043 A CN 112203043A
Authority
CN
China
Prior art keywords
video
channel
current
channels
bandwidth
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
CN202010961383.4A
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.)
Zhongbiao Huian Information Technology Co Ltd
Original Assignee
Zhongbiao Huian Information 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 Zhongbiao Huian Information Technology Co Ltd filed Critical Zhongbiao Huian Information Technology Co Ltd
Priority to CN202010961383.4A priority Critical patent/CN112203043A/en
Publication of CN112203043A publication Critical patent/CN112203043A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • 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/40Support for services or applications
    • H04L65/401Support for services or applications wherein the services involve a main real-time session and one or more additional parallel real-time or time sensitive sessions, e.g. white board sharing or spawning of a subconference
    • 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/75Media network packet handling
    • 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/80Responding to QoS

Abstract

The invention provides a video transmission method and a system, wherein the method comprises the following steps: step 1: determining the total bandwidth of the current network; step 2: determining video code streams transmitted by current video channels; and step 3: and adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjustment strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels. According to the method, the video code streams of part of or all of the current video channels are automatically adjusted by adopting the code stream adjustment strategy, so that the multi-channel monitoring requirements of users can be met under the condition of insufficient bandwidth, the video playing smoothness of important channels is ensured, and the user experience is improved.

Description

Video transmission method and system
Technical Field
The present invention relates to the field of video transmission technologies, and in particular, to a video transmission method and system.
Background
Currently, when a monitoring device performs multi-channel monitoring, each video channel usually establishes an independent network connection for independent data link and network handle. When a user needs to monitor a plurality of video channels simultaneously, each network connection needs to occupy resources, if the video resolution or code rate is high, the network load pressure is high, the bandwidth is short, partial data is lost in the video transmission process, and therefore the phenomena of video blockage, mosaic and the like occur when a client displays the video.
Therefore, the prior art is disadvantageous in that in the case of insufficient bandwidth, if all video channels are monitored simultaneously, the video playing is not smooth, and the video quality is affected.
Disclosure of Invention
The invention provides a video transmission method and a video transmission system, which are used for improving user experience and meeting the multi-path monitoring requirements of users under the condition of insufficient bandwidth.
The invention provides a video transmission method, which comprises the following steps:
step 1: determining the total bandwidth of the current network;
step 2: determining video code streams transmitted by current video channels;
and step 3: and adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjustment strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels.
Further, in the step 3, the preset code stream adjustment policy includes at least one of the following policies:
the method comprises the steps of automatically switching partial channels in each current video channel into auxiliary code streams, reducing the resolution of the partial channels in each current video channel, reducing the code rate of the partial channels in each current video channel, performing frame extraction processing on partial channel codes in each current video channel, and reducing the frame rate of the partial channels in each current video channel.
Further, the step 3: adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjustment strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels, and executing the following steps:
step S31: judging whether the current network total bandwidth meets the multi-channel video transmission of a high-quality picture with definition greater than a preset definition value or not according to the current network total bandwidth and the video code stream transmitted by each current video channel;
step S32: if the total bandwidth of the current network meets the requirement of high-image-quality multi-channel video transmission, all video channels are normally transmitted according to the current video code stream;
step S33: and if the total bandwidth of the current network does not meet the requirement of high-image-quality multi-channel video transmission, transmitting part of video channels in the current video channels according to video code streams obtained by adopting a preset code stream adjustment strategy.
Further, the step S31: judging whether the current network total bandwidth meets the multichannel video transmission of the high-quality picture with the definition being greater than the preset definition value or not according to the current network total bandwidth and the video code stream transmitted by each current video channel, and executing the following steps:
step S311: comparing the size relationship between the current network total bandwidth and the sum of the video code streams transmitted by the current video channels;
step S312: if the total bandwidth of the current network is greater than or equal to the sum of the video code streams transmitted by the current video channels, judging that the total bandwidth of the current network meets the multichannel video transmission of the high-quality picture;
step S313: and if the current network total bandwidth is smaller than the sum of the video code streams transmitted by the current video channels, judging that the current network total bandwidth does not meet the multichannel video transmission of the high-quality picture.
Further, in step S33, if the total bandwidth of the current network does not satisfy the high-quality multi-channel video transmission, the transmitting the video code streams obtained by using the preset code stream adjustment policy to the partial video channels in the current video channels includes:
determining whether actual distribution bandwidth in the key attention channel in each video channel needs to be adjusted or not according to the size relation between the required bandwidth corresponding to the key attention channel in each video channel and the actual distribution bandwidth distributed to the key attention channel;
under the condition that the actual distribution bandwidth in the key attention channels in the current video channels does not need to be adjusted, if the total bandwidth of the current network does not meet the requirement of high-image-quality multi-channel video transmission, the key attention channels in the current video channels are normally transmitted according to the current video code stream, and the non-key attention channels in the current video channels are transmitted according to the video code stream obtained by adopting a preset code stream adjustment strategy.
Further, the focused attention channel and the non-focused attention channel are determined according to the priority of each video channel.
Further, determining whether the actually allocated bandwidth in the focused attention channel in each current video channel needs to be adjusted according to the size relationship between the required bandwidth corresponding to the focused attention channel in each current video channel and the actually allocated bandwidth allocated to the focused attention channel, and executing the following steps:
step S331: obtaining a distortion mean value according to the distortion of each time of the channel of important interest, as shown in the following formula (1):
Figure BDA0002680666790000031
wherein S is the mean value of distortion degree of the key attention channel, the distortion degree represents the unit pixel difference value in the corresponding area of the distorted video and the original video, SiThe distortion degree of the channel at the ith moment is focused, and n is the total number of the recording points at the moment;
step S332: calculating the peak signal-to-noise ratio of the video signal corresponding to the channel of key interest according to the distortion degree and the mean value of the distortion degree of the channel of key interest at each moment, as shown in the following formula (2):
Figure BDA0002680666790000032
wherein, F is the peak signal-to-noise ratio of the video signal corresponding to the important attention;
substituting formula (1) into formula (2) to obtain formula (3):
Figure BDA0002680666790000041
step S333: calculating the video quality value of the channel concerned mainly according to the video code stream of the channel concerned mainly and the corresponding peak signal-to-noise ratio,
Figure BDA0002680666790000042
wherein, R is a video code stream of a key attention channel;
step S334: calculating the required bandwidth corresponding to the key attention channel according to the video quality value of the key attention channel and the video code stream of the key attention channel,
Figure BDA0002680666790000043
step S335: determining whether the allocated bandwidth needs to be adjusted according to the required bandwidth corresponding to the channel of key concern and the actual allocated bandwidth of the channel of key concern,
if the required bandwidth K corresponding to the channel of major interest is greater than the actually allocated bandwidth K0 for the channel of major interest, the allocated bandwidth K0 of the channel of major interest needs to be adjusted to K or higher,
if the required bandwidth K corresponding to the channel of key interest is less than or equal to the actually allocated bandwidth K0 for the channel of key interest, no adjustment is required.
Further, the step 1: determining the total bandwidth of the current network, and executing the following steps:
step S11: pushing a plurality of speed measurement contents to the client and recording the instant downloading speed of each speed measurement content downloaded by the client;
step S12: carrying out arithmetic mean on each recorded instantaneous downloading speed to calculate the network downlink instantaneous speed at the current moment;
step S13: uploading a plurality of speed measurement contents by a client and recording the instantaneous uploading speed of each speed measurement content uploaded by the client;
step S14: carrying out arithmetic mean on each recorded instantaneous uploading speed to calculate the network uplink instantaneous speed at the current moment;
step S15: and obtaining the total bandwidth of the current network according to the network downlink instantaneous speed and the network uplink instantaneous speed.
Further, in step 2, the determining the video code stream transmitted by each current video channel includes:
and calculating to obtain the video code stream of the current video transmission channel based on the current bandwidth condition corresponding to the current video transmission channel when requesting video each time.
The video transmission method provided by the embodiment of the invention has the following beneficial effects: by adopting a code stream adjusting strategy to automatically adjust the video code streams of part of or all of the current video channels, the multi-channel monitoring requirements of users can be met under the condition of insufficient bandwidth, the video playing smoothness of important channels is ensured, and the user experience is improved.
The present invention also provides a video transmission system, comprising:
the bandwidth determining module is used for determining the total bandwidth of the current network;
the code stream determining module is used for determining video code streams transmitted by the current video channels;
and the code stream adjusting module is used for adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjusting strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels.
The video transmission system provided by the embodiment of the invention has the following beneficial effects: the code stream adjusting module automatically adjusts the video code streams of part of or all of the current video channels by adopting a code stream adjusting strategy, so that the multi-channel monitoring requirements of users can be met under the condition of insufficient bandwidth, the video playing smoothness of important channels is ensured, and the user experience is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
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 principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart illustrating a video transmission method according to an embodiment of the present invention;
fig. 2 is a block diagram of a video transmission system according to an embodiment of the invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
An embodiment of the present invention provides a video transmission method, as shown in fig. 1, where the method includes the following steps:
step 1: determining the total bandwidth of the current network;
step 2: determining video code streams transmitted by current video channels;
and step 3: and adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjustment strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels.
The working principle of the technical scheme is as follows: in the invention, the total bandwidth of the current network is determined, then the video code stream transmitted by each current video channel is determined, and the video code streams of part of or all the channels in each current video channel are adjusted by adopting a preset code stream adjusting strategy according to the relationship between the total bandwidth of the current network and the video code stream transmitted by each current video channel, so that the multi-channel monitoring requirements of users are met under the condition of insufficient bandwidth, and the video playing smoothness of important channels is ensured.
The beneficial effects of the above technical scheme are: by adopting a code stream adjusting strategy to automatically adjust the video code streams of part of or all of the current video channels, the multi-channel monitoring requirements of users can be met under the condition of insufficient bandwidth, the video playing smoothness of important channels is ensured, and the user experience is improved.
In one embodiment, in the step 3, the preset code stream adjustment policy includes at least one of the following policies:
the method comprises the steps of automatically switching partial channels in each current video channel into auxiliary code streams, reducing the resolution of the partial channels in each current video channel, reducing the code rate of the partial channels in each current video channel, performing frame extraction processing on partial channel codes in each current video channel, and reducing the frame rate of the partial channels in each current video channel.
The working principle of the technical scheme is as follows: the main factors influencing the code stream are code rate, resolution and frame rate.
The code rate is the number of data bits transmitted in unit time during data transmission, generally, the unit used is kbps, namely kilobits per second, namely a sampling rate, the higher the sampling rate in unit time is, the higher the precision is, the closer the processed file is to the original file, the code rate influences the volume of the code stream, and is in direct proportion to the volume of the code stream, the larger the code rate is, the larger the volume of the code stream is, the smaller the code rate is, and the smaller the volume of the code stream is.
The frame rate refers to the number of frames of a picture transmitted in 1 second, and can be understood as that a graphics processor can refresh for several times per second, the frame rate affects the smoothness of the picture and is in direct proportion to the smoothness of the picture, and the picture is smoother when the frame rate is higher; the smaller the frame rate, the more the picture has a sense of jitter, if the code rate is variable, the frame rate also affects the volume, and the higher the frame rate, the more pictures passing by per second, the higher the required code rate, and the larger the volume. Video resolution refers to the size or dimensions of the image formed by the video imaging product.
The resolution affects the size of the image and the volume of the code stream and is in direct proportion to the volume of the code stream; the higher the resolution, the larger the image, the lower the resolution, and the smaller the image.
Compared with the main code stream, the resolution of the auxiliary code stream is smaller than that of the main code stream, so that partial channels in each current video channel are automatically switched into the auxiliary code streams, and the video code streams transmitted by each current video channel can be reduced.
Through the frame extraction processing, the process of several minutes, hours or even several days and years can be compressed in a short time to be played in a video mode, so that in a period of delayed video shooting, the process of slow change of objects or scenes is compressed in a short time, and the video code stream transmitted by each current video channel can be reduced.
The beneficial effects of the above technical scheme are: by switching into the auxiliary code stream, reducing the resolution, reducing the code rate, performing frame extraction processing and reducing the frame rate, the video code stream transmitted by each current video channel can be reduced, and the multi-path monitoring requirement of a user is met under the condition of insufficient bandwidth.
In one embodiment, the step 3: adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjustment strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels, and executing the following steps:
step S31: judging whether the current network total bandwidth meets the multi-channel video transmission of a high-quality picture with definition greater than a preset definition value or not according to the current network total bandwidth and the video code stream transmitted by each current video channel;
step S32: if the total bandwidth of the current network meets the requirement of high-image-quality multi-channel video transmission, all video channels are normally transmitted according to the current video code stream;
step S33: and if the total bandwidth of the current network does not meet the requirement of high-image-quality multi-channel video transmission, transmitting part of video channels in the current video channels according to video code streams obtained by adopting a preset code stream adjustment strategy.
The working principle of the technical scheme is as follows: judging whether the current network total bandwidth meets the multi-channel video transmission of a high-image-quality picture with definition being larger than a preset definition value or not according to the relation between the current network total bandwidth and the video code stream transmitted by each current video channel, and if so, normally transmitting all the video channels according to the current video code stream; and if not, transmitting the video code stream obtained by part of the current video channels according to the code stream adjustment strategy.
The beneficial effects of the above technical scheme are: the specific steps of adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjustment strategy are provided.
In an embodiment, in the step S31, the determining, according to the current network total bandwidth and the video code streams transmitted by the current video channels, whether the current network total bandwidth meets the multichannel video transmission of the high-quality picture with the definition greater than the preset definition value performs the following steps:
step S311: comparing the size relationship between the current network total bandwidth and the sum of the video code streams transmitted by the current video channels;
step S312: if the total bandwidth of the current network is greater than or equal to the sum of the video code streams transmitted by the current video channels, judging that the total bandwidth of the current network meets the multichannel video transmission of the high-quality picture;
step S313: and if the current network total bandwidth is smaller than the sum of the video code streams transmitted by the current video channels, judging that the current network total bandwidth does not meet the multichannel video transmission of the high-quality picture.
The working principle of the technical scheme is as follows: judging whether the current network total bandwidth meets the multichannel video transmission of the high-quality picture with the definition being larger than a preset definition value or not by comparing the size relationship between the current network total bandwidth and the sum of the video code streams transmitted by the current video channels, and if the current network total bandwidth is larger than or equal to the sum of the video code streams transmitted by the current video channels, judging that the current network total bandwidth meets the multichannel video transmission of the high-quality picture; otherwise, the total bandwidth of the current network is judged to be not satisfied with the multi-channel video transmission of the high-quality picture, and the video code streams obtained by partial video channels in the current video channels according to the code stream adjustment strategy are required to be transmitted.
The beneficial effects of the above technical scheme are: the specific steps of judging whether the current network total bandwidth meets the multichannel video transmission of the high-image quality picture with the definition being greater than the preset definition value or not according to the current network total bandwidth and the video code stream transmitted by each current video channel are provided.
In one embodiment, in the step S33, if the total bandwidth of the current network does not satisfy the high-quality multi-channel video transmission, the transmitting the video streams obtained by using the preset stream adjustment policy to the partial video channels in the current video channels includes:
determining whether actual distribution bandwidth in the key attention channel in each video channel needs to be adjusted or not according to the size relation between the required bandwidth corresponding to the key attention channel in each video channel and the actual distribution bandwidth distributed to the key attention channel;
under the condition that the actual distribution bandwidth in the key attention channels in the current video channels does not need to be adjusted, if the total bandwidth of the current network does not meet the requirement of high-image-quality multi-channel video transmission, the key attention channels in the current video channels are normally transmitted according to the current video code stream, and the non-key attention channels in the current video channels are transmitted according to the video code stream obtained by adopting a preset code stream adjustment strategy.
The working principle of the technical scheme is as follows: under the condition that the total bandwidth of the current network does not meet the requirement of high-image-quality multi-channel video transmission, the key concerned channels in the current video channels are normally transmitted according to the current video code stream, and the non-key concerned channels are transmitted according to the video code stream obtained by adopting a preset code stream adjustment strategy, so that the video playing smoothness of the key channels can be ensured under the condition that the bandwidth is insufficient.
Specifically, the focused attention channel and the non-focused attention channel are determined according to the priority of each video channel. When the preset code stream adjustment strategy is set, the setting can be performed according to the needs of the user, for example, the user sets the priority for each video channel, and the priority of the important channel is considered to be high, and the priority of the unimportant channel is considered to be low. And the channel priority set by the user is used as a reference basis for adjusting the code stream size of the video pictures of which video channels are adjusted at the later stage.
The beneficial effects of the above technical scheme are: the specific method for transmitting the video code streams obtained by adopting the preset code stream adjustment strategy to part of the video channels in the current video channels is provided under the condition that the total bandwidth of the current network does not meet the requirement of high-image-quality multi-channel video transmission, and the video playing smoothness of important channels can be ensured under the condition of insufficient bandwidth.
In an embodiment, the determining whether the actually allocated bandwidth in the focused attention channel in each current video channel needs to be adjusted according to the size relationship between the required bandwidth corresponding to the focused attention channel in each current video channel and the actually allocated bandwidth allocated to the focused attention channel, and executing the following steps:
step S331: calculating the mean value of the distortion degrees according to the distortion degrees of the channels with important attention at all times, wherein the mean value of the distortion degrees is shown in the following formula (1):
Figure BDA0002680666790000101
wherein S is the mean value of distortion degree of the key attention channel, the distortion degree represents the unit pixel difference value in the corresponding area of the distorted video and the original video, SiThe distortion degree of the channel at the ith moment is focused, and n is the total number of the recording points at the moment;
step S332: calculating the peak signal-to-noise ratio of the video signal corresponding to the channel of key interest according to the distortion degree and the mean value of the distortion degree of the channel of key interest at each moment, as shown in the following formula (2):
Figure BDA0002680666790000102
wherein, F is the peak signal-to-noise ratio of the video signal corresponding to the channel of key attention;
substituting formula (1) into formula (2) to obtain formula (3):
Figure BDA0002680666790000111
step S333: calculating the video quality value of the channel concerned mainly according to the video code stream of the channel concerned mainly and the corresponding peak signal-to-noise ratio,
Figure BDA0002680666790000112
wherein, R is a video code stream of a key attention channel;
step S334: calculating the required bandwidth corresponding to the key attention channel according to the video quality value of the key attention channel and the video code stream of the key attention channel,
Figure BDA0002680666790000113
step S335: determining whether the allocated bandwidth needs to be adjusted according to the required bandwidth corresponding to the channel of key concern and the actual allocated bandwidth of the channel of key concern,
if the required bandwidth K corresponding to the channel of major interest is greater than the actually allocated bandwidth K0 for the channel of major interest, the allocated bandwidth K0 of the channel of major interest needs to be adjusted to K or higher,
if the required bandwidth K corresponding to the channel of key interest is less than or equal to the actually allocated bandwidth K0 for the channel of key interest, no adjustment is required.
The working principle of the technical scheme is as follows: because the video transmission quality is affected by a plurality of conditions, at some specific moments, even if the preset network bandwidth is allocated, the video quality is still very low, in order to ensure the video quality of the key attention channel, the video quality of the key attention channel needs to be calculated in real time, the video quality value obtained by calculation is compared with the target video quality value, and the allocated network bandwidth is adjusted through the comparison result, so that the video experience of the user of the key attention channel is ensured.
The beneficial effects of the above technical scheme are: the video quality of the key attention channel is calculated in real time, the video quality value obtained through calculation is compared with the target video quality value, and the distributed network bandwidth is adjusted through the comparison result, so that the video experience of users of the key attention channel can be guaranteed.
In one embodiment, the step 1: determining the total bandwidth of the current network, and executing the following steps:
step S11: pushing a plurality of speed measurement contents to the client and recording the instant downloading speed of each speed measurement content downloaded by the client;
step S12: carrying out arithmetic mean on each recorded instantaneous downloading speed to calculate the network downlink instantaneous speed at the current moment;
step S13: uploading a plurality of speed measurement contents by a client and recording the instantaneous uploading speed of each speed measurement content uploaded by the client;
step S14: carrying out arithmetic mean on each recorded instantaneous uploading speed to calculate the network uplink instantaneous speed at the current moment;
step S15: and obtaining the total bandwidth of the current network according to the network downlink instantaneous speed and the network uplink instantaneous speed.
The working principle of the technical scheme is as follows: firstly, obtaining a network downlink instantaneous speed and a network uplink instantaneous speed according to the instantaneous downloading speed and the instantaneous uploading speed respectively; then, the current network total bandwidth can be obtained according to the network downlink instantaneous speed and the network uplink instantaneous speed.
The beneficial effects of the above technical scheme are: specific steps are provided for determining the total bandwidth of the current network.
In one embodiment, in the step 2, the determining the video streams transmitted by the current video channels includes:
and calculating to obtain the video code stream of the current video transmission channel based on the current bandwidth condition corresponding to the current video transmission channel when requesting video each time.
The working principle of the technical scheme is as follows: for each current video transmission channel, the video code stream of the video transmission channel can be calculated according to the corresponding current bandwidth condition.
The beneficial effects of the above technical scheme are: a specific method for determining the video code stream transmitted by each current video channel is provided.
As shown in fig. 2, an embodiment of the present invention provides a video transmission system, including:
a bandwidth determining module 201, configured to determine a total bandwidth of a current network;
a code stream determining module 202, configured to determine video code streams transmitted by current video channels;
and a code stream adjusting module 203, configured to adjust, according to the current total bandwidth of the network and the video code streams transmitted by the current video channels, the video code streams of some or all of the current video channels by using a preset code stream adjusting policy.
The working principle of the technical scheme is as follows: in the invention, a bandwidth determining module 201 determines the total bandwidth of the current network, a code stream determining module 202 determines the video code streams transmitted by the current video channels, and a code stream adjusting module 203 adjusts the video code streams of part of or all of the current video channels by using a preset code stream adjusting strategy according to the relationship between the total bandwidth of the current network and the video code streams transmitted by the current video channels, so that the multi-channel monitoring requirements of users are met under the condition of insufficient bandwidth, and the video playing smoothness of important channels is ensured.
The beneficial effects of the above technical scheme are: the code stream adjusting module automatically adjusts the video code streams of part of or all of the current video channels by adopting a code stream adjusting strategy, so that the multi-channel monitoring requirements of users can be met under the condition of insufficient bandwidth, the video playing smoothness of important channels is ensured, and the user experience is improved.
In an embodiment, the codestream adjusting policy adopted by the codestream adjusting module 203 includes at least one of the following policies:
the method comprises the steps of automatically switching partial channels in each current video channel into auxiliary code streams, reducing the resolution of the partial channels in each current video channel, reducing the code rate of the partial channels in each current video channel, performing frame extraction processing on partial channel codes in each current video channel, and reducing the frame rate of the partial channels in each current video channel.
The working principle of the technical scheme is as follows: the main factors influencing the code stream are code rate, resolution and frame rate. The code rate is the number of data bits transmitted in unit time during data transmission, generally, the unit used is kbps, namely kilobits per second, namely a sampling rate, the higher the sampling rate in unit time is, the higher the precision is, the closer the processed file is to the original file, the code rate influences the volume of the code stream, and is in direct proportion to the volume of the code stream, the larger the code rate is, the larger the volume of the code stream is, the smaller the code rate is, and the smaller the volume of the code stream is. The frame rate refers to the number of frames of a picture transmitted in 1 second, and can be understood as that a graphics processor can refresh for several times per second, the frame rate affects the smoothness of the picture and is in direct proportion to the smoothness of the picture, and the picture is smoother when the frame rate is higher; the smaller the frame rate, the more the picture has a sense of jitter, if the code rate is variable, the frame rate also affects the volume, and the higher the frame rate, the more pictures passing by per second, the higher the required code rate, and the larger the volume. Video resolution refers to the size or dimensions of the image formed by the video imaging product. The resolution affects the size of the image and the volume of the code stream and is in direct proportion to the volume of the code stream; the higher the resolution, the larger the image, the lower the resolution, and the smaller the image. Compared with the main code stream, the resolution of the auxiliary code stream is smaller than that of the main code stream, so that partial channels in each current video channel are automatically switched into the auxiliary code streams, and the video code streams transmitted by each current video channel can be reduced. Through the frame extraction processing, the process of several minutes, hours or even several days and years can be compressed in a short time to be played in a video mode, so that in a period of delayed video shooting, the process of slow change of objects or scenes is compressed in a short time, and the video code stream transmitted by each current video channel can be reduced.
The beneficial effects of the above technical scheme are: by switching into the auxiliary code stream, reducing the resolution, reducing the code rate, performing frame extraction processing and reducing the frame rate, the video code stream transmitted by each current video channel can be reduced, and the multi-path monitoring requirement of a user is met under the condition of insufficient bandwidth.
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, characterized in that it performs the following steps:
step 1: determining the total bandwidth of the current network;
step 2: determining video code streams transmitted by current video channels;
and step 3: and adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjustment strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels.
2. The method according to claim 1, wherein in the step 3, the preset codestream adjusting policy includes at least one of the following policies:
the method comprises the steps of automatically switching partial channels in each current video channel into auxiliary code streams, reducing the resolution of the partial channels in each current video channel, reducing the code rate of the partial channels in each current video channel, performing frame extraction processing on partial channel codes in each current video channel, and reducing the frame rate of the partial channels in each current video channel.
3. The method of claim 1, wherein step 3: adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjustment strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels, and executing the following steps:
step S31: judging whether the current network total bandwidth meets the multi-channel video transmission of a high-quality picture with definition greater than a preset definition value or not according to the current network total bandwidth and the video code stream transmitted by each current video channel;
step S32: if the total bandwidth of the current network meets the requirement of high-image-quality multi-channel video transmission, all video channels are normally transmitted according to the current video code stream;
step S33: and if the total bandwidth of the current network does not meet the requirement of high-image-quality multi-channel video transmission, transmitting part of video channels in the current video channels according to video code streams obtained by adopting a preset code stream adjustment strategy.
4. The method of claim 3, wherein the step S31: judging whether the current network total bandwidth meets the multichannel video transmission of the high-quality picture with the definition being greater than the preset definition value or not according to the current network total bandwidth and the video code stream transmitted by each current video channel, and executing the following steps:
step S311: comparing the size relationship between the current network total bandwidth and the sum of the video code streams transmitted by the current video channels;
step S312: if the total bandwidth of the current network is greater than or equal to the sum of the video code streams transmitted by the current video channels, judging that the total bandwidth of the current network meets the multichannel video transmission of the high-quality picture;
step S313: and if the current network total bandwidth is smaller than the sum of the video code streams transmitted by the current video channels, judging that the current network total bandwidth does not meet the multichannel video transmission of the high-quality picture.
5. The method according to claim 3, wherein in step S33, if the total bandwidth of the current network does not satisfy the high-quality multi-channel video transmission, the transmitting the video streams obtained by using the preset stream adjustment policy to the partial video channels in the current video channels comprises:
determining whether actual distribution bandwidth in the key attention channel in each video channel needs to be adjusted or not according to the size relation between the required bandwidth corresponding to the key attention channel in each video channel and the actual distribution bandwidth distributed to the key attention channel;
under the condition that the actual distribution bandwidth in the key attention channels in the current video channels does not need to be adjusted, if the total bandwidth of the current network does not meet the requirement of high-image-quality multi-channel video transmission, the key attention channels in the current video channels are normally transmitted according to the current video code stream, and the non-key attention channels in the current video channels are transmitted according to the video code stream obtained by adopting a preset code stream adjustment strategy.
6. The method of claim 5, wherein the emphasized channel and the non-emphasized channel are determined according to a priority of each video channel.
7. The method according to claim 5, wherein the determining whether the actual allocated bandwidth in the channel of significant concern in each video channel needs to be adjusted according to the size relationship between the required bandwidth corresponding to the channel of significant concern in each video channel and the actual allocated bandwidth allocated to the channel of significant concern, and performing the following steps:
step S331: calculating the mean value of the distortion degrees according to the distortion degrees of the channels with important attention at all times, wherein the mean value of the distortion degrees is shown in the following formula (1):
Figure FDA0002680666780000031
wherein S is the mean value of distortion of the channels of key interest, SiTo focus onNoting the distortion degree of the channel at the ith moment, wherein the distortion degree represents the distortion degree of a video transmitted in a key attention channel compared with a corresponding original video, and n is the total number of moment recording points;
step S332: calculating the peak signal-to-noise ratio of the video signal corresponding to the channel of key interest according to the distortion degree and the mean value of the distortion degree of the channel of key interest at each moment, as shown in the following formula (2):
Figure FDA0002680666780000032
wherein, F is the peak signal-to-noise ratio of the video signal corresponding to the channel of key attention;
substituting formula (1) into formula (2) to obtain formula (3):
Figure FDA0002680666780000033
step S333: calculating the video quality value of the channel concerned mainly according to the video code stream of the channel concerned mainly and the corresponding peak signal-to-noise ratio,
Figure FDA0002680666780000034
wherein, R is a video code stream of a key attention channel;
step S334: calculating the required bandwidth corresponding to the key attention channel according to the video quality value of the key attention channel and the video code stream of the key attention channel,
Figure FDA0002680666780000035
step S335: determining whether the allocated bandwidth needs to be adjusted according to the required bandwidth corresponding to the channel of key concern and the actual allocated bandwidth of the channel of key concern,
if the required bandwidth K corresponding to the channel of major interest is greater than the actually allocated bandwidth K0 for the channel of major interest, the allocated bandwidth K0 of the channel of major interest needs to be adjusted to K or higher;
if the required bandwidth K corresponding to the channel of key interest is less than or equal to the actually allocated bandwidth K0 for the channel of key interest, no adjustment is required.
8. The method of claim 1, wherein the step 1: determining the total bandwidth of the current network, and executing the following steps:
step S11: pushing a plurality of speed measurement contents to the client and recording the instant downloading speed of each speed measurement content downloaded by the client;
step S12: carrying out arithmetic mean on each recorded instantaneous downloading speed to calculate the network downlink instantaneous speed at the current moment;
step S13: uploading a plurality of speed measurement contents by a client and recording the instantaneous uploading speed of each speed measurement content uploaded by the client;
step S14: carrying out arithmetic mean on each recorded instantaneous uploading speed to calculate the network uplink instantaneous speed at the current moment;
step S15: and obtaining the total bandwidth of the current network according to the network downlink instantaneous speed and the network uplink instantaneous speed.
9. The method according to claim 1, wherein in the step 2, the determining the video streams transmitted by the current video channels includes:
and calculating to obtain the video code stream of the current video transmission channel based on the current bandwidth condition corresponding to the current video transmission channel when requesting video each time.
10. A video transmission system, comprising:
the bandwidth determining module is used for determining the total bandwidth of the current network;
the code stream determining module is used for determining video code streams transmitted by the current video channels;
and the code stream adjusting module is used for adjusting the video code streams of part of or all of the current video channels by adopting a preset code stream adjusting strategy according to the current network total bandwidth and the video code streams transmitted by the current video channels.
CN202010961383.4A 2020-09-14 2020-09-14 Video transmission method and system Pending CN112203043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010961383.4A CN112203043A (en) 2020-09-14 2020-09-14 Video transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010961383.4A CN112203043A (en) 2020-09-14 2020-09-14 Video transmission method and system

Publications (1)

Publication Number Publication Date
CN112203043A true CN112203043A (en) 2021-01-08

Family

ID=74014878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010961383.4A Pending CN112203043A (en) 2020-09-14 2020-09-14 Video transmission method and system

Country Status (1)

Country Link
CN (1) CN112203043A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114978A (en) * 2021-02-22 2021-07-13 浙江大华技术股份有限公司 Multi-device video negotiation transmission method, system and related device
CN115174567A (en) * 2022-06-22 2022-10-11 浙江大华技术股份有限公司 Code sending method, device, equipment and storage medium
CN115174965A (en) * 2022-06-30 2022-10-11 杭州海康威视数字技术股份有限公司 Video preview method and device, electronic equipment and computer readable storage medium
CN115208862A (en) * 2022-07-12 2022-10-18 厦门立林科技有限公司 Cloud talkback video transmission control method and cloud talkback video device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458272A (en) * 2012-05-30 2013-12-18 中国电信股份有限公司 Method, device and server for determining video streaming pushing code rate
CN104333767A (en) * 2014-10-10 2015-02-04 厦门雅迅网络股份有限公司 Multi-channel priority control method and system for vehicle video monitoring system
CN105827633A (en) * 2016-05-06 2016-08-03 浙江大华技术股份有限公司 Video transmission method and device
US20170094298A1 (en) * 2015-09-28 2017-03-30 Cybrook Inc. Initial Bandwidth Estimation For Real-time Video Transmission
CN107018415A (en) * 2017-03-17 2017-08-04 浙江大华技术股份有限公司 A kind of method and apparatus that video data is exported based on dual code stream
CN111107297A (en) * 2019-12-30 2020-05-05 广州市百果园网络科技有限公司 Video transmission method, device, resource server and storage medium
CN111225240A (en) * 2020-01-19 2020-06-02 安徽文香信息技术有限公司 Method and device for automatically adjusting occupied bandwidth, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458272A (en) * 2012-05-30 2013-12-18 中国电信股份有限公司 Method, device and server for determining video streaming pushing code rate
CN104333767A (en) * 2014-10-10 2015-02-04 厦门雅迅网络股份有限公司 Multi-channel priority control method and system for vehicle video monitoring system
US20170094298A1 (en) * 2015-09-28 2017-03-30 Cybrook Inc. Initial Bandwidth Estimation For Real-time Video Transmission
CN105827633A (en) * 2016-05-06 2016-08-03 浙江大华技术股份有限公司 Video transmission method and device
CN107018415A (en) * 2017-03-17 2017-08-04 浙江大华技术股份有限公司 A kind of method and apparatus that video data is exported based on dual code stream
CN111107297A (en) * 2019-12-30 2020-05-05 广州市百果园网络科技有限公司 Video transmission method, device, resource server and storage medium
CN111225240A (en) * 2020-01-19 2020-06-02 安徽文香信息技术有限公司 Method and device for automatically adjusting occupied bandwidth, storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
田魁,刘奕彤,常永宇,杨大成: "一种新型的基于全参考的视频质量评价方法", 《现代电信科技》 *
魏淑芝,朱琦: "基于网络选择的视频通信带宽博弈算法", 《通信学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114978A (en) * 2021-02-22 2021-07-13 浙江大华技术股份有限公司 Multi-device video negotiation transmission method, system and related device
CN115174567A (en) * 2022-06-22 2022-10-11 浙江大华技术股份有限公司 Code sending method, device, equipment and storage medium
CN115174965A (en) * 2022-06-30 2022-10-11 杭州海康威视数字技术股份有限公司 Video preview method and device, electronic equipment and computer readable storage medium
CN115174965B (en) * 2022-06-30 2024-01-02 杭州海康威视数字技术股份有限公司 Video preview method, device, electronic equipment and computer readable storage medium
CN115208862A (en) * 2022-07-12 2022-10-18 厦门立林科技有限公司 Cloud talkback video transmission control method and cloud talkback video device

Similar Documents

Publication Publication Date Title
CN112203043A (en) Video transmission method and system
US9225980B2 (en) Video quality of sevice management and constrained fidelity constant bit rate video encoding systems and methods
CN101185337B (en) Quasi-constant-quality rate control with look-ahead
US20130304934A1 (en) Methods and systems for controlling quality of a media session
US20090028428A1 (en) Media Content Management
EP2096868A2 (en) Context-adaptive bandwidth adjustment in video rate control
EP1575300B1 (en) System and method for controlling bit rate of an image
CN103517137A (en) Network video transmission method and system, sending/receiving end processing method and device
US10506006B2 (en) Method and system for flow-rate regulation in a content-controlled streaming network
CN111225254A (en) Video transmission method, device, terminal equipment and storage medium
CN111491201B (en) Method for adjusting video code stream and video frame loss processing method
WO2014066975A1 (en) Methods and systems for controlling quality of a media session
JP4586328B2 (en) Information processing system, information processing apparatus and method, recording medium, and program
KR20040062732A (en) Bit rate control system based on object
CN108924555B (en) Code rate control bit distribution method suitable for video slice
US10021159B2 (en) Method of stabilized adaptive video streaming for high dynamic range (HDR)
CN116193133A (en) Code rate self-adaptive adjusting device and method based on wireless air interface bandwidth
KR20180079320A (en) Method and system for flow rate adjustment in content control streaming network
CN111711810B (en) Stereo video transmission method based on asymmetric code rate distribution
KR20180050362A (en) Method and system for panoramic multimedia streaming
Othman et al. A user-experience driven ssim-aware adaptation approach for dash video streaming
KR101795958B1 (en) Adaptive control method, apparatus and user device for providing video in real time network cameras
CN114640851B (en) Self-adaptive omnidirectional video stream transmission method based on quality perception
TWI774383B (en) Encoder and associated signal processing method
CN110121080A (en) Method, system and the computer equipment that virtual reality transmission of video and downloading play

Legal Events

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

Application publication date: 20210108

RJ01 Rejection of invention patent application after publication