CN108076317A - Video data storage method and system, video cut-in method and node - Google Patents

Video data storage method and system, video cut-in method and node Download PDF

Info

Publication number
CN108076317A
CN108076317A CN201611024214.8A CN201611024214A CN108076317A CN 108076317 A CN108076317 A CN 108076317A CN 201611024214 A CN201611024214 A CN 201611024214A CN 108076317 A CN108076317 A CN 108076317A
Authority
CN
China
Prior art keywords
video data
memory capacity
threshold
rate video
node
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.)
Granted
Application number
CN201611024214.8A
Other languages
Chinese (zh)
Other versions
CN108076317B (en
Inventor
张航
龙映雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201611024214.8A priority Critical patent/CN108076317B/en
Publication of CN108076317A publication Critical patent/CN108076317A/en
Application granted granted Critical
Publication of CN108076317B publication Critical patent/CN108076317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23113Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving housekeeping operations for stored content, e.g. prioritizing content for deletion because of storage space restrictions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses video data storage method, apparatus and system and video cut-in method, devices based on cloud storage, are related to video data processing and technical field of memory.The video data storage method of the present invention is applied to cloud storage system, and cloud storage system includes management node and memory node, and method includes:The available remaining memory capacity of management node detection memory node;Management node is by the available remaining memory capacity of memory node compared with first threshold, second threshold and/or the 3rd threshold value;When judging remaining memory capacity can be used to be less than first threshold, memory node receives and stores the dicode rate video data generated by headend equipment;According to that can use remaining memory capacity situation, memory node deletes the first bit-rate video data and/or the second code check video data in stored part or all of dicode rate video data.The present invention can be preserved when memory space is enough higher clearly video data and the video data of longer time can be preserved in deficiency.

Description

Video data storage method and system, video cut-in method and node
Technical field
The present invention relates to video data processing and technical field of memory, more particularly to video data storage method and system, Video cut-in method and node based on cloud storage.
Background technology
With the development and extensive use of Video Supervision Technique, the video monitoring data scale of construction is more and more huger, generally requires Great memory space.Cloud storage is in the conceptive extension of cloud computing (cloud computing) and the emerging net that developed Network memory technology refers to through functions such as cluster application, network technology or distributed file systems, by network it is a large amount of it is various not The storage device of same type gathers collaborative work by application software, common externally to provide data storage and Operational Visit work( One system of energy.Since cloud storage can easily expand storage space as needed, particularly suitable for massive store, because Cloud storage technology has been widely used to store video data in this now.
Currently when video data is carried out cloud storage, generally setting a covering cycle, (each video invitation preserves Shortest time), when the holding time of video data reaching covering cycle, it is possible to capped or delete that (i.e. the cycle is covered Lid), release cloud storage space, so as to carry out circulation recording.
In the implementation of the present invention, inventor has found that the above method at least has the following disadvantages:
When the code check for the video data stored occur is reduced for some reason higher than predetermined code check or cloud storage space situations such as When, in stored video data the holding time of next video data by periodic cover its covering cycle has not yet been reached (can be deleted without storage data), but memory space has been used up, and is at this moment just present with and video recording is lost due to memory space inadequate The situation of (video data).User can tackle the situation by expanding the method for cloud storage spatial content in time.But such as Fruit dilatation is not in time, then before user performs dilatation, might have the video recording of a period of time because without enough storages Space and lose.
The content of the invention
In view of this, an embodiment of the present invention provides video data storage methods and system, the video based on cloud storage to connect Enter method and node, with can be preserved when memory space is enough higher clearly video data and can be protected in memory space inadequate Deposit the video data of longer time.The technical solution is as follows:
In a first aspect, a kind of video data storage method is provided, and applied to cloud storage system, the cloud storage system bag Management node and memory node are included, this method includes:
The management node detects the available remaining memory capacity of the memory node, described to be with remaining memory capacity It can be used to store the memory capacity of first video data of the current time between at the time of periodic cover next time;
The management node by the available remaining memory capacity of the memory node and first threshold, second threshold and/or 3rd threshold value is compared;
When judging remaining memory capacity can be used to be less than first threshold, the memory node is received and stored by headend equipment The dicode rate video data of generation, wherein dicode rate video data include the first identical bit-rate video data of content and second code Rate video data, and the first code check is higher than second code check;
When judging remaining memory capacity can be used to be less than second threshold, the memory node deletes stored part or complete The first bit-rate video data in portion's dicode rate video data;And/or when available remaining memory capacity is more than three threshold values, institute State the second code check video data in the stored part or all of dicode rate video data of memory node deletion.
Second aspect provides a kind of video data storage systems, which includes management node and memory node, In, the management node includes detection module and comparison module;The memory node includes memory module and removing module;
The detection module is used to detect the available remaining memory capacity of the memory node, and the remaining storage is held It measures that the memory capacity for storing first video data of the current time between at the time of periodic cover next time can be used for;
The comparison module is used for the available remaining memory capacity of the memory node and first threshold, second threshold And/or the 3rd threshold value be compared;
The memory module, for receiving and storing dicode rate video data, wherein dicode rate video data includes content The first identical bit-rate video data and the second code check video data, and the first code check is higher than the second code check;
The removing module, for when available remaining memory capacity is less than second threshold, delete stored part or The first bit-rate video data in whole dicode rate video datas;And/or when available remaining memory capacity is more than three threshold values, Delete the second code check video data in stored part or all of dicode rate video data.
The third aspect provides a kind of video cut-in method based on cloud storage, applied to video access node, this method Including:
Between at the time of the memory node of cloud storage system can be used to store current time to periodic cover next time When can use remaining memory capacity less than first threshold, the video access node accesses dicode rate video data simultaneously from headend equipment The memory node is transmitted to, so that:When available remaining memory capacity is less than second threshold, the memory node deletion has been deposited The first bit-rate video data in the part or all of dicode rate video data of storage;And/or remaining memory capacity can be used when described During more than three threshold values, the second code check that the memory node is deleted in stored part or all of dicode rate video data regards Frequency evidence,
Wherein, dicode rate video data includes the first identical bit-rate video data of content and the second code check video data, And first code check is higher than second code check.
Fourth aspect, provides the video access node based on cloud storage, and the node includes:
Transceiver module, the memory node for working as cloud storage system can be used to store current time to periodic cover next time At the time of between available remaining memory capacity when being less than first threshold, access dicode rate video data is simultaneously transmitted to the storage Node, so that:When available remaining memory capacity is less than second threshold, the memory node is deleted stored part or all of The first bit-rate video data in dicode rate video data;And/or when it is described be more than three threshold values with remaining memory capacity when, The memory node deletes the second code check video data in stored part or all of dicode rate video data,
Wherein dicode rate video data includes the first identical bit-rate video data of content and the second code check video data, and First code check is higher than second code check.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
In memory space inadequate, i.e. for storing first video of the current time between at the time of periodic cover next time When the available remaining memory capacity of data is less than first threshold, dicode rate video data, dicode rate video data are received and stored Include the first identical bit-rate video data of content and the second code check video data, so as to basis remaining storage can be used to hold The situation of amount deletes the first bit-rate video data or the second code check video data in all or part of dicode rate video data, Can be preserved when memory space is enough higher clearly video data and the longer time can be preserved in memory space inadequate Video data.
Dicode rate video counts can be deleted when specifically, in available remaining lack of memory capacity, i.e. less than second threshold The first bit-rate video data in, due to the second code check be less than the first code check, unit memory capacity storage video when Length is longer, and this makes it possible to the video datas in the limited memory space memory storage longer time, prevent from being difficult to expand for the moment Cause that the video data of a period of time can not store or a part of video data is not reached in its holding time during memory capacity It is just capped to during covering cycle.
Simultaneously as dicode rate video data includes the first identical bit-rate video data of content and the second code check video counts According to, i.e. the first bit-rate video data can realize the reception and storage of all the period of time, therefore even if because of lack of memory capacity and not Can in time dilatation and need delete the first bit-rate video data, can also meet preserve all the period of time video data premise Under, the first bit-rate video data as prolonged as possible are preserved, make to have video data as prolonged as possible to keep fine definition.
Furthermore during in available remaining memory capacity abundance, i.e. more than three threshold values, it can stop receiving dicode rate video counts According to and only store the first bit-rate video data and delete store before as backup the second code check video data, so as to reduce The complexity and the data volume of transmission and storage operated in the case of memory space abundance.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the running environment schematic block diagram of one embodiment of the invention;
Fig. 2 is the flow chart for the video data storage method that one embodiment of the invention provides;
Fig. 3 is the flow chart that threshold value is set in the video data storage method that one embodiment of the invention provides;
Fig. 4 is the structure diagram for the video data storage systems that one embodiment of the invention provides;
Fig. 5 is to invent the modular structure block diagram set in the video data storage systems that an embodiment provides for threshold value;
Fig. 6 is the flow chart for the video cut-in method based on cloud storage that one embodiment of the invention provides;
Fig. 7 is the structure diagram for the video access node based on cloud storage that one embodiment of the invention provides;
Fig. 8 is the structure diagram of the video access that one embodiment of the invention provides and storage system;
Fig. 9 is the illustrative work flow diagram of system shown in Fig. 8.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
One embodiment of the invention provides video cut-in method and video data storage method based on cloud storage, and Fig. 1 shows The implementation environment involved by both approaches is gone out.The implementation environment includes cloud storage system 1, video access node 2 and front end Equipment 3.Video access node 2 is connected with the communication of one or more headend equipment 3, and the phase that communicates with cloud storage system 1 Even.Headend equipment 3 is to provide regarding at least two different code check (including the first code checks and the second code check hereinafter mentioned) The equipment of frequency stream, headend equipment 3 may be, for example, camera as shown in Figure 1, it should be appreciated that the number of the headend equipment 3 shown in Fig. 1 Measure for three only as illustrate, can essentially be one or more than one.Each headend equipment 3 is recorded in real time for each self-monitoring scene Video processed, video access device 2 access video data from headend equipment 3, are then forwarded to cloud storage system 1.Cloud storage system 1 Store video data.It can lead between video access device 2 and headend equipment 3, between video access node 2 and cloud storage system 1 It crosses data channel or network transfers data in the form of wired or wireless.The cloud storage system 1 shown in Fig. 1 includes three clothes Business device, but one or more any number of server can essentially be included, one of server can be pipe Node is managed, other servers can be for memory node, it is necessary to illustrate, the management node in the embodiment of the present invention refers to that cloud is deposited There is the server of management function, in the framework of some cloud storage systems, sometimes management node can also be same in storage system When be memory node.
Covering cycle is typically provided in the storage server of cloud storage system 1, the holding time reaches regarding for covering cycle Frequency evidence can be capped and (be deleted or covered by new video data).Display monitoring can be become apparent from during in order to play back video recording Information, the video data of the high code check of 2 priority access of video access device is stored to cloud storage system 1, but sometimes cloud storage The memory space of system 1 can be not enough to preserve current time recording of headend equipment 3 between at the time of periodic cover next time High bit-rate video data.In view of this, inventive improvements have been done compared with the prior art in the present embodiment.Separately below to this The video data storage method of video data storage side and system, the video cut-in method and node of video access side in embodiment It is introduced with whole video access and storage system.
The present embodiment provides firstly a kind of video data storage method, applied to cloud storage system, cloud storage system bag Management node and memory node are included, as shown in Fig. 2, this method includes:
Step S11:The available remaining memory capacity of management node detection memory node.Can be that can use with remaining memory capacity The memory capacity of the first video data between at the time of current time is stored to periodic cover next time;
General management node only there are one, and memory node can be multiple, each or all storage videos of can be used for Memory node can use remaining memory capacity to be sent to management node, one embodiment of the present invention in real time or periodically In, the summation for all available remaining memory capacity that management node is detected by counting synchronization (near or) is used as can With remaining memory capacity.It detects preferred cycle to carry out, to mitigate data processing load.
Step S12:Management node is by the available remaining memory capacity detected and first threshold, second threshold and/or the Three threshold values are compared;
Can with remaining memory capacity be less than first threshold explanation can have reached alarm level with remaining memory capacity, it is necessary to Dicode rate video data is stored as spare, therefore goes to step S13.Note that in practical application, generally before after testing After being less than first threshold to available remaining memory capacity and gone to step S13, remaining memory capacity and second can be just used Threshold value and/or the 3rd threshold value are compared;And during dicode rate video data is stored, available it need not will generally remain Remaining memory capacity is compared with first threshold.This relatively preferred cycle carries out, and to mitigate data processing load, generally exists Having detected available remaining memory capacity can be compared afterwards.
First threshold, second threshold and/or the 3rd threshold value can be according to the taken empirical value of practice or calculating It is obtaining or have both at the same time, it for details, reference can be made to hereafter to the specific of first threshold, second threshold and/or the 3rd threshold value is set to retouch It states.
Step S13:When judging remaining memory capacity can be used to be less than first threshold, memory node is received and stored by front end The dicode rate video data that equipment generates, wherein dicode rate video data include identical the first bit-rate video data of content and the Two bit-rate video data, and the first code check is higher than the second code check;
Note that in the present invention, use " when ... ", it is not meant to that subsequent operation performs at once, and be possible to It lags a period of time or needs to reach other condition and just perform.
When the comparative result of step S12 is that available remaining memory capacity is less than first threshold, then memory node is from video Access node receives and stores the dicode rate video data generated by headend equipment.
Code check can be described as bit rate again, and the video data needs of generally referred to as unit time account for during applied to video field The size of memory space.First bit-rate video data refer to the video data that code check is the first code check, and the second code check regards Frequency is according to the video data for referring to that code check is the second code check.
Obviously, the code check of the video data from different video sources may be different, meanwhile, on a timeline, code check May be to have certain fluctuation rather than invariable, therefore, the first code check and the second code check are primarily used to distinguish corresponding composition First bit-rate video data of dicode rate video data and the code check of the second code check video data, when content is identical, the former is higher than The former, but two fixed code checks are not necessarily referring to, the code check for being also not intended to any one the first bit-rate video data is all high In the code check of any one the second code check video data.
The video of different code checks generally can be obtained by adjusting video resolution and/or video frame rate.Such as first The corresponding video resolution of code check can be 1080P, and the corresponding video resolution of the second code check can be 720P, in frame per second all It is identical be, for example, 30 frames it is per second when, the memory space that unit interval video data occupies is compared, it is clear that the latter be less than the former;Also may be used So to set:First code check and the corresponding video resolution of the second code check are all 1080P, but the former frame per second is every for 30 frames Second, the latter can be that 15 frames are per second, and the latter is again smaller than the former at this time.
Dicode rate video data is received and stored i.e. for video source all the way, receiving and storing the first bit-rate video number According to while also additionally receive and store the second code check video data, content is identical both to be referred to coming from video all the way Source and record the period it is identical, so as to both content be all the Same Scene same period video recording, such as the latter be from the former with Certain mode for reducing code check compresses generation, and so as to which resolution ratio, picture and/or frame per second may be different, the latter may be decreased Resolution ratio has carried out picture to cut and/or reduce frame per second.
Be usually to store in pairs when the storage of dicode rate video data is to memory node, i.e. a second code check video data File corresponds to the first identical bit-rate video data file of a content, naturally it is also possible to be one or more second bit-rate videos Data file corresponds to the first identical bit-rate video data file of multiple contents.It should be appreciated that video data is being transmitted and played When be generally rendered as the form of video data stream, the form of video data file, the content that the two includes are rendered as in storage Essence is consistent, for simplicity being referred to as video data in the present invention, video data is also referred to as recorded a video. In the present invention, the first code check refers to that the code check of the first identical bit-rate video data of content is higher than second code higher than the second code check The code check of rate video data.Video data in the present invention is not limited to simple video, may also include other dependency numbers such as audio According to.
Step S14:According to the situation that can use remaining memory capacity, stored part or all of dicode rate video counts are deleted The first bit-rate video data or the second code check video data in.
Note that in the present invention, once eliminating the first bit-rate video data or the in the dicode rate video data of storage Two bit-rate video data cannot be referred to as dicode rate video data, therefore at the time of its periodic cover before arrival, in order to Preserve the integrality of video time section, it is impossible to again single remaining first yard in the dicode rate video data to performing delete operation Rate video data or the second code check video data are deleted, and in the present invention, are measured in stored dicode rate video data The second code check video data memory capacity when, also only consider that identical the first bit-rate video data of content have been saved the Two bit-rate video data.
The step includes two kinds of situations:
The first:When available remaining memory capacity is less than second threshold, stored part or all of dicode rate is deleted The first bit-rate video data in video data;
Second:When available remaining memory capacity is more than three threshold values, delete in stored dicode rate video data The second code check video data.At this point, memory node can also stop storing the second code check video data but continue first yard of storage Rate video data.
Note that two kinds of situations can't all occur after once comparing.In addition in the present invention, stopping can phase when storing It should stop receiving.
In the present invention, first threshold, second threshold or the 3rd threshold value can be covered according to storage current time to the cycle next time Memory capacity that the first bit-rate video data between at the time of lid need and set.It is said below by taking the 3rd threshold value as an example It is bright.
As shown in figure 3, the 3rd threshold value can be set according to following steps:
Sub-step S121:Monitoring cycle every a setting detects remaining memory capacity;
Monitoring cycle for example could be provided as 10 minutes or other durations.The remaining memory capacity detected refers to own The sum of remaining memory capacity in cloud storage device.
Sub-step S122:The memory capacity and monitoring cycle occupied according to the first bit-rate video data in previous monitoring cycle Determine the average storage speed in previous monitoring cycle.
Due to periodical monitoring, thus the memory capacity newly occupied in previous monitoring cycle can use it is preceding once detect it is surplus Remaining memory capacity P1 subtracts currently detected remaining memory capacity P2 and obtains, but the second code check regards due to extra storage Frequency evidence, so the space P3 shared by it cannot be calculated in the average storage speed of calculating and residual memory space.Calculate previous prison A kind of optional mode for surveying the memory capacity that the first bit-rate video data occupy in the cycle is each second code of record storage The index of rate video data can obtain the changed second code check video counts of the size in previous monitoring cycle according to index According to so as to obtain the memory space P3 that the second code check video data newly occupies in total in previous monitoring cycle, while setting monitoring Cycle is T1, therefore the calculation formula of average storage speed is:S1=(P1-P2-P3)/T1.First yard can certainly be recorded The index of rate video data can obtain the changed first bit-rate video number of the size in previous monitoring cycle according to index According to, so as to obtain the memory space that the first bit-rate video data newly occupy in total in previous monitoring cycle, directly with itself divided by Monitoring cycle T1 obtains the average storage speed of previous cycle.
Sub-step S123:Determine duration of the current time between at the time of periodic cover next time;
The video data preserved earliest in generally referred to as stored video data at the time of periodic cover next time arrives At the time of up to periodic cover, i.e., at the time of preservation or next video data being capped can be capped earliest, deposit at this time Storage capacity can reach the video data of periodic cover by deleting to be expanded, it can thus be assumed that being to perform the cycle next time At the time of covering, naturally it is also possible to pre-set the execution cycle for performing covering or delete operation, pre-set be held every one The row cycle performs a periodic cover operation, and the deletion holding time meets or exceeds the video data of covering cycle.If when current Carve as T3, covering cycle T, be T2 at the time of the holding time of the video data preserved earliest starts, then current time arrive down When a length of T- (T3-T2) between at the time of periodic cover.
Sub-step S124:The memory capacity for determining to need according to average storage speed and above-mentioned duration;
Determine that the memory capacity needed is (T- (T3- according to average storage speed S1 and above-mentioned duration T- (T3-T2) T2))×S1;
Sub-step S125:Memory capacity as needed is to obtaining threshold value.
Needed according to first bit-rate video data of the storage current time between at the time of periodic cover next time Memory capacity sets the 3rd threshold value, such as can be allowed to equal or obtain first with setting amplitude or the increase of setting allowance Threshold value does not make its reduction generally, but reduces and be also regarded as being included within the scope of the present invention.The side of above-mentioned setting threshold value Formula is to illustrate, and can carry out various changes in practice, such as asks for that during average storage speed multiple monitoring cycles can be asked for Average storage speed or ask for average storage speed between any two moment and without considering monitoring cycle.
As one embodiment of the present invention, detection can be with the method for remaining memory capacity:Management node, which calculates, to be worked as The memory capacity that the second code check video data in preceding remaining memory capacity and stored dicode rate video data occupies it With obtain available remaining memory capacity.Available remaining memory capacity at this time is the memory capacity of current residual plus having deposited The sum of memory capacity that the second code check video data in the dicode rate video data of storage occupies, this is because identical there are content The first bit-rate video data, therefore the second code check video data in dicode rate video data can be deleted if necessary, from And the memory capacity that it is occupied can include the scope of available remaining memory capacity.
If the memory capacity of current residual is P2, the second code check video data in stored dicode rate video data accounts for According to memory capacity be P3 ', then can be P2+P3 ' with remaining memory capacity, remaining memory capacity can be used to be more than first threshold One expression formula is P2+P3 ' > (T- (T3-T2)) × S1, as previously mentioned, the right can also set allowance.One kind obtains P3's ' Optional mode is the index of each second code check video data of record storage, and can obtain all second code checks according to index regards Frequency is according to the memory capacity occupied.Note that P3 ' should not be deleted comprising the first identical bit-rate video data of content here The memory capacity that occupies of part the second code check video data because part the second code check video data can not reach it It is deleted before at the time of periodic cover.
In one embodiment of the present invention, also remaining memory capacity can be used more than on the basis of the 3rd threshold value meeting Additional conditions, such as continuous setting monitoring cycle is set all to detect that satisfaction can use remaining memory capacity to be more than the 3rd threshold value, Just perform operation below.
When satisfaction can use remaining memory capacity more than three threshold values, that is, represent taking for example artificial extended storage capacity Or after deleting the measures such as a part of data, it is sufficient to store current time all receptions between at the time of periodic cover next time The first bit-rate video data, because without deleting the first bit-rate video data, without receiving dicode rate video data again, only It needs to receive the first bit-rate video data, while existing second code check video data can be deleted.It should be understood, of course, that at this In invention, the second code check video data in dicode rate video data is only deleted, prevents from lacking some scene in some period Video data.
Second threshold can also be set according to the step identical with the 3rd threshold value, be said referring specifically to what is carried out above in conjunction with Fig. 3 Bright, i.e., the storage needed according to first bit-rate video data of the storage current time between at the time of periodic cover next time is held It measures to set second threshold, such as can be allowed to equal or increase or reduce to obtain the first threshold with setting amplitude or setting allowance Value.
Available remaining memory capacity at this time equally can be that the memory capacity of current residual is regarded plus stored dicode rate The sum of memory capacity that the second code check video data of the frequency in occupies.Remaining memory capacity can be used to be less than the one of first threshold A expression formula is P2+P3 ' < (T- (T3-T2)) × S1, and the right can also increase or reduce.
In one embodiment of the present invention, also remaining memory capacity can be used less than on the basis of second threshold meeting Additional conditions are set, when being, for example, less than the specific threshold value of another setting, just perform operation below.
Second threshold can be less than with remaining memory capacity by, which meeting, represents that needs delete some first bit-rate video data, no It may then have little time to delete the first bit-rate video data and memory space is used up.Therefore, the specific threshold value of another setting can root It sets and adjusts according to storage speed, it is impossible to is too small and occur having little time performing delete operation at the time of cause periodic cover next time It does not arrive but situation that memory space is used up, while also should not be too large and delete the first bit-rate video data too early, because actually The possible having time of user takes the measures such as increase memory capacity without deleting the first bit-rate video data.
When satisfaction can use remaining memory capacity to be less than second threshold, deletion and the second stored code check video data The memory capacity occupied of corresponding first bit-rate video data be preferably greater than current time to periodic cover next time when The memory capacity that the first bit-rate video data also lack is stored between quarter, that is, is more than (T- (T3-T2)) × S1-P3 '-P2.In this way, Available remaining memory capacity after delete processing is enough to store first of current time between at the time of periodic cover next time Bit-rate video data, so as to no longer need to access dicode rate video data under normal conditions.It is of course also possible to it is examined every a period of time One section of first bit-rate video data can just be deleted with remaining memory capacity less than second threshold by measuring satisfaction, to be deposited in available residue Storage capacity preserves the first bit-rate video data of longer time as far as possible in the case of may artificially being expanded at any time.During deletion The first bit-rate video data from the low headend equipment access of corresponding monitoring scene importance can be selected to be deleted, to the greatest extent may be used The first bit-rate video data of the high headend equipment access of importance of corresponding monitoring scene can be preserved, importance can pass through setting Priority is set.It should be understood that in the present invention, only delete and be stored with the of the second identical code check video data of content One bit-rate video data prevent from lacking video data of some scene in some period.
Monitoring can be more than the 3rd threshold value with remaining memory capacity and available remaining memory capacity is less than second threshold and can divide It does not perform, such as different monitoring cycles is set, but execution can also be merged.
The first bit-rate video data are received and stored it should be understood that can give tacit consent in the present invention, when initial, then the cycle Property detection can use remaining memory capacity, compared with first threshold, it is determined whether receive and storage dicode rate video data, Detection can use remaining memory capacity when can be initially, compared with first threshold, it is determined whether receive and storage dicode rate regards Frequency evidence, then be received and stored.
When only receiving and storing the first bit-rate video data, current residual can be also calculated as with remaining memory capacity The sum of memory capacity that memory capacity is occupied with the second code check video data in stored dicode rate video data, simply The memory capacity that the second code check video data in the dicode rate video data of storage occupies may be zero (because not connecing before It receives and stores dicode rate video data).First threshold can also be determined according to the method shown in Fig. 3 simultaneously, i.e., current according to storage Memory capacity that first bit-rate video data of the moment between at the time of periodic cover next time need sets first threshold, Such as it can be allowed to equal or increase or reduce to obtain first threshold with setting amplitude or setting allowance.Only because at this time not Dicode rate video data is accessed, therefore calculates first bit-rate video number of the current time between at the time of periodic cover next time Can be simpler according to the memory capacity of needs, i.e. P3=0, so as to which the calculation formula of average storage speed can be:S1=(P1- P2)/T1, and P3 ' is also zero, therefore the expression formula that available remaining memory capacity is less than first threshold can be P2 < (T- (T3-T2))×S1。
First threshold can be less than with remaining memory capacity by, which meeting, represents if continuing only to store the first bit-rate video data, When being so just present with the video recording for some scenes that a period of time is lost due to memory space inadequate or overriding part preservation Between not up to covering cycle video recording.And it receives and stores dicode rate video data after meeting and (additionally accesses and store Second code check video data), then the first code check that hereafter can be deleted in all or part of dicode rate video data regards Frequency evidence retains the second code check video data.Since the second code check is lower than the first code check, unit memory capacity storage video when Length is longer, and this makes it possible to the video datas in the limited memory space memory storage longer time, prevent from being difficult to expand for the moment Cause that the video of a period of time can not store or a part of video data is not reaching in its holding time and covers during memory capacity It is just capped when covering the cycle;Simultaneously when not meeting, since available remaining memory capacity can store current time to next time The first bit-rate video data between at the time of periodic cover, therefore without access dicode rate video data, it is multiple to reduce operation Polygamy and volume of transmitted data.
Alternatively, also can additional conditions be set on the basis of satisfaction can be less than first threshold with remaining memory capacity, Such as meet the operation just performed below again after a while after satisfaction.
No matter how first threshold, second threshold and the 3rd threshold value are set, and whether monitoring can be less than with remaining memory capacity First threshold is preferably operated less than second threshold and more than the 3rd threshold value to be periodic, specifically can so be carried out:Full Foot periodically monitors whether to be less than first threshold before being less than first threshold, without detecting whether to be more than the 3rd threshold value and less than the Two threshold values;It is less than first threshold after receiving and storing dicode rate video data meeting, is periodically detected and whether is more than the Whether three threshold values and less than second threshold, meet without detecting less than first threshold;It is held meeting more than first threshold After row delete operation, then back periodically monitor whether be less than first threshold, without detect whether be more than the 3rd threshold value and Less than second threshold;Meet less than second threshold and after performing delete operation, be still periodically detected and whether be more than the 3rd threshold Value and less than second threshold without detect whether be less than first threshold.
Video data storage method in the present embodiment can be by saving comprising management node and one or more storage The cloud storage system of point performs.Management node can periodically detect (such as 10 minutes once namely 10 minutes one monitoring week Phase) all memory nodes state, obtain the memory space situation of memory node, select to close if video data is received at this time Suitable (residual memory space for having suitable size) memory node stores video data.Memory node is then passive offer The server of storage service.When the sum of available residual memory space of all memory nodes is insufficient, management node control storage Node carries out capacity or prompting user carries out dilatation, to ensure the normal storage of video data.Specifically performing we During method, management node, which can be used, monitors the whole story memory capacity that thread monitors all memory nodes in each monitoring cycle, from And available remaining memory capacity and average storage speed are obtained, thus may determine whether less than first threshold, less than the second threshold It is worth or more than the 3rd threshold value, thus performs storage or stop the operation of storage dicode rate video data, and can control storage service Device performs delete operation;Management node preserves the index information of each video data of storage simultaneously, can find each double The second identical code check video data of the corresponding content of first bit-rate video data in bit-rate video data, vice versa, thus It can easily indicate which video data memory node deletes.Note that in the art, management node is also referred to as first number According to server or similar name, memory node is also referred to as storage server, data server or similar name.Management By wirelessly or non-wirelessly communicating between node and memory node.
Video data storage method provided in this embodiment, in memory space inadequate, i.e. for storing under current time arrives When the available remaining memory capacity of the first video data between at the time of periodic cover is less than first threshold, memory node Dicode rate video data is received and stored, dicode rate video data includes the first bit-rate video data and second for having content identical Bit-rate video data, so as to according to all or part of dicode rate video data of situation deletion that can use remaining memory capacity In the first bit-rate video data and/or the second code check video data, i.e., can preserve higher clearly when memory space is enough Video data and the video data that the longer time can be preserved in memory space inadequate.
Dicode rate video counts can be deleted when specifically, in available remaining lack of memory capacity, i.e. less than second threshold The first bit-rate video data in, due to the second code check be less than the first code check, unit memory capacity storage video when Length is longer, and this makes it possible to the video datas in the limited memory space memory storage longer time, prevent from being difficult to expand for the moment Cause that the video data of a period of time can not store or a part of video data is not reached in its holding time during memory capacity It is just capped to during covering cycle.
Simultaneously as dicode rate video data includes the first identical bit-rate video data of content and the second code check video counts According to, i.e. the first bit-rate video data can realize the reception and storage of all the period of time, therefore even if because of lack of memory capacity and not Can in time dilatation and need delete the first bit-rate video data, can also meet preserve all the period of time video data premise Under, the first bit-rate video data as prolonged as possible are preserved, make to have video data as prolonged as possible to keep fine definition.
Furthermore during in available remaining memory capacity abundance, i.e. more than three threshold values, it can stop storing dicode rate video counts According to and only store the first bit-rate video data and delete the second code check video data in the dicode rate video data that stores before, So as to reduce the complexity operated in the case of memory space abundance and the data volume of transmission and storage.
The present embodiment additionally provides a kind of video data storage systems, as shown in figure 4, the system includes 1 He of management node Memory node 2, wherein management node include detection module 11 and comparison module 12, and memory node includes memory module 13 and deletes Module 14.
Detection module 11 is used to detect the available remaining memory capacity of the memory node, can be energy with remaining memory capacity For storing the memory capacity of first video data of the current time between at the time of periodic cover next time;
In practice, detection module 11 is specifically used for the memory capacity for calculating current residual and stored dicode rate video counts The sum of memory capacity that the second code check video data in occupies obtains available remaining memory capacity.
Comparison module 12 be used for by the available remaining memory capacity of the memory node and first threshold, second threshold and/ Or the 3rd threshold value be compared;
Memory module 13, for receiving and storing dicode rate video data, wherein dicode rate video data includes content phase The first same bit-rate video data and the second code check video data, and the first code check is higher than the second code check;
Removing module 14, for according to the situation that can use remaining memory capacity, deleting stored part or all of dicode The first bit-rate video data or the second code check video data in rate video data.
According to the situation that can use remaining memory capacity, removing module 12 can be specifically used for two kinds of situations:
The first:When can use remaining memory capacity less than second threshold, delete stored part or all of dicode rate and regard First bit-rate video data of the frequency in;
Second:When available remaining memory capacity is more than three threshold values, stored part or all of dicode rate is deleted The second code check video data in video data.At this point, at this point, it can also stop storing the second code check video data but continue to store First bit-rate video data.
Removing module 12 is additionally operable to, when available remaining memory capacity is more than first threshold, stop the second bit-rate video of storage Data but continue store the first bit-rate video data.
Wherein, first threshold, second threshold and/or the 3rd threshold value can be according to storage current times to periodic cover next time At the time of between the first bit-rate video data need memory capacity and set.As shown in figure 5, set threshold value can be by following Module is realized, by taking the 3rd threshold value as an example:
Cycle detection submodule 121, for detecting remaining memory capacity every the monitoring cycle of a setting;
Speed determination sub-module 122, the storage for being occupied according to the first bit-rate video data in previous monitoring cycle are held Amount determines the average storage speed in previous monitoring cycle with monitoring cycle;
Duration determination sub-module 123, for determining duration of the current time between at the time of periodic cover next time;
Demand determination sub-module 124, for determining the memory capacity needed with above-mentioned duration according to average storage speed
Acquisition submodule 125, for memory capacity as needed to obtaining threshold value.
From the foregoing, it will be observed that the 3rd threshold value can be according to storage current time first between at the time of periodic cover next time The memory capacity that bit-rate video data need is set, such as can be allowed to equal or to set amplitude or setting allowance increase First threshold is obtained, is not reduced generally, but reduces and is also regarded as being included within the scope of the present invention.
Available remaining memory capacity at this time can be that the memory capacity of current residual adds stored dicode rate video counts The sum of memory capacity that the second code check video data in occupies.
Second threshold can also be set by the module of calling figure 5, i.e., according to storage current time to periodic cover next time At the time of between the memory capacity that needs of the first bit-rate video data second threshold is set, such as can be allowed to it is equal or It increases or reduces to obtain second threshold with setting amplitude or setting allowance.It alternatively, can also be meet can for the sake of prudent Additional conditions are set on the basis of being less than second threshold with remaining memory capacity, are, for example, less than the specific threshold value of another setting When, just perform operation below.
Available remaining memory capacity at this time equally can be that the memory capacity of current residual is regarded plus stored dicode rate The sum of memory capacity that the second code check video data of the frequency in occupies.
The first bit-rate video data are received and stored it should be understood that can give tacit consent in the present invention, when memory module is initial, Then detection module is periodically detected available remaining memory capacity, and comparison module is by it compared with threshold value, it is determined whether connects Receive and storage dicode rate video data, when can also initially detection can use residue memory capacity, compared with threshold value, determine be No reception and the corresponding dicode rate video data of storage, then be received and stored.
When only receiving and storing the first bit-rate video data, current residual can be also calculated as with remaining memory capacity The sum of memory capacity that memory capacity is occupied with the second code check video data in stored dicode rate video data, simply Memory capacity that the second code check video data in the dicode rate video data of storage occupies is it is possible that be zero (not connect at the beginning It receives and stores dicode rate video data).
The module that first threshold can also be used in Fig. 5 simultaneously is set, i.e., is covered according to storage current time to the cycle next time Memory capacity that the first bit-rate video data between at the time of lid need sets the 3rd threshold value, such as can be allowed to equal, Or it increases or reduces to obtain first threshold with setting amplitude or setting allowance.Only because dicode rate video counts are not accessed at this time According to, it may not be necessary to consider the memory capacity that the second code check video data occupies.Alternatively, can also be deposited meeting with residue After storage capacity sets additional conditions on the basis of being less than first threshold, such as satisfaction just performs again after a while after satisfaction The operation in face.
Since video data storage method is corresponded with video data storage systems, because this latter is referred to the former Explanation, details are not described herein.
Generally there is cloud storage system meta data server (i.e. management node) and one or more storage servers (to deposit Store up node), for storage server for storing video data, metadata is for describing the data of other storage data, metadata Server is typically used for the index of the video data of record storage, such as each video data file corresponding period, record The ID and storage address (such as including server ID, block ID, section ID) of the headend equipment of system, so as to find double bit-rate videos The first identical bit-rate video data of the corresponding content of second code check video data in data, vice versa.In cloud storage device With meta data server and during one or more storage server, storage server can perform or by control perform storage and The operation of video data is deleted, meta data server can perform the operation such as detection, calculating, definite, lookup, control and (specifically may be used Referring to the respective description in video data storage method), but the invention is not restricted to this.
Video data storage systems provided in this embodiment, in memory space inadequate, i.e. for storing under current time arrives The available remaining memory capacity of the first video data between at the time of periodic cover is received and deposited when being less than first threshold Dicode rate video data is stored up, dicode rate video data includes the first bit-rate video data for having content identical and the second bit-rate video Data, so as to according to first in all or part of dicode rate video data of situation deletion that can use remaining memory capacity Bit-rate video data or the second code check video data, i.e., can be preserved when memory space is enough higher clearly video data and The video data of longer time can be preserved during memory space inadequate.
Dicode rate video counts can be deleted when specifically, in available remaining lack of memory capacity, i.e. less than second threshold The first bit-rate video data in, due to the second code check be less than the first code check, unit memory capacity storage video when Length is longer, and this makes it possible to the video datas in the limited memory space memory storage longer time, prevent from being difficult to expand for the moment Cause that the video data of a period of time can not store or a part of video data is not reached in its holding time during memory capacity It is just capped to during covering cycle.
Simultaneously as dicode rate video data includes the first identical bit-rate video data of content and the second code check video counts According to, i.e. the first bit-rate video data can realize the reception and storage of all the period of time, therefore even if because of lack of memory capacity and not Can in time dilatation and need delete the first bit-rate video data, can also meet preserve all the period of time video data premise Under, the first bit-rate video data as prolonged as possible are preserved, make to have video data as prolonged as possible to keep fine definition.
Furthermore during in available remaining memory capacity abundance, i.e. more than three threshold values, it can stop storing dicode rate video counts According to and store the first bit-rate video data and delete the second code check video data in the dicode rate video data that stores before, from And reduce the complexity operated in the case of memory space abundance and the data volume of transmission and storage.
The present embodiment additionally provides a kind of video cut-in method based on cloud storage, applied to video access node, such as Fig. 6 Shown, this method includes:
Step S21:When the memory node of cloud storage system can be used to storing current time to periodic cover next time when When available remaining memory capacity between quarter is less than first threshold, video access node accesses dicode rate video counts from headend equipment According to and be transmitted to the memory node so that:When available remaining memory capacity is less than second threshold, memory node deletion has been deposited The first bit-rate video data in the part or all of dicode rate video data of storage;And/or when available remaining memory capacity is more than During three threshold values, memory node deletes the second code check video data in stored part or all of dicode rate video data, Wherein, dicode rate video data includes identical the first bit-rate video data of content and the second code check video data, and described the One code check is higher than second code check.
The source of video data can be headend equipment or other suitable equipment.Video is accessed it should be understood that setting from it The quantity of the headend equipment of data is the first quantity, accesses the headend equipment of dicode rate video data (i.e. except first yard of access Outside rate data additionally from its access the second code check video data headend equipment) quantity be the second quantity, then first number Amount and the second quantity are all the natural number more than or equal to one, and the second quantity can be less equal than the first quantity.In this way, can be with Selectively the first bit-rate video data are accessed always from the high headend equipment of some monitoring important scenes, priority, during storage And it is same, so as to all preserve the HDTV Recording of important scenes in all monitoring periods, i.e., corresponding to the second number Amount is less than the situation of the first quantity.
It should be understood that access can be given tacit consent in the present invention, when initial and forwards the first bit-rate video data, then basis Remaining memory capacity and first threshold result of the comparison can be used, it is determined whether corresponding dicode rate video data is received and stores, According to remaining memory capacity and first threshold result of the comparison can be used when can be initially, it is determined whether receive and storage dicode rate regards Frequency is after, then is received and stored.
As shown in fig. 6, this method may also include:
Step S22:When available remaining memory capacity is more than three threshold values, stops forwarding dicode rate video data and forward First bit-rate video data.
It, can be with when forwarding the first bit-rate video data stopping forwarding dicode rate video data note that in the present invention Continue to access dicode rate video data but do not forward the second code check video data, but preferred mode is no longer to access second code Rate video data and only access the first bit-rate video data.
As described above, memory node is deleted stored part or all of according to the situation that can use remaining memory capacity The first bit-rate video data or the second code check video data in dicode rate video data, can be divided into two kinds of situations:
The first situation:When available remaining memory capacity is less than second threshold, the memory node is deleted stored The first bit-rate video data in part or all of dicode rate video data;
The second situation:When available remaining memory capacity is more than three threshold values, the memory node is deleted stored The second code check video data in part or all of dicode rate video data.
Here the setting of first threshold, second threshold and the 3rd threshold value is identical with video data storage method, specifically It may refer to above, details are not described herein.
Video cut-in method provided in this embodiment based on cloud storage, when the memory node of cloud storage system can be used to deposit When storing up available remaining memory capacity of the current time between at the time of periodic cover next time less than first threshold, video access Node accesses dicode rate video data from headend equipment and is transmitted to memory node, and dicode rate video data is identical including there is content The first bit-rate video data and the second code check video data so that cloud storage system can be according to can use remaining storage to hold The situation of amount deletes the first bit-rate video data or the second code check video data in all or part of dicode rate video data, Can be preserved when memory space is enough higher clearly video data and the longer time can be preserved in memory space inadequate Video data.
When specifically, in available remaining lack of memory capacity, i.e. less than second threshold, cloud storage device deletes dicode rate The first bit-rate video data in video data, since the second code check is less than the first code check, the storage of unit memory capacity Video length is longer, and this makes it possible to the video datas in the limited memory space memory storage longer time, and it is difficult for the moment to prevent It can not be stored with the video data for causing a period of time during extended storage capacity or a part of video data is in its holding time It is just capped when being not reaching to covering cycle.
Simultaneously as dicode rate video data includes the first identical bit-rate video data of content and the second code check video counts According to, i.e. the first bit-rate video data can realize the reception and storage of all the period of time, therefore even if because of lack of memory capacity and not Can in time dilatation and need delete the first bit-rate video data, can also meet preserve all the period of time video data premise Under, the first bit-rate video data as prolonged as possible are preserved, make to have video data as prolonged as possible to keep fine definition.
Furthermore during in available remaining memory capacity abundance, i.e. more than three threshold values, can stop forwarding (and can also stop Only accessing) dicode rate video data and cloud storage system can delete second code in the dicode rate video data stored before Rate video data, so as to reduce the complexity operated in the case of memory space abundance and the data volume of transmission and storage.
Corresponding to the above-mentioned video cut-in method based on cloud storage, as shown in fig. 7, provided in this embodiment be based on cloud storage Video access device include transceiver module 21.
Transceiver module 21, the memory node for working as cloud storage system can be used to storing current time to the cycle next time and cover When available remaining memory capacity between at the time of lid is less than first threshold, accesses dicode rate video data and be transmitted to storage section Point, so that:When available remaining memory capacity is less than second threshold, memory node deletes stored part or all of dicode rate The first bit-rate video data in video data;And/or when available remaining memory capacity is more than three threshold values, memory node is deleted Except the second code check video data in stored part or all of dicode rate video data, wherein dicode rate video data includes The first identical bit-rate video data of content and the second code check video data, and first code check is higher than second code check.
As shown in fig. 7, video access node can also further comprise:
Modular converter 22, for when available remaining memory capacity is more than three threshold values, stopping forwarding dicode rate video counts According to and forward the first bit-rate video data.
This is because when available remaining memory capacity is more than three threshold values, cloud storage device stops the double bit-rate videos of storage Data and store the first bit-rate video data, therefore correspondingly, video access node can stop forwarding dicode rate video data And the first bit-rate video data are forwarded, reduce operating load.
Since the video cut-in method based on cloud storage is corresponded with the video access node based on cloud storage, because hereafter Person is referred to the explanation to the former, and details are not described herein.
The video access node of the present invention can be to be provided with the video access device entity of above-mentioned function module, such as regarding Frequency access gateway, or the medium or carrier of the software that corresponding program module collection forms are stored with, during running software Video access device can be controlled to perform above-mentioned steps.Each function module of video access node can be arranged on video access device Outside, video access device is operated by instruction, can also be arranged among video access device and directly perform operation.
Video access node provided in this embodiment based on cloud storage, including transceiver module, for working as cloud storage system Memory node can be used to storing available remaining memory capacity of the current time between at the time of periodic cover next time and be less than During first threshold, video access node accesses dicode rate video data from headend equipment and is transmitted to memory node, and dicode rate regards Frequency is according to the first identical bit-rate video data of content and the second code check video data are included, so that cloud storage system can With according to the first bit-rate video number in all or part of dicode rate video data of situation deletion that can use remaining memory capacity According to or the second code check video data, i.e., can be preserved when memory space is enough higher clearly video data and in memory space not The video data of longer time can be preserved when sufficient.
When specifically, in available remaining lack of memory capacity, i.e. less than second threshold, cloud storage device deletes dicode rate The first bit-rate video data in video data, since the second code check is less than the first code check, the storage of unit memory capacity Video length is longer, and this makes it possible to the video datas in the limited memory space memory storage longer time, and it is difficult for the moment to prevent It can not be stored with the video data for causing a period of time during extended storage capacity or a part of video data is in its holding time It is just capped when being not reaching to covering cycle.
Simultaneously as dicode rate video data includes the first identical bit-rate video data of content and the second code check video counts According to, i.e. the first bit-rate video data can realize the reception and storage of all the period of time, therefore even if because of lack of memory capacity and not Can in time dilatation and need delete the first bit-rate video data, can also meet preserve all the period of time video data premise Under, the first bit-rate video data as prolonged as possible are preserved, make to have video data as prolonged as possible to keep fine definition.
Furthermore during in available remaining memory capacity abundance, i.e. more than three threshold values, can stop forwarding (and can also stop Only access) dicode rate video data and cloud storage system is allowd to delete the in the dicode rate video data stored before Two bit-rate video data, so as to reduce the complexity operated in the case of memory space abundance and the data of transmission and storage Amount.
The video access node and video data storage systems of the present embodiment can be formed video access and deposited with cooperating Storage system.As shown in figure 8, video access and storage system include video data storage systems 1 provided in this embodiment and video Access node 2.Video access node 2 for example accesses video data from headend equipment and is forwarded to video data storage device 1, deposits Storage system 1 receives and stores video data, for details, reference can be made to above description.
Fig. 9 shows the illustrative work flow diagram of video access and storage system, performs following steps:
In step S1, video access node 2 accesses the first bit-rate video data and forwards, video data storage systems 1 Memory node stores the first bit-rate video data, when reaching predetermined time (such as a monitoring cycle), enters step S2;
In step S2, the management node of video data storage systems 1 detects the memory node of video data storage systems 1 Whether first condition can be met with remaining memory capacity, if satisfied, going to step S3, otherwise go to step S1;
In step S3, due to meeting first condition, so video access node 2 accesses dicode rate video data, video counts Dicode rate video data is then stored according to the memory node of storage system 1, when reaching predetermined time (such as a monitoring cycle), into Enter step S4;
In step S4, the available remaining memory capacity of the management node detection memory node of video data storage systems 1 is It is no to meet second condition, if satisfied, going to step S5, otherwise go to step S6;
In step S5, due to meeting second condition (can set continuously to meet in multiple monitoring cycles and just think to meet), So the memory node of video data storage systems 1 deletes the first bit-rate video number in stored dicode rate video data According to when the amount of deletion is enough (current time can be stored with residual memory space between at the time of periodic cover next time The first bit-rate video data), go to step S1 access and store the first bit-rate video data (such situation in figure not Show), then continue to access and store dicode rate video data when measuring inadequate, that is, return to step S3;
In step S6, the available remaining memory capacity of the management node detection memory node of video data storage systems 1 is It is no to meet third condition, if satisfied, going to step S7, step S4 is otherwise gone to, notices that S4 and S6 can be carried out in synchronization, And it can generally be spaced a monitoring cycle and perform a S4 and S6;
In step S7, the memory node of video data storage systems 1 deletes stored partly or entirely double bit-rate videos The second code check video data in data, and go to step S1.
Above-mentioned first condition can be that available remaining memory capacity mentioned above is less than first threshold, and second condition can Think that available remaining memory capacity mentioned above is less than second threshold, third condition can be that available residue mentioned above is deposited Storage capacity, which is more than the 3rd threshold value or each condition, can also add some other restrictive condition.
Above-mentioned workflow may refer in the present embodiment for video data storage method and node and video access side The explanation of method and node so as to be best understood from, and can complement one another, and details are not described herein.
One of ordinary skill in the art will appreciate that realizing all or part of step, module of above-described embodiment can pass through Hardware is completed, and relevant hardware can also be instructed to complete by program, and the program can be stored in a kind of computer In readable storage medium storing program for executing, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modifications, equivalent replacements and improvements are made should all be included in the protection scope of the present invention.

Claims (12)

1. a kind of video data storage method, which is characterized in that applied to cloud storage system, the cloud storage system includes management Node and memory node, the described method includes:
The management node detects the available remaining memory capacity of the memory node, and described can be that can use with remaining memory capacity The memory capacity of the first video data between at the time of current time is stored to periodic cover next time;
The management node is by the available remaining memory capacity of the memory node and first threshold, second threshold and/or the 3rd Threshold value is compared;
When judging remaining memory capacity can be used to be less than first threshold, the memory node is received and stored to be generated by headend equipment Dicode rate video data, wherein dicode rate video data includes identical the first bit-rate video data of content and regarded with the second code check Frequency evidence, and the first code check is higher than second code check;
When judging remaining memory capacity can be used to be less than second threshold, the memory node is deleted stored partly or entirely double The first bit-rate video data in bit-rate video data;And/or when judging remaining memory capacity can be used to be more than three threshold values, institute State the second code check video data in the stored part or all of dicode rate video data of memory node deletion.
2. it according to the method described in claim 1, it is characterized in that, further includes:
When judging remaining memory capacity can be used to be more than three threshold values, the memory node stops the second code check video data of storage But continue to store the first bit-rate video data.
3. method according to claim 1 or 2, which is characterized in that the management node detected the memory node can Included with remaining memory capacity:The management node calculates the memory capacity of current residual and stored dicode rate video data In the sum of the memory capacity that occupies of the second code check video data, obtain described to use remaining memory capacity.
4. method according to claim 1 or 2, which is characterized in that the first threshold, second threshold and/or the 3rd threshold The memory capacity that value is needed according to the first bit-rate video data of the storage current time between at the time of periodic cover next time And it sets.
5. a kind of video data storage systems, which is characterized in that the system includes management node and memory node, wherein, it is described Management node includes detection module and comparison module;The memory node includes memory module and removing module;
The detection module is used to detect the available remaining memory capacity of the memory node, described to be with remaining memory capacity It can be used to store the memory capacity of first video data of the current time between at the time of periodic cover next time;
The comparison module be used for by the available remaining memory capacity of the memory node and first threshold, second threshold and/or 3rd threshold value is compared;
The memory module, for receiving and storing dicode rate video data, it is identical to include content for wherein dicode rate video data The first bit-rate video data and the second code check video data, and the first code check is higher than the second code check;
The removing module, for when available remaining memory capacity is less than second threshold, deleting stored part or all of The first bit-rate video data in dicode rate video data;And/or it when available remaining memory capacity is more than three threshold values, deletes The second code check video data in stored part or all of dicode rate video data.
6. system according to claim 5, which is characterized in that the removing module is additionally operable to:
When available remaining memory capacity is more than first threshold, stops the second code check video data of storage but continue first yard of storage Rate video data.
7. system according to claim 5 or 6, which is characterized in that the detection module is specifically used for calculating current residual Memory capacity and stored dicode rate video data in the sum of the memory capacity that occupies of the second code check video data, obtain Remaining memory capacity can be used.
8. system according to claim 5 or 6, the device, which is characterized in that the first threshold, second threshold And/or the 3rd threshold value according to first bit-rate video data needs of the storage current time between at the time of periodic cover next time Memory capacity and set.
9. a kind of video cut-in method based on cloud storage, which is characterized in that applied to video access node, this method includes:
It is available between at the time of the memory node of cloud storage system can be used to store current time to periodic cover next time When remaining memory capacity is less than first threshold, the video access node accesses dicode rate video data from headend equipment and forwards To the memory node, so that:When available remaining memory capacity is less than second threshold, the memory node is deleted stored The first bit-rate video data in part or all of dicode rate video data;And/or when available remaining memory capacity is more than the 3rd During threshold value, the memory node deletes the second code check video data in stored part or all of dicode rate video data,
Wherein, dicode rate video data includes the first identical bit-rate video data of content and the second code check video data, and institute The first code check is stated higher than second code check.
10. according to the method described in claim 9, it is characterized in that, this method further includes:
When it is described be more than three threshold values with remaining memory capacity when, the video access node stops forwarding the second bit-rate video Data but continue forward the first bit-rate video data.
11. a kind of video access node based on cloud storage, which is characterized in that the node includes:
Transceiver module, for when the memory node of cloud storage system can be used to storing current time to periodic cover next time when When available remaining memory capacity between quarter is less than first threshold, accesses dicode rate video data and be transmitted to the storage section Point, so that:When available remaining memory capacity is less than second threshold, the memory node is deleted stored partly or entirely double The first bit-rate video data in bit-rate video data;It is described to deposit and/or when available remaining memory capacity is more than three threshold values The second code check video data in the stored part or all of dicode rate video data of knot removal is stored up,
Wherein dicode rate video data includes the first identical bit-rate video data of content and the second code check video data, and described First code check is higher than second code check.
12. node according to claim 11, which is characterized in that modular converter is further included, for residue can be used when described When memory capacity is more than three threshold values, stops forwarding the second code check video data and continue to forward the first bit-rate video data.
CN201611024214.8A 2016-11-17 2016-11-17 Video data storage method and system, video access method and node Active CN108076317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611024214.8A CN108076317B (en) 2016-11-17 2016-11-17 Video data storage method and system, video access method and node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611024214.8A CN108076317B (en) 2016-11-17 2016-11-17 Video data storage method and system, video access method and node

Publications (2)

Publication Number Publication Date
CN108076317A true CN108076317A (en) 2018-05-25
CN108076317B CN108076317B (en) 2020-08-11

Family

ID=62160606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611024214.8A Active CN108076317B (en) 2016-11-17 2016-11-17 Video data storage method and system, video access method and node

Country Status (1)

Country Link
CN (1) CN108076317B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965987A (en) * 2018-06-27 2018-12-07 广州视源电子科技股份有限公司 TV programme storage method, television set, mobile terminal and storage medium
CN109618198A (en) * 2018-12-10 2019-04-12 网易(杭州)网络有限公司 Live content reports method and device, storage medium, electronic equipment
CN110430395A (en) * 2019-07-19 2019-11-08 苏州维众数据技术有限公司 Video data AI processing system and processing method
CN111061423A (en) * 2018-10-17 2020-04-24 杭州海康威视系统技术有限公司 Data processing method and device and management node
CN111538457A (en) * 2019-06-11 2020-08-14 深圳迈瑞生物医疗电子股份有限公司 Endoscope camera system, camera host and data storage method thereof
CN111580755A (en) * 2020-05-09 2020-08-25 杭州海康威视系统技术有限公司 Distributed data processing system and distributed data processing method
CN112506429A (en) * 2020-11-30 2021-03-16 杭州海康威视系统技术有限公司 Method, device and equipment for deleting processing and storage medium
CN113268205A (en) * 2021-05-28 2021-08-17 海信集团控股股份有限公司 Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment
CN114153399A (en) * 2021-12-07 2022-03-08 四川云从天府人工智能科技有限公司 Data storage method, device, control device and medium of storage system
CN114461151A (en) * 2022-04-11 2022-05-10 武汉中科通达高新技术股份有限公司 Video storage method, computer equipment and storage medium of national standard camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120114314A1 (en) * 2008-09-11 2012-05-10 Nice Systems Ltd. Method and system for utilizing storage in network video recorders
CN103824574A (en) * 2014-02-25 2014-05-28 深圳市赛为智能股份有限公司 Video data storage method and system capable of supporting code stream switching
CN105430480A (en) * 2015-11-13 2016-03-23 Tcl集团股份有限公司 Method and system for storing video data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120114314A1 (en) * 2008-09-11 2012-05-10 Nice Systems Ltd. Method and system for utilizing storage in network video recorders
CN103824574A (en) * 2014-02-25 2014-05-28 深圳市赛为智能股份有限公司 Video data storage method and system capable of supporting code stream switching
CN105430480A (en) * 2015-11-13 2016-03-23 Tcl集团股份有限公司 Method and system for storing video data

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965987A (en) * 2018-06-27 2018-12-07 广州视源电子科技股份有限公司 TV programme storage method, television set, mobile terminal and storage medium
CN111061423A (en) * 2018-10-17 2020-04-24 杭州海康威视系统技术有限公司 Data processing method and device and management node
CN111061423B (en) * 2018-10-17 2023-09-26 杭州海康威视系统技术有限公司 Data processing method and device and management node
CN109618198A (en) * 2018-12-10 2019-04-12 网易(杭州)网络有限公司 Live content reports method and device, storage medium, electronic equipment
CN111538457A (en) * 2019-06-11 2020-08-14 深圳迈瑞生物医疗电子股份有限公司 Endoscope camera system, camera host and data storage method thereof
CN110430395A (en) * 2019-07-19 2019-11-08 苏州维众数据技术有限公司 Video data AI processing system and processing method
CN111580755B (en) * 2020-05-09 2022-07-05 杭州海康威视系统技术有限公司 Distributed data processing system and distributed data processing method
CN111580755A (en) * 2020-05-09 2020-08-25 杭州海康威视系统技术有限公司 Distributed data processing system and distributed data processing method
CN112506429A (en) * 2020-11-30 2021-03-16 杭州海康威视系统技术有限公司 Method, device and equipment for deleting processing and storage medium
CN112506429B (en) * 2020-11-30 2023-05-05 杭州海康威视系统技术有限公司 Method, device, equipment and storage medium for deleting
CN113268205B (en) * 2021-05-28 2023-02-03 海信集团控股股份有限公司 Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment
CN113268205A (en) * 2021-05-28 2021-08-17 海信集团控股股份有限公司 Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment
CN114153399A (en) * 2021-12-07 2022-03-08 四川云从天府人工智能科技有限公司 Data storage method, device, control device and medium of storage system
CN114153399B (en) * 2021-12-07 2023-10-20 四川云从天府人工智能科技有限公司 Data storage method, device, control device and medium of storage system
CN114461151A (en) * 2022-04-11 2022-05-10 武汉中科通达高新技术股份有限公司 Video storage method, computer equipment and storage medium of national standard camera

Also Published As

Publication number Publication date
CN108076317B (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN108076317A (en) Video data storage method and system, video cut-in method and node
CN102622303B (en) A kind of method of internal memory premature beats and device
CN104427284B (en) Process the method and apparatus of sport video
CN105516347B (en) A kind of method and device of the load balancing allotment of streaming media server
CN103731631B (en) The method, apparatus and system of a kind of transmitting video image
US8649427B2 (en) Image processor, image generator and computer program
CN106470219A (en) The dilatation of computer cluster and capacity reduction method and equipment
CN104504147B (en) A kind of resource coordination method of data-base cluster, apparatus and system
CN104834713A (en) Method and system for storing and transmitting image data of terminal equipment
CN104301671B (en) Traffic Surveillance Video storage method based on event closeness in HDFS
CN103685942B (en) Video camera control method, user equipment and video camera
CN107734336A (en) A kind of compression method and device of video memory space
CN109756566B (en) Block chain based data storage method, related equipment and storage medium
KR20220062095A (en) Rack detection method and apparatus, device, readable storage medium
CN105450964B (en) Method, system and management node for cloud storage of video data
CN110968279A (en) Message degradation method and related device
CN107872517A (en) A kind of data processing method and device
CN111309485A (en) Service calling method and device, electronic equipment and computer readable storage medium
US8423704B2 (en) Dynamic optimization of memory use in a digital recording device
CN104023176A (en) Method and device of processing audio frequency and image information as well as terminal equipment
WO2022143385A1 (en) Pulse signal-based display method and apparatus, electronic device, and medium
CN107124571A (en) Videotape storage means and device
CN111966632B (en) Streaming data storage method, reading method, equipment and readable storage medium
CN106993147B (en) A kind of video recording covering method, device and network hard disk video recorder
CN104871499A (en) Communication node, control device, method for managing control information entries, and program

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
GR01 Patent grant
GR01 Patent grant