CN101729529A - Device and method for real-time stream file storage - Google Patents

Device and method for real-time stream file storage Download PDF

Info

Publication number
CN101729529A
CN101729529A CN200910110147A CN200910110147A CN101729529A CN 101729529 A CN101729529 A CN 101729529A CN 200910110147 A CN200910110147 A CN 200910110147A CN 200910110147 A CN200910110147 A CN 200910110147A CN 101729529 A CN101729529 A CN 101729529A
Authority
CN
China
Prior art keywords
video recording
record task
video
file
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910110147A
Other languages
Chinese (zh)
Inventor
张鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910110147A priority Critical patent/CN101729529A/en
Publication of CN101729529A publication Critical patent/CN101729529A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a device and a method for real-time stream file storage. The device for the real-time stream file storage disclosed by the invention comprises a monitoring front end, an encoding module, a real-time transport protocol package module, a video task management module, a video storage module and a video playing module. The method disclosed by the invention comprises the following steps of: respectively establishing a logic layer file and a physical layer file for each video storage task for storing code streams; enabling each video task to correspond to a plurality of logic MPEG4 files on a logic layer; storing video data of a predetermined time length by each logic MPEG4 file; storing the plurality of MPEG4 files on the same physical file; and recording an initial storage position of each logic file on the physical file so that a mapping relationship between the logic file and the physical file is formed. The device and the method can solve the problem of excessive file fragments in a video storage process of the MPEG4 files, and further can solve the problem that the file of which the video is being recorded cannot be searched or played.

Description

A kind of real-time streaming files storage device and method
Technical field
The present invention relates to a kind of method and device thereof of communication technical field real-time streaming files storage, relate in particular to the videotape storage means and the device in video monitoring service field.
Background technology
Video monitoring encoder (claiming front monitoring front-end again), the image of collection site, sound, carry out local storage behind the compressed coding under certain conditions or send the equipment of the embedded corresponding software of stream medium data, also comprise camera and The Cloud Terrace to the streaming media server of appointment.The front monitoring front-end video recording mainly contains three kinds of video recordings: regularly video recording, manually video recording, alarm video recording.Regularly video recording is to set the random time section as required by the user to record a video, and has arrived the time started of setting, front monitoring front-end meeting automatic video recording; Arrived the concluding time of setting, front monitoring front-end will stop video recording automatically.Manually video recording is to set record task by front monitoring front-end, allows front monitoring front-end begin video recording immediately, and video time is the time of manual record setting.Alarm video recording is a front monitoring front-end when having monitored abnormal conditions, records a video immediately.
Prior art is that each record task is directly saved as a MPEG4 file according to mpeg 4 standard (Moving PictureExperts Group Motion Picture Experts Group), but this method has certain defective, for alarm video recording or manual record task, each alarm video recording or manual record task can generate a MPEG4 file, sometimes alarm or manual video time are shorter, the MPEG4 file that generates is smaller, causes having on the hard disk a lot of little file fragmentations, influences hard disk performance.Prior art is for recording the MPEG4 file of finishing, can play and various F.F.s, rewind down, operations such as positioning playing, but for the file of recording a video, since the intrinsic formal qualification of MPEG4 before the MPEG4 file does not generate fully, its index information is incomplete, can't play in real time.
Summary of the invention
The present invention has defined a kind of real-time streaming files storage format and storage means and device, can solve in the MPEG4 file video recording storing process, and long-time video recording causes the too much problem of file fragmentation.Thereby, can also solve further that the file of recording a video can not be searched or the problem of operation such as broadcast.
Main thought of the present invention is: real-time streaming files is divided into logical layer and physical layer file, each record task is corresponding a plurality of logic MPEG4 files on logical layer, each logic MPEG4 file storage certain time length (can be self-defined, such as one minute duration of logical file storage) the video recording data, each logic MPEG4 file is a complete MPEG4 file like this, can play and carry out F.F., rewind down, positioning playing, a plurality of logic MPEG4 files are kept on the physical file (such as one section video recording 60 minutes, just comprise 60 logical files), in database, write down this logical file information and the position in corresponding physical file simultaneously.
A kind of real-time streaming files storage device disclosed by the invention comprises:
Front monitoring front-end is used for gathering in real time audio-video signal;
Coding module is used for the audio-video signal of front monitoring front-end collection is carried out compressed encoding;
RTP (Real-time Transport Protocol real time transport protocol) packetization module is used for obtaining code stream and converting thereof into a plurality of RTP bags from code device;
The record task administration module is used to detect and receive record task and the playing task that the user issues, and described record task is issued to the video recording memory module, and described playing task is issued to the video recording playing module;
The video recording memory module, be used to receive the described record task that described record task administration module issues, and according to described record task establishment logical layer and physical layer file storage RTP bag, each record task is corresponding a plurality of logic MPEG4 files on logical layer, the video recording data of each logic MPEG4 file storage Preset Time length, and a plurality of logic MPEG4 files are kept on the physical file, form mapping relations with physical file.
The video recording playing module is used to receive the described playing task that described record task administration module issues, and transfers the video recording resource and play from memory module.
In the above-mentioned real-time streaming files storage device, described management of video module is accepted the record task that the user issues and is comprised: regularly record task, alarm record task, manual record task;
For described timing record task, described record task administration module is used to also judge that the current time whether to regularly recording a video the time started, is then the timing record task to be issued to the video recording memory module and to begin storage video recording code stream; And be used to judge that the current time whether to regularly recording a video the concluding time, is then to finish video recording;
For described alarm record task, described record task administration module also is used to obtain pre-record duration and the minimum alarm duration that the user sets, and according to the described pre-video recording of the duration establishment buffering area of pre-recording, described pre-video recording buffering area is used to write down trigger alarms preceding video recording; Described record task administration module also is used to judge whether to have started regularly record task; If start, described record task administration module is used to also judge that the described time of pre-recording adds the above minimum alarm duration time corresponding section and whether is timed the video recording place time period and comprises; Do not add the above minimum alarm duration time corresponding Duan Wei and be timed video recording and comprise if start regularly record task or the described time of pre-recording when receiving alarming assignment, the pre-video recording code stream that then described record task administration module also is used for receiving in the described duration of pre-recording of buffer memory before the alarming assignment deposits the video recording memory module in.
For described manual record task, whether the time period that described record task administration module also is used to judge whether start the regularly video recording and the duration place of manually recording a video is timed video recording institute comprises.
Further, the record task administration module also is used to safeguard two forms described in the described real-time streaming files storage device: record task form tblTask and video record form tblRecord;
Described record task form tblTask is used for the information of each record task that recording user issues, and comprising: record task numbering, video recording zero-time, concluding time and video recording type;
Described video record form tblRecord is used to write down the information of each record task, comprising: record task numbering, video recording physical file name, video recording logical file name, initial memory location and logical file the end memory location in physical file of logical file in physical file.
According to storage device provided by the invention, the invention also discloses a kind of enforcement stream file stores method, comprise the steps:
Start front monitoring front-end and gather audio-video signal, and described audio-video signal is sent to audio/video coder;
Audio/video coder carries out sending to the RTP packing apparatus behind the compressed encoding to the data of gathering;
The RTP packing apparatus is converted to a plurality of RTP bags with the code stream that obtains;
The record task administration module detects user instruction, has detected record task and then described record task has been handed down to the video recording memory module, and described record task comprises regularly record task, alarm record task, manual record task;
The video recording memory module begins to store described RTP bag after receiving described record task, create physical layer file and logical layer file at this record task, each record task is corresponding a plurality of logical files on logical layer, the video recording data of each logical file storage Preset Time length, described a plurality of logical file is kept on the physical file, set up the mapping relations of described physical file and described a plurality of logical files, then described RTP bag is write logical file, actual is to write to the skew original position that logical file is mapped in physical file.
In above-mentioned enforcement stream file stores method, when described record task administration module detects the user and issues regularly record task, described real-time streaming files storage means also comprises: described record task administration module is judged if the current time records a video the time started to timing, then regularly record task is issued to the video recording storage device, judge if the current time, then finishes this video recording storage to regularly recording a video the concluding time;
Issue alarm during record task when described record task administration module detects the user, described real-time streaming files storage means also comprises:
Described record task administration module obtains pre-record duration and the minimum alarm duration that the user sets;
And judge if having started regularly record task and the described time of pre-recording adds the above minimum alarm duration time corresponding section and all be timed video recording and comprise, then need not store described alarm record task; Otherwise the pre-video recording code stream that will receive in the described duration of pre-recording of buffer memory before the alarming assignment deposits the video recording memory module in, again the video recording code stream in the minimum alarm of the storage duration;
When described record task administration module detects the user and issues manual record task, described real-time streaming files storage means also comprises: described record task administration module judges that being timed video recording institute as if the time period that has started the regularly video recording and the duration place of manually recording a video comprises, then, store otherwise begin video recording according to manual video recording duration without repeated storage.
Further, in the above-mentioned real-time streaming files storage means, also comprise:
At each record task, described record task administration module writes down following data in record task form tblTask when record task finishes: this record task numbering, this video recording zero-time, concluding time and video recording type;
At each record task, described record task administration module writes down this record task numbering, video recording physical file name, video recording logical file name, initial memory location and logical file the end memory location in physical file of logical file in physical file in video record form tblRecord when record task finishes.
Adopt the method for the invention and device, compared with prior art, solved in the MPEG4 file storage process, long-time video recording causes the too much problem of file fragmentation, has saved the disk space that takies, and has improved storage efficiency.
Description of drawings
Fig. 1 apparatus of the present invention structural representation;
Physical file and logical file mapping relations figure in Fig. 2 memory module of the present invention;
The flow chart of Fig. 3 the invention process stream file stores method
Regularly the record a video flow chart of stores processor of Fig. 4 the present invention;
Fig. 5 the present invention alarms the flow chart of video recording stores processor;
Manually the record a video flow chart of stores processor of Fig. 6 the present invention.
Embodiment
Real-time streaming files storage means disclosed by the invention can solve the too much problem of prior art video file fragment.Also solve the defective that the file recording a video can not read, play further.The main thought of the present invention is: for each record task is created the code stream that logical layer file and physical layer file come stores processor to cross respectively, make each record task corresponding a plurality of logic MPEG4 files on logical layer, the video recording data of each logic MPEG4 file storage Preset Time length, and a plurality of logic MPEG4 files are kept on the physical file, and write down the initial memory location of each logical file on physical file.Like this, just form mapping relations between logical file and physical file.Very thin introduction will be carried out to the device of real-time streaming files storage means disclosed by the invention and storage in this part.
As shown in Figure 1, the device of real-time streaming files storage of the present invention comprises:
101 front monitoring front-ends are used for gathering in real time audio-video signal;
102 coding modules are used for the audio-video signal of front monitoring front-end collection is carried out compressed encoding;
The 103RTP packetization module is used for obtaining code stream and converting thereof into a plurality of RTP bags from code device;
104 record task administration modules are used to detect and receive the record task that the user issues, and described record task is issued to the video recording memory module;
105 video recording memory modules are used to receive the described record task that described record task administration module issues, and store the RTP bag according to described record task establishment logical layer and physical layer file, and set up the mapping relations between logical file and physical file;
106 video recording playing modules are used to receive the described playing task that described record task administration module issues, and transfer the video recording resource and play from memory module.
Further, the record task administration module is accepted the record task that the user issues and is comprised: regularly record task, alarm record task, manual record task;
For described timing record task, described record task administration module is used to also judge that the current time whether to regularly recording a video the time started, is then the timing record task to be issued to the video recording memory module and to begin storage video recording code stream; And be used to judge that the current time whether to regularly recording a video the concluding time, is then to finish video recording;
For described alarm record task, described record task administration module also is used to obtain pre-record duration and the minimum alarm duration that the user sets, and according to the described pre-video recording of the duration establishment buffering area of pre-recording, described pre-video recording buffering area is used to write down trigger alarms preceding video recording; Described record task administration module also is used to judge whether to have started regularly record task; If start, described record task administration module is used to also judge that the described time of pre-recording adds the above minimum alarm duration time corresponding section and whether be timed the video recording place time period and comprise, and is then to store described alarm record task; If not starting regularly record task or the described time of pre-recording when receiving alarming assignment adds the above minimum alarm duration time corresponding Duan Wei and is timed video recording and comprises, then described record task administration module is used for that also the alarm record task is issued to the video recording memory module and starts the video recording storage, before the storage video recording, will receive alarming assignment earlier before pre-video recording code stream in the described duration of pre-recording of buffer memory deposit the video recording memory module in.
For described manual record task, whether the time period that described record task administration module also is used to judge whether start the regularly video recording and the duration place of manually recording a video is timed video recording institute comprises.
Videotape storage means disclosed by the invention is by the logical layer file being set and the physical layer file is stored code stream, and sets up that mapping relations between logical layer file and the physical layer file realize.As shown in Figure 2, each record task is corresponding a plurality of logic MPEG4 files on logical layer, lgcFile1.mp4, lgcFile2.mp4......lgcFilen.mp4 (n is a natural number), (duration of each lgcFile1.mp4 file storage video recording can be pre-set as required for each logic MPEG4 file storage Preset Time length, such as setting 1 minute video recording of each lgcFile1.mp4 file storage duration) the video recording data, a plurality of logic MPEG4 files are kept on the physical file phyFile1.mp4.RTP bag is write logical file, and actual is to write to the skew original position that logical file is mapped in physical file, forms mapping relations between logical file and physical file.
Need to prove, in described record task administration module, also preestablished two forms: record task form tblTask and video record form tblRecord; The record task administration module also is used to safeguard this two forms.Wherein record task form tblTask has set some items of information, is used to write down the statistical information of each record task, comprising: record task numbering, video recording zero-time, concluding time and video recording type etc.Video record form tblRecord has also set some items of information, be used to write down the stored information of each record task, comprise: record task numbering, video recording physical file name, video recording logical file name, initial memory location and logical file the information such as end memory location in physical file of logical file in physical file.Above-mentioned record task form and video record form can be the excel forms, can be other forms also, also can predefined as required other items of information in the form.After item of information writes form, in the process of storage record task, will be in the automatic recording-related information of item of information correspondence position.
Illustrate, be the embodiment of two predefined record task form tblTask and video record form tblRecord as hereinafter form table 1 and table 2.As shown in table 1 is the situation of record task form record, record record task numbering, record task beginning and ending time, video recording type, video recording duration etc.; As shown in table 2 is the situation of record task form record, record record task numbering, video recording physical file name, video recording logical file name, initial memory location and logical file the information such as end memory location in physical file of logical file in physical file.
Figure G2009101101475D0000081
Table 1
The field sequence number Field name The field implication Data type
??1 ??TaskID Record task ID ??16Byte
??2 ??phyFileName The video recording physical file name ??256Byte
??3 ??lgcFileName The video recording logical file name ??256Byte
The field sequence number Field name The field implication Data type
??4 ??offsetBegin Logical file is initial memory point in physical file ??4Byte
??5 ??offsetEnd Logical file finishes memory point in physical file ??4Byte
??6 ??StartRecTime The logical file video recording time started ??4Byte
??7 ??StopRecTime The logical file video recording concluding time ??4Byte
??8 ??HasTimeRecor??d Whether this logical file video time section has started regularly video recording ??1Byte
Table 2
Be described in further detail below in conjunction with the enforcement of specific embodiments and the drawings technical solution of the present invention.
Embodiment one
Below in conjunction with Figure of description real-time streaming files storage means disclosed by the invention is described in detail, so that better understand the present invention.
As shown in Figure 3, be the flow chart of the invention process stream file stores method.Enforcement stream file stores procedure provided by the invention is as follows:
301 start front monitoring front-end gathers audio-video signal, is sent to coding module;
302 coding modules carry out issuing the RTP packing apparatus behind the compressed encoding to the data of gathering by audio/video coder;
303 obtain source code flow and are converted into a plurality of RTP bag from encoder by the RTP packing apparatus;
304 record task administration modules detect user instruction, have detected record task and then described record task have been handed down to the video recording memory module;
305 video recording memory modules begin to store described RTP bag after receiving described record task, create physical layer file and logical layer file at this record task, each record task is corresponding a plurality of logical files on logical layer, the video recording data of each logical file storage Preset Time length, described a plurality of logical file is kept on the physical file, set up the mapping relations of described physical file and described a plurality of logical files, then described RTP bag is write logical file, actual is to write to the skew original position that logical file is mapped in physical file;
306 record task administration modules are recorded in the information of this record task among record task form tblTask and the video record form tblRecord.
Embodiment two
For the different record task that the user issues, the record task administration module detects and manages it.When receiving regularly record task, the record task administration module will be judged the current time earlier whether to regularly recording a video the time started, and to time of beginning of record task regularly, then regularly record task is issued to the video recording memory module and begins the storage code stream of recording a video; Whether the record task administration module also will judge the current time to regularly recording a video the concluding time, to the concluding time, then finishes the storage of video recording memory module.
As shown in Figure 4, handle the regularly flow chart of record task for the record task administration module, step is as follows:
401 record task administration modules receive regularly record task;
402 record task administration modules judge whether regularly to record a video the time started, are then to jump to 403; , then not returning step 402 continues to judge;
403 video recording memory modules are created physical layer file and logical layer files, set up the mapping relations of logical file and physical file, then the RTP bag are write logical file, and actual is to write to the skew original position that logical file is mapped in physical file;
404 record task administration modules judge whether to record a video and regularly record a video the concluding time, are then to jump to 405; , then not returning step 404 continues to judge;
405 finish the video recording storage, the record task administration module with the information corresponding record of this record task at record task form tblTask and video record form tblRecord.
Embodiment three
When receiving the alarm record task, the record task administration module at first obtains the duration of pre-recording (supposing 10 seconds) and minimum alarm duration of setting, judges whether to have started regularly record task then; If started regularly record task, the record task administration module will judge that also the described time of pre-recording adds the above minimum alarm duration time corresponding section and whether is timed the video recording place time period and comprises, in being included in, then need not store described alarm record task.If the record task administration module judges that not starting regularly record task or the described time of pre-recording when receiving alarming assignment adds the above minimum alarm duration time corresponding Duan Wei and be timed video recording and comprise, then create pre-video recording buffering area according to the described duration of pre-recording, be used for the video recording that record triggers alarm preceding (10 seconds), deposit the described duration code stream of pre-recording in the video recording memory module earlier, the video recording memory module is stored the code stream behind the alarm time again.
Alarm is recorded a video storing process as shown in Figure 5:
501 record task administration module receiving alarm record task;
502 record task administration modules obtain pre-record duration and the minimum alarm duration that the user sets, and create the buffering area of pre-recording according to the duration of pre-recording;
503 record task administration modules judge whether to start regularly record task; Be then to jump to step 504; Otherwise jump to 505;
504 record task administration modules judge that the duration of pre-recording adds whether minimum alarm duration time corresponding section is timed video recording and comprises, and is then to store described alarm record task; , then do not jump to step 505;
505 video recording memory modules are created physical layer file and logical layer files, and the pre-video recording code stream that will receive earlier in the duration of pre-recording that is buffered in the buffering area of pre-recording before the alarming assignment deposits in;
506 video recording memory modules are stored the video recording code stream in the minimum alarm duration again;
507 storages finish, the record task administration module with the information corresponding record of this record task at record task form tblTask and video record form tblRecord.
Embodiment four
Manually the video recording storing process is as shown in Figure 6:
601 record task administration modules receive manual record task;
602 record task administration modules judge whether to start regularly video recording, are to jump to step 603; , do not jump to step 604;
The time period at the manual video recording of 603 record task administration modules judgement duration place is timed video recording institute and comprises, and is to record a video without repeated storage; , do not jump to 604;
604 video recording memory modules are created physical layer file and logical layer files, set up the mapping relations of logical file and physical file, then described RTP bag are write logical file, and actual is to write to the skew original position that logical file is mapped in physical file;
605 record task administration modules are received the instruction that the user stops manually video recording and are then finished storage, then with the information corresponding record of this record task at record task form tblTask and video record form tblRecord.
Utilize method and apparatus disclosed by the invention, when alarming video recording or manual video time more in short-term, the generation video file may be timed video file and comprise.Vice-versa, the place time period of regularly recording a video also might manually be recorded a video or be alarmed video recording and be comprised.In a word, according to spirit of the present invention, implementation method of the present invention can have multiple variation.So, reduced the generation of little file fragmentation.Further, when playing, broadcast demand according to the user, in database, find earlier the position in relevant logical file and the corresponding physical file, play the interrelated logic file, can't playback problem thereby solve the file recording a video,, reached the requirement that the user plays in real time to video file.Be included in the period of timing video recording if alarm video recording and manually record a video, just need not store separately, get final product from regularly searching in the video recording, playing.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within the protection range of the appended claim of the present invention.

Claims (14)

1. real-time streaming files storage device is characterized in that comprising:
The video recording memory module, be used for creating logical layer and physical layer file storage code stream at the video recording store tasks that receives, the corresponding a plurality of logical files of each described video recording store tasks, the code stream of each logical file storage Preset Time length, a plurality of logical files are kept on the physical file, and described logical file and described physical file form mapping relations.
2. according to the described real-time streaming files storage device of claim 1, it is characterized in that described real-time streaming files storage device also comprises the record task administration module,
Described record task administration module is used for controlling described video recording memory module and carrying out described video recording store tasks when described video recording store tasks executive condition is satisfied in judgement.
3. according to the described real-time streaming files storage device of claim 2, it is characterized in that, described video recording store tasks is regularly a record task, described record task administration module, be used to specifically judge that whether the current time is to regularly recording a video the time started, be then the timing record task to be issued to the video recording memory module and to begin to store the code stream that real time transport protocol RTP packetization module is sent; And be used to judge that the current time whether to regularly recording a video the concluding time, is then to finish record task.
4. according to the described real-time streaming files storage device of claim 2, it is characterized in that described video recording store tasks is the alarm record task,
Described record task administration module specifically is used to obtain the pre-record duration and the minimum duration of alarming of setting, and creates pre-video recording buffering area according to the described duration of pre-recording, and described pre-video recording buffering area is used to write down the video recording that triggers before alarming;
Described record task administration module also is used to judge whether to have started regularly record task; If start, described record task administration module is used to also judge that the described duration of pre-recording adds the above minimum alarm duration time corresponding section and whether is timed the video recording place time period and comprises, and is then to store described alarm record task; If not starting regularly record task or the described time of pre-recording when receiving alarming assignment adds the above minimum alarm duration time corresponding Duan Wei and is timed video recording and comprises, then described record task administration module is used for that also the alarm record task is issued to the video recording memory module and starts the video recording storage, the pre-video recording code stream that to receive earlier in the described duration of pre-recording of buffer memory before the alarming assignment deposits the video recording memory module in, and the memory module of recording a video then continues storage alarm video recording.
5. according to the described real-time streaming files storage device of claim 2, it is characterized in that, described video recording store tasks is manual record task, described record task administration module, whether the time period that specifically is used to judge whether start the regularly video recording and the duration place of manually recording a video is timed video recording institute comprises, if started regularly record task, and described manual video recording duration time corresponding section is timed the video time section and comprises, and then need not store described alarm record task; Otherwise the record task administration module is issued to the video recording memory module with manual record task, starts the video recording storage.
6. according to the described real-time streaming files storage device of claim 2, it is characterized in that described record task administration module also is used to safeguard two forms: record task form tblTask and video record form tblRecord;
Described record task form tblTask is used to write down the statistical information of each record task; Described video record form tblRecord is used to write down the stored information of each record task.
7. according to each described real-time streaming files storage device among the claim 1-6, it is characterized in that, also comprise front monitoring front-end, coding module, RTP packetization module, wherein
Described front monitoring front-end is used for gathering in real time audio-video signal;
Described coding module is used for the audio-video signal of front monitoring front-end collection is carried out compressed encoding;
Described RTP packetization module is used for obtaining source code flow from coding module, and converts thereof into the RTP bag, and the code stream that described video recording memory module is stored is the RTP bag after handling through the RTP packetization module.
8. a real-time streaming files storage means is applicable to the described real-time streaming files storage device of claim 1, it is characterized in that, the video recording memory module comprises according to the video recording store tasks storage code stream that receives:
Create physical layer file and logical layer file at described video recording store tasks, the corresponding a plurality of logical files of described each video recording store tasks, the code stream of each logical file storage Preset Time length, described a plurality of logical file is kept on the physical file, sets up the mapping relations of described physical file and logical file;
Code stream is write logical file, and actual is to write to the skew original position that logical file is mapped in physical file.
9. real-time streaming files storage means according to claim 8, described record task comprises regularly record task, alarm record task, manual record task, it is characterized in that, described video recording memory module receives before the code stream, also comprise, the record task administration module receives the video recording store tasks that the user issues, and described video recording store tasks is handed down to the video recording memory module.
10. real-time streaming files storage means according to claim 8 is characterized in that, described record task administration module receives the video recording store tasks that the user issues, and described video recording store tasks is handed down to the video recording memory module, also comprise,
The timing record task that issues for the user, described record task administration module judges that whether the current time is to regularly recording a video the time started, be, then the timing record task is issued to the video recording memory module and begins storage, and judge if the current time, then finishes this video recording store tasks to regularly recording a video the concluding time.
11. real-time streaming files storage means according to claim 8 is characterized in that, described record task administration module receives the video recording store tasks that the user issues, and described video recording store tasks is handed down to the video recording memory module, also comprise,
For the alarm record task that the user issues, described record task administration module obtains pre-record duration and the minimum alarm duration that the user sets;
Judge if having started regularly record task and the described time of pre-recording adds the above minimum alarm duration time corresponding section and all be timed video recording and comprise, then need not store described alarm record task; Otherwise the pre-video recording code stream that will receive in the described duration of pre-recording of buffer memory before the alarming assignment deposits the video recording memory module in, again the video recording code stream in the minimum alarm of the storage duration.
12. real-time streaming files storage means according to claim 8 is characterized in that, described record task administration module receives the video recording store tasks that the user issues, and described video recording store tasks is handed down to the video recording memory module, also comprise,
The manual record task that issues for the user, described record task administration module judges that being timed video recording institute as if the time period that has started the regularly video recording and the duration place of manually recording a video comprises, then, store otherwise begin video recording according to manual video recording duration without repeated storage.
13. real-time streaming files storage means according to claim 8 is characterized in that, also comprises:
Described record task administration module writes down the statistical information of this record task in record task form tblTask when record task finishes;
Described record task administration module writes down the stored information of this record task in video record form tblRecord when record task finishes.
14. each described real-time streaming files storage means is characterized in that according to Claim 8-13, described video recording memory module receives before the code stream, comprises
Start front monitoring front-end and gather audio-video signal, and described audio-video signal is sent to audio/video coder;
Audio/video coder carries out sending to the RTP packing apparatus behind the compressed encoding to the data of gathering;
The RTP packing apparatus is converted to a plurality of RTP bags with the source code flow that obtains.
CN200910110147A 2009-11-10 2009-11-10 Device and method for real-time stream file storage Pending CN101729529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910110147A CN101729529A (en) 2009-11-10 2009-11-10 Device and method for real-time stream file storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910110147A CN101729529A (en) 2009-11-10 2009-11-10 Device and method for real-time stream file storage

Publications (1)

Publication Number Publication Date
CN101729529A true CN101729529A (en) 2010-06-09

Family

ID=42449737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910110147A Pending CN101729529A (en) 2009-11-10 2009-11-10 Device and method for real-time stream file storage

Country Status (1)

Country Link
CN (1) CN101729529A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011063737A1 (en) * 2009-11-24 2011-06-03 中兴通讯股份有限公司 Method and apparatus for playing real-time stream files
CN102905110A (en) * 2012-09-07 2013-01-30 北京瀚景锦河科技有限公司 Remote multi-area image monitoring system and method
CN102938829A (en) * 2012-10-12 2013-02-20 天津市亚安科技股份有限公司 Method for realizing prerecording of real-time audio/video stream
CN102982151A (en) * 2012-11-27 2013-03-20 南开大学 Method for merging multiple physical files into one logic file
CN106982325A (en) * 2017-03-23 2017-07-25 移康智能科技(上海)股份有限公司 One kind video recording alarm method and device
CN110333887A (en) * 2019-07-04 2019-10-15 郑州天迈科技股份有限公司 Vehicle-mounted machine picture recording module upgrades optimization system
CN113139081A (en) * 2021-04-27 2021-07-20 中山亿联智能科技有限公司 Method for reporting and reading user online playing information with high efficiency and low delay

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011063737A1 (en) * 2009-11-24 2011-06-03 中兴通讯股份有限公司 Method and apparatus for playing real-time stream files
CN101710983B (en) * 2009-11-24 2013-06-05 中兴通讯股份有限公司 Method for playing real-time streaming files and device thereof
CN102905110A (en) * 2012-09-07 2013-01-30 北京瀚景锦河科技有限公司 Remote multi-area image monitoring system and method
CN102905110B (en) * 2012-09-07 2016-12-21 北京瀚景锦河科技有限公司 System and method for long-range multizone picture control
CN102938829A (en) * 2012-10-12 2013-02-20 天津市亚安科技股份有限公司 Method for realizing prerecording of real-time audio/video stream
CN102982151A (en) * 2012-11-27 2013-03-20 南开大学 Method for merging multiple physical files into one logic file
CN102982151B (en) * 2012-11-27 2015-04-01 南开大学 Method for merging multiple physical files into one logic file
CN106982325A (en) * 2017-03-23 2017-07-25 移康智能科技(上海)股份有限公司 One kind video recording alarm method and device
CN110333887A (en) * 2019-07-04 2019-10-15 郑州天迈科技股份有限公司 Vehicle-mounted machine picture recording module upgrades optimization system
CN110333887B (en) * 2019-07-04 2023-04-14 郑州天迈科技股份有限公司 Vehicle-mounted machine video recording module optimization system
CN113139081A (en) * 2021-04-27 2021-07-20 中山亿联智能科技有限公司 Method for reporting and reading user online playing information with high efficiency and low delay
CN113139081B (en) * 2021-04-27 2023-10-27 中山亿联智能科技有限公司 Method for reporting online playing information of reading user with high efficiency and low delay

Similar Documents

Publication Publication Date Title
CN101729529A (en) Device and method for real-time stream file storage
CN101710983B (en) Method for playing real-time streaming files and device thereof
US20200389697A1 (en) Methods and apparatus for detecting space-shifted media associated with a digital recording/playback device
EP2158577B1 (en) Method and device for acquiring, recording and utilizing data captured in an aircraft
US9350939B2 (en) Methods and apparatus to detect content skipping by a consumer of a recorded program
US9991980B2 (en) Apparatus and methods for tracking and analyzing digital recording device event sequences
CN101877783B (en) Network video recorder clustering video monitoring system and method
US8364009B2 (en) Apparatus, systems and methods for a thumbnail-sized scene index of media content
CN100455004C (en) Method and equipment for recording digital broadcast program and playing back the program based on time
CN102037718A (en) Method and apparatus for masking signal loss
CN101512657A (en) Method and apparatus for receiving, storing, and presenting multimedia programming without indexing prior to storage
CN104394380A (en) Video monitoring management system and playback method of video monitoring record
CN201585041U (en) Digital television receiving terminal
CN102244758A (en) Video-recording-file-based data acquisition method and equipment
CN102802088B (en) Data transmission method based on real-time transmission protocol
JP2009531748A (en) Image tracking inquiry system for distribution of goods with electronic tag photographing function
CN104581406A (en) Network video recording and playback system and method
CN101068341B (en) Stream media dispatching system and medium file scheduling method thereof
US20150023652A1 (en) Updating of advertising content during playback of locally recorded content
CN100429942C (en) Video/audio playback apparatus and video/audio playback method
TW200935905A (en) Digital video apparatus and related method for generating index information
WO2004051997A1 (en) Apparatus and methods for tracking and analyzing digital recording device event sequences
CN100452856C (en) Reproduction device
CN101803378A (en) Method and apparatus for generating and accessing metadata in media file format
CN102157175B (en) Digital dumping method of audio/video data and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20100609

C20 Patent right or utility model deemed to be abandoned or is abandoned