CN103780877A - Massive video data storage and retrieval method based on h264 coding - Google Patents
Massive video data storage and retrieval method based on h264 coding Download PDFInfo
- Publication number
- CN103780877A CN103780877A CN201310733422.5A CN201310733422A CN103780877A CN 103780877 A CN103780877 A CN 103780877A CN 201310733422 A CN201310733422 A CN 201310733422A CN 103780877 A CN103780877 A CN 103780877A
- Authority
- CN
- China
- Prior art keywords
- frame
- file
- service end
- video
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The present invention discloses a massive video data storage and retrieval method based on h264 coding. Through independently storing I frames and P frames, decomposing the video and establishing an I frame index, storage efficiency of massive video files and retrieval and positioning efficiency in real-time playback are greatly improved.
Description
Technical field
The present invention relates to field of video monitoring, particularly a kind of storage means of the massive video data based on H264 coding and corresponding search method thereof.
Background technology
Traditional video recording memory technology adopts centralized mixed two field memory system, the mode centralized stores that produces a file from each front-end collection video code flow with half an hour or one hour, the mode of then playing frame by frame by the concrete file of concrete request is retrieved.
Traditional file storage is due to the centralized unified storage mode adopting, can be so that file consolidation management and retrieval, but it also has significant limitation simultaneously, such as:
1, when centralized stores, the huge pressure that central site network is born;
2,, when file was stored with half an hour or one hour, while pulling display video, response speed is slow;
3, when video file is stored when large, when key frame retrieval, recall precision is extremely low;
4,, in the time of the quick playback of client, need to process P frame data simultaneously;
5,, when multiple client concurrent request same file, process extremely low.
These problems can be more outstanding in the time of mass data, so be badly in need of solving.
Summary of the invention
The invention provides a kind of storage and search method of the magnanimity video file based on h264 coding, can improve the recall precision of real-time playback, concurrent request and key frame.
A storage means for magnanimity video file based on h264 coding, realizes by following steps:
S1, master control service end is obtained video recording plan, and preserves current planning in memory module;
S2, the video source request video code flow by plan to appointment;
S3, obtains after complete video frame, and whether detect is I frame;
S4, if detect that frame of video is I frame, puts into the storage queue of I frame by I frame, and the storage queue of setting up a P frame with the timestamp of I frame, and ensuing all P frames are put into this storage queue;
S5, in the time having stored multiple I frame, by I frame data one-time write I frame file, in corresponding P frame queue, all data write in P frame file, and P frame file is pressed the timestamp storage of I frame;
S6, the frame index of each I frame all writes in I frame index file, and the frame index of P frame writes in P frame index file;
S7, every certain hour produces an I frame sequence file, and the I frame index information of this file is uploaded to main control server.
Preferably, the certain hour in described S7 is half an hour.
A search method for the storage means of the massive video data based on h264 coding, realizes by following steps:
S1, client is sent real-time playback request, and the camera coding of request is sent to master control service end;
S2, the file index of master control service end real-time retrieval this locality, returns to client by the IP of document location and video recording and playback service end;
S3, client is play according to the IP demand file of document location and video recording and playback service end.
A search method for the storage means of the massive video data based on h264 coding, realizes by following steps:
S1, client-requested I frame index data was drawn by the fixed time;
S2, relies on the I frame index data that client is drawn to initiate application to master control service end;
S3, master control service end retrieves stores service end IP and position by file index, and the stores service end IP and the positional information that retrieve are returned to client;
S4, the document location that client is returned by master control service end and the frame index of drawing are to video recording and playback service end request assigned I frame or P frame;
S5, stores service end obtains local file frame index data of specifying by document location, and carries out serializing;
S6, adjusts back the frame data of the appointment reading to client.
Storage and the search method of the magnanimity video file based on h264 coding of more than realizing, by I frame index and I frame are separated to storage, I frame and the separate storage of P frame, decompose video recording plan, greatly improved the storage of magnanimity video file and it is carried out to real-time playback, quick recall precision of locating.
Summary of the invention
Below with reference to accompanying drawing, storage means of the present invention and search method are described in detail.As shown in Figure 1: the storage means of the magnanimity video file based on h264 coding and real-time playback retrieval implementation procedure are that master control service end is obtained video recording plan, and described video recording plan is kept to memory module; Streaming media service end request video code flow by from described video recording plan to appointment; Specifically, master control service end obtains video recording plan from system database, and video recording plan is sent to video recording and playback service end, video recording and playback service end to video recording plan decompose rear wait and receive code stream to record a video; Meanwhile, master control service end sends and opens the instruction of specifying video camera to streaming media service end, and streaming media service end is opened video camera, obtains code stream; Deng until after planned time node, video recording with playback service end to streaming media service end request code stream.
Stores service end obtains after complete video frame, and whether detect in real time code stream is I frame; In the situation that detecting the non-I frame of the first frame, will not retain, until after detecting that the first frame is I frame, I frame is put into the storage queue of I frame, and the storage queue of setting up a P frame with the timestamp of I frame, ensuing P frame is stored in the P frame queue of setting up by the timestamp of I frame above; In the time having stored multiple I frame, by I frame data one-time write I frame file, in corresponding P frame queue, all data write in P frame file; The frame index of each I frame all writes in I frame index file, and the frame index of P frame writes in P frame index file, reaches the object of index classification storage; Every certain hour of crossing produces a file, is preferably a file of half an hour generation, then the I frame index information of this file is uploaded to main control server.
When client is initiated the request of real-time playback, the camera coding of request is sent to master control service end; The file index of master control service end real-time retrieval this locality, feeds back to client by the IP of document location, video recording and playback service end; Client is play according to the IP execute file of document location and video recording and playback service end, completes playing back videos.
If what client was initiated is the request of quick-searching, client-requested I frame index data, drew by the fixed time, drew timestamp control; Rely on the I frame index data that client is drawn to initiate application to master control service end; Master control service end retrieves stores service end IP and position by file index, and the stores service end IP and the positional information that retrieve are returned to client; The document location that client is returned according to master control service end and the frame index of drawing are to video recording and playback service end request assigned I frame or P frame; Then stores service end obtains local frame index data of specifying by document location, then carries out serializing and the frame data that read appointment are fed back to client.
More specifically, as shown in Figure 2: client is obtained Single document information to master control service end, master control service end retrieval local file index position, by the IP of the video recording obtaining and playback service end, video file position feedback is returned client, client is by the fileinfo feeding back, the i.e. IP of video recording and playback service end, video file positional information, video recording and playback service end to assigned ip are obtained I frame index information, it is Single document frame sum, then client gets the listed files information of I frame from stores service end by fixed time section, and draw timestamp control according to I frame index information.Then client is initiated the affiliated document location of request assigned I frame, master control service end retrieval local index, backspace file information and IP, client is according to assigned I frame index, video recording is retrieved local frame file index with playback service end, obtains assigned address, reads related data, return to I frame data to the client demonstration of decoding, and obtain associated P frame data queue by this I frame index and continue to play.
The poke method realizing by above method and corresponding search method, can make user improve the recall precision of real-time playback, key frame rapid preview.
Accompanying drawing explanation
Fig. 1 is the implementation procedure schematic diagram of storage means and real-time playback retrieval;
Fig. 2 is the implementation procedure schematic diagram of quick-searching.
Claims (4)
1. a storage means for the massive video data based on h264 coding, it is realized by following steps:
S1, master control service end is obtained video recording plan, and preserves current planning in its memory module;
S2, the video source request video code flow by plan to appointment;
S3, obtains after complete video frame, and whether detect is I frame;
S4, if detect that frame of video is I frame, puts into the storage queue of I frame by I frame, and the storage queue of setting up a P frame with the timestamp of I frame, and ensuing all P frames are put into this storage queue;
S5, in the time having stored multiple I frame, by I frame data one-time write I frame file, in corresponding P frame queue, all data write in P frame file, and P frame file is pressed the timestamp storage of I frame;
S6, the frame index of each I frame all writes in I frame index file, and the frame index of P frame writes in P frame index file;
S7, every certain hour produces an I frame sequence file, and the I frame index information of this file is uploaded to main control server.
2. the storage means of video file according to claim 1, is characterized in that: the certain hour in described S7 is half an hour.
3. the search method based on storage means claimed in claim 1, comprises the following steps:
S1, client is sent real-time playback request, and the camera coding of request is sent to master control service end;
S2, the file index of master control service end real-time retrieval this locality, returns to client by document location, video recording and playback service end IP;
S3, client is play by the IP demand file of document location and video recording and playback service end.
4. the search method based on storage means claimed in claim 1, comprises the following steps:
S1, client-requested I frame index data was drawn by the fixed time;
S2, the I frame index data that relies on client to be drawn is applied for to master control service end;
S3, master control service end retrieves stores service end IP and video file position by file index, and the stores service end IP retrieving and video file positional information are returned to client;
S4, the document location that client is returned by master control service end and the frame index of drawing are to video recording and playback service end request assigned I frame or P frame;
S5, stores service end obtains local file frame index data of specifying by document location, and carries out serializing;
S6, adjusts back the frame data of the appointment reading to client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310733422.5A CN103780877A (en) | 2013-12-26 | 2013-12-26 | Massive video data storage and retrieval method based on h264 coding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310733422.5A CN103780877A (en) | 2013-12-26 | 2013-12-26 | Massive video data storage and retrieval method based on h264 coding |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103780877A true CN103780877A (en) | 2014-05-07 |
Family
ID=50572653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310733422.5A Pending CN103780877A (en) | 2013-12-26 | 2013-12-26 | Massive video data storage and retrieval method based on h264 coding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103780877A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104967862A (en) * | 2015-07-22 | 2015-10-07 | 东方网力科技股份有限公司 | Video storage method and device, and video searching method and device |
CN105227991A (en) * | 2014-07-03 | 2016-01-06 | 深圳中兴力维技术有限公司 | Reliable video storage means and device thereof |
CN105517674A (en) * | 2015-07-14 | 2016-04-20 | 深圳市锐明技术股份有限公司 | A processing method and a system for monitoring data |
US9455010B1 (en) | 2015-10-20 | 2016-09-27 | International Business Machines Corporation | Video storage and video playing |
WO2017020737A1 (en) * | 2015-08-04 | 2017-02-09 | 杭州海康威视数字技术股份有限公司 | Video stream storage method, reading method and device |
WO2017202060A1 (en) * | 2016-05-24 | 2017-11-30 | 杭州海康威视数字技术股份有限公司 | Video playing method and apparatus |
CN111125425A (en) * | 2019-12-13 | 2020-05-08 | 浪潮电子信息产业股份有限公司 | Method, system and device for reading and writing video data and readable storage medium |
CN111182304A (en) * | 2018-11-13 | 2020-05-19 | 杭州海康威视数字技术股份有限公司 | Video data processing method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101365088A (en) * | 2007-08-10 | 2009-02-11 | 深圳市锐明视讯技术有限公司 | Hard disc video recording method |
US20090086818A1 (en) * | 2007-10-02 | 2009-04-02 | Ivnet Inc. | Frame buffer memory operating method used to decompress compressed moving pictures, and decoding apparatus adapted to frame buffer memory operating method |
CN101431666A (en) * | 2008-07-18 | 2009-05-13 | 北京网新中广科技发展有限责任公司 | Remote fast browsing method and system for monitoring video |
CN101442647A (en) * | 2008-12-30 | 2009-05-27 | 北京中星微电子有限公司 | Control method for video playback and localization of video monitoring system and storage server thereof |
CN101753947A (en) * | 2008-12-08 | 2010-06-23 | 北京中星微电子有限公司 | Method and device for video-on-demand playback of video monitoring recording |
CN102325244A (en) * | 2011-08-26 | 2012-01-18 | 杭州海康威视数字技术股份有限公司 | Method for rapidly positioning videos by time, video storage control device and positioning device |
CN102663005A (en) * | 2012-03-19 | 2012-09-12 | 杭州海康威视系统技术有限公司 | Mass video file storage system based on cloud computation, analysis method and system thereof |
-
2013
- 2013-12-26 CN CN201310733422.5A patent/CN103780877A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101365088A (en) * | 2007-08-10 | 2009-02-11 | 深圳市锐明视讯技术有限公司 | Hard disc video recording method |
US20090086818A1 (en) * | 2007-10-02 | 2009-04-02 | Ivnet Inc. | Frame buffer memory operating method used to decompress compressed moving pictures, and decoding apparatus adapted to frame buffer memory operating method |
CN101431666A (en) * | 2008-07-18 | 2009-05-13 | 北京网新中广科技发展有限责任公司 | Remote fast browsing method and system for monitoring video |
CN101753947A (en) * | 2008-12-08 | 2010-06-23 | 北京中星微电子有限公司 | Method and device for video-on-demand playback of video monitoring recording |
CN101442647A (en) * | 2008-12-30 | 2009-05-27 | 北京中星微电子有限公司 | Control method for video playback and localization of video monitoring system and storage server thereof |
CN102325244A (en) * | 2011-08-26 | 2012-01-18 | 杭州海康威视数字技术股份有限公司 | Method for rapidly positioning videos by time, video storage control device and positioning device |
CN102663005A (en) * | 2012-03-19 | 2012-09-12 | 杭州海康威视系统技术有限公司 | Mass video file storage system based on cloud computation, analysis method and system thereof |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227991B (en) * | 2014-07-03 | 2019-09-20 | 深圳力维智联技术有限公司 | Reliable video storage method and its device |
CN105227991A (en) * | 2014-07-03 | 2016-01-06 | 深圳中兴力维技术有限公司 | Reliable video storage means and device thereof |
CN105517674A (en) * | 2015-07-14 | 2016-04-20 | 深圳市锐明技术股份有限公司 | A processing method and a system for monitoring data |
CN104967862A (en) * | 2015-07-22 | 2015-10-07 | 东方网力科技股份有限公司 | Video storage method and device, and video searching method and device |
CN106713940B (en) * | 2015-08-04 | 2019-12-20 | 杭州海康威视数字技术股份有限公司 | Video stream storage method, video stream reading method and video stream reading device |
CN106713940A (en) * | 2015-08-04 | 2017-05-24 | 杭州海康威视数字技术股份有限公司 | Video stream storage and reading methods and video stream storage and reading devices |
US10332565B2 (en) | 2015-08-04 | 2019-06-25 | Hangzhou Hikvision Digital Technology Co., Ltd. | Video stream storage method, reading method and device |
WO2017020737A1 (en) * | 2015-08-04 | 2017-02-09 | 杭州海康威视数字技术股份有限公司 | Video stream storage method, reading method and device |
US9578278B1 (en) | 2015-10-20 | 2017-02-21 | International Business Machines Corporation | Video storage and video playing |
US9584788B1 (en) | 2015-10-20 | 2017-02-28 | International Business Machines Corporation | Video storage and video playing |
US9455010B1 (en) | 2015-10-20 | 2016-09-27 | International Business Machines Corporation | Video storage and video playing |
WO2017202060A1 (en) * | 2016-05-24 | 2017-11-30 | 杭州海康威视数字技术股份有限公司 | Video playing method and apparatus |
CN107426603A (en) * | 2016-05-24 | 2017-12-01 | 杭州海康威视数字技术股份有限公司 | A kind of video broadcasting method and device |
CN107426603B (en) * | 2016-05-24 | 2020-01-17 | 杭州海康威视数字技术股份有限公司 | Video playing method and device |
CN111182304A (en) * | 2018-11-13 | 2020-05-19 | 杭州海康威视数字技术股份有限公司 | Video data processing method and device |
CN111125425A (en) * | 2019-12-13 | 2020-05-08 | 浪潮电子信息产业股份有限公司 | Method, system and device for reading and writing video data and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103780877A (en) | Massive video data storage and retrieval method based on h264 coding | |
EP3089470B1 (en) | Video editing device | |
JP6030572B2 (en) | Apparatus and method for transmitting live media content | |
US20200192866A1 (en) | Connecting storyboard system to editorial system | |
US20130212342A1 (en) | Storage format for media streams | |
CN104581406A (en) | Network video recording and playback system and method | |
CN104281651A (en) | Method and system for searching large volume of video data | |
CN102932679A (en) | Network video previewing system and method | |
CN100596182C (en) | Reproducing apparatus, method and program | |
CN102510519A (en) | Streaming media data processing method, playing method and device | |
CN109698943B (en) | Network camera access platform with telescopic capacity | |
JP2014131253A (en) | Content creation method and media cloud server | |
CN105357544A (en) | HLS-based multimedia file processing method and server | |
CN108370449A (en) | Segmenting video content stores | |
CN101753944B (en) | Method and device for video management of video monitoring system | |
CN102332284A (en) | Multimedia data processing method and processing system suitable for digital media broadcast | |
CN104104895A (en) | Method for carrying out video playback on video data and hard-disk video recorder | |
CN103428481B (en) | A kind of method retrieving the complete video record of video camera | |
CN103220587A (en) | Method and device for obtaining time shifting contents | |
Ma et al. | A retrieval optimized surveillance video storage system for campus application scenarios | |
JP2012175468A (en) | Information processing device, information processing method, and program | |
US10534812B2 (en) | Systems and methods for digital asset organization | |
CN103648021A (en) | Method for playing network video files from USB storage device | |
CN102572293A (en) | Field recording-based retrieval system | |
CN103780916A (en) | Digital television advertisement intelligent identification system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20171208 |
|
AD01 | Patent right deemed abandoned |