| Technically,the video surveillance technology has experienced first-generation analogmonitoring,the second generation of digital surveillance,development of the currentthird-generation network surveillance stage. Network video surveillance storage system,with more access clients, higher picture resolution demanding, more data flow stability,and longer storage time, while demanding smaller time granularity, so how to make surethe large amounts of video data storage timely and correctly, retrieve data fast andaccurately becomes the key problem of network surveillance system design.In order to solve above problems, puts forward a kind of “time index+dataâ€key-value storage model. We manage and deposit the data by the way of imitating ext2filesystem, each logical volume corresponds to a block group, and logical volume storagetime index and video data. In order to keep load balance and when overload system stillwork, we use task thread pool to schedule the implementation of the deposit and retrieval,While ensuring the deposit of a higher priority than the priority of retrieval tasks. inmemory we open up double loop without lock buffer of each channel data stream toimprove storage efficiency.By testing the function of the video storage system, the results show that the index ofthe system time with the data block is a one-to-one correspondence. Performance analysisshows that the solution can achieve the fast retrieval of seconds and carry out more than40channels of2MB/s data stream with generating storage server. |