CN109600586A - A kind of video optimized transmission method of safety defense monitoring system - Google Patents
A kind of video optimized transmission method of safety defense monitoring system Download PDFInfo
- Publication number
- CN109600586A CN109600586A CN201811574876.1A CN201811574876A CN109600586A CN 109600586 A CN109600586 A CN 109600586A CN 201811574876 A CN201811574876 A CN 201811574876A CN 109600586 A CN109600586 A CN 109600586A
- Authority
- CN
- China
- Prior art keywords
- time
- image
- data
- block
- video
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/186—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/625—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/23805—Controlling the feeding rate to the network, e.g. by controlling the video pump
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/2662—Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Abstract
The present invention relates to a kind of video optimized transmission methods of safety defense monitoring system, solve be adaptive optimization transmit so that the data at remote monitoring center end block, Transmission the technical issues of, by using in video flowing initial data sampled original image, color space processing successively is carried out to original image, then carries out discrete cosine transformation;Step 2 determines current image block, with the match block of minimum absolute difference summation SAD matching criterior fast search current image block, and calculates the motion vector of image block, completes compression processing, obtains compressed video signal;Step 3 calculates peak transfer rate in network transmission process using TCP close friend's congestion avoidance algorithm;Step 4, the peak transfer rate that step 3 is calculated adjusts the transmission rate of vision signal as the peak transfer rate of TCP data stream in real time, until completing the technical solution of the real-time Transmission task of video image, the problem is preferably resolved, can be used in safety monitoring.
Description
Technical field
The present invention relates to protection and monitor fields, and in particular to a kind of video optimized transmission method of safety defense monitoring system.
Background technique
With the deep development of Internet of Things, the transmission technology of security protection video data has also obtained wider application.Pacifying
The broad sense long-range of anti-monitoring field, live distributivity and monitoring center shows apparent trend.Currently in order to reply
The distributivity and concurrent characteristic of network are monitored, mainly improves efficiency of transmission by the way of data compression, however in each prison
Sub-network resource is controlled seriously under unbalanced scene, can not adaptive optimization transmit so that the data at remote monitoring center end are stifled
The problem of plug, Transmission, is still very common.
The present invention provides a kind of video optimized transmission methods of safety defense monitoring system for solving above-mentioned technical problem.
Summary of the invention
It is transmitted the technical problem to be solved by the present invention is to adaptive optimization existing in the prior art so that long-range monitoring
Center-side data blocking, Transmission the technical issues of.A kind of video optimized transmission side of new safety defense monitoring system is provided
Method, the video optimized transmission method of the safety defense monitoring system has the characteristics that being capable of adaptive optimization transmission.
In order to solve the above technical problems, the technical solution adopted is as follows:
A kind of video optimized transmission method of safety defense monitoring system, the video optimized transmission method include:
Step 1 successively carries out color space processing to original image in video flowing initial data sampled original image, then
Carry out discrete cosine transformation;
Step 2 determines current image block, with minimum absolute difference summation SAD matching criterior fast search current image block
Match block, and the motion vector of image block is calculated, compression processing is completed, compressed video signal is obtained;
It is maximum in network transmission process to calculate compressed video signal using TCP close friend's congestion avoidance algorithm for step 3
Transmission rate SPmax;
Step 4, the peak transfer rate SP that step 3 is calculatedmaxAs the peak transfer rate of TCP data stream, in real time
The transmission rate of vision signal is adjusted, until completing the real-time Transmission task of video image.
The working principle of the invention: discrete cosine is carried out to the video flowing initial data for passing through color space processing in storage
Transformation, removes the spatial redundancy of vision signal.
In above scheme, for optimization, further, the step 1 includes:
Step 1.1, color space conversion is carried out to original image using YUV color space, storage color space is converted
The sampled images arrived;
Wherein, Y is brightness, and U is coloration, and V is saturation degree;
Step 1.2, sampling obtains sampled images p (x, y), and definition image size is M × N, is calculated using discrete cosine transform
Formula carries out non-loss transformation to image and completes discrete cosine transformation, image after being converted:
Wherein, P (u, v) is transformed image, u=0,1,2 ..., M-1, v=0,1,2 ..., N-1;
For coloration U and saturation degree V, by adding 128 so that it becomes eight signless integers, convenient for the storage of data
With calculating;When image is stored, reduce the amount of storage of data in the range of guaranteeing does not influence eye-observation, by YUV tri-
Component is sampled in a manner of 4:1:1 or 4:2:2, completes the sampling of image.
After transformation, most of energy of image data concentrates on an a small range of frequency domain, reduces video
The bit number of image, to remove the spatial redundancy of vision signal.
Further, step 2 includes:
Step 2.1, the correlation according to the movement of video image in the time and space, using based on sad value and matching
The equal criteria for prediction of block motion vector, obtains the search starting point of current image block;
If the motion vector of each match block of current frame image block is equal, using current frame image block as the fortune of current block
The predicted value of moving vector;It otherwise, will be most like by solving minimum sad value acquisition and the most like match block of current image block
Search starting point of the match block motion vector as current block;If in present image and adjacent image between each respective pixel pair
Absolute value of the difference be ai(i=1,2 ..., n), the then sad value of current block and match block are as follows:
A=a1+a2+…+an;
Wherein, n is the number of pixels of present image;
Step 2.2, according to having gradually changeable between adjacent pixel in video frame, the distribution of video image sad value is configured to
One directive curved surface of tool is ranked up video image sad value using the directionality of the curved surface from small to large, depending on
The weighted value of the fast search algorithm of the ascending execution match block of frequency image sad value successively successively decreases, and realizes the fast of match block
Speed search;
Step 2.3, the fast search algorithm for executing match block completes the search of match block, record matching block and current block
Motion vector of the similar displacement as image, storage motion vector form the compressed signal of video image as compression video letter
Number.
Further, the fast search algorithm of the match block includes:
Step A defines search window, determines search starting point, calculates each Searching point pair in all directions of search window outmost turns
The sad value answered;
Step B, sequence determines sad value, if the sad value of each Searching point in all directions is both greater than the SAD of current search starting point
Value, then be defined as best Searching point for the current search starting point and scan for, search out optimal match point;Otherwise replacement is current
Search starting point executes step C;
Step C, if current search starting point and best Searching point belong to same direction and sad value successively decreases change rate minimum,
Other directions are then calculated to correspond to the sad value of Searching point and execute step B;Otherwise, it is replaced with the smallest Searching point of current change rate
Best Searching point;
Step D, if current search point at search window edge, using current search point as best Searching point;Otherwise
One encloses the sad value for corresponding to Searching point under Searching point direction calculating, if next sad value for enclosing corresponding Searching point is less than current minimum
The sad value of point, then correspond to Searching point as current search point and execute step C;Otherwise other directions are calculated and correspond to Searching point
Sad value simultaneously executes step B.
Further, step 3 includes:
Step 3.1, past with transmission of the timestamp calculating compressed signal of data packet between transmitting terminal and data receiver
Return time timeRT;In compressed data transmission process, if data transmission fails, the retransmission time out time time of TCPTRWith data
Wrap two-way time timeRTTwo times of participations calculate, it may be assumed that
timeTR=2timeRT;
Wherein, K is the decay factor and K ∈ [0.1,0.125], time of smoothed data packet two-way timenowTo receive termination
Receive the time of data, timepastFor the timestamp of data feedback packet,For previous secondary data packet it is round-trip when
Between;
Step 3.2, the weight for losing event every time is calculated:
Wherein, j indicates jth time loss event, and n indicates the number of loss event;
Step 3.3, using discount factor zjReduction processing is carried out to each weight for losing event:
Wherein, NumjIndicate from 1 the quantity of the data packet in jth time loss event into n times;
Step 3.4, discount factor z is utilizedj, weight wjAnd averagely lose the meter that partitioning method completes the packet loss probability of happening
It calculates:
Wherein, Num is that average lose is spaced;
Step 3.5, compressed signal is in the transmission process of transmitting terminal and receiving end by data packet two-way time timeRT, TCP
Retransmission time out time timeTRAnd the influence of data packetloss probability of happening p, it is calculated using TCP close friend's congestion avoidance algorithm
The peak transfer rate of TCP data stream:
Wherein, SPmaxFor the peak transfer rate of compressed signal, sizedataFor the size of compressed signal data packet, timeRT
Two-way time, time are transmitted for data packetTRFor the TCP retransmission time out time.
Further, step 4 includes:
The peak transfer rate SP of compressed data packets is obtained according to step 3max, according to data packet actual transfer rate and most
Big transmission rate SPmaxComparing result, the transmission rate of real-time aligned data:
Step 4.1, transmission rate is defined are as follows:
Wherein, SP is actual transfer rate, sizedataFor the size of compressed data packets, timeRTFor the round-trip transmission time;
If current time transmission rate is less than maximum rate SPmax, then by adjusting the transmission time interval of compressed data packets
Control the transmission rate of data;
Time interval adjustment mode:
Wherein,For the mean square root of all two-way times, timenow0, timepast0It is respectively the last
Receiving end receives the time of data and the timestamp of data feedback packet, and K is decay factor;
Step 4.2, if actual transfer rate is greater than maximum rate SPmax, then rate is directly reduced to SPmax, i.e. SP=
SPmax。
Beneficial effects of the present invention: the present invention, can be real-time in complicated and changeable and sporadic strong network transmission task
It is reliably completed the transformation task of video image, the transmission rate of adaptive adjustment signal efficiently utilizes Internet resources, offsets son
Unbalanced generated negative effect is netted, there is real-time and stable beneficial effect.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples.
Fig. 1, the flow chart of the video optimized transmission method of safety defense monitoring system in embodiment 1.
Fig. 2, the positional diagram between current frame image block and time-space registration block.
Fig. 3, direction of search schematic diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiments, to the present invention
It is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to limit
The fixed present invention.
Embodiment 1
The present embodiment provides a kind of video optimized transmission method of safety defense monitoring system, such as Fig. 1, the video optimized transmission
Method includes:
Step 1 successively carries out color space processing to original image in video flowing initial data sampled original image, then
Carry out discrete cosine transformation;
Step 2 determines current image block, with minimum absolute difference summation SAD matching criterior fast search current image block
Match block, and the motion vector of image block is calculated, compression processing is completed, compressed video signal is obtained;
It is maximum in network transmission process to calculate compressed video signal using TCP close friend's congestion avoidance algorithm for step 3
Transmission rate SPmax;
Step 4, the peak transfer rate SP that step 3 is calculatedmaxAs the peak transfer rate of TCP data stream, in real time
The transmission rate of vision signal is adjusted, until completing the real-time Transmission task of video image.
In detail, such as Fig. 2, process is as follows:
First part: discrete cosine transform is carried out to the video flowing initial data for passing through color space processing in storage, is gone
Except the spatial redundancy of vision signal;Original image is obtained, and color space conversion is carried out to it using YUV color space, is completed
The sampling of image data;
1. in YUV color space, usually representing brightness with Y, U and V respectively represent coloration and saturation degree, between RGB and YUV
Transformational relation may be expressed as:
For coloration and saturation degree, by adding 128 so that it becomes eight signless integers, convenient for data storage with
It calculates;
2. image is stored, reduce the amount of storage of data in the range of guaranteeing does not influence eye-observation, by YUV tri-
A component is sampled in a manner of 4:1:1 or 4:2:2, completes the sampling of image;
It obtains sampled images p (x, y), it is assumed that image size is M × N, using following discrete cosine transform formula to image
Carry out non-loss transformation:
Wherein P (u, v) is transformed image, u=0,1,2 ..., M-1, v=0,1,2 ..., N-1;
After transformation, most of energy of image data concentrates on an a small range of frequency domain, reduces video
The bit number of image, to remove the spatial redundancy of vision signal;
Second part: it using the motion relevance of video image, is quickly searched with minimum absolute difference summation (SAD) matching criterior
The match block of rope current image block, and the motion vector of image is obtained, to complete the compression processing of vision signal;
According to correlation of the movement of video image in the time and space, using based on sad value and match block move to
Equal criteria for prediction is measured, the search starting point of current image block is obtained;
1. during image motion, the positional relationship between the image block and match block of present frame is as shown in Figure 2:
2. if the motion vector of each match block of current frame image block is equal, as the motion vector of current block
Predicted value;Otherwise by solving minimum sad value acquisition and the most like match block of current block, using its motion vector as current block
Search starting point;If the absolute value of the difference in present image and adjacent image between each respective pixel pair is ai(i=1,
2 ..., n), then the sad value of current block and match block are as follows:
A=a1+a2+…+an;
Wherein, n is the number of pixels of present image;
Using the directionality of video image sad value distribution and the fast search algorithm of match block, the movement arrow of image is obtained
Amount, completes the compression processing of vision signal;
1. due to having gradually changeable between adjacent pixel in video frame, the distribution of sad value constitutes a curved surface and has one
Fixed directionality, using directionality, the part less than normal to sad value carries out focussing search, realizes the fast search of match block;
2. the fast search algorithm key step of match block is as follows:
Such as Fig. 3, search starting point is determined, and calculate the corresponding sad value of all direction each points of search window outmost turns;
If directive sad value be both greater than the sad value of current starting point, searched using the point as best Searching point
Rope, and find out optimal match point;Otherwise current starting point is replaced;
If current starting point with best Searching point belongs to same direction and sad value successively decreases, change rate is minimum, calculates other
Direction corresponds to the sad value of Searching point and executes b);Otherwise best Searching point is replaced with current smallest point;
If Searching point is at search window edge, using the Searching point as best Searching point;Otherwise along Searching point direction
Next sad value for enclosing corresponding Searching point is calculated, if sad value is less than the sad value of current smallest point, the point is as Searching point and holds
Row c);Otherwise other directions are calculated to correspond to the sad value of Searching point and execute b);
3. completing the search of match block using above-mentioned algorithm, and the displacement similar to current block of record matching block is as image
Motion vector, storage motion vector formed video image compressed signal;
Part III, using TCP close friend's congestion avoidance algorithm, calculating compressed video signal should have in network transmission process
Peak transfer rate;
Analyze video signal compression data packet consumed transmission time between transmitting terminal and data receiver;
1. calculating transmission two-way time of the compressed signal between transmitting terminal and data receiver with the timestamp of data packet
timeRT:
Wherein K is the decay factor and K ∈ [0.1,0.125], time of smoothed data packet two-way timenowTo receive termination
Receive the time of data, timepastFor the timestamp of data feedback packet,For previous secondary data packet it is round-trip when
Between;
2. in compressed data transmission process, if data transmission fails, the retransmission time out time time of TCPTRWith data packet
Two-way time timeRTTwo times of participations calculate, it may be assumed that
timeTR=2timeRT;
Compressed signal carries out that congestion inevitably occurs when network transmission, just occurs data packetloss, TCP close friend's congestion therewith
The transmission rate of data is adjusted by calculating the packet loss probability of happening of data in control algolithm, the packet loss probability of happening is used
Interval method is averagely lost to complete to calculate:
A) firstly, calculating the weight for losing event every time:
Wherein j indicates jth time loss event, and n indicates the number of loss event;
B) fluctuation for losing incident rate is calculated because caused by data packet number is too big to reduce, using discount factor zjIt is right
The weight for losing event every time carries out reduction processing:
Wherein NumjIndicate from 1 the quantity of the data packet in jth time loss event into n times;
C) discount factor z is utilizedj, weight wjAnd averagely lose the calculating that partitioning method completes the packet loss probability of happening:
Wherein, Num is that average lose is spaced;
Compressed signal transmitting terminal and receiving end transmission process by data packet two-way time timeRT, TCP retransmission time out
Time timeTRAnd the influence of data packetloss probability of happening p, TCP data stream is calculated using TCP close friend's congestion avoidance algorithm
Peak transfer rate:
Wherein, SPmaxFor the peak transfer rate of compressed signal, sizedataFor the size of compressed signal data packet, timeRT
Two-way time, time are transmitted for data packetTRFor the TCP retransmission time out time;
Part IV adjusts the transmission rate of vision signal, in real time according to the peak transfer rate of TCP data stream with stabilization
Transmission rate efficiently accomplish the real-time Transmission task of video image.
The peak transfer rate SP of compressed data packets is obtained by step Cmax, according to data packet actual transfer rate and most
Big transmission rate SPmaxComparing result, the transmission rate of real-time aligned data:
If time tranfer rate is less than maximum rate SPmax, then controlled by adjusting the transmission time interval of compressed data packets
The transmission rate of data;
Time interval adjustment mode:
Wherein,The mean square root of all two-way times, timenow0, timepast0Respectively the last time connects
Receiving end receives the time of data and the timestamp of data feedback packet, and K is decay factor;
Transmission rate are as follows:
Wherein, SP is actual transfer rate, sizedataFor the size of compressed data packets, timeRTFor the round-trip transmission time;
If actual transfer rate is greater than maximum rate SPmax, then rate is directly reduced to SPmax, i.e. SP=SPmax;
It adjusts the transmission rate of compressed data in real time using above method, effectively control network congestion condition, realizes video
The real-time and stability of signal transmission, complete safety defense monitoring system video image real-time Transmission task.
Although the illustrative specific embodiment of the present invention is described above, in order to the technology of the art
Personnel are it will be appreciated that the present invention, but the present invention is not limited only to the range of specific embodiment, to the common skill of the art
For art personnel, as long as long as various change the attached claims limit and determine spirit and scope of the invention in, one
The innovation and creation using present inventive concept are cut in the column of protection.
Claims (6)
1. a kind of video optimized transmission method of safety defense monitoring system, it is characterised in that: the video optimized transmission method includes:
Step 1 successively carries out color space processing to original image, then carry out in video flowing initial data sampled original image
Discrete cosine transformation;
Step 2 determines current image block, with the matching of minimum absolute difference summation SAD matching criterior fast search current image block
Block, and the motion vector of image block is calculated, compression processing is completed, compressed video signal is obtained;
Step 3 calculates compressed video signal maximum transmitted in network transmission process using TCP close friend's congestion avoidance algorithm
Rate SPmax;
Step 4, the peak transfer rate SP that step 3 is calculatedmaxAs the peak transfer rate of TCP data stream, adjust in real time
The transmission rate of vision signal, until completing the real-time Transmission task of video image.
2. the video optimized transmission method of safety defense monitoring system according to claim 1, it is characterised in that: the step 1
Including
Step 1.1, color space conversion is carried out to original image using YUV color space, storage color space is converted to
Sampled images;
Wherein, Y is brightness, and U is coloration, and V is saturation degree;
Step 1.2, sampling obtains sampled images p (x, y), and definition image size is M × N, utilizes discrete cosine transform formula pair
Image carries out non-loss transformation and completes discrete cosine transformation, image after being converted:
Wherein, P (u, v) is transformed image, u=0,1,2 ..., M-1, v=0,1,2 ..., N-1;
3. the video optimized transmission method of safety defense monitoring system according to claim 2, it is characterised in that: step 2 packet
It includes:
Step 2.1, the correlation according to the movement of video image in the time and space is transported using based on sad value and match block
The equal criteria for prediction of moving vector, obtains the search starting point of current image block;
If the motion vector of each match block of current frame image block is equal, using current frame image block as the movement of current block to
The predicted value of amount;Otherwise, by solving minimum sad value acquisition and the most like match block of current image block, by most like
Search starting point with block motion vector as current block;If the difference in present image and adjacent image between each respective pixel pair
Absolute value be ai(i=1,2 ..., n), the then sad value of current block and match block are as follows:
A=a1+a2+…+an;
Wherein, n is the number of pixels of present image;
Step 2.2, according to having gradually changeable between adjacent pixel in video frame, the distribution of video image sad value is configured to one
Have directive curved surface, using the directionality of the curved surface, video image sad value is ranked up from small to large, video figure
As the weighted value of the fast search algorithm of the ascending execution match block of sad value successively successively decreases, quickly searching for match block is realized
Rope;
Step 2.3, the fast search algorithm for executing match block completes the search of match block, and record matching block is similar to current block
It is displaced the motion vector as image, storage motion vector forms the compressed signal of video image as compressed video signal.
4. the video optimized transmission method of safety defense monitoring system according to claim 3, it is characterised in that: the match block
Fast search algorithm include:
Step A defines search window, determines search starting point, and it is corresponding to calculate each Searching point in all directions of search window outmost turns
Sad value;
Step B, sequence determines sad value, if the sad value of each Searching point in all directions is both greater than the sad value of current search starting point,
The current search starting point is defined as best Searching point to scan for, searches out optimal match point;Otherwise current search is replaced
Starting point executes step C;
Step C is counted if current search starting point and best Searching point belong to same direction and sad value successively decreases change rate minimum
Other directions are calculated to correspond to the sad value of Searching point and execute step B;Otherwise, it is replaced with the smallest Searching point of current change rate best
Searching point;
Step D, if current search point at search window edge, using current search point as best Searching point;Otherwise edge is searched
One encloses the sad value for corresponding to Searching point under rope point direction calculating, if next sad value for enclosing corresponding Searching point is less than current smallest point
Sad value then corresponds to Searching point as current search point and executes step C;Otherwise the sad value that other directions correspond to Searching point is calculated
And execute step B.
5. the video optimized transmission method of safety defense monitoring system according to claim 4, it is characterised in that:
Step 3 includes:
Step 3.1, when round-trip with transmission of the timestamp calculating compressed signal of data packet between transmitting terminal and data receiver
Between timeRT;In compressed data transmission process, if data transmission fails, the retransmission time out time time of TCPTRIt is past with data packet
Return time timeRTTwo times of participations calculate, it may be assumed that
timeTR=2timeRT;
Wherein, K is the decay factor and K ∈ [0.1,0.125], time of smoothed data packet two-way timenowIt is received for receiving end
The time of data, timepastFor the timestamp of data feedback packet,For the two-way time of previous secondary data packet;
Step 3.2, the weight for losing event every time is calculated:
Wherein, j indicates jth time loss event, and n indicates the number of loss event;
Step 3.3, using discount factor zjReduction processing is carried out to each weight for losing event:
Wherein, NumjIndicate from 1 the quantity of the data packet in jth time loss event into n times;
Step 3.4, discount factor z is utilizedj, weight wjAnd averagely lose the calculating that partitioning method completes the packet loss probability of happening:
Wherein, Num is that average lose is spaced;
Step 3.5, compressed signal is in the transmission process of transmitting terminal and receiving end by data packet two-way time timeRT, TCP re-transmission
Time-out time timeTRAnd the influence of data packetloss probability of happening p, TCP number is calculated using TCP close friend's congestion avoidance algorithm
According to the peak transfer rate of stream:
Wherein, SPmaxFor the peak transfer rate of compressed signal, sizedataFor the size of compressed signal data packet, timeRTFor number
Two-way time, time are transmitted according to packetTRFor the TCP retransmission time out time.
6. the video optimized transmission method of safety defense monitoring system according to claim 5, it is characterised in that: step 4 packet
It includes:
The peak transfer rate SP of compressed data packets is obtained according to step 3max, according to data packet actual transfer rate and maximum biography
Defeated rate SPmaxComparing result, the transmission rate of real-time aligned data:
Step 4.1, transmission rate is defined are as follows:
Wherein, SP is actual transfer rate, sizedataFor the size of compressed data packets, timeRTFor the round-trip transmission time;
If current time transmission rate is less than maximum rate SPmax, then controlled by adjusting the transmission time interval of compressed data packets
The transmission rate of data;
Time interval adjustment mode:
Wherein,For the mean square root of all two-way times, timenow0, timepast0Respectively the last receiving end
The time of data and the timestamp of data feedback packet are received, K is decay factor;
Step 4.2, if actual transfer rate is greater than maximum rate SPmax, then rate is directly reduced to SPmax, i.e. SP=SPmax。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811574876.1A CN109600586A (en) | 2018-12-21 | 2018-12-21 | A kind of video optimized transmission method of safety defense monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811574876.1A CN109600586A (en) | 2018-12-21 | 2018-12-21 | A kind of video optimized transmission method of safety defense monitoring system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109600586A true CN109600586A (en) | 2019-04-09 |
Family
ID=65963188
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811574876.1A Pending CN109600586A (en) | 2018-12-21 | 2018-12-21 | A kind of video optimized transmission method of safety defense monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109600586A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557273A (en) * | 2008-04-11 | 2009-10-14 | 傅承鹏 | Method simultaneously suitable for wired network real-time streaming media transport protocol and wireless network real-time streaming media transport protocol |
CN103957389A (en) * | 2014-05-13 | 2014-07-30 | 重庆大学 | 3G video transmission method and system based on compression sensing |
CN104113884A (en) * | 2013-04-18 | 2014-10-22 | 南京邮电大学 | Real-time multimedia transmission rate control mechanism in wireless network |
CN104135486A (en) * | 2014-08-08 | 2014-11-05 | 浙江奇汇电子提花机有限公司 | Streaming media wireless adaptive transmission method based on TCP (Transmission Control Protocol) |
WO2015063018A1 (en) * | 2013-10-30 | 2015-05-07 | Alcatel Lucent | Method and system for queue management in a packet-switched network |
-
2018
- 2018-12-21 CN CN201811574876.1A patent/CN109600586A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557273A (en) * | 2008-04-11 | 2009-10-14 | 傅承鹏 | Method simultaneously suitable for wired network real-time streaming media transport protocol and wireless network real-time streaming media transport protocol |
CN104113884A (en) * | 2013-04-18 | 2014-10-22 | 南京邮电大学 | Real-time multimedia transmission rate control mechanism in wireless network |
WO2015063018A1 (en) * | 2013-10-30 | 2015-05-07 | Alcatel Lucent | Method and system for queue management in a packet-switched network |
CN103957389A (en) * | 2014-05-13 | 2014-07-30 | 重庆大学 | 3G video transmission method and system based on compression sensing |
CN104135486A (en) * | 2014-08-08 | 2014-11-05 | 浙江奇汇电子提花机有限公司 | Streaming media wireless adaptive transmission method based on TCP (Transmission Control Protocol) |
Non-Patent Citations (2)
Title |
---|
李炜,乐立鸾,李波: "基于起点预测和SAD分布的快速运动估计算法", 《计算机学报》 * |
李红: "互联网流媒体传输拥塞控制研究", 《中国优秀博士论文集》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110553629B (en) | Unmanned aerial vehicle target tracking power consumption optimization method and system based on edge calculation | |
CN110855400B (en) | Self-adaptive packet loss recovery method based on error correction code, computing device and storage medium | |
US7292533B2 (en) | System and method for controlling data transmission adapted for grid computing and computer readable recording medium of recording process thereof | |
CN111787509A (en) | Unmanned aerial vehicle task unloading method and system based on reinforcement learning in edge calculation | |
CN110570454A (en) | Method and device for detecting foreign matter invasion | |
CN110011983B (en) | Flow table characteristic-based denial of service attack detection method | |
CN106658644B (en) | Communication network routing method and device | |
Kanzaki et al. | Video streaming schemes for industrial IoT | |
US20200322663A1 (en) | Controlled Uplink Adaptive Streaming based on Server Performance Measurement Data | |
CN109600586A (en) | A kind of video optimized transmission method of safety defense monitoring system | |
Berman et al. | Positive matrices associated with synchronised communication networks | |
Custura et al. | Rethinking acks at the transport layer | |
CN109787996B (en) | Camouflage attack detection method based on DQL algorithm in fog calculation | |
CN116455522A (en) | Method and system for transmitting lamplight interaction control information | |
Patel et al. | The low-rate denial of service attack based comparative study of active queue management scheme | |
Wei et al. | A study on LoRa Dynamic Image Transmission | |
CN112367311B (en) | DDoS attack detection method, device, equipment and storage medium | |
Nakamura et al. | Malicious host detection by imaging SYN packets and a neural network | |
Li et al. | AdaBoost-TCP: A machine learning-based congestion control method for satellite networks | |
CN109547978B (en) | IoT privacy protection system and method based on wireless traffic filling | |
Xiao et al. | Research on image compression and transmission mechanism for wireless multimedia sensor networks | |
Chen et al. | Passive TCP identification for wired and wireless networks: A long-short term memory approach | |
JP5009200B2 (en) | Network attack detection device and defense device | |
Li et al. | Balancing latency and accuracy on deep video analytics at the edge | |
CN109348259A (en) | A kind of the transmission code rate adjustment method and system of wireless network video |
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: 20190409 |
|
RJ01 | Rejection of invention patent application after publication |