CN108024080A - A kind of method using a variety of compress mode recorded videos - Google Patents
A kind of method using a variety of compress mode recorded videos Download PDFInfo
- Publication number
- CN108024080A CN108024080A CN201711293792.6A CN201711293792A CN108024080A CN 108024080 A CN108024080 A CN 108024080A CN 201711293792 A CN201711293792 A CN 201711293792A CN 108024080 A CN108024080 A CN 108024080A
- Authority
- CN
- China
- Prior art keywords
- video
- compress mode
- compress
- memory
- video data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/423—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
Abstract
The present invention provides a kind of method using a variety of compress mode recorded videos, it is related to video record field.This method includes:S1, receives record command, creates a recorded file in memory, and gathers video data, and the video data of collection is cached into memory random access memory;Wherein, video data is the raw image data captured by camera sensor;S2, when the video data in the random access memory reaches preset value, continue to gather video data, wherein, detect the residual memory space of the memory, when the residual memory space of the memory is less than preset value, the video data in the random access memory is traveled through, the data content in the video data in the random access memory comprising moving target and not comprising moving target is subjected to video compress with different compress modes respectively;S3, recorded file is write by compressed video data.
Description
Technical field
The present invention relates to video record field, more particularly to a kind of method using a variety of compress mode recorded videos.
Background technology
At present, video monitoring system has had been directed to all trades and professions of social life, such as traffic intersection, supermarket, silver
Row, station and residential area etc., at the same time, also match somebody with somebody in guard's work in various large-scale activity places and important defendance region
Many monitoring devices, such as Olympic Games place, People's Square, Expo Site are put.At the same time, due to magnanimity monitor video number
According to appearance, fully rely on the traditional video surveillance system manually supervised and be unable to meet demand, people need it is more intelligent,
Automation, the video monitoring system of autonomy-oriented, therefore intelligent video monitoring system become lifting video monitoring system efficiency
The main direction of development.
It is increasing to possess the electronic product of recording function on the market, but these electronic product overwhelming majority are required for possessing
The caching process that video process provides picture is saved as in larger.However, with the compression of electronic product production cost, how to cause
Product ensures its equal function while production cost is reduced, such as which data can be differentiated is key data, which
Data are low priority data, become the hot spot of industry research to improve the competitiveness of electronic product.
The content of the invention
It is existing to solve it is an object of the present invention to provide a kind of method using a variety of compress mode recorded videos
The problem of cannot carrying out classified compression to video in technology.
Especially, the present invention provides a kind of method using a variety of compress mode recorded videos, including:
S1, receives record command, creates a recorded file in memory, and gathers video data, by the video of collection
Data buffer storage is into memory random access memory;Wherein, video data is the raw image data captured by camera sensor;
S2, when the video data in the random access memory reaches a preset value, continues to gather video data, wherein,
The residual memory space of the memory is detected, when the residual memory space of the memory is less than preset value, described in traversal
Video data in random access memory, will include moving target respectively and does not include in the video data in the random access memory
The data content of moving target carries out video compress with different compress modes;
S3, recorded file is write by compressed video data.
Alternatively, the different compress mode, which carries out video compress, includes:
Obtain at least two frames of the difference preset time in video;
Contrast the pattern of two frame;
If the pattern of two frame is approximate, the first compress mode is taken, if the pattern of two frame is had any different, is taken
Second of compress mode.
Alternatively, the different compress mode includes H.26X series, MPEG series etc..
Alternatively, the first compress mode or the second compress mode are used when starting recorded video, when the figure of two frame
When case is approximate, the compress mode is constant;When the pattern of two frame is had any different, the compress mode changes.
Alternatively, video compress is the video file with the first default clarity by shown first compress mode, described
Video file compression is the video file with the second default clarity by the second compress mode.
Alternatively, the video file with the first default clarity of equal time is preset clearly with described with second
The memory that the video file of clear degree takes is different.
Alternatively, the preset time is 1S.
The method using a variety of compress mode recorded videos of the present invention, due to respectively by regarding in the random access memory
Data content of the frequency in comprising moving target and not comprising moving target carries out video compress with different compress modes, because
This can farthest save storage memory, moreover it is possible to classify to information, it is ensured that important information completely preserves.
Further, the pattern correspondance at least two frames that the present invention passes through the difference preset time in video, to carry out not
Same compress mode carries out video compress, can effectively improve recognition efficiency, reduces error.
According to the accompanying drawings will be brighter to the detailed description of the specific embodiment of the invention, those skilled in the art
Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
Some specific embodiments of detailed description of the present invention by way of example, and not by way of limitation with reference to the accompanying drawings hereinafter.
Identical reference numeral denotes same or similar component or part in attached drawing.It should be appreciated by those skilled in the art that these
What attached drawing was not necessarily drawn to scale.In attached drawing:
Fig. 1 is the schematic flow of the method according to an embodiment of the invention using a variety of compress mode recorded videos
Figure.
Embodiment
Fig. 1 is the schematic flow of the method according to an embodiment of the invention using a variety of compress mode recorded videos
Figure.As shown in Figure 1, included using the method for a variety of compress mode recorded videos:
S1, receives record command, creates a recorded file in memory, and gathers video data, by the video of collection
Data buffer storage is into memory random access memory;Wherein, video data is the raw image data captured by camera sensor;
S2, when the video data in the random access memory reaches a preset value, continues to gather video data, wherein,
The residual memory space of the memory is detected, when the residual memory space of the memory is less than preset value, described in traversal
Video data in random access memory, will include moving target respectively and does not include in the video data in the random access memory
The data content of moving target carries out video compress with different compress modes;
S3, recorded file is write by compressed video data.
The method using a variety of compress mode recorded videos of the present invention, due to respectively by regarding in the random access memory
Data content of the frequency in comprising moving target and not comprising moving target carries out video compress with different compress modes, because
This can farthest save storage memory, moreover it is possible to classify to information, it is ensured that important information completely preserves.
In one embodiment of the invention, the different compress mode, which carries out video compress, includes:
Obtain at least two frames of the difference preset time in video;
Contrast the pattern of two frame;
If the pattern of two frame is approximate, the first compress mode is taken, if the pattern of two frame is had any different, is taken
Second of compress mode.
In other embodiments, other modes can also be used to classify video data, such as, according to pattern
Color-values etc..
Further, the pattern correspondance at least two frames that the present invention passes through the difference preset time in video, to carry out not
Same compress mode carries out video compress, can effectively improve recognition efficiency, reduces error.
In one embodiment of the invention, the different compress mode includes H.26X series, MPEG series etc..
In the other embodiment of the present invention, other compress modes can also be used to be compressed video file, to reduce video text
The memory of part, increases recording time.
In one embodiment of the invention, the first compress mode or the second compression side are used when starting recorded video
Formula, at any time contrasts two frames of video data, and when the pattern of two frame is approximate, the compress mode is constant;When
When the pattern of two frame is had any different, the compress mode changes.
In yet another embodiment of the present invention, video compress is default clear with first by shown first compress mode
Video file compression is the video file with the second default clarity by the video file of degree, second compress mode.
In another embodiment of the present invention, the video file with the first default clarity of equal time with
The memory that there is the second video file for presetting clarity to take is different.
In the further embodiment of the present invention, the preset time is 1S.In other embodiments, can be with
It it is the time of any other setting, depending on the concrete condition of place to use.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention
Example property embodiment, still, without departing from the spirit and scope of the present invention, still can according to the present invention disclosure it is direct
Determine or derive many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognizes
It is set to and covers other all these variations or modifications.
Claims (7)
- A kind of 1. method using a variety of compress mode recorded videos, it is characterised in that including:S1, receives record command, creates a recorded file in memory, and gathers video data, by the video data of collection Caching is into memory random access memory;Wherein, video data is the raw image data captured by camera sensor;S2, when the video data in the random access memory reaches a preset value, continues to gather video data, wherein, detection The residual memory space of the memory, when the residual memory space of the memory is less than preset value, travels through described random Video data in memory, will include moving target and not comprising movement respectively in the video data in the random access memory The data content of target carries out video compress with different compress modes;S3, recorded file is write by compressed video data.
- 2. the method according to claim 1 using a variety of compress mode recorded videos, it is characterised in that described different Compress mode, which carries out video compress, to be included:Obtain at least two frames of the difference preset time in video;Contrast the pattern of two frame;If the pattern of two frame is approximate, the first compress mode is taken, if the pattern of two frame is had any different, takes second Kind compress mode.
- 3. the method according to claim 2 using a variety of compress mode recorded videos, it is characterised in that described different Compress mode includes H.26X series, MPEG series etc..
- 4. the method according to claim 3 using a variety of compress mode recorded videos, it is characterised in that starting to record The first compress mode or the second compress mode are used during video, when the pattern of two frame is approximate, the compress mode is constant; When the pattern of two frame is had any different, the compress mode changes.
- 5. the method according to claim 4 using a variety of compress mode recorded videos, it is characterised in that shown first pressure Video compress is the video file with the first default clarity by contracting mode, and second compress mode is by video file compression For the video file with the second default clarity.
- 6. the method according to claim 5 using a variety of compress mode recorded videos, it is characterised in that the equal time The memory that the video file with the first default clarity takes with the video file with the second default clarity It is different.
- 7. the method according to claim 6 using a variety of compress mode recorded videos, it is characterised in that when described default Between be 1S.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711293792.6A CN108024080A (en) | 2017-12-08 | 2017-12-08 | A kind of method using a variety of compress mode recorded videos |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711293792.6A CN108024080A (en) | 2017-12-08 | 2017-12-08 | A kind of method using a variety of compress mode recorded videos |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108024080A true CN108024080A (en) | 2018-05-11 |
Family
ID=62079037
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711293792.6A Pending CN108024080A (en) | 2017-12-08 | 2017-12-08 | A kind of method using a variety of compress mode recorded videos |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108024080A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111225215A (en) * | 2020-04-10 | 2020-06-02 | 北京数智鑫正科技有限公司 | Data processing method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262608A (en) * | 2007-03-06 | 2008-09-10 | 陆云昆 | A method for reducing code rate of monitoring compressed video |
CN101394531A (en) * | 2007-09-17 | 2009-03-25 | 映佳科技股份有限公司 | Low data bulk recorded video storage method |
CN101729902A (en) * | 2008-10-15 | 2010-06-09 | 深圳市融创天下科技发展有限公司 | Video compression method |
CN103297739A (en) * | 2012-02-22 | 2013-09-11 | 安凯(广州)微电子技术有限公司 | Method and device for recording audio and video |
CN107682675A (en) * | 2017-10-19 | 2018-02-09 | 佛山市章扬科技有限公司 | A kind of method using a variety of compress mode recorded videos |
-
2017
- 2017-12-08 CN CN201711293792.6A patent/CN108024080A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262608A (en) * | 2007-03-06 | 2008-09-10 | 陆云昆 | A method for reducing code rate of monitoring compressed video |
CN101394531A (en) * | 2007-09-17 | 2009-03-25 | 映佳科技股份有限公司 | Low data bulk recorded video storage method |
CN101729902A (en) * | 2008-10-15 | 2010-06-09 | 深圳市融创天下科技发展有限公司 | Video compression method |
CN103297739A (en) * | 2012-02-22 | 2013-09-11 | 安凯(广州)微电子技术有限公司 | Method and device for recording audio and video |
CN107682675A (en) * | 2017-10-19 | 2018-02-09 | 佛山市章扬科技有限公司 | A kind of method using a variety of compress mode recorded videos |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111225215A (en) * | 2020-04-10 | 2020-06-02 | 北京数智鑫正科技有限公司 | Data processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102104768A (en) | Image monitoring method, main control device and system | |
CN102073885B (en) | Management method for warehousing-in and warehousing-out of electric safety equipment | |
CN105227927A (en) | A kind of monitor video date storage method and device | |
CN103826109A (en) | Video monitoring image data processing method and system | |
CN113283344A (en) | Mining conveying belt deviation detection method based on semantic segmentation network | |
CN102002582A (en) | Method and device for synchronously analyzing and monitoring band steel by using image identification | |
CN108280953A (en) | Video detecting alarm method and device, storage medium, camera | |
CN115116004A (en) | Office area abnormal behavior detection system and method based on deep learning | |
CN103051880A (en) | Video monitoring system device based on multiple cameras | |
CN100539687C (en) | The intelligent network camera that possesses protection fixed target function | |
CN102665036A (en) | High-definition three-in-one network video recorder system | |
EP3432575A1 (en) | Method for performing multi-camera automatic patrol control with aid of statistics data in a surveillance system, and associated apparatus | |
CN108024080A (en) | A kind of method using a variety of compress mode recorded videos | |
CN103646242A (en) | Maximally stable extremal region characteristic-based extended target tracking method | |
CN103473574B (en) | A kind of uncertainty RFID data processing method based on sequential relationship | |
CN111401206A (en) | Panorama sharing method, system, device and medium | |
CN107682675A (en) | A kind of method using a variety of compress mode recorded videos | |
CN102955929A (en) | Ultra-wide-field image processing method and ultra-wide-field image processing system | |
WO2017071146A1 (en) | Touch control screen navigation method based on fingerprint identifier, and relevant device | |
TW201545130A (en) | Reminding method for guard and reminding apparatus, reminding system and computer program product thereof | |
CN105025240A (en) | Law enforcement recorder and control method thereof | |
US10783365B2 (en) | Image processing device and image processing system | |
CN104392201A (en) | Human fall identification method based on omnidirectional visual sense | |
CN107146372A (en) | A kind of method and system by video identification production line working condition | |
CN107743209A (en) | A kind of method according to surrounding environment batch (-type) recorded video |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180511 |