CN105338297B - A kind of storage of video data and playback system, device and method - Google Patents

A kind of storage of video data and playback system, device and method Download PDF

Info

Publication number
CN105338297B
CN105338297B CN201410391348.8A CN201410391348A CN105338297B CN 105338297 B CN105338297 B CN 105338297B CN 201410391348 A CN201410391348 A CN 201410391348A CN 105338297 B CN105338297 B CN 105338297B
Authority
CN
China
Prior art keywords
data
block
playback
data segment
information
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
CN201410391348.8A
Other languages
Chinese (zh)
Other versions
CN105338297A (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 CN201410391348.8A priority Critical patent/CN105338297B/en
Publication of CN105338297A publication Critical patent/CN105338297A/en
Application granted granted Critical
Publication of CN105338297B publication Critical patent/CN105338297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of storage of video data and playback systems, device and method: storage subsystem is split the video data for being obtained from any headend equipment, it is stored in the form of data segment, the first frame of each data segment is key frame, and the corresponding section additional information for storing each data segment, comprising: the timestamp information and location information for the key frame for including in data segment;Management equipment is determined in the playback request for receiving playback apparatus comprising the data segment to playback of data, and is notified to playback apparatus to carry out taking stream;Storage subsystem receive playback apparatus for any data section take stream request when, according to the section additional information of the data segment, since the timestamp in the data segment is closest to the key frame position of playback time started, it is read out to include in the data segment to playback of data, and is sent to playback apparatus and is played back.Using scheme of the present invention, transfer resource can be saved and improve playback efficiency etc..

Description

A kind of storage of video data and playback system, device and method
Technical field
The present invention relates to technical field of video monitoring, in particular to a kind of video data storage and playback system, device and Method.
Background technique
In the prior art, storage equipment can will acquire from the storage of the video data of headend equipment hereof, file according to Time carries out cutting.When needing to play back the video data in sometime range, storage equipment can be by corresponding view Frequency file is sent to playback apparatus, correspondingly, after playback apparatus receives video data, can first carry out a period of time to it and delay It deposits, carries out frame analysis later, to find the key frame position closest to the playback time started, and from the crucial framing bit found It sets and starts to be played back.
But aforesaid way can have certain problems in practical applications, such as: assuming that the beginning of a certain video file x Time and end time are respectively 8:30 and 10:00, and playback time started and playback end time are respectively 9:00 and 10:00, So, entire video file x will be sent to playback apparatus, and it is 9:00~10:00 that playback apparatus is actually required Video data in this time range, so that transfer resource is wasted, moreover, because needing first to the video data received Caching and frame analysis are carried out, could start to be played back after the key frame position to be checked for finding the closest playback time started, drop Low playback efficiency.
Summary of the invention
In view of this, biography can be saved the present invention provides a kind of storage of video data and playback system, device and method Defeated resource and raising playback efficiency.
In order to achieve the above object, the technical scheme of the present invention is realized as follows:
A kind of storage of video data and playback system, comprising: management equipment and storage subsystem;
The storage subsystem, for being split to the video data for being obtained from any headend equipment, with data segment Form is stored, and the first frame of each data segment is key frame, and the corresponding section additional information for storing each data segment, packet It includes: the timestamp information and location information for the key frame for including in data segment;
The management equipment, for when receiving the playback request of playback apparatus, determining comprising to playback of data Data segment, and notify to the playback apparatus to carry out taking stream;
The storage subsystem, for when receive the playback apparatus for any data section take stream request when, root According to the section additional information of the data segment, the key frame position from the timestamp in the data segment closest to the playback time started is opened Begin, is read out to include in the data segment to playback of data, and be sent to the playback apparatus and played back.
A kind of storage equipment, comprising:
Memory module, for being stored in the form of data segment for the video data for being obtained from any headend equipment, The first frame of each data segment is key frame, and the corresponding section additional information for storing each data segment, comprising: is wrapped in data segment The timestamp information and location information of the key frame contained;
Playback module receives playback apparatus taking for any data section stored in the memory module for working as When stream request, according to the section additional information of the data segment, from the timestamp in the data segment closest to the pass of playback time started Key frame position starts, and is read out to include in the data segment to playback of data, and is sent to the playback apparatus and is returned It puts.
A kind of storage of video data and back method, comprising:
The video data for being obtained from any headend equipment is split, is stored in the form of data segment to magnetic disk media On, the first frame of each data segment is key frame, and the corresponding section additional information for storing each data segment, comprising: data segment In include key frame timestamp information and location information;
When receiving the playback request of playback apparatus, determine comprising the data segment to playback of data, and notify to institute Playback apparatus is stated to carry out taking stream;
When receiving the playback apparatus for any data section when stream being taken to request, according to the additional letter of the section of the data segment Breath, since the timestamp in the data segment is closest to the key frame position of playback time started, to including in the data segment It is read out to playback of data, and is sent to the playback apparatus and is played back.
As it can be seen that will acquire the video data storage from headend equipment in the form of data segment using scheme of the present invention Onto magnetic disk media, and the corresponding section additional information for storing each data segment, i.e., the timestamp for the key frame for including in data segment Information and location information etc., in this way, can first determine that out when needing to carry out video data playback comprising the number to playback of data It is most connect according to the section additional information of the data segment from the timestamp in the data segment according to section, and for each data segment determined The key frame position of nearly playback time started starts, and is read out to include in the data segment to playback of data, and be sent to Playback apparatus is played back;Compared with the prior art, only need in scheme of the present invention by using key frame as start frame to Playback of data is sent to playback apparatus, so that transfer resource is saved, moreover, playback apparatus is without carrying out caching and frame point The processing such as analysis, can directly play back the data received, to improve playback efficiency.
Detailed description of the invention
Fig. 1 is the composed structure schematic diagram of video data of the present invention storage and playback system embodiment.
Fig. 2 is the schematic diagram of the control block, block of information and the data block that mark off in present invention storage equipment.
Fig. 3 is the schematic diagram data that is cached in access device of the present invention.
Fig. 4 is the composed structure schematic diagram of present invention storage apparatus embodiments.
Specific embodiment
In order to be clearer and more clear technical solution of the present invention, hereinafter, referring to the drawings and the embodiments, to institute of the present invention The scheme of stating is described in further detail.
Fig. 1 is the composed structure schematic diagram of video data of the present invention storage and playback system embodiment.As shown in Figure 1, packet It includes: management equipment and storage subsystem.
Wherein, storage subsystem, for being split to the video data for being obtained from any headend equipment, with data segment Form is stored, and in storage to magnetic disk media, the first frame of each data segment is key frame, and the corresponding every number of storage According to the section additional information of section, comprising: the timestamp information and location information for the key frame for including in data segment;
Management equipment, for when receiving the playback request of playback apparatus, determining comprising the data to playback of data Section, and notify to playback apparatus to carry out taking stream;
Storage subsystem, for when receive playback apparatus for any data section take stream request when, according to the data The section additional information of section, since the timestamp in the data segment is closest to the key frame position of playback time started, to the number It is read out according to include in section to playback of data, and is sent to playback apparatus and is played back.
System shown in Figure 1 can pass through application programming interfaces (API, Application Programming Interface) To carry out information exchange with external device.
In addition, the mode that cluster can be used in management equipment is set up, the work of load balancing can be used between each management equipment Mode.
As shown in Figure 1, may particularly include in above-mentioned storage subsystem: storage equipment and access device;Wherein, equipment is stored Number can be more than one, preferably, can be multiple.
Storage equipment and access device can individually be laid, and the function of the two can also be integrated together, specifically Implementation is unlimited, to be assumed by the way of individually laying in scheme of the present invention convenient for stating.
It stores equipment before the use, first it can be formatted by user, thus the memory space that equipment will be stored It is divided into the block of series of different, comprising: data block and block of information;The size of data block and block of information is fixed, and number According between block and block of information, there are one-to-one relationships;Wherein, section, the section of each data segment are attached for storing data for data block In the corresponding block of information of data block where adding information to be stored in the data segment.
The size of each data block and block of information can be determined according to actual needs, preferably, the size of each data block can For 64M, the size of each block of information can be 128K.
In addition, described different types of piece can also further comprise: control block;The size of control block is fixed, for storing Place stores the facility information of equipment, such as stores the title of equipment and/or store the mark of equipment, preferably, control block Size is also 128K, i.e., identical with the size of block of information.
Once initialization is completed, the information stored in control block usually will not change again, and the letter after the completion of initializing Ceasing is usually sky in block and data block.
Fig. 2 is the schematic diagram of the control block, block of information and the data block that mark off in present invention storage equipment.As shown in Fig. 2, There is a corresponding block of information, i.e. 1 corresponding informance block 1 of data block, data block n corresponding informance block n in each data block.
Access device, storage facilities and administration in video data storage and video data replayed section are set individually below Standby specific working mode is described in detail.
One) video data stores
In practical applications, when being recorded a video, that is, when needing to carry out video data storage, user can pass through client End configuration video recording plan is into management equipment;After management equipment gets the video recording plan of user setting, it can notify to connecing Enter equipment, the video recording plan can include: headend equipment mark takes the stream time started, takes the stream end time and takes stream protocol;Phase Ying Di, access device can take stream protocol according to described, from taking in the stream time started to the time range for taking the stream end time, from institute It states headend equipment and identifies acquisition video data at corresponding headend equipment.
Wherein, access device can carry out frame analysis to the video data for being obtained from headend equipment, determine every frame number respectively According to timestamp information and whether be key frame information, and since getting first key frame, execute following book office Reason: each non-key frame got by the newest key frame got and later caches, when getting next key frame When, determine whether the remaining space in the available block of application stores each frame data cached enough, if it is, by institute Each frame data of caching are sent in the data block and are stored, while informing transmitted by the storage equipment where the data block The timestamp information of each frame data and whether be key frame information, if it is not, then applying for an available block again, and will Each frame data cached, which are sent in the data block, to be stored, while being informed transmitted by the storage equipment where the data block Each frame data timestamp information and whether be key frame information;For the newest key frame got, institute is repeated State predetermined process.
That is, access device caches each frame data before a key frame to next key frame every time, Fig. 3 is The schematic diagram data cached in access device of the present invention, as shown in figure 3, when getting next key frame, access device It can then send each frame data cached in data block and store, send successfully, dispose each frame data cached.
When access device application available block, management equipment can be according to the strategy of load balancing, from each storage equipment Data block in for access device distribute an available block, available block be remaining space be greater than predetermined threshold data The specific value of block, the threshold value can be determined according to actual needs.
In addition, storage equipment can be directed to any data block of itself, available block will be assigned to from the data block and opened Begin to data to be stored in terminate, all data being stored in are stored as a data segment, and by the section additional information of the data segment Into the corresponding block of information of the data block.
Assuming that the remaining space of a data block is 64M, i.e., the data block is completely idle data block, and is assumed from this Data block is assigned to data available BOB(beginning of block), and access device is continuously stored in 8 data thereto, be stored in every time 8M data (for Simplify statement, it is assumed that the data volume being stored in every time is identical, and the data volume being stored in every time in practical application is not necessarily identical), then After being stored in 8 data, which is filled with, correspondingly, can be using the 64M data being stored in the data block as one Data segment only has a data segment in this case, in the data block.
Or, it is assumed that the remaining space of a data block is 64M, and assumes to be assigned to available block from the data block Starting, access device is continuously stored in 4 data thereto, it is stored in 8M data every time, and after being stored in 4 data, that is, it reaches The stream end time is taken, it correspondingly, then, in this case, should using the 32M data being stored in the data block as a data segment Also only there is a data segment in data block.
Again or, it is assumed that in a data block before had a data segment, the remaining space of the data block is 32M, and assume to be assigned to data available BOB(beginning of block) from the data block, access device is continuously stored in 4 data thereto, every time 8M data are stored in, then after be stored in 4 data, which is to be filled with, and correspondingly, will can be newly stored in the data block 32M data are as a data segment, will have two data segments in this case, in the data block.
Distinguishingly, it is assumed that the remaining space of a data block is 64M, and assumes to be assigned to data available from the data block BOB(beginning of block), access device are continuously stored in 7 data thereto, are stored in 9M data every time, then after being stored in 7 data, the number According to the remaining space for only having 1M in block, and the data of the 8th secondary deposit are 9M, are greater than 1M and therefore then need to apply for one again Available block can not be stored in any data for the remaining space of 1M, and the 9M data to be stored in can be deposited into applies again In available block.
By above-mentioned processing mode, may only there be a data segment in each data block, it is also possible to have multiple data Section, it is in the corresponding block of information of the data block that the section for having this multiple data segment respectively is attached if there being multiple data segments Add information.
The section additional information of each data segment is in addition to may include that the timestamp for the key frame for including is believed in data segment above-mentioned Except breath and location information, can also further comprise: at the beginning of data segment and the start bit of end time and data segment Set with length (size) etc., the position refers to physical location.
In addition, passing through above-mentioned processing mode, it is ensured that the first frame in each data segment is key frame.
Further more, storage equipment can also be directed to any data for being stored in itself for the ease of the playback of subsequent video data Section, by depositing at the beginning of the corresponding headend equipment mark of the data segment, the data segment and where end time, the data segment Data block number and the data segment number where storage device identification, the data segment are reported to management equipment, data block number and data segment Number to be distributed according to pre-defined rule, how to distribute with no restriction, as long as can be identified for that out that different data block and data segment are It can.
Correspondingly, management equipment can be directed to each data segment, report information foundation should according to the data segment is corresponding respectively The index information of data segment.
Two) video data plays back
Management equipment can be determined in the playback request for receiving playback apparatus according to the index information of each data segment Comprising the data segment to playback of data, and notify that playback apparatus, i.e. management equipment can will include number to be played back take stream According to data segment where the information such as storage device identification, the data block number at place, data segment number notify to playback apparatus.
Wherein, it can be carried in playback request: headend equipment mark, playback time started and playback end time.
It correspondingly, can comprising the data segment to playback of data are as follows: corresponding headend equipment is identified and carried in playback request Headend equipment identify period that identical and starting and end time limits and playback time started and playback and terminate There are the data segments of intersection between the period that time limits.
Storage equipment is receiving playback apparatus for any data section itself stored when stream being taken to request, can basis The section additional information of the data segment, since the timestamp in the data segment is closest to the key frame position of playback time started, It is read out to include in the data segment to playback of data, and is sent to playback apparatus and is played back.
Taking in stream request can carry: playback time started and playback end time;In this way, when receiving playback apparatus needle When stream being taken to request of any data section stored to itself, storage equipment can be from the closest playback of timestamp in the data segment The key frame position of time started starts, and is read out to include in the data segment to playback of data;Wherein, when the data segment End time earlier than or be equal to playback the end time when, the reading data in the data segment is finished, when the knot of the data segment When the beam time is later than the playback end time, the data before only reading the playback end time specifically can only read the data segment In timestamp closest to playback the end time key frame position before data.
Assuming that playback time started and playback end time are respectively 9:00 and 11:30, include the data to playback of data Section altogether there are three, respectively data segment 1, data segment 2 and data segment 3, wherein at the beginning of data segment 1 and the end time point Not Wei 8:30 and 9:30, at the beginning of data segment 2 and the end time is respectively 9:30 and 10:30, at the beginning of data segment 3 It is respectively 10:30 and 11:30 with the end time, then, for data segment 1, it will read out from timestamp closest to 9:00 The total data that starts of key frame position will read out total data therein and for data segment 2 and data segment 3.
Based on above-mentioned introduction, Fig. 4 is the composed structure schematic diagram of present invention storage apparatus embodiments.As shown in figure 4, packet It includes:
Memory module, for being stored in the form of data segment for the video data for being obtained from any headend equipment, The first frame of each data segment is key frame, and the corresponding section additional information for storing each data segment, comprising: is wrapped in data segment The timestamp information and location information of the key frame contained;
Playback module takes stream to ask for that ought receive playback apparatus for any data section stored in memory module When asking, according to the section additional information of the data segment, from the timestamp in the data segment closest to the key frame of playback time started Position starts, and is read out to include in the data segment to playback of data, and be sent to playback apparatus and played back.
Wherein, the memory space of memory module is divided into the block of series of different, comprising: data block and information Block;The size of data block and block of information is fixed, and there are one-to-one relationships between data block and block of information;
Section, the section additional information of each data segment are stored in the data block where the data segment to data block for storing data In corresponding block of information.
In addition, can also further comprise in section additional information: at the beginning of data segment and the end time;
Taking in stream request can carry: playback time started and playback end time;
Correspondingly, playback module takes stream for any data section stored in memory module receiving playback apparatus When request, since the timestamp in the data segment is closest to the key frame position of playback time started, to being wrapped in the data segment What is contained is read out to playback of data;Wherein, when the end time of the data segment is earlier than or equal to the playback end time, by this Reading data in data segment finishes, and when the end time of the data segment being later than the playback end time, only reading playback terminates Data before time.
The present invention discloses a kind of storage of video data and back methods, include the following steps A~C.
A, the video data for being obtained from any headend equipment is split, is stored in the form of data segment to magnetic disk media On, the first frame of each data segment is key frame, and the corresponding section additional information for storing each data segment, comprising: data segment In include key frame timestamp information and location information.
B, it when receiving the playback request of playback apparatus, determines comprising the data segment to playback of data, and notifies to give Playback apparatus is to carry out taking stream.
C, when receiving playback apparatus for any data section when stream being taken to request, according to the additional letter of the section of the data segment Breath, since the timestamp in the data segment is closest to the key frame position of playback time started, to including in the data segment It is read out to playback of data, and is sent to playback apparatus and is played back.
In practical applications, the memory space of magnetic disk media can be divided into the block of series of different, comprising: data Block and block of information;The size of data block and block of information is fixed, and there are one-to-one relationships between data block and block of information; Data block section for storing data, the section additional information of each data segment be stored in the data segment where the corresponding letter of data block It ceases in block.
In addition, can also further comprise in above-mentioned section of additional information: at the beginning of data segment and the end time;
Taking in stream request can carry: playback time started and playback end time;
Correspondingly, when receive playback apparatus for any data section take stream request when, can from the data segment when Between stab closest to playback the time started key frame position start, be read out to include in the data segment to playback of data; Wherein, when the end time of the data segment is earlier than or equal to the playback end time, the reading data in the data segment is finished, When the end time of the data segment being later than the playback end time, the data before the playback end time are only read.
In short, using scheme of the present invention, it is only necessary to by giving back to playback of data transmission using key frame as start frame Equipment is put, so that transfer resource is saved, moreover, playback apparatus is handled without carrying out caching and frame analysis etc., it can be direct The data received are played back, to improve playback efficiency.
In addition, when carrying out video data storage, the plan of load balancing can be used in management equipment in scheme of the present invention Data block slightly is distributed, so as to different data segments be distributed to storage as homogeneously as possible to different storage equipment, from And ensure that the safety and stability of data, when avoiding a certain storage device fails caused by mass data lose.
Further more, scheme of the present invention implement it is simple and convenient, consequently facilitating being popularized and being promoted.
In conclusion the above is merely preferred embodiments of the present invention, being not intended to limit the scope of the present invention. All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention Within protection scope.

Claims (12)

1. a kind of video data storage and playback system characterized by comprising management equipment and storage subsystem;
The storage subsystem, for being split to the video data for being obtained from any headend equipment, in the form of data segment It is stored, the first frame of each data segment is key frame, and the corresponding section additional information for storing each data segment, comprising: The timestamp information and location information for the key frame for including in data segment, wherein the storage subsystem is reported to management equipment The information of each data segment;
The management equipment, for reporting information to establish the index information of corresponding data section according to each data segment, when receiving When the playback request of playback apparatus, determined according to the index information of each data segment comprising the data segment to playback of data, and lead to Know to the playback apparatus to carry out taking stream;
The storage subsystem, for when receive the playback apparatus for any data section take stream request when, according to this The section additional information of data segment is right since the timestamp in the data segment is closest to the key frame position of playback time started Include in the data segment is read out to playback of data, and is sent to the playback apparatus and is played back;
The storage subsystem includes storage equipment and access device, and the number of the storage equipment is more than one,
The access device determines every frame for carrying out frame analysis to the video data for being obtained from any headend equipment respectively The timestamp information of data and whether be key frame information, and since getting first key frame, it executes following predetermined Processing: each non-key frame got by the newest key frame got and later caches, when getting next key When frame, determine whether the remaining space in the available block of application stores each frame data cached enough, if it is, will Each frame data cached, which are sent in the data block, to be stored, while being informed transmitted by the storage equipment where the data block Each frame data timestamp information and whether be key frame information, if it is not, then again apply an available block, and It sends each frame data cached in the data block and stores, while the storage equipment where informing the data block is sent out The timestamp information of each frame data sent and whether be key frame information;For the newest key frame got, repeat The predetermined process;
The management equipment is further used for, when the access device application available block, according to the strategy of load balancing, It is that the access device distributes an available block from the data block of each storage equipment, the available block is remaining empty Between be greater than predetermined threshold data block;
The storage equipment will be assigned to data available BOB(beginning of block) for any data block for itself from the data block Terminate to data deposit, all data being stored in are arrived as a data segment, and by the section additional information storage of the data segment In the corresponding block of information of the data block.
2. system according to claim 1, which is characterized in that
The memory space of the storage equipment is divided into the block of series of different, comprising: data block and block of information;It is described The size of data block and the block of information is fixed, and there is one-to-one close between the data block and the block of information System;
Section, the section additional information of each data segment are stored in the data block where the data segment to the data block for storing data In corresponding block of information.
3. system according to claim 2, which is characterized in that
Described different types of piece further comprises: control block;
The size of the control block is fixed, the facility information for storage equipment where storing.
4. system according to claim 1, which is characterized in that
The management equipment is further used for, and obtains the video recording plan of user setting, and notify to the access device, the record As plan includes: headend equipment mark, takes the stream time started, takes the stream end time and take stream protocol;
The access device is further used for, and takes stream protocol according to described, takes the stream time started to take stream to terminate to described from described In the time range of time, is identified from the headend equipment and obtain video data from corresponding headend equipment.
5. according to claim 1, system described in 2,3 or 4, which is characterized in that
The storage equipment, for being directed to any data section for being stored in itself, the corresponding headend equipment of the data segment is identified, At the beginning of the data segment and end time, the data segment where storage device identification, the data block where the data segment Number and the data segment number be reported to the management equipment, the data block number and data segment number are to distribute according to pre-defined rule;
The management equipment is further used for, and for each data segment, reports information to establish according to the data segment is corresponding respectively The index information of the data segment, when receiving the playback request of the playback apparatus, according to the index information of each data segment, really It makes comprising the data segment to playback of data;
Wherein, it is carried in the playback request: headend equipment mark, playback time started and playback end time;
The data segment comprising to playback of data are as follows: the front end carried in corresponding headend equipment mark and the playback request The period and the playback time started and playback knot that device identification is identical and starting and end time limits There are the data segments of intersection between the period that the beam time limits.
6. system according to claim 1,2,3 or 4, which is characterized in that
Described section of additional information further comprises: at the beginning of data segment and the end time;
Described take in stream request carries: playback time started and playback end time;
The storage equipment takes stream to request for that ought receive the playback apparatus for any data section itself stored When, since the timestamp in the data segment is closest to the key frame position of the playback time started, to being wrapped in the data segment What is contained is read out to playback of data;Wherein, when the end time of the data segment is earlier than or equal to the playback end time, Reading data in the data segment is finished, when the end time of the data segment being later than the playback end time, is only read Data before the playback end time;The data read are sent to the playback apparatus to play back.
7. a kind of storage equipment characterized by comprising
Memory module, for being stored in the form of data segment, each for the video data for being obtained from any headend equipment The first frame of data segment is key frame, and the corresponding section additional information for storing each data segment, comprising: includes in data segment The timestamp information and location information of key frame, wherein the memory module is located in storage subsystem, the storage subsystem The information of each data segment is reported to management equipment;
The management equipment, for reporting information to establish the index information of corresponding data section according to each data segment, when receiving When the playback request of playback apparatus, determined according to the index information of each data segment comprising the data segment to playback of data, and lead to Know to the playback apparatus to carry out taking stream;
Playback module takes stream to ask for that ought receive playback apparatus for any data section stored in the memory module When asking, according to the section additional information of the data segment, from the timestamp in the data segment closest to the key frame of playback time started Position starts, and is read out to include in the data segment to playback of data, and is sent to the playback apparatus and is played back;
The storage subsystem includes the storage equipment and access device, and the number of the storage equipment is more than one,
The access device determines every frame for carrying out frame analysis to the video data for being obtained from any headend equipment respectively The timestamp information of data and whether be key frame information, and since getting first key frame, it executes following predetermined Processing: each non-key frame got by the newest key frame got and later caches, when getting next key When frame, determine whether the remaining space in the available block of application stores each frame data cached enough, if it is, will Each frame data cached, which are sent in the data block, to be stored, while being informed transmitted by the storage equipment where the data block Each frame data timestamp information and whether be key frame information, if it is not, then again apply an available block, and It sends each frame data cached in the data block and stores, while the storage equipment where informing the data block is sent out The timestamp information of each frame data sent and whether be key frame information;For the newest key frame got, repeat The predetermined process;
The management equipment is further used for, when the access device application available block, according to the strategy of load balancing, It is that the access device distributes an available block from the data block of each storage equipment, the available block is remaining empty Between be greater than predetermined threshold data block;
The storage equipment will be assigned to data available BOB(beginning of block) for any data block for itself from the data block Terminate to data deposit, all data being stored in are arrived as a data segment, and by the section additional information storage of the data segment In the corresponding block of information of the data block.
8. storage equipment according to claim 7, which is characterized in that
The memory space of the memory module is divided into the block of series of different, comprising: data block and block of information;It is described The size of data block and the block of information is fixed, and there is one-to-one close between the data block and the block of information System;
Section, the section additional information of each data segment are stored in the data block where the data segment to the data block for storing data In corresponding block of information.
9. storage equipment according to claim 8, which is characterized in that
Described section of additional information further comprises: at the beginning of data segment and the end time;
Described take in stream request carries: playback time started and playback end time;
The playback module is receiving the playback apparatus taking for any data section stored in the memory module When stream request, since the timestamp in the data segment is closest to the key frame position of the playback time started, to the data Include in section is read out to playback of data;Wherein, terminate when the end time of the data segment earlier than or equal to the playback When the time, the reading data in the data segment is finished, when the end time of the data segment being later than the playback end time, Only read the data before the playback end time.
10. a kind of video data storage and back method characterized by comprising
Storage subsystem is split the video data for being obtained from any headend equipment, is stored in the form of data segment to disk On medium, the first frame of each data segment is key frame, and the corresponding section additional information for storing each data segment, comprising: number According to the timestamp information and location information of the key frame for including in section, the storage subsystem reports each data segment to management equipment Information;
Management equipment reports information to establish the index information of corresponding data section according to each data segment, when receiving playback apparatus It when playback request, is determined according to the index information of each data segment comprising the data segment to playback of data, and notifies to return to described Equipment is put to carry out taking stream;
Storage subsystem when receive the playback apparatus for any data section take stream request when, according to the section of the data segment Additional information, since the timestamp in the data segment is closest to the key frame position of playback time started, in the data segment Include is read out to playback of data, and is sent to the playback apparatus and is played back;
The storage subsystem includes storage equipment and access device, and the number of the storage equipment is more than one,
The access device determines every frame for carrying out frame analysis to the video data for being obtained from any headend equipment respectively The timestamp information of data and whether be key frame information, and since getting first key frame, it executes following predetermined Processing: each non-key frame got by the newest key frame got and later caches, when getting next key When frame, determine whether the remaining space in the available block of application stores each frame data cached enough, if it is, will Each frame data cached, which are sent in the data block, to be stored, while being informed transmitted by the storage equipment where the data block Each frame data timestamp information and whether be key frame information, if it is not, then again apply an available block, and It sends each frame data cached in the data block and stores, while the storage equipment where informing the data block is sent out The timestamp information of each frame data sent and whether be key frame information;For the newest key frame got, repeat The predetermined process;
The management equipment is further used for, when the access device application available block, according to the strategy of load balancing, It is that the access device distributes an available block from the data block of each storage equipment, the available block is remaining empty Between be greater than predetermined threshold data block;
The storage equipment will be assigned to data available BOB(beginning of block) for any data block for itself from the data block Terminate to data deposit, all data being stored in are arrived as a data segment, and by the section additional information storage of the data segment In the corresponding block of information of the data block.
11. according to the method described in claim 10, it is characterized in that,
The memory space of the magnetic disk media is divided into the block of series of different, comprising: data block and block of information;It is described The size of data block and the block of information is fixed, and there is one-to-one close between the data block and the block of information System;
Section, the section additional information of each data segment are stored in the data block where the data segment to the data block for storing data In corresponding block of information.
12. according to the method for claim 11, which is characterized in that
Described section of additional information further comprises: at the beginning of data segment and the end time;
Described take in stream request carries: playback time started and playback end time;
It is described when receiving the playback apparatus for any data section when stream being taken to request, according to the additional letter of the section of the data segment Breath, since the timestamp in the data segment is closest to the key frame position of playback time started, to including in the data segment It is read out to playback of data and includes:
It is directed to when stream being taken to request of any data section when receiving the playback apparatus, it is closest from the timestamp in the data segment The key frame position of the playback time started starts, and is read out to include in the data segment to playback of data;
Wherein, when the end time of the data segment is earlier than or equal to the playback end time, by the data in the data segment Reading finishes, when the end time of the data segment being later than the playback end time, only read the playback end time it Preceding data.
CN201410391348.8A 2014-08-11 2014-08-11 A kind of storage of video data and playback system, device and method Active CN105338297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410391348.8A CN105338297B (en) 2014-08-11 2014-08-11 A kind of storage of video data and playback system, device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410391348.8A CN105338297B (en) 2014-08-11 2014-08-11 A kind of storage of video data and playback system, device and method

Publications (2)

Publication Number Publication Date
CN105338297A CN105338297A (en) 2016-02-17
CN105338297B true CN105338297B (en) 2019-03-12

Family

ID=55288542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410391348.8A Active CN105338297B (en) 2014-08-11 2014-08-11 A kind of storage of video data and playback system, device and method

Country Status (1)

Country Link
CN (1) CN105338297B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108023906B (en) * 2016-10-31 2020-06-12 杭州海康威视系统技术有限公司 Breakpoint continuous transmission method and device of monitoring video
CN106649602B (en) * 2016-11-25 2018-09-04 掌阅科技股份有限公司 Business object data processing method, device and server
CN107801092A (en) * 2017-09-15 2018-03-13 青岛海信移动通信技术股份有限公司 A kind of video speed playing method and device
CN107798718B (en) * 2017-10-31 2021-12-07 厦门黑镜科技有限公司 Animation playback method and device
EP3707700A1 (en) * 2017-11-10 2020-09-16 SES-Imagotag GmbH System for synchronized video playback on a number of playback devices
CN108536759B (en) * 2018-03-20 2020-08-04 阿里巴巴集团控股有限公司 Sample playback data access method and device
CN110597453A (en) * 2018-06-13 2019-12-20 杭州海康威视系统技术有限公司 Video data storage method and device in cloud storage system
CN111125436B (en) * 2018-10-31 2023-08-08 杭州海康威视系统技术有限公司 Data management method, device and system
CN111447455A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Live video stream playback processing method and device and computing equipment
CN110418209B (en) * 2019-06-24 2021-07-20 荣耀终端有限公司 Information processing method applied to video transmission and terminal equipment
CN110446118B (en) * 2019-07-01 2021-08-20 创新先进技术有限公司 Video resource preprocessing method and device and video resource downloading method and device
CN111432283B (en) * 2019-11-27 2022-04-05 杭州海康威视数字技术股份有限公司 Video playback time determination method and device
EP4138428A4 (en) * 2020-04-17 2023-06-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data processing method, communication device and computer storage medium
CN112073791A (en) * 2020-08-03 2020-12-11 上海商泰汽车信息系统有限公司 Playing synchronization method and device, storage medium and user side
CN112135163A (en) * 2020-09-27 2020-12-25 京东方科技集团股份有限公司 Video playing starting method and device
CN112869767A (en) * 2021-01-11 2021-06-01 青岛海信医疗设备股份有限公司 Ultrasonic image storage method and device and ultrasonic equipment thereof
CN113495901B (en) * 2021-04-20 2023-10-13 河海大学 Quick retrieval method for variable-length data blocks

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246504A (en) * 2006-03-31 2006-09-14 Toshiba Corp Encode method, reproduction method, and reproduction apparatus for image information
CN102325244A (en) * 2011-08-26 2012-01-18 杭州海康威视数字技术股份有限公司 Method for rapidly positioning videos by time, video storage control device and positioning device
CN102413358A (en) * 2011-08-12 2012-04-11 青岛海信传媒网络技术有限公司 Storage and playing method, device and system of streaming media file
CN102945679A (en) * 2012-09-29 2013-02-27 华为技术有限公司 Video data processing method and video data read-write equipment
CN103051931A (en) * 2011-10-11 2013-04-17 中兴通讯股份有限公司 Method, server, client and system for recording and playing replay program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246504A (en) * 2006-03-31 2006-09-14 Toshiba Corp Encode method, reproduction method, and reproduction apparatus for image information
CN102413358A (en) * 2011-08-12 2012-04-11 青岛海信传媒网络技术有限公司 Storage and playing method, device and system of streaming media file
CN102325244A (en) * 2011-08-26 2012-01-18 杭州海康威视数字技术股份有限公司 Method for rapidly positioning videos by time, video storage control device and positioning device
CN103051931A (en) * 2011-10-11 2013-04-17 中兴通讯股份有限公司 Method, server, client and system for recording and playing replay program
CN102945679A (en) * 2012-09-29 2013-02-27 华为技术有限公司 Video data processing method and video data read-write equipment

Also Published As

Publication number Publication date
CN105338297A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105338297B (en) A kind of storage of video data and playback system, device and method
CN103870202B (en) A kind of distributed storage method and system of block device
CN103116552A (en) Method and device for distributing storage space in distributed type storage system
CN105224255B (en) A kind of storage file management method and device
CN107436725A (en) A kind of data are write, read method, apparatus and distributed objects storage cluster
CN102291256B (en) A kind of querying method of monitor data and equipment
CN108399050B (en) Data processing method and device
CN103986779B (en) A kind of application data transmission method, device and terminal device
CN102244758A (en) Video-recording-file-based data acquisition method and equipment
CN102298547A (en) Data backup method and device
EP3490194B1 (en) Method and device for playing video
CN108093016A (en) A kind of picture storage method, device and video monitoring system
CN106933868A (en) A kind of method and data server for adjusting data fragmentation distribution
CN103020236B (en) A kind of video record search method, system and distributed data base system
CN109240607A (en) A kind of file reading and device
CN105100815A (en) Flow data distributed meta-data management method based time sequence
CN102387347A (en) Video storing and instant replay system based on IP (identification of position)-SAN (storage area networking) direct storage technology
CN104021088B (en) log storing method and device
CN108347459A (en) A kind of high in the clouds data quick storage method and device
CN105828017B (en) A kind of cloud storage access system and method towards video conference
CN108762984A (en) A kind of method and device of continuity data backup
CN107820052A (en) Fusion method and system based on assessment of bids business datum and video data
CN104079600B (en) File memory method, device, access client and meta data server system
CN106155925A (en) A kind of method and device obtaining data
CN109144782A (en) A kind of data reconstruction method and device

Legal Events

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