CN101977185A - Digital video recorder in video monitoring system and network connection control method thereof - Google Patents

Digital video recorder in video monitoring system and network connection control method thereof Download PDF

Info

Publication number
CN101977185A
CN101977185A CN2010105061200A CN201010506120A CN101977185A CN 101977185 A CN101977185 A CN 101977185A CN 2010105061200 A CN2010105061200 A CN 2010105061200A CN 201010506120 A CN201010506120 A CN 201010506120A CN 101977185 A CN101977185 A CN 101977185A
Authority
CN
China
Prior art keywords
code stream
bandwidth
parameter
current
client
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
CN2010105061200A
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN2010105061200A priority Critical patent/CN101977185A/en
Publication of CN101977185A publication Critical patent/CN101977185A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to the field of video monitoring, and discloses a digital video recorder in a video monitoring system and a network connection control method thereof. The method comprises the following steps: when the residual bandwidth is not sufficient to support newly added code streams, lowering the code stream characteristics step by step to adapt to the overall bandwidth, recoding all the code streams by using the adjusted code stream characteristics and transmitting the code streams, so that the digital video recorder can support more clients by using limited bandwidth while viewing the monitoring video; and when the number of connected clients decreases, under the limit of rated overall bandwidth, trying to rising the code stream characteristics, thereby realizing code stream adjustment in a self-adapting mode.

Description

Digital VTR and network connection control method thereof in the video monitoring system
Technical field
The present invention relates to field of video monitoring, particularly the network traffics control technology of digital VTR in the video monitoring system.
Background technology
The digital VTR of real-time video monitoring system will be recorded a video in this locality after obtaining vision signal from monitoring camera on the one hand, vision signal will be transferred in real time the client that preview needs on the other hand.These clients are connected to digital VTR by network (as internet, local area network (LAN)).When carrying out Network Transmission, the Network Transmission bandwidth is the most valuable resource, the also the easiest often resource that causes bottleneck, and it directly determines the fluency of video transmission.
The bandwidth considerations that influences the video fluency is that mainly video data transmits upstream to this section of wide area network from watch-dog.When a plurality of client connection request transfer of data, because the restriction of bandwidth must have some connection requests and can not get timely response.
Application number is the method that 200810119155.1 Chinese patent has proposed adaptive bandwidth in a kind of real-time monitoring system, video data is carried out hierarchical coding, the code stream of different layers passes to different forwarding servers, and forwarding server only sends master data according to network bandwidth situation or master data adds the several layers additional data.
Above-mentioned prior art problems is, needs to increase forwarding server in the system, and cost is higher.
Summary of the invention
The object of the present invention is to provide digital VTR and network connection control method thereof in a kind of video monitoring system, can support more multi-client while checking monitoring video with limited bandwidth.
For solving the problems of the technologies described above, embodiments of the present invention provide the control method that digital VTR is connected with client network in a kind of video monitoring system, may further comprise the steps:
When the client linking number that is connected to digital VTR by network increases, judge according to current code stream parameter whether the current residual bandwidth enough sends newly-increased code stream;
If the current residual bandwidth is not enough, then begin to reduce step by step the code stream parameter from current code stream parameter, up to by the code stream calculation of parameter after reducing, comprise that the total bandwidth of all code streams of newly-increased code stream is not higher than specified total bandwidth;
With the code stream parameter after reducing to the transmission of encoding of all code streams.
Embodiments of the present invention also provide a kind of digital VTR code stream parameter adjustment module of video monitoring system, comprising:
First judging unit is used for judging according to the client linking number that is connected to this digital VTR by network whether the client linking number changes;
Second judging unit is used for judging according to current code stream parameter whether the current residual bandwidth enough sends newly-increased code stream;
First computing unit, be used for judging that at first judging unit client linking number increases, and second judging unit is judged when the current residual bandwidth is not enough, begin to reduce step by step the code stream parameter from current code stream parameter, up to by the code stream calculation of parameter after reducing, comprise that the total bandwidth of all code streams of newly-increased code stream is not higher than specified total bandwidth;
Parameter set unit is used for the code stream parameter after the reduction of the first computing unit gained is offered the module that is used for all code stream codings and sends as current code stream parameter.
Embodiments of the present invention also provide a kind of digital VTR of video monitoring system, comprising:
Link control module is used for client alternately, and the client linking number that is connected to digital VTR by network is provided;
Coding module is used for according to current code stream parameter code stream being encoded;
The bandwidth statistical module is used to add up and calculate the bandwidth value of current real surplus;
The code stream parameter adjustment module is used for the code stream parameter is adjusted, comprising:
First judging unit is used for judging according to the client linking number from link control module whether the client linking number changes;
Second judging unit is used for judging according to current code stream parameter whether the bandwidth of the current real surplus that the bandwidth statistical module is provided enough sends newly-increased code stream;
First computing unit, be used for judging that at first judging unit client connects increase, and second judging unit is judged when the current residual bandwidth is not enough, begin to reduce step by step the code stream parameter from current code stream parameter, up to by the code stream calculation of parameter after reducing, comprise that the total bandwidth of all code streams of newly-increased code stream is not higher than specified total bandwidth;
Parameter set unit is used for that the code stream parameter after the reduction of the first computing unit gained is offered coding module as current code stream parameter and link control module is used.
Embodiment of the present invention compared with prior art, the main distinction and effect thereof are:
When remaining bandwidth is not enough to support increase code stream newly, reduce the code stream parameter step by step to adapt to total bandwidth, and with adjusted code stream parameter all code stream recompiles are sent, make digital VTR support more multi-client checking monitoring video simultaneously with limited bandwidth.
Connection control, bandwidth statistics are designed respectively in different modules with the adjustment of code stream parameter, and this block configuration scheme reliability is better, the maintenance of module is comparatively convenient.
Further, obtain remaining bandwidth with actual measurement, to calculate newly-increased code stream bandwidth, though this combination is with respect to more complicated by the method that calculates remaining bandwidth and newly-increased code stream bandwidth fully, but the actual flow that has utilized the monitor video code stream may have the characteristics of certain deviation with calculated value, when judging that whether the current residual bandwidth enough sends newly-increased code stream, improved the accuracy of judging.
Further, with 9 to 11 seconds be the cycle, detect actual remaining bandwidth, can obtain relatively good balance aspect the fluctuation of testing result and the real-time.
Further, the code stream parameter is dropped to when minimum, if the required bandwidth of all code streams still is higher than specified total bandwidth, then the connection request of the newly-increased code stream of refusal can guarantee that existing code stream obtains MIN quality assurance.
Further, when the client linking number reduces, under the restriction of specified total bandwidth, attempt rising code stream parameter, can realize adaptive code stream adjustment, make the use of bandwidth and picture quality reach optimum balance.
Description of drawings
Fig. 1 is in the first embodiment of the invention, the schematic flow sheet of the control method that digital VTR is connected with client network in a kind of video monitoring system;
Fig. 2 is in the first embodiment of the invention, judges according to current code stream parameter whether the current residual bandwidth enough sends a kind of preferred realization flow schematic diagram of newly-increased code stream;
Fig. 3 is in the first embodiment of the invention, obtains a kind of preferred realization flow schematic diagram of the bandwidth value of current real surplus;
Fig. 4 is in the first embodiment of the invention, and whether the client linking number that monitoring is connected to digital VTR by network vicissitudinous a kind of preferred realization flow schematic diagram;
Fig. 5 is in the second embodiment of the invention, a kind of structural representation of digital VTR code stream parameter adjustment module of video monitoring system;
Fig. 6 is in the third embodiment of the invention, a kind of structural representation of digital VTR of video monitoring system;
Fig. 7 is in the third embodiment of the invention, the structural representation of bandwidth statistical module in a kind of digital VTR of video monitoring system;
Fig. 8 is in the third embodiment of the invention, and link control module and other module concerns schematic diagram in a kind of digital VTR of video monitoring system.
Embodiment
In the following description, in order to make the reader understand the application better many ins and outs have been proposed.But, persons of ordinary skill in the art may appreciate that even without these ins and outs with based on the many variations and the modification of following each execution mode, also can realize each claim of the application technical scheme required for protection.
For making the purpose, technical solutions and advantages of the present invention clearer, embodiments of the present invention are described in further detail below in conjunction with accompanying drawing.
First embodiment of the invention relates to the control method that digital VTR is connected with client network in a kind of video monitoring system.
In the embodiments of the present invention, numeral or the monitoring camera that simulates directly or by transmission network are given to digital VTR with data.Transmission network can be wired also can be wireless.Code stream between digital VTR and the client is the monitor video code stream, after digital VTR obtains data from monitoring camera, is transmitted to the client that needs these data of preview in real time with the form of code stream.
Digital VTR alleged in the embodiments of the present invention comprises: digital hard disc video recorder (Digital Video Recorder is called for short " DVR "), mixed type digital hard disc video recorder (Hybrid DVR) and network hard disk video recorder (NVR) etc.Be appreciated that digital VTR also can not be based on hard disk, as based on optical storage, flash memory (FLASH), tape or the like.
Digital hard disc video recorder (DVR) is to use the watch-dog of data hard disk recording video/audio.
Mixed type digital hard disc video recorder (Hybrid DVR) is the digital hard disk recording equipment that can insert analog video camera and internetworking agreement (Internet Protocol is called for short " IP ") video camera simultaneously.
Network hard disk video recorder (NVR) is only to insert the digital hard disk recording equipment of IP video camera.
Fig. 1 is the schematic flow sheet of the control method that digital VTR is connected with client network in this video monitoring system.
In step 101, whether the digital VTR monitoring changes by the client linking number that network is connected to digital VTR, does not just continue monitoring if change, if the linking number increase just enters step 102, just enters step 107 if linking number reduces.
In step 102, when the client linking number that is connected to digital VTR by network increases, digital VTR judges according to current code stream parameter whether the current residual bandwidth enough sends newly-increased code stream, if enough just enter step 106 (because the current residual bandwidth enough sends newly-increased code stream, so still with current code stream parameter to all code streams that comprise newly-increased code stream transmission of encoding), otherwise enter step 103.
In step 103, reduce the code stream parameter, calculate the total bandwidth of all code streams that comprise newly-increased code stream.When for the first time entering step 103, begin to reduce other code stream parameter of a level from current code stream parameter, after this when step 104 was got back to step 103 once more, the code stream parameter that has been lowered since the last time reduced other code stream parameter of a level again.
The code stream parameter comprises resolution, code check, frame per second etc.When the code stream parameter reduces a rank, can be to reduce a kind of in resolution, code check, the frame per second, also can be the combination and variation of two or three factors, for example reduces resolution and code check simultaneously, and for example reduces resolution but improve frame per second or the like on a small quantity.
In each execution mode of the present invention, reduce the code stream parameter and refer to still less bandwidth of pairing code stream needs of adjusted code stream parameter, have worse quality, raising code stream parameter refers to that the pairing code stream of adjusted code stream parameter needs more bandwidth, has better quality.
After this enter step 104, judge whether the total bandwidth (all code streams that comprise newly-increased code stream) of calculating gained is not higher than specified total bandwidth, if then enter step 105, otherwise gets back to step 103, further reduces the code stream parameter and carries out total bandwidth calculating.
In each execution mode of the present invention, specified total bandwidth is meant the maximum bandwidth that can be connected the reality of using for digital VTR with client.Specified total bandwidth can be the actual physical total bandwidth, also can be user's Configuration Values, and for example the user can be configured to specified total bandwidth with 80% of physics total bandwidth.
In a preferred example of the present invention, when step 104 judges that the total bandwidth of calculating gained is higher than specified total bandwidth, can also increase a step (not being embodied among Fig. 1), judge further whether the code stream parameter that is lowered has been predefined minimum, if then refusal increases the connection request and the process ends of code stream newly, if not, then get back to step 103, further reduce the code stream parameter and carry out total bandwidth calculating.If the code stream parameter is dropped to minimum, but the required bandwidth of all code streams still is higher than specified total bandwidth, and then the connection request of the newly-increased code stream of refusal can guarantee that so existing code stream obtains MIN quality assurance.
In general, the function that step 103 and 104 combination realize is: when the current residual bandwidth is not enough, begin to reduce step by step the code stream parameter from current code stream parameter,, comprise that the total bandwidth of all code streams of newly-increased code stream is not higher than specified total bandwidth up to by the code stream calculation of parameter after reducing.
In step 105, the code stream parameter that step 104 is calculated gained is set to current code stream parameter.After this enter step 106.
When remaining bandwidth is not enough to support increase code stream newly, reduce the code stream parameter step by step to adapt to total bandwidth, and with adjusted code stream parameter all code stream recompiles are sent, make digital VTR support more multi-client checking monitoring video simultaneously with limited bandwidth.
In step 106, with current code stream parameter to all existing code streams transmission of encoding.Process ends.
Step 105 and 106 combination can realize the function of all code streams (comprising newly-increased code stream) being encoded and sending with the code stream parameter after reducing.Certainly, also can there be other technical scheme to realize the function of all code streams being encoded and sending with the code stream parameter after reducing, for example the code stream parameter of calculating gained can be kept in the memory, the module of being responsible for sending is taken out corresponding code stream parameter when needed from this memory; And for example, do not carry out the code stream parameter setting of dominance, but the module that passing to responsible transmission after directly will reducing, or the like.
In step 107, improve the code stream parameter, calculate the total bandwidth of all code streams (not containing the code stream that has reduced) that exist.When for the first time entering step 107, begin to improve other code stream parameter of a level from current code stream parameter, after this when step 108 was got back to step 107 once more, the code stream parameter that has been enhanced since the last time improved other code stream parameter of a level again.
From the branch of step 107 to 109 are processing when the client linking number is reduced, and in some other execution mode of the present invention, this branch also can omit, and that is to say not do any processing when the client linking number reduces.If the abridged words when the client linking number increases, also can reach basic effect of the present invention---support more multi-client while checking monitoring video with limited bandwidth.Disadvantage is can't heighten bandwidth adaptively when the client linking number reduces.
After this enter step 108, judge whether the total bandwidth of calculating gained is not higher than specified total bandwidth, if, then get back to step 107, further improve the code stream parameter and calculate total bandwidth again, otherwise enter step 109.
In step 109, the code stream parameter of correspondence is set to current code stream parameter when calculating the gained total bandwidth for the last time and not being higher than specified total bandwidth, after this enters step 106.For example, the total bandwidth by step 107 raising code stream calculation of parameter gained is higher than specified total bandwidth for the third time, and the code stream parameter (total bandwidth of calculating gained at this moment is not higher than specified total bandwidth) after will be improved by step 107 for the second time this moment is as current code stream parameter.Just cause required total bandwidth to be higher than specified total bandwidth if for the first time improve current code stream parameter, then still by current code stream parameter to the transmission of encoding of all code streams.
In general, the function that the combination of step 107 to 109 realizes is: from current code stream parameter, attempt improving the code stream parameter step by step, be higher than specified total bandwidth up to the required total bandwidth of all code streams that exists, at this moment, the last required total bandwidth code stream parameter that is not higher than specified total bandwidth can be set to current code stream parameter.
When the client linking number reduces, under the restriction of specified total bandwidth, attempt rising code stream parameter, can realize adaptive code stream adjustment, make the use of bandwidth and picture quality reach optimization.
In general digital VTR handles resource is not a lot, and a little less than ability was wanted with respect to the webserver, the connection control method in the embodiment of the present invention was less demanding to resource, is particularly suitable for the situation of digital VTR.
In a preferred example of the present invention, step 102 can further be decomposed into the substep of Fig. 2:
In step 201, obtain the bandwidth value of current real surplus.
After this enter step 202, with the newly-increased required bandwidth value of code stream of current code stream calculation of parameter.
After this enter step 203, if the bandwidth value of current real surplus is more than or equal to the required bandwidth value of newly-increased code stream, then enter step 204 and be judged to be the current residual bandwidth and enough send newly-increased code stream, be judged to be that the current residual bandwidth is not enough to send newly-increased code stream otherwise enter step 205.
Obtain remaining bandwidth with actual measurement, to calculate newly-increased code stream bandwidth, though this combination is with respect to more complicated by the method that calculates remaining bandwidth and newly-increased code stream bandwidth fully, but the actual flow that has utilized the monitor video code stream may have the characteristics of certain deviation with calculated value, when judging that whether the current residual bandwidth enough sends newly-increased code stream, improved the accuracy of judging.
Be appreciated that, in some other execution modes of the present invention, also can use client linking number (comprising newly-increased) and current code stream parameter to calculate the total bandwidth that to use, compare with specified total bandwidth again, judge with this whether the current residual bandwidth enough sends the code stream (if the total bandwidth that calculates just illustrates that greater than specified total bandwidth remaining bandwidth is enough) that increases newly.But, the actual bandwidth that takies of monitor video code stream may be not exclusively the same with the theoretical bandwidth that obtains by current code stream calculation of parameter, this point is the characteristics that monitor video is different from general telecine class video, for example, actual occupied bandwidth may lack if the current picture of monitor video is static, if the current picture of monitor video be motion actual occupied bandwidth might be more.So, obtain remaining bandwidth with actual measurement, to calculate the bandwidth of newly-increased code stream, this present technique field that is combined in is a kind of innovation, this combination has guaranteed correctly to judge whether the current residual bandwidth enough sends the code stream that increases newly.
In a preferred embodiment of the present invention, step 201 (obtaining the bandwidth value of current real surplus) can realize by the flow process of Fig. 3.
In step 301, periodically add up each code stream actual data volume that sends in nearest one-period duration.
After this enter step 302, the data volume addition with the actual transmission of all code streams obtains the cumulative data amount.
After this enter step 303,, obtain actual occupied bandwidth the cycle duration of cumulative data amount divided by statistics.Preferably, cycle duration can be 9 to 11 seconds, and representative value is 10 seconds.With 9-11 second be the remaining bandwidth of cycle detection reality, can obtain relatively good balance aspect the fluctuation of testing result and the real-time.Be appreciated that also and can use longer or shorter sense cycle, but the real-time of oversize testing result can't ensure, lack very much testing result and had bigger fluctuation.
After this enter step 304, deduct the bandwidth value that actual occupied bandwidth obtains current real surplus with specified total bandwidth.
In a preferred embodiment of the present invention, can realize by flow process as shown in Figure 4 in step 101 (whether monitoring changes by the client linking number that network is connected to digital VTR).
In step 401, when digital VTR is received request from client, judge whether this request is legal, if legal then enter step 402, otherwise enter step 406, to the client feedback failed message.
In step 402, the type of the request of being received is judged, if its type is the request preview, then enter step 403, if its type is to stop preview, then enter step 404.
In step 403, the client linking number adds 1, and digital VTR monitors the variation of linking number.
In step 404, the client linking number subtracts 1, and digital VTR monitors the variation of linking number.After this enter step 405, digital VTR stops to send the message of code stream to corresponding client feedback.
In addition, client under normal circumstances should send feedback information to client termly, and for example the information of implications such as code stream is received in expression.If digital VTR can not receive the feedback information from client for a long time, think that then this client has lost connection, also can enter step 404.Usually this incident is triggered by a timer, when digital VTR is received from the feedback information of client at every turn, timer is reset, if overtime incident takes place timer, illustrates that then digital VTR can not receive the feedback information from client for a long time.
Each method execution mode of the present invention all can be realized in modes such as software, hardware, firmwares.No matter the present invention be with software, hardware, or the firmware mode realize, instruction code can be stored in the memory of computer-accessible of any kind (for example permanent or revisable, volatibility or non-volatile, solid-state or non-solid-state, fixing or removable medium or the like).Equally, memory can for example be programmable logic array (Programmable Array Logic, be called for short " PAL "), random access memory (Random Access Memory, be called for short " RAM "), programmable read only memory (Programmable Read Only Memory, be called for short " PROM "), read-only memory (Read-Only Memory, be called for short " ROM "), Electrically Erasable Read Only Memory (Electrically Erasable Programmable ROM, be called for short " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc is called for short " DVD ") or the like.
Second embodiment of the invention relates to a kind of code stream parameter adjustment module of digital VTR of video monitoring system.Fig. 5 is the structural representation of code stream parameter adjustment module of the digital VTR of this video monitoring system.The code stream parameter adjustment module of the digital VTR of this video monitoring system comprises:
First judging unit is used for judging according to the client linking number that is connected to this digital VTR by network whether the client linking number changes.Can preserve the last linking number that obtains with a linkage counter,, illustrate that then client connects number variation has taken place if the up-to-date linking number that obtains is different with the value that connects most in the calculator.
Second judging unit is used for judging according to current code stream parameter whether the current residual bandwidth enough sends newly-increased code stream.
First computing unit, be used for judging that at first judging unit client linking number increases, and second judging unit is judged when the current residual bandwidth is not enough, begin to reduce step by step the code stream parameter from current code stream parameter, up to the code stream calculation of parameter of pressing after reducing, the total bandwidth that comprises all code streams of newly-increased code stream is not higher than specified total bandwidth, output corresponding code stream parameter this moment.
Second computing unit, be used for when first judging unit judges that the client linking number reduces, begin the code stream parameter that raises step by step from current code stream parameter, up to the code stream calculation of parameter of pressing after raising, the total bandwidth that comprises all code streams of newly-increased code stream is higher than specified total bandwidth, the code stream parameter of correspondence that output is last when calculating the gained total bandwidth and not being higher than specified total bandwidth.
Parameter set unit is used for code stream parameter with the output of first computing unit or second computing unit as current code stream parameter, offers the module that is used for all code streams codings in this digital video tape recorder and sends.Be appreciated that, when parameter set unit offers the module that is used for all code stream codings and sends with the resulting code stream parameter of first computing unit, can be directly the code stream parameter to be offered the module that is used for all code streams codings and sends as its current code stream parameter, also the code stream parameter is kept in the memory of appointment, reaches at the memory of these parameters of needs to appointment by the module that is used for all code stream codings and send.The coding of code stream can be realized in different modules with sending, also can realize in same module.
First execution mode is and the corresponding method execution mode of present embodiment, present embodiment can with the enforcement of working in coordination of first execution mode.The correlation technique details of mentioning in first execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in the present embodiment also can be applicable in first execution mode.
Third embodiment of the invention relates to a kind of digital VTR of video monitoring system.Fig. 6 is the structural representation of the digital VTR of this video monitoring system.The digital VTR of this video monitoring system comprises:
Link control module is used for client alternately, and the client linking number that is connected to digital VTR by network is provided.Link control module is the main modular of digital VTR and client communication, is mainly used to carry out alternately with client, and code stream sends, and record offers some information of other modules, and the relation of itself and other module is shown in Figure 8.Its concrete function is as follows:
1) when client need be asked the code stream of respective channel, this module is used for and client starts the mutual of code stream, if be legal communication, then is that current request starts a thread that sends code stream, note this thread simultaneously, and the Thread Count of being added up is added 1.
2) when the client transmission stops the order of preview, then detect the legitimacy of the current command,, digital VTR is connected sum subtract 1 as then stop the transmission code stream thread of the passage of being asked for legal order, as be illegal request, then feed back to client corresponding error information.
3) in the process that code stream is broadcasted, if client is fed back for a long time, what then also think this passage transmission is invalid code stream, stops the thread of the code stream transmission of this passage, digital VTR is connected sum subtract 1.
Coding module is used for according to current code stream parameter code stream being carried out video coding.
The bandwidth statistical module is used to add up and calculate the bandwidth value of current real surplus.
The code stream parameter adjustment module is used for the code stream parameter is adjusted, and this module concrete structure sees also second execution mode, and the working method of this module is as follows:
When linking number increases:
The code stream parameter adjustment module judges whether to have enough bandwidth according to current residual bandwidth and current code stream parameter and sends the code stream that increases newly, if it is enough then according to the current transmission code stream that is provided with, for example current DVR total bandwidth is 128K, taken 108K, if current code stream parameter is 12K, then can continue to send according to Set For Current.
If code stream surpasses remaining bandwidth quantity, then reduce current code stream parameter, calculate the shared total bandwidth number of code stream after the reduction, till being lower than the total bandwidth number, resetting code stream then and send parameter, reduce the encoding code stream of each passage.The total linking number of for example current DVR is 12, total bandwidth is 128K, and each connects code stream and takies 10K, when the 13rd of client-requested connects, because current code stream parameter is 10K, the total bandwidth that expectation may reach is 130K, surpasses actual total bandwidth 2K, and then adjusting the code stream parameter downwards is 9K, estimate that total bandwidth is 117K this moment, less than actual total bandwidth, then according to the transmission of encoding again of this code stream parameter, to reach the smooth purpose that sends code stream.
When linking number reduces:
Whether the code stream parameter adjustment module can be calculated raising present encoding parameter and can cause bandwidth not enough, if could the adjustment of not encoding, for example current total bandwidth is 128K, and linking number is 14, and each channel bit stream is 9K, when linking number becomes after 13, improve 1K if each connects code stream, be 10K, estimate that then total code stream will reach 130K, greater than actual bandwidth 2, so do not carry out the code stream parameter adjustment.
Whether the code stream parameter adjustment module can be calculated raising present encoding parameter and can cause bandwidth not enough, if not can will improve coding parameter, for example current total bandwidth is 128K, linking number is 13, each channel bit stream is 9K, when linking number becomes after 12, if connecting code stream, each improves 1K, be 10K, estimate that then total code stream will reach 120K,, can carry out the code stream adjustment less than actual total bandwidth 128K, so just can obtain better code stream preview effect, make the use of bandwidth and picture quality reach optimization.
User configuration module is used for being provided with and preserving specified total bandwidth, relevant parameters such as the client linking number upper limit and code stream quality lower limit.The user can be provided with the bandwidth upper limit of network according to the self networks situation, and the lower limit of the upper limit of linking number and code stream quality so just can guarantee the fluency of video tour to greatest extent.The user can regulate the optimum video preview quality and the linking number of network according to the performance of different digital VTRs simultaneously.
Connection control, bandwidth statistics are designed respectively in different modules with the adjustment of code stream parameter, and this block configuration scheme reliability is better, the maintenance of module is comparatively convenient.
Wherein, the structure of bandwidth statistical module comprises as shown in Figure 7:
N code stream sends thread, and each code stream sends thread and is used to send one road code stream, and N is the sum of current code stream.
Timer is used for periodically sending timeout signal.
Accumulator is used for the data volume that N code stream transmission thread sends is added up, and when receiving the timeout signal of timer, exports current accumulated value, again to the accumulated value zero clearing.
Divider is used for when receiving the timeout signal of timer, will obtain actual occupied bandwidth from the accumulated value of the accumulator duration (being cycle duration) divided by periodic timeout.
Subtracter is used for specified total bandwidth is deducted the actual occupied bandwidth that divider is exported, and obtains the bandwidth value of current real surplus.
First execution mode is and the corresponding method execution mode of present embodiment, present embodiment can with the enforcement of working in coordination of first execution mode.The correlation technique details of mentioning in first execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in the present embodiment also can be applicable in first execution mode.
Need to prove, each module mentioned in the present invention second and the 3rd execution mode and unit all are logics, physically, logic module or unit can be a physical module or unit, it also can be the part of a physical module or unit, can also realize with the combination of a plurality of physical modules or unit, the physics realization mode of these logic modules or unit itself is not most important, and the combination of the function that these logic modules or unit are realized is the key that just solves technical problem proposed by the invention.In addition, for outstanding innovation part of the present invention, will be with the not solving technical problem relation proposed by the invention not too not close unit of the present invention above-mentioned second and the 3rd execution mode (as power module etc.) introduce, this does not show that or not there is not other unit in second and the 3rd execution mode.
Though pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (12)

1. the control method that digital VTR is connected with client network in the video monitoring system is characterized in that, may further comprise the steps:
When the client linking number that is connected to described digital VTR by network increases, judge according to current code stream parameter whether the current residual bandwidth enough sends newly-increased code stream;
If the current residual bandwidth is not enough, then begin to reduce step by step the code stream parameter from current code stream parameter, up to by the code stream calculation of parameter after reducing, comprise that the total bandwidth of all code streams of newly-increased code stream is not higher than specified total bandwidth;
With the code stream parameter after the described reduction to the transmission of encoding of all code streams.
2. the control method that digital VTR is connected with client network in the video monitoring system according to claim 1, it is characterized in that, describedly judge that according to current code stream parameter the step whether the current residual bandwidth enough sends newly-increased code stream comprises following substep:
Obtain the bandwidth value of current real surplus;
With the newly-increased required bandwidth value of code stream of current code stream calculation of parameter;
If the bandwidth value of current real surplus, then is judged to be the current residual bandwidth more than or equal to the required bandwidth value of newly-increased code stream and enough sends newly-increased code stream, increase code stream newly otherwise be judged to be not enough transmission of current residual bandwidth.
3. the control method that digital VTR is connected with client network in the video monitoring system according to claim 2 is characterized in that, the described step of obtaining the bandwidth value of current real surplus comprises following substep:
Periodically add up each code stream actual data volume that sends in nearest one-period duration;
With the data volume addition of the actual transmission of all code streams, the cycle duration divided by statistics obtains actual occupied bandwidth;
Deduct the bandwidth value that described actual occupied bandwidth obtains described current real surplus with specified total bandwidth.
4. the control method that digital VTR is connected with client network in the video monitoring system according to claim 3 is characterized in that, and is further comprising the steps of:
If the current residual bandwidth enough sends newly-increased code stream, then with current code stream parameter to all code streams that comprise described newly-increased code stream transmission of encoding.
5. the control method that digital VTR is connected with client network in the video monitoring system according to claim 4 is characterized in that, begins to reduce step by step the step of code stream parameter from current code stream parameter described, also comprises following substep:
If the code stream parameter is dropped to predefined minimum, but, comprise that the total bandwidth of all code streams of newly-increased code stream still is higher than specified total bandwidth, then refuse the connection request of described newly-increased code stream by the code stream calculation of parameter after reducing.
6. the control method that is connected with client network according to digital VTR in each described video monitoring system in the claim 1 to 5 is characterized in that, and is further comprising the steps of:
When the client linking number that is connected to described digital VTR by network reduces, from current code stream parameter, improve the code stream parameter step by step, up to the code stream calculation of parameter of pressing after improving, the required total bandwidth of all code streams that exists is higher than specified total bandwidth, at this moment, the code stream parameter that is not higher than specified total bandwidth with last required total bandwidth is as current code stream parameter, to the transmission of encoding of all code streams.
7. the control method that digital VTR is connected with client network in the video monitoring system according to claim 6 is characterized in that, and is further comprising the steps of:
When described digital VTR is received request from described client, judge whether this request is legal;
If should ask type legal and that should ask is the request preview, then described client linking number is added 1;
If this request is legal and the type of this request for stopping preview, then described client linking number is subtracted 1.
8. the digital VTR code stream parameter adjustment module of a video monitoring system is characterized in that, comprising:
First judging unit is used for judging according to the client linking number that is connected to this digital VTR by network whether the client linking number changes;
Second judging unit is used for judging according to current code stream parameter whether the current residual bandwidth enough sends newly-increased code stream;
First computing unit, be used for judging that at described first judging unit client linking number increases, and described second judging unit is judged when the current residual bandwidth is not enough, begin to reduce step by step the code stream parameter from current code stream parameter, up to by the code stream calculation of parameter after reducing, comprise that the total bandwidth of all code streams of newly-increased code stream is not higher than specified total bandwidth;
Parameter set unit is used for the code stream parameter after the reduction of the described first computing unit gained is offered the module that is used for all code stream codings and sends as current code stream parameter.
9. the digital VTR code stream parameter adjustment module of video monitoring system according to claim 8 is characterized in that, also comprises:
Second computing unit, be used for when described first judging unit judges that the client linking number reduces, begin the code stream parameter that raises step by step from current code stream parameter, up to the code stream calculation of parameter of pressing after raising, the total bandwidth that comprises all code streams of newly-increased code stream is higher than specified total bandwidth, the code stream parameter of correspondence that output is last when calculating the gained total bandwidth and not being higher than specified total bandwidth;
The code stream parameter that described parameter set unit also is used for described second computing unit is exported offers the module that is used for all code stream codings and sends as current code stream parameter.
10. the digital VTR of a video monitoring system is characterized in that, comprising:
Link control module is used for client alternately, and the client linking number that is connected to described digital VTR by network is provided;
Coding module is used for according to current code stream parameter code stream being encoded;
The bandwidth statistical module is used to add up and calculate the bandwidth value of current real surplus;
The code stream parameter adjustment module is used for the code stream parameter is adjusted, comprising:
First judging unit is used for judging according to the client linking number from described link control module whether the client linking number changes;
Second judging unit is used for judging according to current code stream parameter whether the bandwidth of the current real surplus that described bandwidth statistical module is provided enough sends newly-increased code stream;
First computing unit, be used for judging that at described first judging unit client connects increase, and described second judging unit is judged when the current residual bandwidth is not enough, begin to reduce step by step the code stream parameter from current code stream parameter, up to by the code stream calculation of parameter after reducing, comprise that the total bandwidth of all code streams of newly-increased code stream is not higher than specified total bandwidth;
Parameter set unit is used for that the code stream parameter after the reduction of the described first computing unit gained is offered described coding module as current code stream parameter and link control module is used.
11. the digital VTR of video monitoring system according to claim 10 is characterized in that, also comprises:
User configuration module is used for being provided with and preserving specified total bandwidth, the client linking number upper limit and code stream quality lower limit.
12. the digital VTR according to claim 10 or 11 described video monitoring systems is characterized in that, described bandwidth statistical module comprises:
N code stream sends thread, and each code stream sends thread and is used to send one road code stream, and N is the sum of current code stream;
Timer is used for periodically sending timeout signal;
Accumulator is used for the data volume that N code stream transmission thread sends is added up, and when receiving the timeout signal of described timer, exports current accumulated value, again to the accumulated value zero clearing;
Divider is used for when receiving the timeout signal of described timer, will obtain actual occupied bandwidth from the accumulated value of the described accumulator duration divided by periodic timeout;
Subtracter is used for described specified total bandwidth is deducted the actual occupied bandwidth that described divider is exported, and obtains the bandwidth value of described current real surplus.
CN2010105061200A 2010-10-14 2010-10-14 Digital video recorder in video monitoring system and network connection control method thereof Pending CN101977185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105061200A CN101977185A (en) 2010-10-14 2010-10-14 Digital video recorder in video monitoring system and network connection control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105061200A CN101977185A (en) 2010-10-14 2010-10-14 Digital video recorder in video monitoring system and network connection control method thereof

Publications (1)

Publication Number Publication Date
CN101977185A true CN101977185A (en) 2011-02-16

Family

ID=43577030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105061200A Pending CN101977185A (en) 2010-10-14 2010-10-14 Digital video recorder in video monitoring system and network connection control method thereof

Country Status (1)

Country Link
CN (1) CN101977185A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015010233A1 (en) * 2013-07-22 2015-01-29 华为终端有限公司 Method, apparatus and network media system for playing multiple media contents
CN107155093A (en) * 2017-06-21 2017-09-12 普联技术有限公司 A kind of video previewing method, device and equipment
CN107396028A (en) * 2017-08-23 2017-11-24 维沃移动通信有限公司 The processing method and mobile terminal of a kind of video calling
CN108322773A (en) * 2018-02-01 2018-07-24 安徽创世科技股份有限公司 A kind of network bandwidth adaptive real-time stream transmission method based on more card bindings
CN108696407A (en) * 2018-06-01 2018-10-23 国网浙江宁波市奉化区供电有限公司 Network connection on-line monitoring method based on TCP/IP and system
CN112738444A (en) * 2020-12-18 2021-04-30 浙江大华技术股份有限公司 Video code rate control method and device, computer equipment and storage medium
CN113630628A (en) * 2020-05-07 2021-11-09 杭州海康威视数字技术股份有限公司 Media stream sending method, system, processing equipment and storage medium
CN115174965A (en) * 2022-06-30 2022-10-11 杭州海康威视数字技术股份有限公司 Video preview method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068236A (en) * 2007-04-13 2007-11-07 华为技术有限公司 Streaming media bit rate control method, system and equipment
US20090060028A1 (en) * 2007-08-31 2009-03-05 At&T Knowledge Ventures, Lp System and method of delivering video content
CN101488916A (en) * 2009-01-24 2009-07-22 深圳华为通信技术有限公司 Band-width control method, apparatus, terminal and system based on video conference
CN101753977A (en) * 2009-12-31 2010-06-23 中兴通讯股份有限公司 Method and device for adjusting network digital video play speed

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068236A (en) * 2007-04-13 2007-11-07 华为技术有限公司 Streaming media bit rate control method, system and equipment
US20090060028A1 (en) * 2007-08-31 2009-03-05 At&T Knowledge Ventures, Lp System and method of delivering video content
CN101488916A (en) * 2009-01-24 2009-07-22 深圳华为通信技术有限公司 Band-width control method, apparatus, terminal and system based on video conference
CN101753977A (en) * 2009-12-31 2010-06-23 中兴通讯股份有限公司 Method and device for adjusting network digital video play speed

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015010233A1 (en) * 2013-07-22 2015-01-29 华为终端有限公司 Method, apparatus and network media system for playing multiple media contents
CN105393533A (en) * 2013-07-22 2016-03-09 华为终端有限公司 Method, apparatus and network media system for playing multiple media contents
CN105393533B (en) * 2013-07-22 2018-11-30 华为终端有限公司 Play the method, apparatus and network media system of multiple media contents
CN107155093A (en) * 2017-06-21 2017-09-12 普联技术有限公司 A kind of video previewing method, device and equipment
CN107396028A (en) * 2017-08-23 2017-11-24 维沃移动通信有限公司 The processing method and mobile terminal of a kind of video calling
CN108322773A (en) * 2018-02-01 2018-07-24 安徽创世科技股份有限公司 A kind of network bandwidth adaptive real-time stream transmission method based on more card bindings
CN108322773B (en) * 2018-02-01 2020-05-05 安徽创世科技股份有限公司 Self-adaptive network bandwidth real-time data stream transmission method based on multi-card binding
CN108696407A (en) * 2018-06-01 2018-10-23 国网浙江宁波市奉化区供电有限公司 Network connection on-line monitoring method based on TCP/IP and system
CN113630628A (en) * 2020-05-07 2021-11-09 杭州海康威视数字技术股份有限公司 Media stream sending method, system, processing equipment and storage medium
CN112738444A (en) * 2020-12-18 2021-04-30 浙江大华技术股份有限公司 Video code rate control method and device, computer 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

Similar Documents

Publication Publication Date Title
CN101977185A (en) Digital video recorder in video monitoring system and network connection control method thereof
CN104125429B (en) The adjusting method and device of video data transmission
KR100703399B1 (en) Transcoding apparatus and method for seamless video contents transmission
US8228982B2 (en) Adaptive video streaming system and method
CN102945678A (en) Storage method and system of video documents and video monitoring device
JP5979241B2 (en) Camera system
US20210168418A1 (en) Method and device for controlling video transcoding code rate
US20060200845A1 (en) Wireless integrated security controller
US20080288986A1 (en) Wireless integrated security controller
KR20150048775A (en) Device and method for adaptive rate multimedia communications on a wireless network
BRPI0808629A2 (en) PACKAGE LOSS EFFECTS REDUCTION IN VIDEO TRANSMISSIONS.
CN112752115B (en) Live broadcast data transmission method, device, equipment and medium
CN102724561A (en) Embedded real time streaming media network transmission method and implementation system thereof
US11570041B2 (en) Method and system to identify a source of signal impairment
CN106454271A (en) Video processing system and method
US10154188B2 (en) Camera system, master camera device, and slave camera device
US20040122700A1 (en) Charge management method, charge device, network monitor device, web portal server, charge management program, content distribution server and charge management system
CN103036808B (en) Method and system for removing network jitter
US8249141B1 (en) Method and system for managing bandwidth based on intraframes
US20040254999A1 (en) System for providing content to multiple users
CN103929682A (en) Method and device for setting key frames in video live broadcast system
US8204987B2 (en) Providing reports of received multimedia programs
US20120008673A1 (en) System, Method, and Apparatus for Detecting and Classifying Artifacts in Digital Images and Video
CN115623155A (en) Video data processing method, video data processing apparatus, and storage medium
Ren et al. Improving quality of experience for mobile broadcasters in personalized live video streaming

Legal Events

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

Application publication date: 20110216