计算机工程与设计
計算機工程與設計
계산궤공정여설계
COMPUTER ENGINEERING AND DESIGN
2014年
12期
4195-4201
,共7页
视频监控%视频存储%流存储%流媒体%流媒体存储
視頻鑑控%視頻存儲%流存儲%流媒體%流媒體存儲
시빈감공%시빈존저%류존저%류매체%류매체존저
video monitoring%video storage%stream storage%stream media%stream media storage
针对文件系统存储视频数据时存储效率低和检索性能差的问题,提出一种基于裸盘设备的视频数据专用存储方案,实现了视频数据的高效存储和秒级检索。针对多路视频流的并发写入控制,采用单线程非阻塞I/O复用技术和“乒乓缓冲”机制,避免多路视频流并发写入时的阻塞问题;针对视频监控系统媒体转发服务器的时钟漂移问题,采用基于两级索引的回馈定位技术,提高系统对服务器钟差的容错能力。系统测试结果表明,相对于文件存储,“时间索引+数据块”存储方式的视频检索效率不受数据规模大小影响,多路并发写入时,单线程非阻塞I/O复用和“乒乓缓冲”机制能有效避免阻塞现象的发生。
針對文件繫統存儲視頻數據時存儲效率低和檢索性能差的問題,提齣一種基于裸盤設備的視頻數據專用存儲方案,實現瞭視頻數據的高效存儲和秒級檢索。針對多路視頻流的併髮寫入控製,採用單線程非阻塞I/O複用技術和“乒乓緩遲”機製,避免多路視頻流併髮寫入時的阻塞問題;針對視頻鑑控繫統媒體轉髮服務器的時鐘漂移問題,採用基于兩級索引的迴饋定位技術,提高繫統對服務器鐘差的容錯能力。繫統測試結果錶明,相對于文件存儲,“時間索引+數據塊”存儲方式的視頻檢索效率不受數據規模大小影響,多路併髮寫入時,單線程非阻塞I/O複用和“乒乓緩遲”機製能有效避免阻塞現象的髮生。
침대문건계통존저시빈수거시존저효솔저화검색성능차적문제,제출일충기우라반설비적시빈수거전용존저방안,실현료시빈수거적고효존저화초급검색。침대다로시빈류적병발사입공제,채용단선정비조새I/O복용기술화“핑퐁완충”궤제,피면다로시빈류병발사입시적조새문제;침대시빈감공계통매체전발복무기적시종표이문제,채용기우량급색인적회궤정위기술,제고계통대복무기종차적용착능력。계통측시결과표명,상대우문건존저,“시간색인+수거괴”존저방식적시빈검색효솔불수수거규모대소영향,다로병발사입시,단선정비조새I/O복용화“핑퐁완충”궤제능유효피면조새현상적발생。
To solve the problems of storage inefficiency and poor retrieval performance when storing video data through a file sys‐tem ,a dedicated solution that enabled high storage efficiency and second‐level search of video data based on the bare disk device was proposed .To avoid the blocking phenomenon in the concurrent writing of multiple video streams ,the single‐threaded non‐blocking I/O multiplexing technology and“ping‐pong buffering” mechanism were used in the proposed approach .To solve the problem of clock drifting of stream media transfer server in the video surveillance system ,a feedback positioning technology based on the two‐level index was used to improve the system’s fault tolerance of clock difference between servers .The system testing result shows that compared with the file system solution ,the proposed approach’s time consuming of record retrieval is not affected by the scale of video data ,and the occurrence of obstruction can be efficiently avoided by the single‐thread non‐bloc‐king I/O multiplexing technology and“ping‐pong buffering” mechanism .