CN107547941B - Method, device and system for storing media data - Google Patents

Method, device and system for storing media data Download PDF

Info

Publication number
CN107547941B
CN107547941B CN201610494281.XA CN201610494281A CN107547941B CN 107547941 B CN107547941 B CN 107547941B CN 201610494281 A CN201610494281 A CN 201610494281A CN 107547941 B CN107547941 B CN 107547941B
Authority
CN
China
Prior art keywords
media data
storage
information
stored
historical
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.)
Active
Application number
CN201610494281.XA
Other languages
Chinese (zh)
Other versions
CN107547941A (en
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201610494281.XA priority Critical patent/CN107547941B/en
Publication of CN107547941A publication Critical patent/CN107547941A/en
Application granted granted Critical
Publication of CN107547941B publication Critical patent/CN107547941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a method, a device and a system for storing media data. Wherein, the method comprises the following steps: acquiring storage association information of media data to be stored, wherein the media data to be stored comprises: the current media data and the historical media data, the storage association information at least comprises one of the following: time information, event information and a storage area; acquiring coding information of the media data to be stored according to the storage association information of the media data to be stored, wherein the coding information at least comprises: coding mode and coding parameter; according to the coding information of the media data to be stored, coding the media data to be stored to obtain coded media data; and storing the coded media data to a storage area of the media data to be stored. The invention solves the technical problem that the storage time of the media data is too short due to the limited space of the storage equipment in the prior art.

Description

Method, device and system for storing media data
Technical Field
The invention relates to the technical field of video monitoring, in particular to a method, a device and a system for storing media data.
Background
With the development of video monitoring technology, the requirement for video storage is higher and higher. In the video recording process of the high-definition camera, a large amount of space is consumed, and the storage device is more and more difficult to meet the requirements. Due to the limited space of the storage equipment, when the video is full, a cyclic coverage mode is generally adopted, and the previous data is covered by the new data, so that the problems that the storage time of the video is short, the expired data is completely deleted, the traceability cannot be realized and the like are caused. The increase of the storage space is not suitable in many cases because the storage device usually occupies too much space except for the increase of the storage cost.
In order to solve the above problem, a storage method of video data is proposed in the prior art, which can divide a storage area of a storage device into a first type storage area and a second type storage area. The data retention period of the second type storage area is longer than that of the first type storage area, the first type storage area stores normal video data, and the second type storage area performs frame extraction storage, so that the storage time requirement is met, but a large amount of video data can be lost and the video quality is influenced due to the frame extraction storage of the second type storage area.
In order to solve the problem of poor video quality, another video data storage method is proposed in the prior art, which can respectively store low-bit-rate video data and high-bit-rate video data by dividing a hard disk space into a low-bit-rate storage space and a high-bit-rate storage space, so as to meet the requirements of video quality and storage time. When the video exists in duplicate, the method has a large amount of redundant space, in addition, the quality selection of the low-bit-rate video is also a problem, if the quality is too high, the storage time is too short, and if the quality is too low, the video information is lost too much, and the requirement can be difficult to meet.
The prior art can store redundant information, cannot flexibly adjust storage requirements, is far from sufficient in effective utilization of storage space, and brings great obstacles to video storage application under some conditions.
Aiming at the problem that the storage time of the media data is too short due to the limited space of the storage equipment in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for storing media data, which are used for at least solving the technical problem that the storage time of the media data is too short due to limited space of storage equipment in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a storage method of media data, including: acquiring storage association information of media data to be stored, wherein the media data to be stored comprises: the current media data and the historical media data, the storage association information at least comprises one of the following: time information, event information and a storage area; acquiring coding information of the media data to be stored according to the storage association information of the media data to be stored, wherein the coding information at least comprises: coding mode and coding parameter; according to the coding information of the media data to be stored, coding the media data to be stored to obtain coded media data; and storing the coded media data to a storage area of the media data to be stored.
According to another aspect of the embodiments of the present invention, there is also provided a storage device of media data, including: the first obtaining module is configured to obtain storage association information of media data to be stored, where the media data to be stored includes: current media data and historical media data, the storage association information at least comprises one of the following: time information, event information and a storage area; a second obtaining module, configured to obtain coding information of the media data to be stored according to storage association information of the media data to be stored, where the coding information at least includes: coding mode and coding parameter; the encoding module is used for encoding the media data to be stored according to the encoding information of the media data to be stored to obtain encoded media data; and the storage module is used for storing the coded media data to a storage area of the media data to be stored.
According to another aspect of the embodiments of the present invention, there is also provided a storage system of media data, including: the control device is used for acquiring storage association information of the media data to be stored, and acquiring coding information of the media data to be stored according to the storage association information of the media data to be stored, wherein the media data to be stored comprises: the current media data and the historical media data, the storage association information at least comprises one of the following: time information, event information and a storage area, the encoded information at least comprising: coding mode and coding parameter; the encoding device is connected with the control device and is used for encoding the media data to be stored according to the encoding information of the media data to be stored to obtain encoded media data; and the storage device is connected with the control device and the encoding device and is used for storing the encoded media data to a storage area of the media data to be stored.
In the embodiment of the invention, the corresponding coding information is obtained through the obtained storage association information of the media data to be stored, the media data to be stored is coded according to the coding information, and the coded video is stored in the corresponding storage area in the storage device, so that the technical problem that the storage time of the media data is too short due to the limited space of the storage device in the prior art is solved. It is easy to note that, since the media data in different historical periods are encoded and stored according to different encoding information, the longer the storage time of the media data is, the lower the encoding code rate and the smaller the occupied space are, and further, the media data is divided by using the event information, so that the media data containing important event information retains more information in the same time period.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a storage method of media data according to an embodiment of the present invention;
fig. 2 is a flowchart of an alternative method of storing video data according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a storage device for media data according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a storage system for media data according to an embodiment of the invention; and
fig. 5 is a schematic diagram of an alternative video data storage system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for storing media data, it is noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of a storage method of media data according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, obtaining storage association information of media data to be stored, wherein the media data to be stored comprises: the current media data and the historical media data, the storage association information at least comprises one of the following: time information, event information, and a storage area.
The media data may be video data or audio data, and the following describes an embodiment of the present invention in detail with reference to the video data.
Specifically, the current video data may be video data currently captured by a capturing device, for example, video data recorded by a high definition camera. The time information may be a time when the video data is stored, for example, when the video data is stored at 2016 at 20 th 15 th click in 4 th year, the time information of the video data is 201604201500. The event information may be an alarm event, a motion detection event, and other events, the event information of different video data is different, the storage requirement is also different, the storage requirement of the video data containing important event information is high, and more information needs to be retained.
Optionally, the storage space of the storage device may be divided according to the storage association information of the video data to obtain a plurality of storage areas. And obtaining a corresponding storage area according to the storage association information of each video data to be stored.
Optionally, in the foregoing embodiment of the present invention, after step S102, the historical media data may be decoded to obtain decoded historical media data.
Step S104, acquiring coding information of the media data to be stored according to the storage association information of the media data to be stored, wherein the coding information at least comprises: coding mode and coding parameters.
Specifically, the encoding method may be a video encoding method such as H.26X series (e.g., H.261, H.263, H.264, and H.265) or MPEG series (e.g., MPEG-1, MPEG-2, MPEG-4, MPEG-7, and MPEG-21). The encoding parameters, also referred to as video compression parameters, may include upper rate limit, I-frame interval, frame rate, resolution, image quality, and other parameters.
It should be noted that, in the present invention, the encoding method is described as h.264, and the use of which encoding method does not affect the understanding and application of the patent, so that other encoding methods or embodiments of hybrid encoding methods are not given.
And step S106, coding the media data to be stored according to the coding information of the media data to be stored, and obtaining the coded media data.
Step S108, storing the coded media data to a storage area of the media data to be stored.
Fig. 2 is a flow chart of an alternative method of storing video data according to an embodiment of the present invention, as shown in fig. 2, in an alternative arrangement, for the historical video data in the storage device, due to the limited storage space of the storage device, in order to prolong the storage time of the historical video data already stored in the storage device, the historical video data can be analyzed to judge whether to need to be stored again, the data to be restored is decoded, encoded, restored and the like, and the space originally occupied by the data is cleared, specifically, new encoding information and a new storage area may be determined according to storage association information of the historical video data, the decoded historical video data may be encoded using the new encoding information, and storing the coded historical video data into a redetermined storage area, and simultaneously carrying out space cleaning on the original storage area. For newly input current video data, coding parameters can be set according to event information and time information of the newly input current video data, and the current video data can be stored in real time according to a plan.
In the above embodiment of the present invention, the corresponding encoding information is obtained through the obtained storage association information of the media data to be stored, the media data to be stored is encoded according to the encoding information, and the encoded video is stored in the corresponding storage area in the storage device, so as to solve the technical problem in the prior art that the storage time of the media data is too short due to the limited space of the storage device. It is easy to note that, since the media data in different historical periods are encoded and stored according to different encoding information, the longer the storage time of the media data is, the lower the encoding code rate and the smaller the occupied space are, and further, the media data is divided by using the event information, so that the media data containing important event information retains more information in the same time period.
Optionally, in the foregoing embodiment of the present invention, after acquiring the storage association information of the media data to be stored in step S102, the method further includes:
step S110, obtaining a storage rank of the media data to be stored according to the time information and the event information of the media data to be stored.
Specifically, the storage rank is used to indicate the importance degree of the media data, and the higher the importance degree of the media data is, the higher the corresponding storage rank is.
Optionally, due to different importance of the media data, even videos in the same storage area are stored through different storage levels. Especially when some alarm event is entered, or for some particular period of time, the video importance is higher and therefore a correspondingly higher level of storage is used.
In an alternative scheme, the storage level of the current input video can be obtained by analyzing the importance of the input event and time of the storage device, and the relationship between the event type and the shooting time and the storage level is shown in table 1 below.
TABLE 1
Inputting events or inputting times Storage level
Event EV1 (alarm event) Storage grade S1 (highest grade)
Event(s)EV2 (motion detection) Storage level S2
Time period TS1(4:00 ~ 5:00) Storage level S2
Time period TS2(22:00 ~ 24:00) Storage level S2
Other time periods and no event Storage level S3
Optionally, in the foregoing embodiment of the present invention, in step S104, acquiring, according to storage association information of media data to be stored, encoding information of the media data to be stored, where the acquiring includes:
step S10402, acquiring an encoding information lookup table, wherein the encoding information lookup table includes: a plurality of storage time periods, and coding information corresponding to each storage time period.
In an optional scheme, under the condition of a fixed bit rate and real-time storage, when video data is stored, a storage space may be divided according to different storage time periods to obtain a storage area corresponding to each storage time period, and different encoding parameters are set according to time information of the video data, that is, importance of the video data of different time information is different, for example, as shown in table 2, a storage time period may be divided into a time period T1(1 to 7 days), a time period T2(7 to 30 days) and a time period T3(>30 days), where a requirement for a recent video (1 to 7 days) is high, and an encoding parameter E1 with high image quality is used; if the video requirement in the middle period (7-30 days) is medium, using the encoding parameter E2 with medium image quality; for long-term (>30 days) video, the lowest requirements are imposed, and the low image quality encoding parameter E3 is used. The parameter information corresponding to each encoding parameter is shown in table 3, the code rate types of the three encoding parameters E1, E2 and E3 are all fixed code rates, the video frame rates are all full frame rates, the I frame intervals are all 25, and the three encoding parameters are different in that the code rate, the resolution and the image quality of the encoding parameter E1 are the highest, the code rate, the resolution and the image quality of the encoding parameter E1 are medium, and the code rate, the resolution and the image quality of the encoding parameter E1 are the lowest.
TABLE 2
Storage period Encoding parameters
Time period T1(1 to 7 days) Encoding parameters E1 (high resolution)
Time period T2(7 to 30 days) Encoding parameters E2 (medium resolution)
Time period T3(>30 days) Encoding parameters E3 (Low resolution)
TABLE 3
Figure BDA0001029213390000071
Step S10404, determining a storage time period of the media data to be stored according to the time information of the media data to be stored.
Step S10406, reading the coding information corresponding to the storage time period from the coding information lookup table, and obtaining the coding information of the media data to be stored.
In an alternative scheme, when the time information of the video data to be stored is 201604201500, and the current time is 2016, 4, and 28 days, it is determined that the storage period of the video data to be stored is T2, and the encoding parameter of the video data to be stored is E2.
Through the steps S10402 to S10406, the storage space may be divided according to the storage time period, and the corresponding encoding information may be determined according to the time information of the media data, so as to implement storage of the current media data and transfer storage of the historical media data, and prolong the storage time of the media data.
Optionally, in the foregoing embodiment of the present invention, in step S104, acquiring, according to storage association information of media data to be stored, encoding information of the media data to be stored, where the acquiring includes:
step S10442, acquiring an encoding information lookup table, wherein the encoding information lookup table includes: a plurality of storage areas, and coding information corresponding to each storage area.
Optionally, the coding parameters used in the current video storage generally adopt a variable code rate mode instead of a fixed code rate, and the occupied space of the videos at the same time is changed within a certain range. Therefore, when the storage space is constant, the video time which can be stored is not fixed. In addition, a storage plan is set in the actual storage, only data in the planning period is stored, and the video of all time is not necessarily stored, so that a fixed storage space, which can store the video time span, cannot be determined.
In an alternative scheme, in the case of variable bit rate and non-real-time storage, when video data is stored, the storage device may be divided into different storage areas, each storage space stores video data with different quality, that is, each storage area uses different encoding parameters, for example, as shown in table 4, the storage area may be divided into a storage area R1, a storage area R2 and a storage area R3, where the video requirement for the storage area R1 is high, and then the encoding parameter E1 with high image quality is used; if the video requirement for the storage region R2 is medium, then the encoding parameters E2 for medium image quality are used; the video requirement for the storage region R3 is minimal, and the encoding parameters E3 of low image quality are used. The parameter information corresponding to each encoding parameter is shown in table 5, the code rate types of the three encoding parameters E1, E2 and E3 are all variable code rates, the video frame rates are all full frame rates, the I frame intervals are all 25, and the three encoding parameters are different in that the code rate, the resolution and the image quality of the encoding parameter E1 are the highest, the code rate, the resolution and the image quality of the encoding parameter E1 are medium, and the code rate, the resolution and the image quality of the encoding parameter E1 are the lowest.
TABLE 4
Storage area Encoding parameters
Storage region R1 Encoding parameters E1 (high resolution)
Storage region R2 Encoding parameters E2 (medium resolution)
Storage region R3 Encoding parameters E3 (Low resolution)
TABLE 5
Figure BDA0001029213390000081
Step S10444, reading the coding information corresponding to the storage area of the media data to be stored from the coding information lookup table, and obtaining the coding information of the media data to be stored.
In an alternative scheme, when the storage area of the video data to be stored is the storage area R1, the encoding parameter of the video data to be stored is determined to be E1.
Through the steps S10442 to S10444, the encoding information of the media data can be determined according to the storage area of the media data, the storage of the current media data and the transfer storage of the historical media data are realized, the storage time of the media data is prolonged, and the space waste caused by the elastic change of the video storage space can be avoided.
Optionally, in the foregoing embodiment of the present invention, in step S104, acquiring, according to storage association information of media data to be stored, encoding information of the media data to be stored, where the acquiring includes:
step S10422, acquiring an encoding information lookup table, wherein the encoding information lookup table includes: a plurality of storage levels, and coding information corresponding to each storage level.
Optionally, in the actual video storage application, people have different requirements on the video quality of different historical times and different requirements on the video quality of the same shorter time period. For example, on the same day, videos with severe events (such as alarms) often have the highest quality requirement so as to search for the source of the alarm, while videos with ordinary events (such as motion detection) have relatively low requirements, and the video storage quality is lower in the period of no event, even the video storage is not required to be stored. Similarly, even if events are not considered, there may be some time segments within a day that have higher requirements for video quality, such as business hours in a mall, commute hours for some companies, and commute hours for a security location. Therefore, the video is also stored in a differentiated manner without dividing the storage area, so that the storage space is effectively utilized.
In an alternative scheme, the storage level of the video data may be determined, and different encoding parameters may be set according to the storage level to store the video, for example, as shown in table 6, the storage level may be divided into a storage level S1 (highest level), a storage level S2 and a storage level S3, where the video with the highest requirement for the storage level S1 uses an encoding parameter E1 with high image quality; for medium video requirements at storage level S2, use the encoding parameters E2 for medium image quality; the lowest video requirement for the storage level S2, the low image quality encoding parameter E3 is used. The parameter information corresponding to each encoding parameter is shown in table 5, the code rate types of the three encoding parameters E1, E2 and E3 are all variable code rates, the video frame rates are all full frame rates, the I frame intervals are all 25, and the three encoding parameters are different in that the code rate, the resolution and the image quality of the encoding parameter E1 are the highest, the code rate, the resolution and the image quality of the encoding parameter E1 are medium, and the code rate, the resolution and the image quality of the encoding parameter E1 are the lowest.
TABLE 6
Storage level Encoding parameters
Storage grade S1 (highest grade) Encoding parameters E1 (high resolution)
Storage level S2 Encoding parameters E2 (medium resolution)
Storage level S3 Encoding parameters E3 (Low resolution)
Step S10424, reading the coding information corresponding to the storage rank of the media data to be stored from the coding information lookup table, and obtaining the coding information of the media data to be stored.
In an alternative scheme, when the storage level of the video data to be stored is the highest level, the encoding parameter of the video data to be stored is determined to be E1.
It should be noted here that, in an alternative scheme, the storage space may not be divided into storage devices, and all video data are stored in the same storage area.
Through the steps S10422 to S10424, the encoding information of the media data may be determined according to the storage level of the media data, and the video storage encoding parameter of the same period may be adjusted. Therefore, the video with high storage grade is stored with higher quality, the media data with low storage grade is stored with low quality, and the storage space can be more reasonably utilized.
Optionally, in the foregoing embodiment of the present invention, in step S104, acquiring, according to storage association information of media data to be stored, encoding information of the media data to be stored, where the acquiring includes:
step S10462, acquiring an encoding information lookup table, where the encoding information lookup table includes: the device comprises a plurality of storage areas, a plurality of storage levels corresponding to each storage area, and coding information corresponding to each storage level.
In an alternative scheme, the video data of different storage levels are stored and transferred in different storage areas, and the coding parameters required for storage and transfer are different. For example, three storage regions may be defined, three storage levels, and when video data of a certain storage level is transferred from one storage region to another storage region, the used encoding parameters are as shown in table 7, the storage level may be divided into a storage level S1 (highest level), a storage level S2 and a storage level S3, and the storage region may be divided into a storage region R1, a storage region R2 and a storage region R3, wherein the video requirements for the storage level S1 and the storage region R1 are highest, and the encoding parameter E11 of the highest image quality is used; the video of the storage level S2 and the storage region R1, and the video of the storage level S1 and the storage region R2 are more demanding, the encoding parameters E12 and E21 of higher image quality are used; for videos of storage level S3 and storage region R1, videos of storage level S2 and storage region R2, and videos of storage level S1 and storage region R3, which are required to be medium, encoding parameters E13, E22, and E31 of medium image quality are used; the video of the storage level S3 and the storage region R2, and the video of the storage level S2 and the storage region R3 are less demanding, the encoding parameters E23 and E32 of lower image quality are used; the video requirements for the storage level S3 and the storage region R3 are minimal, the encoding parameter E33 of the lowest image quality is used. The parameter information corresponding to each encoding parameter is shown in table 8, the code rate types of the three encoding parameters E1, E2 and E3 are all variable code rates, the video frame rates are all full frame rates, the I frame intervals are all 25, and the three encoding parameters are different in that the code rate, the resolution and the image quality of the encoding parameter E1 are the highest, the code rate, the resolution and the image quality of the encoding parameter E1 are medium, and the code rate, the resolution and the image quality of the encoding parameter E1 are the lowest.
TABLE 7
Figure BDA0001029213390000101
TABLE 8
Figure BDA0001029213390000111
Step S10464, reading the storage area of the media data to be stored and the coding information corresponding to the storage rank from the coding information lookup table, and obtaining the coding information of the media data to be stored.
In an alternative scheme, when the storage region of the video data to be stored is the storage region R1, and the storage rank is the storage rank S2, it is determined that the encoding parameter of the video data to be stored is E12. When the video data storage rank is S1, the encoding parameter E11 is used when it is saved in the storage region R1, and the encoding parameter E21 is used when it is transferred from the storage region R1 to the storage region R2. Similarly, the video data of other storage levels and storage areas are stored and transferred in the same way.
Through the steps S10462 to S10464, the encoding information of the media data can be determined according to the storage area and the storage rank of the media data, the storage of the current media data and the transfer storage of the historical media data are realized, and the storage time of the media data is prolonged.
Optionally, in the foregoing embodiment of the present invention, step S108, storing the encoded media data in a storage area of the media data to be stored includes:
step S142, determining whether the storage area of the media data to be stored has data overflow.
And step S144, under the condition that the data overflow occurs in the storage area, extracting at least one piece of historical media data meeting preset conditions, and storing the coded media data into a first storage area.
In step S146, if the storage area has no data overflow, the encoded media data is directly saved in the second storage area.
In an optional scheme, the first storage area may be the same as the second storage area, and are storage areas of media data to be stored, and when the storage device is divided into different storage areas and each storage space stores video data of different qualities, when a storage space occupied by video data stored in one storage area exceeds the storage space of the storage area, a data overflow phenomenon may occur. And finally, storing the new data into the current storage area. For example, when the current video data is stored in the storage area R1, it is determined whether a data overflow phenomenon occurs in the storage area R1, and if so, the overflow data is read and transferred to the next storage area by decoding and encoding.
Through the steps S142 to S146, the overflow data is transferred and stored by determining whether the data overflow phenomenon occurs in the storage area, so that the storage time of the historical media data is prolonged under the condition of ensuring the video quality.
Optionally, in the foregoing embodiment of the present invention, in step S144, the extracting at least one piece of historical media data that meets the preset condition includes:
in step S1442, time information of a plurality of pieces of history media data stored in the storage area of the media data to be stored is acquired.
Step S1444, sort the plurality of historical media data in ascending or descending order according to the time information of the plurality of historical media data, and extract at least one historical media data with the highest or lowest ranking.
In an optional scheme, when video data is stored, if it is determined that a data overflow phenomenon occurs in a storage area, time information of each piece of historical video data stored in the storage area is acquired, the time information is sorted from small to large, one or more pieces of historical video data with the earliest time information are extracted as overflow data, and the overflow data is transferred and stored. For example, when the current video data is stored in the storage region R1, it is determined whether a data overflow phenomenon occurs in the storage region R1, and if so, the video data with the earliest time information in the storage region is read as overflow data, and is transferred to the next storage region by decoding and encoding.
Through the steps S1442 to S1444, at least one historical media data with earliest time information in the storage area where the data overflow phenomenon occurs is acquired as overflow data, and the data is transferred and stored, so that data with longer historical time is realized, and the video code rate, that is, the occupied space is lower.
Optionally, in the foregoing embodiment of the present invention, the event information at least includes: the event information included in the media data and/or the event information of the externally input alarm event, wherein, in the case that the media data to be stored is the current media data, the step S102, acquiring the storage association information of the media data to be stored includes:
step S1022, obtain the current time information and the preset storage area, and obtain the time information and the storage area of the current media data.
In an alternative, the time information of the current video data may be the current time, for example, the current time is 2016, 4, 28, 16 click, and the time information of the current video data may be 201604281600. For the latest data, namely the current video data, the storage area corresponding to the coding information with the highest image quality in the divided storage areas can be used as the storage area of the current video.
Step S1024, receiving the alarm event input from the outside to obtain the event information of the alarm event input from the outside.
Step S1026, performing event analysis on the current media data to obtain event information included in the current media data.
Specifically, the video data may include events: the mobile detection, shelter from the warning, signal loss, alarm parameter, unusual warning, border crossing detects, regional invasion, face detection etc. and the alarm event of external input can be: ordinary alarm, open circuit alarm, short circuit alarm, etc.
In an alternative scheme, the alarm event can be input into the storage device through the alarm input device, the video analysis device can perform event analysis on the video data and the input alarm event of the storage device, and event information contained in the video data and event information of the externally input alarm event are obtained.
It should be noted here that the sequence between the step S1024 and the step S1026 may be changed, and the present invention is not limited to this.
Optionally, in the foregoing embodiment of the present invention, the event information at least includes: the event information included in the media data and/or the event information of the alarm event input from the outside, wherein, in the case that the media data to be stored is historical media data, the step S102, acquiring storage association information of the media data to be stored includes:
step S1026, time information, event information, and a storage area of the history media data are acquired.
Specifically, the storage area may be a storage area after the transfer of the historical video data.
In an alternative scheme, when the historical video data is stored for the first time, that is, when the historical video data belongs to the current video data, event information is obtained through analysis of an input event of a storage device and an event included in the video data, when the historical video data is transferred and stored, time information of the historical video data can be directly obtained, the event information can be obtained, a storage area next to the storage area before the historical video data is transferred from a plurality of preset storage areas and is used as a storage area of the video data to be stored, for example, the storage area can be divided into a storage area R1, a storage area R2 and a storage area R3, and when the storage area before the historical video data is transferred is R2, a new storage area of the historical video data is determined to be R3.
Optionally, in the foregoing embodiment of the present invention, step S108, storing the encoded media data in a storage area of the media data to be stored includes:
in step S1082, a history storage area of the history media data is acquired.
Specifically, the history storage area of the history video data may be a storage area before the history video data is transferred.
In step S1084, the encoded media data is stored in the storage area of the historical media data according to the loop overlay method, when the historical storage area of the historical media data is the same as the storage area of the historical media data.
In an alternative scheme, when the storage area before the historical video data is transferred is the same as the storage area after the historical video data is transferred, for example, the storage area stores the historical video data of the last storage time period or the last storage area in a cyclic coverage mode, and the storage area transfer processing is not performed any more.
Through the above steps S1082 to S1084, the history media data in the last storage area is repeatedly stored in a loop overlay manner, so that the history media data with a long storage time is deleted.
Optionally, in the foregoing embodiment of the present invention, after acquiring the storage association information of the media data to be stored in step S102, the method further includes:
in step S162, a history storage area of the history media data is acquired.
In step S164, a final storage area of the history media data is determined according to the storage rank of the history media data.
Optionally, the data in one storage area does not all have to be transferred to the next storage area, and in many cases, the video data does not need to be retained for too long, so a storage threshold value may be set according to the storage level and the storage area, and it is determined whether the storage level of each storage area exceeds the storage threshold value, only the video data exceeding the storage threshold value will continue to be stored, and the data below the storage threshold value will be deleted.
In an alternative, the storage life of the video, i.e., the final storage area, may be set according to the storage rank of the video, for example, as shown in table 9, for the video data of storage rank S1, it may be the final transferable storage area R3. The video data stored in the storage level S2 is finally retained only in the storage area R2, and when it needs to be transferred again, it is not retained and is deleted directly. Likewise, the data retention time of the storage level R3 will be shorter.
TABLE 9
Storage level Final storage area
Storage level S1 Storage region R3
Storage level S2 Storage region R2
Storage level S3 Storage region R1
It should be noted here that there are many ways to determine whether a video needs to be retained or deleted, and this embodiment only provides one of them.
In step S166, when the history storage area is the same as the final storage area, the history media data is directly deleted.
Step S168, when the history storage area is different from the final storage area, the process proceeds to a step of acquiring the encoding information of the media data to be stored according to the storage related information of the media data to be stored.
In an optional scheme, when historical video data is transferred, a final storage area of the historical video data can be determined according to the storage level of the historical video data, when the storage area before the historical video data is transferred is the final storage area, the storage life of the historical video data is determined to be reached, the historical video data is directly deleted, and the storage space occupied by the historical video data is cleared.
Through the steps S162 to S168, not all media data need to be stored for a long time, and which media data need to be deleted in the storage and transfer process can be determined according to the storage area and the storage rank, so that only part of the key data is reserved in the older historical data, and the storage time of the key data is prolonged.
Optionally, before acquiring storage association information of media data to be stored in step S102, the method further includes:
step S1002, receiving current media data sent by the shooting device.
Specifically, the shooting device may be a device having a video recording function, such as a video recorder or a video camera.
Step S1004, analyzing at least one historical media data stored in the storage device to obtain media data to be stored.
Optionally, the historical media data may be media data already stored in the storage device, and in order to prolong the storage time of the historical media data, the historical media data may be detected in real time or at regular time, so as to obtain the historical media data that needs to be stored again.
In an optional scheme, in the case of storing historical video data, the historical video data may be analyzed to determine whether the historical video data needs to be stored again, and when a storage time period corresponding to the historical video data time information changes or a storage area changes, storage transfer is performed. For example, when the storage time of a piece of video data in the time period T1 is found to reach the time critical point, the data is extracted, encoding is performed again according to the encoding parameter E2, new encoded data is stored after encoding is completed, and the original encoded data is deleted.
Example 2
According to an embodiment of the present invention, an embodiment of a storage device for media data is provided, and fig. 3 is a schematic diagram of a storage device for media data according to an embodiment of the present invention, as shown in fig. 3, the storage device includes:
a first obtaining module 31, configured to obtain storage association information of media data to be stored, where the media data to be stored includes: the current media data and the historical media data, the storage association information at least comprises one of the following: time information, event information, and a storage area.
The media data may be video data or audio data, and the following describes an embodiment of the present invention in detail with reference to the video data.
Specifically, the current video data may be video data currently captured by a capturing device, for example, video data recorded by a high definition camera. The time information may be a time when the video data is stored, for example, when the video data is stored at 2016 at 20 th 15 th click in 4 th year, the time information of the video data is 201604201500. The event information may be an alarm event, a motion detection event, and other events, the event information of different video data is different, the storage requirement is also different, the storage requirement of the video data containing important event information is high, and more information needs to be retained.
Optionally, the storage space of the storage device may be divided according to the storage information of the video data to obtain a plurality of storage areas. And obtaining a corresponding storage area according to the storage association information of each video data to be stored.
Optionally, in the foregoing embodiment of the present invention, the apparatus may further include a decoding module, configured to decode the historical media data to obtain decoded historical media data.
A second obtaining module 33, configured to obtain, according to storage association information of media data to be stored, encoding information of the media data to be stored, where the encoding information at least includes: coding mode and coding parameters.
Specifically, the encoding method may be a video encoding method such as H.26X series (e.g., H.261, H.263, H.264, and H.265) or MPEG series (e.g., MPEG-1, MPEG-2, MPEG-4, MPEG-7, and MPEG-21). The encoding parameters, also referred to as video compression parameters, may include upper rate limit, I-frame interval, frame rate, resolution, image quality, and other parameters.
It should be noted that, in the present invention, the encoding method is described as h.264, and the use of which encoding method does not affect the understanding and application of the patent, so that other encoding methods or embodiments of hybrid encoding methods are not given.
The encoding module 35 is configured to encode the media data to be stored according to the encoding information of the media data to be stored, so as to obtain encoded media data.
And a storage module 37, configured to store the encoded media data in a storage area of the media data to be stored.
As shown in fig. 2, in an alternative scheme, for the historical video data in the storage device, since the storage space of the storage device is limited, in order to prolong the storage time of the historical video data already stored in the storage device, the encoding parameters may be set according to the event information and the time information thereof, and the historical video data is stored in real time according to a schedule. For newly input current video data, coding parameters can be set according to event information and time information of the newly input current video data, and the current video data can be stored in real time according to a plan.
In the above embodiment of the present invention, the storage association information of the media data to be stored is acquired by the first acquisition module, the second acquisition module acquires the corresponding encoding information, the encoding module encodes the media data to be stored according to the encoding information, and the storage module stores the encoded video in the corresponding storage area of the storage device, thereby solving the technical problem in the prior art that the storage time of the media data is too short due to the limited space of the storage device. It is easy to note that, since the media data in different historical periods are encoded and stored according to different encoding information, the longer the storage time of the media data is, the lower the encoding code rate and the smaller the occupied space are, and further, the media data is divided by using the event information, so that the media data containing important event information retains more information in the same time period.
Example 3
According to an embodiment of the present invention, an embodiment of a storage system for media data is provided, and fig. 4 is a schematic diagram of a storage system for media data according to an embodiment of the present invention, as shown in fig. 4, the system includes:
the control device 41 is configured to obtain storage association information of media data to be stored, and obtain encoding information of the media data to be stored according to the storage association information of the media data to be stored, where the media data to be stored includes: the current media data and the historical media data, the storage association information at least comprises one of the following: time information, event information and a storage area, the encoded information at least comprising: coding mode and coding parameters.
The media data may be video data or audio data, and the following describes an embodiment of the present invention in detail with reference to the video data.
Specifically, the current video data may be video data currently captured by a capturing device, for example, video data recorded by a high definition camera. The time information may be a time when the video data is stored, for example, when the video data is stored at 2016 at 20 th 15 th click in 4 th year, the time information of the video data is 201604201500. The event information may be an alarm event, a motion detection event, and other events, the event information of different video data is different, the storage requirement is also different, the storage requirement of the video data containing important event information is high, and more information needs to be retained. The encoding method may be a video encoding method such as H.26X series (e.g., H.261, H.263, H.264, and H.265) or MPEG series (e.g., MPEG-1, MPEG-2, MPEG-4, MPEG-7, and MPEG-21). The encoding parameters, also referred to as video compression parameters, may include upper rate limit, I-frame interval, frame rate, resolution, image quality, and other parameters.
Optionally, the storage space of the storage device may be divided according to the storage association information of the video data to obtain a plurality of storage areas. And obtaining a corresponding storage area according to the storage association information of each video data to be stored.
Optionally, in the foregoing embodiment of the present invention, the system may further include: and the decoding device is connected with the control device and is used for decoding the historical media data to obtain the decoded historical media data.
It should be noted that, in the present invention, the encoding method is described as h.264, and the use of which encoding method does not affect the understanding and application of the patent, so that other encoding methods or embodiments of hybrid encoding methods are not given.
And the encoding device 43 is connected with the control device 41 and is used for encoding the media data to be stored according to the encoding information of the media data to be stored to obtain the encoded media data.
And the storage device 45 is connected with the control device 41 and the encoding device 43 and is used for storing the encoded media data into a storage area of the media data to be stored.
Fig. 5 is a schematic diagram of an alternative storage system for video data according to an embodiment of the present invention, and as shown in fig. 5, the system may include a control module, i.e., the above-mentioned control apparatus, a decoding module, i.e., the above-mentioned decoding apparatus, an encoding module, i.e., the above-mentioned encoding apparatus, a video storage module, i.e., the above-mentioned storage apparatus, and a storage device, where the control module is connected to the video storage module, the decoding module and the encoding module, respectively, and the video storage module is connected to the decoding module, the encoding module and the storage device, respectively. The video storage module is mainly used for storage scheduling and management, media data are stored in a specific space of the storage device according to requirements, and operations such as data addition, deletion, coverage, space allocation and the like are performed. The coding module is mainly used for coding media data and sending the coded data to the storage unit. The decoding module is mainly used for decoding operation of media data. The central control module is used for managing the whole video storage system, and comprises tasks of configuration of video coding and decoding parameters, extraction of data, re-storage and the like.
As shown in fig. 2, in an alternative scheme, for the historical media data in the storage device, since the storage space of the storage device is limited, in order to prolong the storage time of the historical media data already stored in the storage device, the historical video data may be analyzed, it may be determined whether the historical video data needs to be stored again, the data that needs to be stored again may be decoded, encoded, and stored again, and the space that the historical video data originally occupies may be cleared. For newly input current media data, coding parameters can be set according to event information and time information of the newly input current media data, and the current media data can be stored in real time according to a plan.
In the above embodiment of the present invention, the corresponding encoding information is obtained through the obtained storage association information of the media data to be stored, the media data to be stored is encoded according to the encoding information, and the encoded video is stored in the corresponding storage area in the storage device, so as to solve the technical problem in the prior art that the storage time of the media data is too short due to the limited space of the storage device. It is easy to note that, since the media data in different historical periods are encoded and stored according to different encoding information, the longer the storage time of the media data is, the lower the encoding code rate and the smaller the occupied space are, and further, the media data is divided by using the event information, so that the media data containing important event information retains more information in the same time period.
Optionally, in the foregoing embodiment of the present invention, the event information at least includes: event information included in the media data and/or event information of an alarm event inputted from the outside, wherein, in case that the media data to be stored is the current media data, the control means 41 includes:
and the acquisition module is used for acquiring the current time information and a preset storage area to obtain the time information and the storage area of the current media data.
In an alternative, the time information of the current media data may be the current time, for example, the current time is 2016, 4, 28, 16 click, and the time information of the current media data may be 201604281600. For the latest data, namely the current video data, the storage area corresponding to the coding information with the highest image quality in the divided storage areas can be used as the storage area of the current video.
And the alarm input module is used for receiving the externally input alarm event and obtaining the event information of the externally input alarm event.
And the analysis module is used for carrying out event analysis on the current media data to obtain event information contained in the current media data.
Specifically, the media data may include events: the mobile detection, shelter from the warning, signal loss, alarm parameter, unusual warning, border crossing detects, regional invasion, face detection etc. and the alarm event of external input can be: ordinary alarm, open circuit alarm, short circuit alarm, etc.
As shown in fig. 5, the system may further include a video analysis module, and an alarm input module. In an alternative scheme, the alarm event can be input into the storage device through the alarm input device, and the media data can be subjected to event analysis through the video analysis device, so that event information contained in the media data and event information of the alarm event input from the outside can be obtained.
Optionally, in the foregoing embodiment of the present invention, the event information at least includes: event information included in the media data and/or event information of an alarm event inputted from the outside, wherein, in case that the media data to be stored is history media data, the control means 41 includes:
and the acquisition module is used for acquiring the time information, the event information and the storage area of the historical media data.
As shown in fig. 5, the system may further include a video analysis module, and the control module is connected to the video analysis module, and in an alternative, when the historical video data is stored for the first time, i.e. belongs to the current video data, event information is obtained by analyzing the input events of the storage device and the events contained in the video data, when the historical video data is transferred and stored, the time information, the event information, the next storage area of the storage area before the transfer of the historical video data may be acquired from a plurality of preset storage areas, the storage area may be used as the storage area of the video data to be stored, for example, the storage region may be divided into a storage region R1, a storage region R2 and a storage region R3, when the storage area before the transfer of the historical video data is R2, it is determined that the new storage area of the historical video data is R3.
Optionally, the system further includes:
and the network device is communicated with the shooting equipment.
Specifically, the shooting device may be a device having a video recording function, such as a video recorder or a video camera.
As shown in fig. 5, the system may further include a network module, connected to the control module, for performing network communication, including accessing devices such as IPC, NVR, DVS, and the like.
And the control device 41 is connected with the network device, and is further configured to receive current media data sent by the shooting device, and analyze at least one piece of historical media data stored in the storage device to obtain media data to be stored.
Optionally, the historical video data may be video data already stored in the storage device, and in order to prolong the storage time of the historical video data, the historical video data may be detected in real time or at regular time, so as to obtain the historical video data that needs to be stored again.
In an optional scheme, in the case of storing historical video data, the historical video data may be analyzed to determine whether the historical video data needs to be stored again, and when a storage time period corresponding to the storage time of the historical video data changes or a storage area changes, storage transfer is performed. For example, when the storage time of a piece of video data in the time period T1 is found to reach the time critical point, the data is extracted, encoding is performed again according to the encoding parameter E2, new encoded data is stored after encoding is completed, and the original encoded data is deleted.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for storing media data, comprising:
acquiring storage association information of media data to be stored, wherein the media data to be stored comprises: current media data and historical media data, the storage association information at least comprises: event information and storage area; wherein the storage association information of the historical media data further comprises: time information;
acquiring coding information of the media data to be stored according to the storage association information of the media data to be stored, wherein the coding information at least comprises: coding mode and coding parameter;
according to the coding information of the media data to be stored, coding the media data to be stored to obtain coded media data; the historical media data is coded by using the coding information to obtain coded media data;
storing the coded media data to a storage area of the media data to be stored;
wherein, for the historical media data, the step of obtaining the coding information of the media data to be stored according to the storage association information of the media data to be stored includes:
obtaining the storage grade of the historical media data according to the time information and the event information of the historical media data;
acquiring a coding information look-up table, wherein the coding information look-up table comprises: the storage device comprises a plurality of storage areas, a plurality of storage levels corresponding to each storage area, and coding information corresponding to each storage level;
and reading the storage area of the historical media data and the coding information corresponding to the storage grade from the coding information look-up table to obtain the coding information of the historical media data.
2. The method of claim 1, wherein saving the encoded media data to a storage area of the media data to be stored comprises:
judging whether the storage area of the media data to be stored has data overflow;
under the condition that the data overflow occurs in the storage area, extracting at least one piece of historical media data meeting a preset condition, and storing the coded media data into a first storage area;
and under the condition that the data overflow does not occur in the storage area, directly storing the coded media data into a second storage area.
3. The method of claim 2, wherein extracting at least one historical media data satisfying a preset condition comprises:
acquiring time information of a plurality of historical media data stored in the storage area of the media data to be stored;
and sorting the plurality of historical media data in an ascending order or a descending order according to the time information of the plurality of historical media data, and extracting at least one historical media data with the highest or lowest sorting order.
4. The method according to claim 1, wherein the event information comprises at least: the method includes the steps that event information contained in media data and/or event information of an alarm event input from the outside are/is included, wherein under the condition that the media data to be stored is the current media data, obtaining storage association information of the media data to be stored comprises the following steps:
acquiring current time information and a preset storage area to obtain the time information and the storage area of the current media data;
receiving an externally input alarm event to obtain event information of the externally input alarm event;
and performing event analysis on the current media data to obtain event information contained in the current media data.
5. The method according to claim 1, wherein the event information comprises at least: the method comprises the following steps that event information contained in media data and/or event information of an alarm event input from the outside are/is obtained, wherein under the condition that the media data to be stored are historical media data, the obtaining of storage association information of the media data to be stored comprises the following steps:
and acquiring time information, event information and a storage area of the historical media data.
6. The method of claim 5, saving the encoded media data to a storage area of the media data to be stored comprises:
acquiring a history storage area of the history media data;
and under the condition that the historical storage area of the historical media data is the same as the storage area of the historical media data, storing the coded media data to the storage area of the historical media data according to a circular covering mode.
7. The method according to claim 5, wherein after obtaining the storage association information of the media data to be stored, the method further comprises:
acquiring a history storage area of the history media data;
determining a final storage area of the historical media data according to the storage grade of the historical media data;
in the case that the history storage area is the same as the final storage area, directly deleting the history media data;
and under the condition that the historical storage area is different from the final storage area, acquiring the coding information of the media data to be stored according to the storage association information of the media data to be stored.
8. The method according to claim 5, wherein after obtaining the storage association information of the media data to be stored, the method further comprises:
and decoding the historical media data to obtain the decoded historical media data.
9. The method according to claim 1, wherein before obtaining the storage association information of the media data to be stored, the method further comprises:
receiving the current media data sent by the shooting equipment;
analyzing at least one historical media data stored in the storage device to obtain the media data to be stored.
10. An apparatus for storing media data, comprising:
the first obtaining module is configured to obtain storage association information of media data to be stored, where the media data to be stored includes: current media data and historical media data, the storage association information at least comprises: event information and storage area; wherein the storage association information of the historical media data further comprises: time information;
a second obtaining module, configured to obtain coding information of the media data to be stored according to storage association information of the media data to be stored, where the coding information at least includes: coding mode and coding parameter;
the encoding module is used for encoding the media data to be stored according to the encoding information of the media data to be stored to obtain encoded media data; the historical media data is coded by using the coding information to obtain coded media data;
the storage module is used for storing the coded media data to a storage area of the media data to be stored;
the second obtaining module is specifically configured to, for the historical media data: obtaining the storage grade of the historical media data according to the time information and the event information of the historical media data; acquiring a coding information look-up table, wherein the coding information look-up table comprises: the storage device comprises a plurality of storage areas, a plurality of storage levels corresponding to each storage area, and coding information corresponding to each storage level; and reading the storage area of the historical media data and the coding information corresponding to the storage grade from the coding information look-up table to obtain the coding information of the historical media data.
11. A storage system for media data, comprising:
the control device is used for acquiring storage association information of media data to be stored, and acquiring coding information of the media data to be stored according to the storage association information of the media data to be stored, wherein the media data to be stored comprises: current media data and historical media data, the storage association information at least comprises: event information and a storage area, the storage association information of the historical media data further comprises: time information, the coding information comprising at least: coding mode and coding parameter;
the coding device is connected with the control device and used for coding the media data to be stored according to the coding information of the media data to be stored to obtain coded media data; the historical media data is coded by using the coding information to obtain coded media data;
the storage device is connected with the control device and the encoding device and used for storing the encoded media data to a storage area of the media data to be stored;
for the historical media data, when the step of obtaining the coding information of the media data to be stored according to the storage association information of the media data to be stored is executed, the control device is specifically configured to: obtaining the storage grade of the historical media data according to the time information and the event information of the historical media data; acquiring a coding information look-up table, wherein the coding information look-up table comprises: the storage device comprises a plurality of storage areas, a plurality of storage levels corresponding to each storage area, and coding information corresponding to each storage level; and reading the storage area of the historical media data and the coding information corresponding to the storage grade from the coding information look-up table to obtain the coding information of the historical media data.
12. The system of claim 11, wherein the event information comprises at least: the control device comprises event information contained in media data and/or event information of an externally input alarm event, wherein in the case that the media data to be stored is current media data, the control device comprises:
the acquisition module is used for acquiring current time information and a preset storage area to obtain the time information and the storage area of the current media data;
the alarm input module is used for receiving an externally input alarm event and obtaining event information of the externally input alarm event;
and the analysis module is used for carrying out event analysis on the current media data to obtain event information contained in the current media data.
13. The system of claim 11, wherein the event information comprises at least: event information contained in the media data and/or event information of an alarm event inputted from the outside, wherein, in case that the media data to be stored is history media data, the control apparatus comprises:
and the acquisition module is used for acquiring the time information, the event information and the storage area of the historical media data.
14. The system of claim 13, further comprising:
and the decoding device is connected with the control device and is used for decoding the historical media data to obtain the decoded historical media data.
15. The system of claim 11, further comprising:
a network device communicating with the photographing apparatus;
the control device is connected with the network device and is further configured to receive the current media data sent by the shooting device, and analyze at least one historical media data stored in a storage device to obtain the media data to be stored.
CN201610494281.XA 2016-06-24 2016-06-24 Method, device and system for storing media data Active CN107547941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610494281.XA CN107547941B (en) 2016-06-24 2016-06-24 Method, device and system for storing media data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610494281.XA CN107547941B (en) 2016-06-24 2016-06-24 Method, device and system for storing media data

Publications (2)

Publication Number Publication Date
CN107547941A CN107547941A (en) 2018-01-05
CN107547941B true CN107547941B (en) 2021-10-22

Family

ID=60962888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610494281.XA Active CN107547941B (en) 2016-06-24 2016-06-24 Method, device and system for storing media data

Country Status (1)

Country Link
CN (1) CN107547941B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413374B (en) * 2018-02-07 2021-06-08 中科太网科技(北京)有限公司 Monitoring video processing method and device, video processing equipment and video processing system
CN108377411B (en) * 2018-02-11 2020-08-04 浙江大华技术股份有限公司 Method for transmitting media data, method and device for displaying media data
KR102631380B1 (en) * 2018-05-17 2024-02-01 에스케이하이닉스 주식회사 Semiconductor system including various memory deivces capable of processing data
CN109344286A (en) * 2018-09-19 2019-02-15 罗斯盛 A kind of structured index supercompression blue-ray storage system
CN109714630B (en) * 2018-12-17 2021-10-26 新视家科技(北京)有限公司 Picture storage method and device, electronic equipment and computer readable medium
CN111836080B (en) * 2019-04-19 2022-07-19 浙江宇视科技有限公司 Video parameter optimization method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1906942A (en) * 2004-01-29 2007-01-31 三星电子株式会社 Monitoring system and method for using the same
CN101350915A (en) * 2008-09-01 2009-01-21 北京中星微电子有限公司 Method for self-adapting regulation of running parameter and monitoring frontend equipment
CN101674444A (en) * 2009-10-15 2010-03-17 杭州华三通信技术有限公司 Storage method of video data, system and encoder thereof
CN101778265A (en) * 2010-01-13 2010-07-14 上海交通大学 Exception event detection and double-stream coding-based video monitoring method
CN102572357A (en) * 2011-12-31 2012-07-11 中兴通讯股份有限公司 Video monitoring system front end memory method and video monitoring system
CN103826078A (en) * 2014-03-11 2014-05-28 深圳瑞信视讯技术有限公司 Linear storage method, device and terminal for video data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1906942A (en) * 2004-01-29 2007-01-31 三星电子株式会社 Monitoring system and method for using the same
CN101350915A (en) * 2008-09-01 2009-01-21 北京中星微电子有限公司 Method for self-adapting regulation of running parameter and monitoring frontend equipment
CN101674444A (en) * 2009-10-15 2010-03-17 杭州华三通信技术有限公司 Storage method of video data, system and encoder thereof
CN101778265A (en) * 2010-01-13 2010-07-14 上海交通大学 Exception event detection and double-stream coding-based video monitoring method
CN102572357A (en) * 2011-12-31 2012-07-11 中兴通讯股份有限公司 Video monitoring system front end memory method and video monitoring system
CN103826078A (en) * 2014-03-11 2014-05-28 深圳瑞信视讯技术有限公司 Linear storage method, device and terminal for video data

Also Published As

Publication number Publication date
CN107547941A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107547941B (en) Method, device and system for storing media data
CN104639860B (en) The storage method and device of a kind of monitoring video
CN101631237B (en) Video monitoring data storing and managing system
US20060152636A1 (en) Multimedia data recording apparatus, monitor system, and multimedia data recording method
CN107318000A (en) A kind of wireless video monitoring system based on cloud platform
US10409491B2 (en) Method of data analysis and extraction for embedded security devices
CN101036387B (en) Method and apparatus for detecting motion in MPEG video streams
JP6016332B2 (en) Image processing apparatus and image processing method
CN107734336B (en) Compression method and device for video storage space
CN103327306A (en) Method and device for storing video surveillance image
CN104349074A (en) Method, device and system for producing a merged digital video sequence
GB2561100A (en) An integrated intelligent server based system and method/systems adapted to facilitate fail-safe integration and/or optimised utilisation
US11777824B2 (en) Anomaly detection method and apparatus
CN103685914A (en) Image management apparatus and management method
CN102945678A (en) Storage method and system of video documents and video monitoring device
CN103634552A (en) Monitoring video storage method, system and central management server
CN115103157A (en) Video analysis method and device based on edge cloud cooperation, electronic equipment and medium
CN104662900B (en) video image encoding apparatus
CN103020138A (en) Method and device for video retrieval
CN100370866C (en) Wireless network controller log recording system and its method
US20150365623A1 (en) Method and Device for Storing Video Images
CN102457695A (en) Digital video recorder and frame extraction and backup method for same
JP2010218390A (en) Stream accumulation control device
US11398091B1 (en) Repairing missing frames in recorded video with machine learning
CN106559632B (en) Multimedia file storage method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant