CN102279711A - Plug-in-based real-time data storage method and device - Google Patents
Plug-in-based real-time data storage method and device Download PDFInfo
- Publication number
- CN102279711A CN102279711A CN201110226586XA CN201110226586A CN102279711A CN 102279711 A CN102279711 A CN 102279711A CN 201110226586X A CN201110226586X A CN 201110226586XA CN 201110226586 A CN201110226586 A CN 201110226586A CN 102279711 A CN102279711 A CN 102279711A
- Authority
- CN
- China
- Prior art keywords
- data
- plug
- unit
- uncorrected
- source data
- 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.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a plug-in-based real-time data storage method and a plug-in-based real-time data storage device. The plug-in-based real-time data storage method comprises the steps of: acquiring a format type, a reception type and a target type corresponding to source data according to a communication protocol; determining a first plug-in corresponding to the source data according to the reception type so as to determine the reception address of the source data through the first plug-in; determining the second plug-in necessary for the source data analysis according to the format type; analyzing the source data through the second plug-in to remove the real-time transport protocol of the source data and form bare data; and storing the bare data. The plug-in-based real-time data storage method can store different types of data, simplify the data storage process and reduce the usage amount of the storage equipment. In addition, because the bare data is only stored in the real-time transport protocol in which the data are deleted, great storage space occupation of a large number of real-time transport protocols is avoided, and the utilization rate of the storage space is improved effectively.
Description
Technical field
The present invention relates to technical field of data storage, relate in particular to a kind of method for storing real-time data and device based on plug-in unit.
Background technology
At present, along with the continuous development of computer technology, the type of data is more and more, for example: and video data or voice data, and video data or voice data have multiple different data layout.Memory device of the prior art can only be stored the data of single form, stores separately and need increase corresponding memory device to the data of different-format.As from the foregoing, memory device can only be stored the data of single form in the prior art, and the data that can't store different-format simultaneously, causes the data storage procedure complexity of different-format, need take a large amount of memory devices.
Summary of the invention
The invention provides a kind of method for storing real-time data and device based on plug-in unit, in order to solve the data storage procedure complexity of different-format in the prior art, need take the defective of a large amount of memory devices, the data that realization can be stored different-format simultaneously based on the method for storing real-time data of plug-in unit, the reduced data storing process also reduces the use amount of memory device.
The invention provides a kind of method for storing real-time data, comprising based on plug-in unit:
According to communications protocol, obtain Format Type, type of receipt and the target type of source data correspondence;
According to type of receipt, determine first plug-in unit of source data correspondence, to determine the receiver address of source data by first plug-in unit;
According to Format Type, determine the second required plug-in unit of source data parsing, resolve source data by second plug-in unit and form uncorrected data with the real time transport protocol that removes source data;
The storage uncorrected data.
Method for storing real-time data based on plug-in unit provided by the invention, by obtain Format Type, type of receipt and the target type of source data correspondence according to communications protocol, first plug-in unit will be according to the receiver address of type of receipt specified data correspondence, thereby can receive the data that send in the different pieces of information source; Second plug-in unit will form uncorrected data to the real time transport protocol that the data that receive are handled in the deleted data according to Format Type, thereby just uncorrected data can be carried out storage and uniform, realized can storing simultaneously based on the method for storing real-time data of plug-in unit the data of different-format, the reduced data storing process also reduces the use amount of memory device.In addition, only store uncorrected data, avoid a large amount of real time transport protocols to take more storage space, effectively raise operating factor of memory space owing to deleted the real time transport protocol in the data.
The present invention also provides a kind of real-time data memory device based on plug-in unit, comprising:
Acquisition module is used for according to communications protocol, obtains Format Type, type of receipt and the target type of source data correspondence;
First processing module is used for according to type of receipt, determines first plug-in unit of source data correspondence, to determine the receiver address of source data by first plug-in unit;
Second processing module is used for according to Format Type, determines the second required plug-in unit of source data parsing, resolves source data by second plug-in unit and forms uncorrected data with the real time transport protocol that removes source data;
Memory module is used to store uncorrected data.
Real-time data memory device based on plug-in unit provided by the invention, by Format Type, type of receipt and the target type of obtaining the source data correspondence, first plug-in unit will be according to the receiver address of type of receipt specified data correspondence, thereby can receive the data that send in the different pieces of information source; Second plug-in unit will form uncorrected data to the real time transport protocol that the data that receive are handled in the deleted data according to Format Type, thereby just uncorrected data can be carried out storage and uniform, realized can storing simultaneously based on the method for storing real-time data of plug-in unit the data of different-format, the reduced data storing process also reduces the use amount of memory device.In addition, only store uncorrected data, avoid a large amount of real time transport protocols to take more storage space, effectively raise operating factor of memory space owing to deleted the real time transport protocol in the data.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram that the present invention is based on the method for storing real-time data embodiment of plug-in unit;
Fig. 2 is the structural representation that the present invention is based on the real-time data memory device embodiment of plug-in unit.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills are obtained under the prerequisite of not making creative work belongs to the scope of protection of the invention.
Fig. 1 is the process flow diagram that the present invention is based on the method for storing real-time data embodiment of plug-in unit.As shown in Figure 1, present embodiment comprises based on the method for storing real-time data of plug-in unit:
Step 1, according to communications protocol, obtain Format Type, type of receipt and the target type of source data correspondence.Concrete, step 1 just can be learnt Format Type, type of receipt and the target type of source data correspondence according to communications protocol.Wherein, communications protocol refers to the communication between user and the program, the user by web come the assigned source data Format Type, type of receipt, target type, whether parameters such as audio frequency and video are arranged simultaneously.
Step 2, according to type of receipt, determine first plug-in unit of source data correspondence, to determine the receiver address of source data by first plug-in unit.Concrete, according to the type of receipt of step 1 acquisition data correspondence, determine first plug-in unit of source data correspondence, thereby the receiver address of the first plug-in unit correspondence is set.Specifically be divided into following several situation: if the type of receipt of source data receives with multicast or clean culture receives, then creating first plug-in unit is User Datagram Protocol (User Datagram Protocol, hereinafter to be referred as UDP) plug-in unit, and the receiving port number or the multicast address of source data are set by first plug-in unit; If the type of receipt of source data is with real time streaming transport protocol (Real Time Streaming Protocol, hereinafter to be referred as: RTSP) receive, then creating first plug-in unit is real time streaming transport protocol (User Datagram Protocol, hereinafter to be referred as UDP) plug-in unit, and the reception real time streaming transport protocol address of source data is set by first plug-in unit; If the type of receipt of source data is with HTML (Hypertext Markup Language) (Hyper Text Transfer Protocol, hereinafter to be referred as: HTTP) receive, then creating first plug-in unit is the HTML (Hypertext Markup Language) plug-in unit, and the reception HTML (Hypertext Markup Language) address of source data is set by first plug-in unit.
Further, present embodiment can also comprise before step 4 based on the method for storing real-time data of plug-in unit: step 4a, according to target type, judge whether uncorrected data needs to carry out elementary stream and change into transmitting data stream; If step 4b then carries out master data to uncorrected data and flows to the transmitting data stream conversion.Concrete, by step 4a and 4b uncorrected data is handled, the uncorrected data that stores among the SAN is all stored with the form of transmitting data stream.
Present embodiment is based on the method for storing real-time data of plug-in unit, by Format Type, type of receipt and the target type of obtaining the source data correspondence, first plug-in unit will be according to the receiver address of type of receipt specified data correspondence, thereby can receive the data that send in the different pieces of information source; Second plug-in unit will form uncorrected data to the real time transport protocol that the data that receive are handled in the deleted data according to Format Type, thereby just uncorrected data can be carried out storage and uniform, realized can storing simultaneously based on the method for storing real-time data of plug-in unit the data of different-format, the reduced data storing process also reduces the use amount of memory device.In addition, only store uncorrected data, avoid a large amount of real time transport protocols to take more storage space, effectively raise operating factor of memory space owing to deleted the real time transport protocol in the data.
Fig. 2 is the structural representation that the present invention is based on the real-time data memory device embodiment of plug-in unit.As shown in Figure 2, present embodiment comprises based on the real-time data memory device of plug-in unit:
Acquisition module 1 is used for according to communications protocol, obtains Format Type, type of receipt and the target type of source data correspondence;
First processing module 2 is used for according to type of receipt, determines first plug-in unit of source data correspondence, to determine the receiver address of source data by first plug-in unit;
Particularly, present embodiment can not repeat them here referring to the record among the method for storing real-time data embodiment that the present invention is based on plug-in unit based on the course of work of each module in the real-time data memory device of plug-in unit.
Present embodiment is based on the real-time data memory device of plug-in unit, by Format Type, type of receipt and the target type of obtaining the source data correspondence, first plug-in unit will be according to the receiver address of type of receipt specified data correspondence, thereby can receive the data that send in the different pieces of information source; Second plug-in unit will form uncorrected data to the real time transport protocol that the data that receive are handled in the deleted data according to Format Type, thereby just uncorrected data can be carried out storage and uniform, realized can storing simultaneously based on the method for storing real-time data of plug-in unit the data of different-format, the reduced data storing process also reduces the use amount of memory device.In addition, only store uncorrected data, avoid a large amount of real time transport protocols to take more storage space, effectively raise operating factor of memory space owing to deleted the real time transport protocol in the data.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (8)
- , a kind of method for storing real-time data based on plug-in unit, it is characterized in that, comprising:According to communications protocol, obtain Format Type, type of receipt and the target type of source data correspondence;According to type of receipt, determine first plug-in unit of source data correspondence, to determine the receiver address of source data by first plug-in unit;According to Format Type, determine the second required plug-in unit of source data parsing, resolve source data by second plug-in unit and form uncorrected data with the real time transport protocol that removes source data;The storage uncorrected data.
- 2. the method for storing real-time data based on plug-in unit according to claim 1 is characterized in that, before described storage uncorrected data, also comprises:According to target type, judge whether uncorrected data needs to carry out elementary stream and change into transmitting data stream;If then uncorrected data is carried out master data and flows to the transmitting data stream conversion.
- 3. the method for storing real-time data based on plug-in unit according to claim 2 is characterized in that, describedly resolves source data by second plug-in unit and forms uncorrected data with the real time transport protocol that removes source data, is specially:Judge and whether contain video data and voice data in the source data simultaneously;If, then source data is split into video data and voice data, and resolve video data and voice data respectively by second plug-in unit and form video uncorrected data and audio frequency uncorrected data to remove corresponding real time transport protocol, then video uncorrected data and audio frequency uncorrected data are merged into uncorrected data;If not, then resolve source data and form uncorrected data with the real time transport protocol that removes source data by second plug-in unit.
- 4. according to the arbitrary described method for storing real-time data of claim 1-3, it is characterized in that described storage uncorrected data is specially based on plug-in unit:Principle storage uncorrected data according to load balancing.
- 5. the method for storing real-time data based on plug-in unit according to claim 4 is characterized in that, described principle storage uncorrected data according to load balancing is specially:Principle according to load balancing stores uncorrected data on the storage area network into.
- 6. the method for storing real-time data based on plug-in unit according to claim 5 is characterized in that, described uncorrected data is stored on the storage area network, is specially:Establishment is used for storing uncorrected data on the storage area network the 3rd plug-in unit by user-defined format, by the 3rd plug-in unit uncorrected data is stored in the storage area network;Wherein, the 3rd plug-in unit by user-defined format with the detailed process that uncorrected data stores on the storage area network is: the data of every circuit-switched data source output are corresponding object machine on storage area network, when this circuit-switched data source need be stored, want in object machine, to separate 512 bytes of memory spaces earlier as device head, remaining storage space is divided into a plurality of memory pages in the object machine, include a plurality of storage blocks in each memory page, each storage block can be stored the uncorrected data of one fen clock timeIndicated the offset information of the sequence number of the memory page of the sum of memory page, current operation, current write operation address in the device head; Indicate the start time of current memory page in the top margin of memory page, the build of storage block has indicated the skew of current storage block and the write time of current storage block.
- 7. the method for storing real-time data based on plug-in unit according to claim 1 is characterized in that, and is described according to type of receipt, determines first plug-in unit of source data correspondence, to determine the receiver address of source data by first plug-in unit, is specially:If the type of receipt of source data receives with multicast or clean culture receives, then creating first plug-in unit is the User Datagram Protocol plug-in unit, and the receiving port number or the multicast address of source data are set by first plug-in unit;If the type of receipt of source data receives with real time streaming transport protocol, then creating first plug-in unit is the real time streaming transport protocol plug-in unit, and the reception real time streaming transport protocol address of source data is set by first plug-in unit;If the type of receipt of source data receives with HTML (Hypertext Markup Language), then creating first plug-in unit is the HTML (Hypertext Markup Language) plug-in unit, and the reception HTML (Hypertext Markup Language) address of source data is set by first plug-in unit.
- 8. the real-time data memory device based on plug-in unit is characterized in that, comprising:Acquisition module is used for according to communications protocol, obtains Format Type, type of receipt and the target type of source data correspondence;First processing module is used for according to type of receipt, determines first plug-in unit of source data correspondence, to determine the receiver address of source data by first plug-in unit;Second processing module is used for according to Format Type, determines the second required plug-in unit of source data parsing, resolves source data by second plug-in unit and forms uncorrected data with the real time transport protocol that removes source data;Memory module is used to store uncorrected data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110226586.XA CN102279711B (en) | 2011-08-09 | 2011-08-09 | Plug-in-based real-time data storage method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110226586.XA CN102279711B (en) | 2011-08-09 | 2011-08-09 | Plug-in-based real-time data storage method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102279711A true CN102279711A (en) | 2011-12-14 |
CN102279711B CN102279711B (en) | 2014-01-01 |
Family
ID=45105185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110226586.XA Active CN102279711B (en) | 2011-08-09 | 2011-08-09 | Plug-in-based real-time data storage method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102279711B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984571A (en) * | 2012-12-07 | 2013-03-20 | 青岛海信信芯科技有限公司 | External data reading method of Gstreamer in digital television and device thereof |
CN109979109A (en) * | 2019-03-13 | 2019-07-05 | 上海网之易璀璨网络科技有限公司 | Processing method, processor, terminal and the storage medium of rental server |
CN111026735A (en) * | 2019-12-10 | 2020-04-17 | 腾讯科技(深圳)有限公司 | Data transmission method, device, equipment and medium |
CN111562945A (en) * | 2020-04-01 | 2020-08-21 | 杭州博雅鸿图视频技术有限公司 | Multimedia processing method, device, equipment and storage medium |
CN117632035A (en) * | 2023-12-13 | 2024-03-01 | 中国电子投资控股有限公司 | Data storage method, system, storage medium and computer equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020147858A1 (en) * | 2001-02-14 | 2002-10-10 | Ricoh Co., Ltd. | Method and system of remote diagnostic, control and information collection using multiple formats and multiple protocols with verification of formats and protocols |
CN101409937A (en) * | 2008-01-25 | 2009-04-15 | 聂沫平 | Method and apparatus for converting script into data format supported by target system |
CN101646995A (en) * | 2007-03-26 | 2010-02-10 | 国际商业机器公司 | Data stream filters and plug-ins for storage managers |
-
2011
- 2011-08-09 CN CN201110226586.XA patent/CN102279711B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020147858A1 (en) * | 2001-02-14 | 2002-10-10 | Ricoh Co., Ltd. | Method and system of remote diagnostic, control and information collection using multiple formats and multiple protocols with verification of formats and protocols |
CN101646995A (en) * | 2007-03-26 | 2010-02-10 | 国际商业机器公司 | Data stream filters and plug-ins for storage managers |
CN101409937A (en) * | 2008-01-25 | 2009-04-15 | 聂沫平 | Method and apparatus for converting script into data format supported by target system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984571A (en) * | 2012-12-07 | 2013-03-20 | 青岛海信信芯科技有限公司 | External data reading method of Gstreamer in digital television and device thereof |
CN102984571B (en) * | 2012-12-07 | 2015-04-22 | 青岛海信信芯科技有限公司 | External data reading method of Gstreamer in digital television and device thereof |
CN109979109A (en) * | 2019-03-13 | 2019-07-05 | 上海网之易璀璨网络科技有限公司 | Processing method, processor, terminal and the storage medium of rental server |
CN111026735A (en) * | 2019-12-10 | 2020-04-17 | 腾讯科技(深圳)有限公司 | Data transmission method, device, equipment and medium |
CN111026735B (en) * | 2019-12-10 | 2023-03-21 | 腾讯科技(深圳)有限公司 | Data transmission method, device, equipment and medium |
CN111562945A (en) * | 2020-04-01 | 2020-08-21 | 杭州博雅鸿图视频技术有限公司 | Multimedia processing method, device, equipment and storage medium |
CN111562945B (en) * | 2020-04-01 | 2021-12-21 | 杭州博雅鸿图视频技术有限公司 | Multimedia processing method, device, equipment and storage medium |
CN117632035A (en) * | 2023-12-13 | 2024-03-01 | 中国电子投资控股有限公司 | Data storage method, system, storage medium and computer equipment |
CN117632035B (en) * | 2023-12-13 | 2024-06-04 | 中国电子投资控股有限公司 | Data storage method, system, storage medium and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102279711B (en) | 2014-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102279711B (en) | Plug-in-based real-time data storage method and device | |
CN102800065B (en) | Based on the augmented reality Apparatus and method for of Quick Response Code recognition and tracking | |
CN102694831B (en) | Mobile terminal streaming compensation data method and system, content distributing network | |
CN103414949A (en) | Multimedia editing system and method based on smart television | |
CN104135741A (en) | Method of Bluetooth low energy communication, Bluetooth devices and system | |
CN104581406A (en) | Network video recording and playback system and method | |
CN101702676B (en) | Data buffering process and device | |
CN103078847A (en) | Method for storing and reading multi-code-rate stream file and relevant device | |
CN102647323A (en) | Flow control method and device as well as clustering system | |
CN102740125A (en) | System and method for playing streaming media | |
CN103179438A (en) | Method and device for determining of video playing first access code rate | |
CN103414798B (en) | The communication means of address transition Network Based, equipment and system | |
CN102438004A (en) | Method and system for acquiring metadata information of media file and multimedia player | |
CN104104972A (en) | Multimedia playing method, apparatus and system | |
CN103152605B (en) | A kind of method of voice data transcoding, device and transcoding server | |
CN106570068B (en) | Information recommendation method and device | |
CN112383775A (en) | Video data transmission method based on cloud mobile phone | |
CN103051556A (en) | Stream media data control system and method thereof | |
CN102780935B (en) | System for supporting multithread streaming media dynamic transmission | |
CN105451073A (en) | MP4 video source transmission method and apparatus | |
CN102611716A (en) | Method and device for transmitting media file | |
CN103139227B (en) | A kind of application data transmission system and method being applied to mobile terminal | |
CN103379364A (en) | Method and device for processing video file, video server and video system | |
CN104575125A (en) | Double-audio-frequency rereading method and device | |
CN102231847B (en) | Direct and accurate frame positioning method supporting stream media files |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |