CN104159058A - Efficient method capable of realizing simultaneous video recording of multi-way media streams - Google Patents

Efficient method capable of realizing simultaneous video recording of multi-way media streams Download PDF

Info

Publication number
CN104159058A
CN104159058A CN201410367378.5A CN201410367378A CN104159058A CN 104159058 A CN104159058 A CN 104159058A CN 201410367378 A CN201410367378 A CN 201410367378A CN 104159058 A CN104159058 A CN 104159058A
Authority
CN
China
Prior art keywords
video
memory
module
stream
video recording
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
Application number
CN201410367378.5A
Other languages
Chinese (zh)
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.)
PCI Suntek Technology Co Ltd
Original Assignee
PCI Suntek 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 PCI Suntek Technology Co Ltd filed Critical PCI Suntek Technology Co Ltd
Priority to CN201410367378.5A priority Critical patent/CN104159058A/en
Publication of CN104159058A publication Critical patent/CN104159058A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses an efficient method capable of realizing simultaneous video recording of multi-way media streams, and relates to the technical field of video surveillance. According to the method, a stream media module and a storage module are adopted, wherein the stream media module is used for accessing video surveillance resources, supports various stream media protocols and realizes uniform access of various video resources; the storage module is used for caching the obtained stream media data and the cached stream media data is sequentially written in storage equipment, so that efficient and simultaneous storage of the multi-way media streams is realized. The efficient method capable of realizing the simultaneous video recording of the multi-way media streams, provided by the invention, effectively improves the simultaneous video recording capability of the system and solves the problem that efficient and simultaneous video recording in a high-definition video resource condition cannot be supported by the conventional video storage system.

Description

The high efficiency method that a kind of multipath media stream is recorded a video simultaneously
Technical field
The present invention relates to technical field of video monitoring, particularly relate to the high efficiency method that a kind of multipath media stream is recorded a video simultaneously.
Background technology
Video monitoring transfers high definition to by SD at present, the bandwidth that need take and storage resources reach original 4-8 doubly, in existing system, single memory node generally can only be supported the concurrent video recording of tens of roads Media Stream, its videotape storage means is generally: first disk matrix is mounted on server, create the division and be formatted as universal document system, each video record is write as a file and is saved in subregion.While needing to cover video recording, need first to delete old file, then create and write new file record, inevitably produced file fragmentation.Concurrent while writing multi-way stream media data, the hard disk on disk matrix needs continually moving head to position to write.Disk physical positioning is operation very consuming time, this has greatly affected the ability of the concurrent video recording of memory node, and because memory node lacks valid cache mechanism, in the time there is network ripple, data surge, memory node, because the big data quantity that cannot meet moment writes, can cause possible data loss problem.So, how under HD video resource environment, realize high concurrent video recording reliably and be one of problem that field of video monitoring must solve.
Summary of the invention
Technical problem to be solved by this invention is to provide the high efficiency method that a kind of multipath media stream is recorded a video simultaneously, to realize high concurrent video recording reliably under HD video resource environment.
For achieving the above object, the invention provides the high efficiency method that a kind of multipath media stream is recorded a video simultaneously, comprise Streaming Media module and memory module;
Described Streaming Media module, for: access monitor video resource, the agreement of supporting according to front end video equipment, sets up active link with headend equipment, to get its media stream data, realizes the unified access of all kinds of video resources;
Described memory module, for: by first the stream medium data of getting caching process, then order write storage device.
The present invention also provides a kind of stream medium data the high concurrent method writing, and comprising:
Memory module will be first by memory space initialization process, is divided into N memory block, and the size of each memory block is M, and each memory block has unique block number, and piece is minimum memory cell.The service condition of memory block is used bitmap to manage, and each video record is made up of several memory blocks.
Memory module is got after stream medium data, first be cached in internal memory, when buffer size reaches threshold value, calculate the quantity of required memory block divided by the size of memory block according to the size of threshold value, search and distribute several available memory blocks, and judging whether to be allocated successfully;
If so, the data in buffering area are written in these memory blocks;
Otherwise, first search time video record at most, the bitmap state of its corresponding stored piece of resetting, and the data in buffering area are written in these memory blocks;
Preferably have, in said method, also comprise: described available memory block is to use bitmap to search realization, and after having searched, the always bit map location of the last one-tenth of the record distribution of work, when search next time, directly from then on position continues down to search; at every turn
Searching of bitmap locks, it is serialized making it, ensures the unique, continuous of institute allocation block, the physical location of corresponding disk be also continuous, therefore writing fashionable is also to write continuously, to avoid the magnetic head of disk because write the problem of the frequent mobile tracking of fashionable need to different physical locations.
As can be seen from the above scheme, in the present invention, Streaming Media module realizes the unified access of HD video resource, and streaming media data cache order are written to memory device by memory module.Ablation process does not rely on universal document system, and video recording data security, secret, can not arbitrarily be obtained and revise; Because memory block is preassignment, fixed-size, can avoid the problem of disk fragments; Data write sequence, serial, can effectively reduce the number of times of disk physics tracking and IO, extend the disk life-span, improve write efficiency, realize efficient, video recording when multipath media stream reliably.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is system configuration schematic diagram in the embodiment of the present invention one.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.Obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-, referring to Fig. 1
The invention provides the high efficiency method that a kind of multipath media stream is recorded a video simultaneously, comprise Streaming Media module and memory module:
Described Streaming Media module, for: access monitor video resource, the agreement of supporting according to front end video equipment, sets up active link with headend equipment, to get its media stream data, realizes the unified access of all kinds of video resources;
Described memory module, for: by the streaming media data cache processing of getting, then order write storage device.
The course of work of above-mentioned module specifically comprises following steps:
Memory module will be first by memory space initialization process, is divided into N memory block, and the size of each memory block is M, and the corresponding bitmap of memory block is initialized as to 0, represents not use;
Streaming Media module and front end video equipment are set up and are got stream link, and the stream medium data of getting is sent to memory module; Memory module receives after stream medium data, be first cached in internal memory, and judgement has used buffer size, does not reach threshold value and continues to receive data, otherwise calculate the quantity of required memory block according to the size of threshold value divided by the size of memory block;
According to the quantity that calculates required memory block, first bitmap resource is locked, then from the bitmap position that to become for the last time the location lookup respective amount value of the distribution of work be 0, its value is set to 1 and return;
Whether the available block quantity that judgement finds meets demand;
If so, the data in buffering area are written in these memory blocks;
Otherwise, first search time video record at most, the bitmap state of its corresponding stored piece of resetting, and the data in buffering area are written to and are previously searched in the memory block obtaining and discharge below.
Therefore the high efficiency method that a kind of multipath media stream provided by the invention is recorded a video, has following advantage simultaneously.
(1) video recording data security is maintained secrecy
Writing of data of video recording do not rely on universal document system, and video recording data security, secret, can not arbitrarily be obtained and revise.
(2) do not produce disk fragments
Because basic memory cell is that memory block is preassignment, fixed-size, can avoid covering because of video recording the disk fragments problem causing.
(3) possesses high concurrent video recording ability
Writing of data of video recording is serial order, can effectively reduce the number of times of disk physics tracking and IO, extends the disk life-span, improves write efficiency, realizes efficient, video recording when multipath media stream reliably.
By the description of above embodiment of the method, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.
The above is only the specific embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (6)

1. the high efficiency method that multipath media stream is recorded a video simultaneously, is characterized in that, comprises Streaming Media module and memory module;
Described Streaming Media module, for: access monitor video resource, realizes the unified access of all kinds of video resources;
Described memory module, for: by the streaming media data cache processing of getting, then order write storage device.
2. method according to claim 1, is characterized in that, also comprises: Streaming Media module is supported multiple stream media protocol.
3. method according to claim 1, is characterized in that, also comprises: memory module is first cached to internal memory to stream medium data, when buffer size reaches threshold value, then the mode of write storage device.
4. method according to claim 1, is characterized in that, also comprises: memory module is serial, order to writing of same memory device.
5. the high efficiency method that multipath media stream is recorded a video simultaneously, it is characterized in that, memory module adopts the mode of naked dish piece storage to write stream medium data, does not rely on universal document system, and in memory device, stream medium data can not directly copy by the general-purpose operating system, revise.
6. method according to claim 5, is characterized in that, also comprises: be divided into the memory block of multiple fixed sizes for the naked dish of media streams, each memory block has unique piece number, and memory block is minimum writing unit.
CN201410367378.5A 2014-07-26 2014-07-26 Efficient method capable of realizing simultaneous video recording of multi-way media streams Pending CN104159058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410367378.5A CN104159058A (en) 2014-07-26 2014-07-26 Efficient method capable of realizing simultaneous video recording of multi-way media streams

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410367378.5A CN104159058A (en) 2014-07-26 2014-07-26 Efficient method capable of realizing simultaneous video recording of multi-way media streams

Publications (1)

Publication Number Publication Date
CN104159058A true CN104159058A (en) 2014-11-19

Family

ID=51884452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410367378.5A Pending CN104159058A (en) 2014-07-26 2014-07-26 Efficient method capable of realizing simultaneous video recording of multi-way media streams

Country Status (1)

Country Link
CN (1) CN104159058A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811646A (en) * 2015-05-15 2015-07-29 电子科技大学 Multi-video streaming data concurrent modulation and buffer storage method based on continuous storage model
CN105357463A (en) * 2015-10-29 2016-02-24 深圳云聚汇数码有限公司 Video surveillance data storage method
CN105488108A (en) * 2015-11-19 2016-04-13 广州日滨科技发展有限公司 High-speed parallel storage method and apparatus for multiple video files

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702057A (en) * 2013-09-03 2014-04-02 成都竣泰科技有限公司 Block storage algorithm applicable to multiple paths of concurrent-written stream media data
CN103761056A (en) * 2014-01-17 2014-04-30 浪潮电子信息产业股份有限公司 Stream data storage method in video monitoring application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702057A (en) * 2013-09-03 2014-04-02 成都竣泰科技有限公司 Block storage algorithm applicable to multiple paths of concurrent-written stream media data
CN103761056A (en) * 2014-01-17 2014-04-30 浪潮电子信息产业股份有限公司 Stream data storage method in video monitoring application

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811646A (en) * 2015-05-15 2015-07-29 电子科技大学 Multi-video streaming data concurrent modulation and buffer storage method based on continuous storage model
CN105357463A (en) * 2015-10-29 2016-02-24 深圳云聚汇数码有限公司 Video surveillance data storage method
CN105357463B (en) * 2015-10-29 2019-01-08 北京易视云科技有限公司 A kind of storage method of video monitoring data
CN105488108A (en) * 2015-11-19 2016-04-13 广州日滨科技发展有限公司 High-speed parallel storage method and apparatus for multiple video files

Similar Documents

Publication Publication Date Title
US11169710B2 (en) Method and apparatus for SSD storage access
US9798655B2 (en) Managing a cache on storage devices supporting compression
US10037285B2 (en) Multi-tiered storage systems and methods for adaptive content streaming
US9792227B2 (en) Heterogeneous unified memory
US20170286294A1 (en) Apparatus, system and method for caching compressed data
US9348538B2 (en) Selective deduplication
CN102968422B (en) System and method for controlling streaming data storage
CN101763437B (en) Method and device for realizing high-speed buffer storage
US20060112232A1 (en) Method and apparatus for managing a cache memory in a mass-storage system
CN100481028C (en) Method and device for implementing data storage using cache
TW201729068A (en) Distributed storage system, distributed storage method and distributed facility
CN103116552A (en) Method and device for distributing storage space in distributed type storage system
CN103702057B (en) Block storage algorithm applicable to multiple paths of concurrent-written stream media data
CN101644996A (en) Storage method of index data and storage control device
CN103399823B (en) The storage means of business datum, equipment and system
CN103380417B (en) The method and system of the data for being stored from memory requests
CN103812849A (en) Local cache updating method and system, client and server
CN102982182B (en) Data storage planning method and device
CN104238962A (en) Method and device for writing data into cache
CN108089825B (en) Storage system based on distributed cluster
CN105117351A (en) Method and apparatus for writing data into cache
US8402198B1 (en) Mapping engine for a storage device
US8856439B2 (en) Method and device for utilizing application-level prior knowledge for selectively storing data in higher performance media
CN104811646B (en) The storage method of the modulation of multiple video strems Data Concurrent and buffering based on Coutinuous store model
US10540505B2 (en) Technologies for protecting data in an asymmetric storage volume

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141119

WD01 Invention patent application deemed withdrawn after publication