实时多媒体存储系统设计
本文关键词: 嵌入式DVR 文件系统 本地存储 网络存储 软件库 视频安防 出处:《杭州电子科技大学》2012年硕士论文 论文类型:学位论文
【摘要】:安防产业发展迅速,嵌入式硬盘录像机已经得到越来越广泛的应用,作为视频安防核心技术之一的存储技术的发展显得极为重要。通用文件系统具有通用性特点,不受使用平台限制,方便功能扩展,因此本文基于通用文件系统设计了嵌入式硬盘录像机的实时多媒体存储系统。该存储系统实现了视频录像机本地存储和网络存储两大模块,支持录像存储和抓图存储等功能,具有更好的移植性和可扩展性,满足了市场的需要。 本论文首先从视频编解码技术、软硬件技术、存储技术三方面介绍了嵌入式硬盘录像机的发展历程。然后从嵌入式硬盘录像机的硬件结构、软件结构、基本功能以及平台软件的编译环境等方面介绍了嵌入式硬盘录像机的结构信息,详细阐述了嵌入式硬盘录像机的特点。 针对嵌入式硬盘录像机数据存储持续时间长,数据传输量大,数据访问量低,数据存储周期短等特点,本论文设计了嵌入式硬盘录像机存储模块软件库,该软件库采用C/C++编程语言以及Linux相关系统调用实现,所属嵌入式应用层库。从数据存储位置分,软件库可分为本地存储模块和网络存储模块;从层次架构分,软件库可分为存储介质管理模块、远程目录管理模块、工作目录管理模块、文件监控模块、数据库模块、媒体文件模块、索引文件模块、文件查询模块以及FTP服务端模块。 为方便集中管理本地存储介质分区、格式化等操作,论文设计了存储介质管理模块。在网络存储模块中相对应设计了远程目录管理模块,实现远程目录的登录、挂载等功能。论文规定一个本地分区或者一个远程目录对应一个工作目录,论文在存储介质管理模块和远程目录管理模块的基础上设计了工作目录管理模块,实现了工作目录类型切换、循环覆盖等功能。为实现文件IO读写与文件信息存储异步操作,提高数据存储效率,在工作目录管理模块的基础上论文设计了文件监控模块和数据库模块,文件监控模块监控文件的创建、读写等事件,将监控到的事件信息发送到数据库模块中存储,同时,数据库模块提供了基于数据库的文件快速查询接口。在文件监控模块和数据库模块基础上,论文设计了媒体文件模块,负责完成文件的读写、文件上电修复、抓图索引信息存储等工作。为支持录像跳帧回放功能,论文设计了帧索引模块,存储了录像文件中的I帧信息。同时,论文设计了文件查询模块,支持基于文件目录的录像查询功能和基于索引的抓图文件查询功能。最后,论文提供了精简的功能接口,供上层用户接口调用。 最后,,对本系统进行了功能测试和系统性能测试。经测试,本系统实现了存储相关基本功能,在性能方面,在分辨率为CIF、码流1024Kb/S编码格式下,16通道录像,CPU不高于30%,8通道录像、抓图,CPU不高于25%,完全可以满足嵌入式硬盘录像机的存储需求。
[Abstract]:With the rapid development of security industry, embedded hard disk video recorders have been more and more widely used. The development of storage technology, one of the core technologies of video security, is very important. This paper designs a real-time multimedia storage system of embedded hard disk video recorder based on universal file system. The storage system realizes two modules of local storage and network storage of video recorder. It supports video storage and drawing storage. It has better portability and extensibility, and meets the needs of the market. This paper first introduces the development of embedded hard disk video recorder from three aspects: video coding and decoding technology, hardware and software technology, storage technology, and then introduces the hardware structure and software structure of embedded hard disk video recorder. The basic function and the compiling environment of the platform software are introduced in this paper. The structure information of the embedded hard disk video recorder is introduced, and the characteristics of the embedded hard disk video recorder are described in detail. Aiming at the characteristics of embedded hard disk recorder, such as long data storage time, large amount of data transmission, low data access and short data storage period, this paper designs a software library of storage module of embedded hard disk recorder. The software library is implemented by C / C programming language and Linux related system call, which belongs to the embedded application layer library. From the data storage location, the software library can be divided into local storage module and network storage module, and from the hierarchical architecture, the software library can be divided into local storage module and network storage module. Software library can be divided into storage media management module, remote directory management module, working directory management module, file monitoring module, database module, media file module, index file module, file query module and FTP server module. In order to facilitate centralized management of local storage media partition, format and other operations, a storage media management module is designed in this paper. A remote directory management module is designed in the network storage module to realize the login of the remote directory. The paper defines a local partition or a remote directory corresponding to a working directory. The paper designs a working directory management module based on the storage media management module and the remote directory management module. In order to realize the asynchronous operation of file IO reading and writing and file information storage, the efficiency of data storage is improved. Based on the working directory management module, the paper designs the file monitoring module and the database module. The file monitoring module monitors the creation, reading and writing of files, and sends the monitored event information to the database module to store, at the same time, The database module provides the file fast query interface based on database. On the basis of file monitoring module and database module, the paper designs the media file module, which is responsible for completing the reading and writing of files and repairing the files on electricity. In order to support the function of video playback, this paper designs a frame index module, which stores the I frame information in the video file. At the same time, the paper designs a file query module. Video query based on file directory and drawing file query based on index are supported. Finally, the paper provides a concise functional interface for the upper user interface to call. Finally, the function test and system performance test of the system are carried out. After testing, the system realizes the basic functions of storage. In terms of performance, the resolution is CIF. the CPU of 16 channel video is no more than 30 channels in 1024KB / S coding format. Drawing CPU is no more than 25, it can meet the storage requirements of embedded hard disk recorders.
【学位授予单位】:杭州电子科技大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP333;TP368.1
【参考文献】
相关期刊论文 前10条
1 王雅文;宫云战;杨朝红;;软件测试工具综述[J];北京化工大学学报(自然科学版);2007年S1期
2 董德顺;;FTP主动和被动传输区别[J];才智;2010年07期
3 冯素梅;;FTP Client软件的分析与设计[J];重庆科技学院学报(自然科学版);2010年03期
4 何强;肖波;周新媛;;利用Samba实现Linux和Windows文件共享[J];长沙大学学报;2007年05期
5 庞明勇,卢章平;Linux操作系统的系统调用机制[J];电脑开发与应用;2000年12期
6 任亚洲;;FAT32文件系统研究[J];电脑知识与技术;2008年24期
7 刘萍;张继刚;滕桂明;;FTP客户端软件的实现[J];黑龙江科技信息;2008年01期
8 陈金阳,蒋建中,张良胜;FTP协议分析及其客户端程序实现[J];计算机工程与应用;2005年32期
9 郭英见;网络文件系统(NFS)的工作原理和应用技术[J];计算机与通信;1996年11期
10 肖铭,张浩,余胜生,周敬利;网络存储技术分析与应用[J];交通与计算机;2003年03期
相关硕士学位论文 前6条
1 陈晓辉;嵌入式数字硬盘录像机文件系统的研究和应用[D];中国人民解放军信息工程大学;2005年
2 李天佑;Linux文件系统应用[D];浙江大学;2006年
3 彭晓曦;嵌入式Linux下文件系统的研究与实现[D];电子科技大学;2007年
4 宋構隽;嵌入式硬盘录像机应用软件设计[D];浙江大学;2007年
5 乔文军;嵌入式软件测试平台的研究与实现[D];南京航空航天大学;2007年
6 方卫民;基于ARM的嵌入式网络视频监控系统设计与实现[D];北京邮电大学;2008年
本文编号:1507296
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1507296.html