CN109040826A - TS code stream storage method, apparatus and system - Google Patents
TS code stream storage method, apparatus and system Download PDFInfo
- Publication number
- CN109040826A CN109040826A CN201811065178.9A CN201811065178A CN109040826A CN 109040826 A CN109040826 A CN 109040826A CN 201811065178 A CN201811065178 A CN 201811065178A CN 109040826 A CN109040826 A CN 109040826A
- Authority
- CN
- China
- Prior art keywords
- code stream
- road
- storage
- code
- management strategy
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003860 storage Methods 0.000 title claims abstract description 144
- 238000000034 method Methods 0.000 title claims abstract description 143
- 230000008569 process Effects 0.000 claims abstract description 88
- 238000012544 monitoring process Methods 0.000 claims abstract description 24
- 238000004891 communication Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000000151 deposition Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/432—Content retrieval operation from a local storage medium, e.g. hard-disk
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4335—Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4385—Multiplex stream processing, e.g. multiplex stream decrypting
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Traffic Control Systems (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The present invention provides a kind of TS code stream storage method, apparatus and system, method is applied to computer, and computer is communicated at least one data acquisition equipment respectively, and method includes: the multichannel TS code stream for receiving data acquisition equipment and sending;Judge whether the code stream type of multichannel TS code stream is located in code presupposition stream type set;If the code stream type of multichannel TS code stream is located in code presupposition stream type set, then based on default management strategy according to the storing process of the storage every road TS code stream of progress monitoring of every road TS code stream, until all storage finishes multichannel TS code stream, obtain TS code stream storage file, the technical issues of alleviating the inefficiency of storage control process existing in the prior art has reached the technical effect for improving the efficiency of storage control process.
Description
Technical field
The present invention relates to TS code stream technical field of memory, more particularly, to a kind of TS code stream storage method, apparatus and system.
Background technique
High-definition monitoring storage data quantity is big, and storage number is more, and the memory space resulted in the need for is very big, therefore high-definition monitoring
Storage must support large capacity, meet the needs of long-time large-capacity video image storage.During high-definition monitoring storage,
Staff will control storing process using storage administration scheme, guarantee the steady of video fluency and high-definition monitoring system
It is qualitative.
In practical applications, when staff controls storing process using storage administration scheme, work people is needed
The control of the artificial progress storing process of member, expends a large amount of manpower and time, leads to the inefficiency of storage control process.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of TS code stream storage method, apparatus and system, it is existing to alleviate
The technical issues of inefficiency of storage control process present in technology.
In a first aspect, method is applied to computer, the meter the embodiment of the invention provides a kind of TS code stream storage method
Calculation machine is communicated at least one data acquisition equipment respectively, and method includes:
Receive the multichannel TS code stream that the data acquisition equipment is sent;
Judge whether the code stream type of TS code stream described in multichannel is located in code presupposition stream type set;
If the code stream type of TS code stream described in multichannel is located in the code presupposition stream type set, based on default management plan
The storing process of TS code stream described in the storage every road of progress monitoring slightly according to TS code stream described in every road, until TS code stream described in multichannel
All storage finishes, and obtains TS code stream storage file.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute
State the storing process of TS code stream described in the storage every road of progress monitoring based on default management strategy according to TS code stream described in every road, packet
It includes:
Based on the default management strategy, TS code described in every road is controlled according to the stored data volume of TS code stream described in every road
The storing process of stream;
Alternatively, being based on the default management strategy, TS described in every road is controlled according to the storage time of TS code stream described in every road
The storing process of code stream.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute
Stating default management strategy includes: disk remaining space warning strategies, described to be based on the default management strategy, according to described in every road
The stored data volume of TS code stream controls the storing process of TS code stream described in every road, comprising:
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and is storing each packet
The remaining space for storing the disk of the TS code stream is obtained simultaneously;
If the remaining space of the disk is equal to default minimum disk space, alerted.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein institute
Stating default management strategy includes: automatic overlay strategy, described to be based on the default management strategy, according to TS code stream described in every road
The data volume of storage controls the storing process of TS code stream described in every road, comprising:
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and is storing each packet
The remaining space for storing the disk of the TS code stream is obtained simultaneously;
If the remaining space of the disk is equal to default minimum disk space, the magnetic is covered with TS code stream to be stored
The TS code stream stored at first on disk.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute
Stating default management strategy includes: unit memory capacity strategy, described to be based on the default management strategy, according to TS code described in every road
Flow the storing process that stored data volume controls TS code stream described in every road, comprising:
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and is storing each packet
It obtains simultaneously and has stored TS code stream capacity;
If the TS code stream capacity that stored is equal to default unit memory capacity, stop having stored depositing for TS code stream part
Storage process starts the storing process of next TS code stream part.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein institute
Stating default management strategy includes: maximum Coutinuous store time parameter method, described to be based on the default management strategy, according to described in every road
The storage time of TS code stream controls the storing process of TS code stream described in every road, comprising:
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and is storing each packet
It obtains simultaneously and starts to store the moment;
According to the maximum Coutinuous store time and it is described start to store the moment, determine and stop the storage moment;
If reaching the stopping stores the moment, stop storing the TS code stream.
With reference to first aspect, the embodiment of the invention provides the 6th kind of possible embodiments of first aspect, wherein institute
Stating default management strategy includes: plan storage time strategy, described to be based on the default management strategy, according to TS code described in every road
The storage time of stream controls the storing process of TS code stream described in every road, comprising:
Start to store the moment if reaching and presetting, starts to store TS code stream described in every road;
If reaching preset stopping stores the moment, stop storing TS code stream described in every road.
Second aspect, the embodiment of the present invention also provide a kind of TS code stream storage device, comprising: receiving module, judgment module
And control module;
The receiving module acquires the multichannel TS code stream that equipment is sent for receiving data;
The judgment module, for judging whether the code stream type of TS code stream described in multichannel is located at code presupposition stream type set
It is interior;
The control module, if the code stream type for TS code stream described in multichannel is located at the code presupposition stream type set
It is interior, then the storage of TS code stream described in the storage every road of progress monitoring based on default management strategy according to TS code stream described in every road
Journey obtains TS code stream storage file until all storage finishes TS code stream described in multichannel.
The third aspect, the embodiment of the present invention also provide a kind of TS code stream storage system, comprising: the acquisition of at least one data is set
The computer of a standby and application such as any the method for first aspect, leads between the data acquisition equipment and the computer
Ethernet is crossed to be communicated.
Fourth aspect, the embodiment of the present invention also provide a kind of meter of non-volatile program code that can be performed with processor
Calculation machine readable medium, said program code make the processor execute such as any the method for first aspect.
The embodiment of the present invention brings following the utility model has the advantages that TS code stream storage method provided in an embodiment of the present invention, method
Applied to computer, the computer is communicated at least one data acquisition equipment respectively, and method includes: to receive the data to adopt
Collect the multichannel TS code stream that equipment is sent;Judge whether the code stream type of TS code stream described in multichannel is located at code presupposition stream type set
It is interior;If the code stream type of TS code stream described in multichannel is located in the code presupposition stream type set, pressed based on default management strategy
The storing process of TS code stream described in the storage every road of progress monitoring according to TS code stream described in every road, until TS code stream described in multichannel is whole
Storage finishes, and obtains TS code stream storage file.
So default management strategy is set in a computer during staff manages storing process,
Computer receives the multichannel TS code stream that the data acquisition equipment is sent;Judge TS code stream described in multichannel code stream type whether position
In in code presupposition stream type set;If the code stream type of TS code stream described in multichannel is located in the code presupposition stream type set,
The storing process of TS code stream described in the storage every road of progress monitoring based on default management strategy according to TS code stream described in every road, until
All storage finishes TS code stream described in multichannel, obtains TS code stream storage file, and such computer can be based on default management plan
It is slightly automatically performed the control to storing process, the control of the artificial progress storing process of staff is not needed, avoids due to work
Make the control of the artificial progress storing process of personnel and expends a large amount of manpower and time, and then caused storage control process
Therefore the problem of inefficiency, the technical issues of alleviating the inefficiency of storage control process existing in the prior art, reaches
The technical effect for improving the efficiency of storage control process is arrived.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims
And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the first flow chart of TS code stream storage method provided in an embodiment of the present invention;
Fig. 2 is second of flow chart of TS code stream storage method provided in an embodiment of the present invention;
Fig. 3 is the third flow chart of TS code stream storage method provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of TS code stream storage system provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, high-definition monitoring storage data quantity is big, storage number is more, and the memory space resulted in the need for is very big, therefore high
Clear monitoring storage must support large capacity, meet the needs of long-time large-capacity video image storage.In high-definition monitoring storage
In the process, staff will control storing process using storage administration scheme, guarantee video fluency and high-definition monitoring
The stability of system.
In practical applications, when staff controls storing process using storage administration scheme, work people is needed
The control of the artificial progress storing process of member, expends a large amount of manpower and time, leads to the inefficiency of storage control process, base
In this, a kind of TS code stream storage method provided in an embodiment of the present invention, apparatus and system can be alleviated existing in the prior art
The technical issues of inefficiency of storage control process, has reached the technical effect for improving the efficiency of storage control process.
For convenient for understanding the present embodiment, first to a kind of TS code stream storage method disclosed in the embodiment of the present invention
It describes in detail, method is applied to computer, and the computer is communicated at least one data acquisition equipment respectively, exemplary
, the computer can be located in storage area network (Storage Area Network, IP-SAN).The computer can
To install Windows operating system.The data acquisition equipment can be audio-video acquisition equipment.The data acquisition equipment and
It can be communicated by Ethernet between the computer.
Illustratively, the file format of computer supported storage may include: DVD, VCD, OGG, H.264, ASF,
MP4, FLV etc..
Illustratively, the video resolution of the computer supported may include: 1080P, 720P, 1080i, etc..
Illustratively, the computer can support the network storages such as IP-SAN to extend, and have the characteristics that be easy to extend.
Illustratively, the computer can support multichannel to store, and when certain breaks down all the way, will not influence other roads
Storing process, guarantee the stability and safety of storing process.
As shown in Figure 1, the TS code stream storage method may comprise steps of.
Step S101, computer receive the multichannel TS code stream that the data acquisition equipment is sent.
Illustratively, multichannel TS code stream can be 64 road TS code streams, 64 road TS code stream code stream types having the same.
Step S102, judges whether the code stream type of TS code stream described in multichannel is located in code presupposition stream type set.
Illustratively, it is pre-set to can be staff for code presupposition stream type set.TS code stream is stored in computer
Before, the setting of code presupposition stream type set is carried out.
In embodiments of the present invention, if the code stream type of TS code stream described in multichannel is located in code presupposition stream type set,
Illustrate that computer supported stores TS code stream.Illustratively, if the code stream type of TS code stream described in multichannel is A, code presupposition stream type
The code stream type for including in set are as follows: A and B, it may be considered that the code stream type A of TS code stream described in multichannel is located at default code stream class
In type set.
Step S103 is based on if the code stream type of TS code stream described in multichannel is located in the code presupposition stream type set
The storing process of TS code stream described in the storage every road of progress monitoring of the default management strategy according to TS code stream described in every road, until multichannel
All storage finishes the TS code stream, obtains TS code stream storage file.
Illustratively, described in the every road of storage progress monitoring based on default management strategy according to TS code stream described in every road
The storing process of TS code stream, may comprise steps of.
Illustratively, default management strategy may include: disk remaining space warning strategies, automatic overlay strategy, unit
Memory capacity strategy, maximum Coutinuous store time parameter method and plan storage time strategy, illustratively, the alarm of disk remaining space
Strategy can refer to during disk storage TS code stream, and TS code stream storing process described in every road is controlled using disk remaining space
In alarm behavior;Automatic overlay strategy can refer to during disk storage TS code stream, be controlled using disk remaining space
Automatic covering behavior in TS code stream storing process described in every road;Unit memory capacity strategy, which can refer to utilize, has stored TS code stream
Capacity controls starting or stopping for TS code stream storing process described in every road;Maximum Coutinuous store time parameter method can refer to using most
The big Coutinuous store time controls starting or stopping for TS code stream storing process described in every road;Plan storage time strategy can refer to
Start to store moment and preset stopping storage moment using default and control the beginning of TS code stream storing process described in every road or stop
Only.
Based on the default management strategy, TS code described in every road is controlled according to the stored data volume of TS code stream described in every road
The storing process of stream.
Illustratively, stored data volume may include: the disk space for storing the TS code stream, and store
TS code stream capacity.According to the disk space for storing the TS code stream, it is available for storing the disk of the TS code stream
Remaining space.
Alternatively, being based on the default management strategy, TS described in every road is controlled according to the storage time of TS code stream described in every road
The storing process of code stream.
Illustratively, storage time may include: the maximum Coutinuous store time, default start to store moment and preset stopping
Store the moment.
In the embodiment of the present invention, TS code stream storage method provided in an embodiment of the present invention, method is applied to computer, described
Computer is communicated at least one data acquisition equipment respectively, and method includes: the multichannel for receiving the data acquisition equipment and sending
TS code stream;Judge whether the code stream type of TS code stream described in multichannel is located in code presupposition stream type set;If TS code described in multichannel
The code stream type of stream is located in the code presupposition stream type set, then based on default management strategy according to TS code stream described in every road
The storing process of TS code stream described in the every road of progress monitoring is stored, until all storage finishes TS code stream described in multichannel, obtains TS code
Flow storage file.
So default management strategy is set in a computer during staff manages storing process,
Computer receives the multichannel TS code stream that the data acquisition equipment is sent;Judge TS code stream described in multichannel code stream type whether position
In in code presupposition stream type set;If the code stream type of TS code stream described in multichannel is located in the code presupposition stream type set,
The storing process of TS code stream described in the storage every road of progress monitoring based on default management strategy according to TS code stream described in every road, until
All storage finishes TS code stream described in multichannel, obtains TS code stream storage file, and such computer can be based on default management plan
It is slightly automatically performed the control to storing process, the control of the artificial progress storing process of staff is not needed, avoids due to work
Make the control of the artificial progress storing process of personnel and expends a large amount of manpower and time, and then caused storage control process
Therefore the problem of inefficiency, the technical issues of alleviating the inefficiency of storage control process existing in the prior art, reaches
The technical effect for improving the efficiency of storage control process is arrived.
In practical applications, after disk space is fully used, storing data cannot be continued, if there is also
Data to be stored, the stability that will result in storing process reduces, in order to solve this problem, in another implementation of the invention
In example, the default management strategy may include: disk remaining space warning strategies, as shown in Fig. 2, described based on described default
Management strategy controls the storing process of TS code stream described in every road according to the stored data volume of TS code stream described in every road, can wrap
Include following steps.
Step S201 stores each packet in the TS code stream for TS code stream described in every road one by one, and each in storage
The remaining space for storing the disk of the TS code stream is obtained while the packet.
Step S202 is alerted if the remaining space of the disk is equal to default minimum disk space.
Illustratively, it is pre-set to can be staff for default minimum disk space, for example, presetting minimum magnetic
Disk space can be 1G.When remaining space is 1G if it exists, then alerted.
Illustratively, alarm mode can be with are as follows: the display alarm information on computer screen.
In the embodiment of the present invention, by the way that default minimum disk space is arranged, to control the storage of TS code stream described in every road
Journey is alerted if the remaining space of the disk is equal to default minimum disk space, it is complete to avoid the occurrence of disk space
The case where use, after staff sees warning information, will perform corresponding processing, avoid the stability of storing process
The problem of reduction, guarantees the stability of TS code stream storing process.
In practical applications, after disk space is fully used, storing data cannot be continued, if there is also
Data to be stored, the stability that will result in storing process reduces, in order to solve this problem, in another implementation of the invention
In example, the default management strategy may include: automatic overlay strategy, as shown in figure 3, described be based on the default management plan
Slightly, the storing process of TS code stream described in every road is controlled according to the stored data volume of TS code stream described in every road, may include following
Step.
Step S301 stores each packet in the TS code stream for TS code stream described in every road one by one, and each in storage
The remaining space for storing the disk of the TS code stream is obtained while the packet.
Step S302, if the remaining space of the disk is equal to default minimum disk space, with TS code stream to be stored
Cover the TS code stream stored at first on the disk.
Illustratively, it is pre-set to can be staff for default minimum disk space, for example, presetting minimum magnetic
Disk space can be 1M.If the remaining space of the disk is 1M, covered on the disk at first with TS code stream to be stored
The TS code stream of storage, that is to say, that by code stream to be stored storage to being used to store in the disk areas of TS code stream stored at first.
In the embodiment of the present invention, if the remaining space of the disk is equal to default minimum disk space, with to be stored
TS code stream covers the TS code stream stored at first on the disk, can not only guarantee the priority of TS code stream to be stored in this way, but also
The problem of avoiding the occurrence of the case where disk space is fully used, avoiding the stability reduction of storing process, guarantees TS code
Flow the stability of storing process.
In practical applications, it is understood that there may be the case where only needing to store the TS code stream of specified vol is asked to solve this
Topic, in another embodiment of the present invention, the default management strategy may include: unit memory capacity strategy, described to be based on
The default management strategy controls the storage of TS code stream described in every road according to the stored data volume of TS code stream described in every road
Journey may comprise steps of.
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and is storing each packet
It obtains simultaneously and has stored TS code stream capacity.
If the TS code stream capacity that stored is equal to default unit memory capacity, stop having stored depositing for TS code stream part
Storage process starts the storing process of next TS code stream part.
Illustratively, it is pre-set to can be staff for default unit memory capacity.For example, default unit is deposited
Storage capacity can be set to 1G, if the TS code stream capacity that stored stops the storage for having stored TS code stream part equal to 1G
Process starts the storing process of next TS code stream part, if the capacity of next TS code stream part is equal to 1G, starts lower
The storing process of one TS code stream part.
In the embodiment of the present invention, the beginning of TS code stream storing process described in every road is controlled by presetting unit memory capacity
Or stop, if the TS code stream capacity that stored is equal to default unit memory capacity, stop having stored depositing for TS code stream part
Storage process, starts the storing process of next TS code stream part, has stored TS code stream part in this way with specific capacity, i.e., in advance
If unit memory capacity.In practical business, it may be necessary to which there is the TS code stream part of default unit memory capacity.
In practical applications, computer based performance, under conditions of guaranteeing safety and stablizing, computer has maximum
The Coutinuous store time may result in computer if the time that computer is stored is more than the maximum Coutinuous store time
The problem of safety and stability reduces, in order to solve this problem, in another embodiment of the present invention, the default management
Strategy may include: maximum Coutinuous store time parameter method, described to be based on the default management strategy, according to TS code stream described in every road
Storage time control the storing process of TS code stream described in every road, may comprise steps of.
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and is storing each packet
It obtains simultaneously and starts to store the moment.
According to the maximum Coutinuous store time and it is described start to store the moment, determine and stop the storage moment.
Illustratively, the maximum Coutinuous store time can be pre-set.It is 08:00:00 when starting the storage moment, most
When the big Coutinuous store time is 12h, then it can determine that the stopping storage moment is 20:00:00.
If reaching the stopping stores the moment, stop storing the TS code stream.
Illustratively, if reaching the stopping stores moment 20:00:00, stop storing the TS code stream.
In the embodiment of the present invention, if the time that computer is stored is more than the maximum Coutinuous store time, stop storing
The TS code stream, the time stored this makes it possible to the system of avoiding the occurrence of are more than to count caused by the maximum Coutinuous store time
The problem of calculation machine safety and stability reduces, and then guarantee the safety and stability of computer.
In practical applications, user may be only concerned the monitoring content of daily specific time period, be indifferent to other than specific time period
Monitoring content, so in order to save the storage resource of computer, in another embodiment of the present invention, the default management plan
It slightly may include: plan storage time strategy, it is described to be based on the default management strategy, according to the storage of TS code stream described in every road
Time controls the storing process of TS code stream described in every road, may comprise steps of.
Start to store the moment if reaching and presetting, starts to store TS code stream described in every road.
Illustratively, it presets and starts to store the moment to can be staff pre-set.
If reaching preset stopping stores the moment, stop storing TS code stream described in every road.
Illustratively, the preset stopping storage moment, it is pre-set to can be staff.
Illustratively, if user is only concerned the content that daily 08:00:00 to 18:00:00 is monitored this period,
It can be set to preset and start to store the moment as 08:00:00, preset stopping stores the moment as 18:00:00.
In the embodiment of the present invention, start to store moment and preset stopping storage moment due to being provided with to preset, if reaching pre-
If starting to store the moment, then start to store TS code stream described in every road;If reaching preset stopping stores the moment, stop storing every road
The TS code stream, what is stored in this way is exactly to start to store received TS code between moment and preset stopping storage moment default
Stream, received TS code stream is only user's needs in this period, care, therefore, has both stored the TS code of user's needs
Stream, and saved storage resource.
In another embodiment of the present invention, a kind of TS code stream storage device disclosed in the embodiment of the present invention is carried out detailed
It is thin to introduce, comprising: receiving module, judgment module and control module.
The receiving module acquires the multichannel TS code stream that equipment is sent for receiving data.
The judgment module, for judging whether the code stream type of TS code stream described in multichannel is located at code presupposition stream type set
It is interior.
The control module, if the code stream type for TS code stream described in multichannel is located at the code presupposition stream type set
It is interior, then the storage of TS code stream described in the storage every road of progress monitoring based on default management strategy according to TS code stream described in every road
Journey obtains TS code stream storage file until all storage finishes TS code stream described in multichannel.
In another embodiment of the present invention, a kind of TS code stream storage system disclosed in the embodiment of the present invention is carried out detailed
It is thin to introduce, comprising: the computer of at least one data acquisition equipment and an application such as any the method for above-described embodiment, institute
It states and is communicated between data acquisition equipment and the computer by Ethernet.
Illustratively, it is said so that TS code stream storage system includes three data acquisition equipments and a computer as an example
It is bright.As shown in figure 4, TS code stream storage system may include: a computer 41 and three data acquisition equipments.Three data are adopted
Collection equipment is respectively as follows: the first data acquisition equipment 42, the second data acquisition equipment 43 and third data acquisition equipment 44.
Illustratively, the first data acquisition equipment 42, the second data acquisition equipment 43 and third data acquisition equipment 44 divide
It is not communicated with computer 41 by Ethernet.
Illustratively, computer 41 can receive at least TS code stream all the way of the first data acquisition equipment 42 transmission, calculate
Machine 41 can receive the second data acquisition equipment 43 transmission at least TS code stream, computer 41 can receive third data and adopt all the way
Collect at least TS code stream all the way that equipment 44 is sent.
In another embodiment of the present invention, to disclosed in the embodiment of the present invention it is a kind of with processor can be performed it is non-
The computer-readable medium of volatile program code describes in detail, and said program code executes the processor as above-mentioned
Any method of embodiment.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table
It is not limit the scope of the invention up to formula and numerical value.
The technical effect and preceding method embodiment phase of device provided by the embodiment of the present invention, realization principle and generation
Together, to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In all examples being illustrated and described herein, any occurrence should be construed as merely illustratively, without
It is as limitation, therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, section or code of table, a part of the module, section or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base
Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that
It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule
The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition
Concrete meaning in invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical",
The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to
Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation,
It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ",
" third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
The computer program product of TS code stream storage method is carried out provided by the embodiment of the present invention, including stores processing
The computer readable storage medium of the executable non-volatile program code of device, the instruction that said program code includes can be used for holding
Row previous methods method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of TS code stream storage method, which is characterized in that method be applied to computer, the computer respectively at least one
Data acquisition equipment communication, method include:
Receive the multichannel TS code stream that the data acquisition equipment is sent;
Judge whether the code stream type of TS code stream described in multichannel is located in code presupposition stream type set;
If the code stream type of TS code stream described in multichannel is located in the code presupposition stream type set, pressed based on default management strategy
The storing process of TS code stream described in the storage every road of progress monitoring according to TS code stream described in every road, until TS code stream described in multichannel is whole
Storage finishes, and obtains TS code stream storage file.
2. TS code stream storage method according to claim 1, which is characterized in that described to be based on default management strategy according to every
The storing process of TS code stream described in the storage every road of progress monitoring of TS code stream described in road, comprising:
Based on the default management strategy, TS code stream described in every road is controlled according to the stored data volume of TS code stream described in every road
Storing process;
Alternatively, being based on the default management strategy, TS code stream described in every road is controlled according to the storage time of TS code stream described in every road
Storing process.
3. TS code stream storage method according to claim 2, which is characterized in that the default management strategy includes: disk
Remaining space warning strategies, it is described to be based on the default management strategy, according to the stored data volume control of TS code stream described in every road
The storing process of TS code stream described in the road Zhi Mei, comprising:
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and while storing each packet
Obtain the remaining space for storing the disk of the TS code stream;
If the remaining space of the disk is equal to default minimum disk space, alerted.
4. TS code stream storage method according to claim 2, which is characterized in that the default management strategy includes: automatic
Overlay strategy, it is described to be based on the default management strategy, every road institute is controlled according to the stored data volume of TS code stream described in every road
State the storing process of TS code stream, comprising:
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and while storing each packet
Obtain the remaining space for storing the disk of the TS code stream;
If the remaining space of the disk is equal to default minimum disk space, covered on the disk with TS code stream to be stored
The TS code stream stored at first.
5. TS code stream storage method according to claim 2, which is characterized in that the default management strategy includes: unit
Memory capacity strategy, it is described to be based on the default management strategy, it is controlled according to the stored data volume of TS code stream described in every road every
The storing process of TS code stream described in road, comprising:
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and while storing each packet
Acquisition has stored TS code stream capacity;
If the TS code stream capacity that stored is equal to default unit memory capacity, stop the storage for having stored TS code stream part
Journey starts the storing process of next TS code stream part.
6. TS code stream storage method according to claim 2, which is characterized in that the default management strategy includes: maximum
Coutinuous store time parameter method, it is described to be based on the default management strategy, it is controlled according to the storage time of TS code stream described in every road every
The storing process of TS code stream described in road, comprising:
For TS code stream described in every road, each packet in the TS code stream is stored one by one, and while storing each packet
Acquisition starts to store the moment;
According to the maximum Coutinuous store time and it is described start to store the moment, determine and stop the storage moment;
If reaching the stopping stores the moment, stop storing the TS code stream.
7. TS code stream storage method according to claim 2, which is characterized in that the default management strategy includes: plan
Storage time strategy, it is described to be based on the default management strategy, every road institute is controlled according to the storage time of TS code stream described in every road
State the storing process of TS code stream, comprising:
Start to store the moment if reaching and presetting, starts to store TS code stream described in every road;
If reaching preset stopping stores the moment, stop storing TS code stream described in every road.
8. a kind of TS code stream storage device characterized by comprising receiving module, judgment module and control module;
The receiving module acquires the multichannel TS code stream that equipment is sent for receiving data;
The judgment module, for judging whether the code stream type of TS code stream described in multichannel is located in code presupposition stream type set;
The control module, if the code stream type for TS code stream described in multichannel is located in the code presupposition stream type set,
The storing process of TS code stream described in the storage every road of progress monitoring based on default management strategy according to TS code stream described in every road, until
All storage finishes TS code stream described in multichannel, obtains TS code stream storage file.
9. a kind of TS code stream storage system characterized by comprising at least one data acquisition equipment and an application such as right
It is required that the computer of any the method for 1-7, is led between the data acquisition equipment and the computer by Ethernet
Letter.
10. a kind of computer-readable medium for the non-volatile program code that can be performed with processor, which is characterized in that described
Program code makes the processor execute described any the method for claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811065178.9A CN109040826B (en) | 2018-09-12 | 2018-09-12 | TS code stream storage method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811065178.9A CN109040826B (en) | 2018-09-12 | 2018-09-12 | TS code stream storage method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109040826A true CN109040826A (en) | 2018-12-18 |
CN109040826B CN109040826B (en) | 2021-05-11 |
Family
ID=64621241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811065178.9A Active CN109040826B (en) | 2018-09-12 | 2018-09-12 | TS code stream storage method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109040826B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699868A (en) * | 2009-10-30 | 2010-04-28 | 深圳创维数字技术股份有限公司 | Method and equipment for providing and processing multi-path video of digital television programs |
CN104168443A (en) * | 2013-05-16 | 2014-11-26 | 杭州海康威视数字技术股份有限公司 | Method for carrying out video recording on video monitor and network video recorder |
CN104333725A (en) * | 2014-11-27 | 2015-02-04 | 天津天地伟业数码科技有限公司 | Streaming storage equipment of embedded hard disk video and method of streaming storage equipment of embedded hard disk video |
CN105094705A (en) * | 2015-07-27 | 2015-11-25 | 武汉兴图新科电子股份有限公司 | Method for optimizing disk storage strategy |
KR20150138456A (en) * | 2014-05-29 | 2015-12-10 | 주식회사 세연테크 | An apparatus for performing multi channel image recording and management considering the life-time of a storage medium and the method thereof |
CN106231222A (en) * | 2016-08-23 | 2016-12-14 | 深圳亿维锐创科技股份有限公司 | Based on many code streams can be mutual teaching video file form and storing and playing method |
CN108319524A (en) * | 2018-02-02 | 2018-07-24 | 郑州云海信息技术有限公司 | A kind of method and device that baseboard management controller passes through KVM carry files |
-
2018
- 2018-09-12 CN CN201811065178.9A patent/CN109040826B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699868A (en) * | 2009-10-30 | 2010-04-28 | 深圳创维数字技术股份有限公司 | Method and equipment for providing and processing multi-path video of digital television programs |
CN104168443A (en) * | 2013-05-16 | 2014-11-26 | 杭州海康威视数字技术股份有限公司 | Method for carrying out video recording on video monitor and network video recorder |
KR20150138456A (en) * | 2014-05-29 | 2015-12-10 | 주식회사 세연테크 | An apparatus for performing multi channel image recording and management considering the life-time of a storage medium and the method thereof |
CN104333725A (en) * | 2014-11-27 | 2015-02-04 | 天津天地伟业数码科技有限公司 | Streaming storage equipment of embedded hard disk video and method of streaming storage equipment of embedded hard disk video |
CN105094705A (en) * | 2015-07-27 | 2015-11-25 | 武汉兴图新科电子股份有限公司 | Method for optimizing disk storage strategy |
CN106231222A (en) * | 2016-08-23 | 2016-12-14 | 深圳亿维锐创科技股份有限公司 | Based on many code streams can be mutual teaching video file form and storing and playing method |
CN108319524A (en) * | 2018-02-02 | 2018-07-24 | 郑州云海信息技术有限公司 | A kind of method and device that baseboard management controller passes through KVM carry files |
Also Published As
Publication number | Publication date |
---|---|
CN109040826B (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8589543B2 (en) | Virtual data center monitoring | |
CN106162219A (en) | Video cloud stores the method and system of the video of method and system, preview cloud storage | |
US20180255275A1 (en) | Load Balancing Method, and Related Apparatus and System | |
CN107368748B (en) | View generation method and device and terminal | |
CN104079955A (en) | Method, device and system of OTT (Over The Top) live broadcast | |
EP3648413A1 (en) | Control method for improving network performance | |
CN109525670A (en) | A kind of wisdom capital construction information cloud plateform system | |
EP4362456A1 (en) | Monitoring system and method based on digital converter station | |
CN114327327A (en) | Display equipment and control method for multi-equipment screen projection on same screen display | |
CN104618956B (en) | A kind of method and device for controlling cell | |
CN102882805A (en) | Method and device for preventing link aggregation group from state transition | |
CN109040826A (en) | TS code stream storage method, apparatus and system | |
CN115080341A (en) | Computing cluster and data acquisition method, equipment and storage medium thereof | |
EP3028423B1 (en) | Dynamic power reduction management of network devices | |
CN105721901A (en) | Video transcoder adaption method, device and system | |
CN103475870A (en) | Distributed extendable intelligent video surveillance system | |
CN103107959A (en) | Electronic equipment and allocation method of data bandwidth thereof | |
CN108427544B (en) | single-screen and double-screen application switching method and interface | |
CN102457693A (en) | System and method capable of regularly recording TV programmes | |
CN109104334B (en) | Management method and device for nodes in monitoring system | |
CN109982008B (en) | Round-robin switching method and device and electronic equipment | |
CN109005073A (en) | Equipment management system | |
CN110381329A (en) | A kind of data processing method and equipment | |
CN105629950A (en) | Parking lot management system automatic repair reporting method and apparatus | |
CN106411608B (en) | A kind of maintenance system and its data processing method of locomotive brake control software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210518 Address after: No. 2278, building 2, incubator, Zhongguancun Software Park, Dongbeiwang, Haidian District, Beijing, 100193 Patentee after: BEIJING WEITAI SHIXIN TECHNOLOGY Co.,Ltd. Address before: Room 2273, 2 / F, incubator building 2, Zhongguancun Software Park, Dongbeiwang, Haidian District, Beijing Patentee before: BEIJING HECHUANG RUANKAI TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |