CN107682675A - 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
- CN107682675A CN107682675A CN201710979856.1A CN201710979856A CN107682675A CN 107682675 A CN107682675 A CN 107682675A CN 201710979856 A CN201710979856 A CN 201710979856A CN 107682675 A CN107682675 A CN 107682675A
- Authority
- CN
- China
- Prior art keywords
- video
- compress mode
- compress
- video data
- memory
- 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
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The 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, record command is received, creates a recorded file in memory, and gather video data, the video data of collection is cached into internal 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, the video data after compression is write into recorded file.
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, turn into the focus 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 can not carrying out classified compression to video in technology.
Especially, the invention provides a kind of method using a variety of compress mode recorded videos, including:
S1, record command is received, creates a recorded file in memory, and gather video data, by the video of collection
Data buffer storage is into internal 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, continue 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, moving target will be included in the video data in the random access memory respectively and do not included
The data content of moving target carries out video compress with different compress modes;
S3, the video data after compression is write into recorded file.
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
During case approximation, 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 definition by shown first compress mode, described
Video file compression is the video file with the second default definition by the second compress mode.
Alternatively, the video file with the first default definition of equal time is preset clearly with described with second
The internal 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 internal memory, moreover it is possible to information be classified, 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 the present invention are described in detail by way of example, and not by way of limitation with reference to the accompanying drawings hereinafter.
Identical reference denotes same or similar part or part in accompanying drawing.It should be appreciated by those skilled in the art that these
What accompanying drawing was not necessarily drawn to scale.In accompanying 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, record command is received, creates a recorded file in memory, and gather video data, by the video of collection
Data buffer storage is into internal 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, continue 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, moving target will be included in the video data in the random access memory respectively and do not included
The data content of moving target carries out video compress with different compress modes;
S3, the video data after compression is write into recorded file.
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 internal memory, moreover it is possible to information be classified, 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, video data can also be classified using other modes, 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, video file can also be compressed using other compress modes, to reduce video text
The internal memory of part, increase recording time.
In one embodiment of the invention, the first compress mode or the second compression side are used when starting recorded video
Formula, two frames of video data are contrasted at any time, when the pattern approximation of two frame, 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 definition by the video file of degree, second compress mode.
In another embodiment of the present invention, the video file with the first default definition of equal time with
The internal memory that there is the second video file for presetting definition 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 that other arbitrarily set, 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, still can be direct according to present disclosure without departing from the spirit and scope of the present invention
It is determined that 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 recognized
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, record command is received, creates a recorded file in memory, and gather video data, by the video data of collection Caching is into internal 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, continue 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, travel through described random Video data in memory, moving target will be included in the video data in the random access memory respectively and not comprising motion The data content of target carries out video compress with different compress modes;S3, the video data after compression is write into recorded file.
- 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 approximation of two frame, 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 definition by contracting mode, and second compress mode is by video file compression For the video file with the second default definition.
- 6. the method according to claim 5 using a variety of compress mode recorded videos, it is characterised in that the equal time The internal memory that the video file with the first default definition takes with the video file with the second default definition 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 |
---|---|---|---|
CN201710979856.1A CN107682675A (en) | 2017-10-19 | 2017-10-19 | A kind of method using a variety of compress mode recorded videos |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710979856.1A CN107682675A (en) | 2017-10-19 | 2017-10-19 | A kind of method using a variety of compress mode recorded videos |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107682675A true CN107682675A (en) | 2018-02-09 |
Family
ID=61140973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710979856.1A Pending CN107682675A (en) | 2017-10-19 | 2017-10-19 | A kind of method using a variety of compress mode recorded videos |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107682675A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108024080A (en) * | 2017-12-08 | 2018-05-11 | 佛山市章扬科技有限公司 | A kind of method using a variety of compress mode recorded videos |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1574901A (en) * | 2003-06-03 | 2005-02-02 | 三星电子株式会社 | Photographing apparatus for automatically setting compression format and method thereof |
CN101053033A (en) * | 2005-09-13 | 2007-10-10 | 株式会社东芝 | Information storage medium, information reproducing apparatus, and information reproducing method |
CN101262608A (en) * | 2007-03-06 | 2008-09-10 | 陆云昆 | A method for reducing code rate of monitoring compressed video |
CN101330619A (en) * | 2008-07-29 | 2008-12-24 | 北京中星微电子有限公司 | Method for compressing video image and corresponding method for decoding 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 |
CN102665077A (en) * | 2012-05-03 | 2012-09-12 | 北京大学 | Rapid and efficient encoding-transcoding method based on macro block classification |
CN103179402A (en) * | 2013-03-19 | 2013-06-26 | 中国科学院半导体研究所 | Video compression coding and decoding method and device |
CN103297739A (en) * | 2012-02-22 | 2013-09-11 | 安凯(广州)微电子技术有限公司 | Method and device for recording audio and video |
CN103974031A (en) * | 2013-02-01 | 2014-08-06 | 深圳市方通科技有限公司 | High-definition streaming media server |
CN104811722A (en) * | 2015-04-16 | 2015-07-29 | 华为技术有限公司 | Video data coding and decoding method and device |
-
2017
- 2017-10-19 CN CN201710979856.1A patent/CN107682675A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1574901A (en) * | 2003-06-03 | 2005-02-02 | 三星电子株式会社 | Photographing apparatus for automatically setting compression format and method thereof |
CN101053033A (en) * | 2005-09-13 | 2007-10-10 | 株式会社东芝 | Information storage medium, information reproducing apparatus, and information reproducing method |
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 |
CN101330619A (en) * | 2008-07-29 | 2008-12-24 | 北京中星微电子有限公司 | Method for compressing video image and corresponding method for decoding video |
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 |
CN102665077A (en) * | 2012-05-03 | 2012-09-12 | 北京大学 | Rapid and efficient encoding-transcoding method based on macro block classification |
CN103974031A (en) * | 2013-02-01 | 2014-08-06 | 深圳市方通科技有限公司 | High-definition streaming media server |
CN103179402A (en) * | 2013-03-19 | 2013-06-26 | 中国科学院半导体研究所 | Video compression coding and decoding method and device |
CN104811722A (en) * | 2015-04-16 | 2015-07-29 | 华为技术有限公司 | Video data coding and decoding method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108024080A (en) * | 2017-12-08 | 2018-05-11 | 佛山市章扬科技有限公司 | A kind of method using a variety of compress mode recorded videos |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020094091A1 (en) | Image capturing method, monitoring camera, and monitoring system | |
US20070217765A1 (en) | Method and its application for video recorder and player | |
CN109299703B (en) | Method and device for carrying out statistics on mouse conditions and image acquisition equipment | |
CN101917601B (en) | Digital video intelligent monitoring equipment based on dual camera and data processing method | |
CN103826109A (en) | Video monitoring image data processing method and system | |
US20190340904A1 (en) | Door Surveillance System and Control Method Thereof | |
CN111311630A (en) | Method and system for intelligently counting quantity of goods through videos in warehousing management | |
CN107770486B (en) | Event search apparatus and system | |
WO2021067032A1 (en) | Audio/video electronic device | |
US10657783B2 (en) | Video surveillance method based on object detection and system thereof | |
CN109002776B (en) | Face recognition method, system, computer device and computer-readable storage medium | |
CN103472907A (en) | Method and system for determining operation area | |
CN103051880A (en) | Video monitoring system device based on multiple cameras | |
CN102665036A (en) | High-definition three-in-one network video recorder system | |
CN100539687C (en) | The intelligent network camera that possesses protection fixed target function | |
CN111401206A (en) | Panorama sharing method, system, device and medium | |
CN107682675A (en) | A kind of method using a variety of compress mode recorded videos | |
CN114998317A (en) | Lens occlusion detection method and device, camera device and storage medium | |
CN108024080A (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 | |
CN103473574A (en) | Time-sequence-relation-based non-determinacy RFID (Radio Frequency Identification Device) data processing method | |
CN105025240A (en) | Law enforcement recorder and control method thereof | |
US10783365B2 (en) | Image processing device and image processing system | |
CN107146372A (en) | A kind of method and system by video identification production line working condition | |
KR20040018586A (en) | Motion detecting device using face characteristics and monitoring system adapting it |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180209 |