CN102930875A - Real-time synchronous audio and video recording method - Google Patents

Real-time synchronous audio and video recording method Download PDF

Info

Publication number
CN102930875A
CN102930875A CN2011102289046A CN201110228904A CN102930875A CN 102930875 A CN102930875 A CN 102930875A CN 2011102289046 A CN2011102289046 A CN 2011102289046A CN 201110228904 A CN201110228904 A CN 201110228904A CN 102930875 A CN102930875 A CN 102930875A
Authority
CN
China
Prior art keywords
eccb
file
video
imprinting
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.)
Granted
Application number
CN2011102289046A
Other languages
Chinese (zh)
Other versions
CN102930875B (en
Inventor
沈科登
汤勇
朱海龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Dongnan Evidence Science Research Institute Co ltd
Original Assignee
Shanghai Convertergy Energy Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Convertergy Energy Technology Co Ltd filed Critical Shanghai Convertergy Energy Technology Co Ltd
Priority to CN201110228904.6A priority Critical patent/CN102930875B/en
Publication of CN102930875A publication Critical patent/CN102930875A/en
Application granted granted Critical
Publication of CN102930875B publication Critical patent/CN102930875B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a real-time synchronous audio and video recording method. The method comprises the following steps of: (1) detecting whether a new optical disk is put in, if so, then formatting the optical disk and creating a file allocation table, or else going to the step (3); (2) writing the information of the file allocation table into the most beginning ECCB (Error Correct Code Block) of the optical disk, and then turning to the step (4); (3) finding out a first blank ECCB corresponding to each file, and then turning to the step (4); (4) marking the current ECCB as recorded, and then judging whether a video capturing and coding module acquires data to be recorded, if so, going to the step (5), or else stopping writing into a buffer of a recording machine; (5) invoking a recording command, and writing in the data to be recorded; and (6) reading the next ECCB address of the current file, judging the ECCB is the last ECCB of the optical disk, and finishing recording. Compared with the prior art, the real-time synchronous audio and video recording method has the advantages of real-time recording, optical disk enveloping and the like, and the fault tolerance and the reliability of the system are increased.

Description

A kind of method of real-time synchronization video and audio recording
Technical field
The present invention relates to the video and audio recording field, especially relate to a kind of method of real-time synchronization video and audio recording.
Background technology
Digital video recorder DVR is a series products of current fast development, can finish the real time record to capturing video, is widely used in the fields such as video monitoring, video conference and digital home.The digital video recorder series products generally all adopts hard disk (comprising the network storage) as the medium of video storage, can realize the video storage of magnanimity.But for some special application, because the data on the hard disk can be modified and rewrite " can not change " that therefore can't realize record data.The video that is recorded for some product requirement like this has can not the property revised the time, the medium that just must adopt write-once medium (DVD-R or DVD+R) to be used as storing.The below be in certain application scheme to the specific requirement of video real time record: 1, hard disk and CD record simultaneously; 2, simultaneously imprinting of two CDs; 3, the essential write-once CD (DVD+R or DVD-R) that adopts of CD is stopped the possibility that data are modified fully; 4, quick envelope dish.CD can take out (for a long time consistency operation may video the authenticity of data) immediately after imprinting was finished; 5, when the abnormal failures such as appearance outage, can record the live video (delay will be controlled at a millisecond order of magnitude, and namely people's sense organ can't be discovered) of outage previous moment on the CD; 6, imprinting can continue imprinting last time and carry out the integrality of assurance videograph after the fault recovery; 7, individual CD is supported ultra-long time record (>8 hours).These technical requirements all are true, accurately and can not revise for guarantee to be correlated with " data (video) ".
For these requirements, if after adopting that DVD is disposable and imprinting CDs because the singularity of the physique of CD own so that in real time imprinting and fast the function such as envelope dish be subject to severely restricts.
CD DV (digital camera) can be implemented on the write-once CD video is carried out real-time imprinting.Video file adopts the DVD-Video form, is based on the UDF file system.Utilized UDF that the VAT characteristic of (Virtual Allocation Table virtual allocation table) can be provided, by the increment imprinting to video file, be implemented on the DVD compact disc rocordable carry out in real time, repeatedly imprinting.But CD DV is specialized equipment, and other parts that can't homologous ray are integrated.Can't be implemented in the stack of carrying out other Word messages such as captions on the video.The video of recording exists only on the CD of the machine, can't realize the simultaneously imprintings of two CDs because can't be on hard disk synchronous recording.The CD burning the limited time.Owing to generally all adopt small-sized optical disc (portable characteristics decision), capacity is very limited, can't realize reaching 8 hours imprinting.Video file adopts the DVD-Video form, can only adopt the MPEG2 algorithm to compress, and ratio of compression is limited.After finishing, CD burning to carry out " envelope dish " operation, the time long (several minutes).
Utilize hard disk to do buffer memory, need to be along with the increase of capturing video content in the file system, and the data structure temporary cache that needs constantly to rewrite be on hard disk, wait for video recording finish after one-time write to CD.Simultaneously, according to the requirement of file system the video of imprinting is carried out staging treating, after the enough data to be written of buffer memory on the hard disk, starting imprinting first.Since need to be when video recording be finished one-time write file system relevant information and seal the dish operation, therefore " envelope dish " time long, can't realize quick envelope dish.Because engraving data is that segmentation is stored in first on the hard disk, therefore working as abnormal conditions such as outage occur is, the data of imprinting can be than lacking on the hard disk on the CD, namely be cached in the audio, video data that does not also start imprinting on the hard disk and just can't see at CD, this can cause several minutes even for more time loss of data of (depending on the clip size with the segmentation imprinting).
Also there is not at present relevant technology to can be good at addressing the above problem, and the real-time carving method that can satisfy the demands.
Summary of the invention
Purpose of the present invention is exactly to provide a kind of to carry out real-time imprinting, quick envelope dish in order to overcome the defective that above-mentioned prior art exists, and can greatly improve the method for real-time synchronization video and audio recording of the fault-tolerant and reliability of system.
Purpose of the present invention can be achieved through the following technical solutions: a kind of method of real-time synchronization video and audio recording, it is characterized in that, the method may further comprise the steps: 1) detect in the DVD burner whether put into new CD, formatting optical disc then if the judgment is Yes, create file allocation table, then forward step 2 to), then carry out step 3 if the judgment is No); 2) file allocation table information is write among the ECCB that CD begins most, then forward step 4 to); 3) read the optical file assignment information, obtain the ECCB allocation table, then order reads ECCB corresponding to each file, finds first blank ECCB corresponding to each file, then carry out step 4); 4) the current ECCB of mark is imprinting, then judge whether Video Capture and coding module collect the data for the treatment of imprinting, then carry out step 5 if the judgment is Yes), otherwise stop to write CD writer buffer, hang up the CD writer laser head, then rejudge Video Capture and coding module and whether collect the data for the treatment of imprinting; 5) call recording command, write and treat engraving data, then judge whether to be burnt to current ECCB ending, if the judgment is Yes, then carry out step 6), otherwise forward step 4 to) rejudge Video Capture and whether coding module collects the data for the treatment of imprinting; 6) read the next ECCB of current file address, and determine whether last ECCB of CD, if the judgment is Yes, then finish, otherwise forward step 4 to) rejudge Video Capture and whether coding module collects the data for the treatment of imprinting.
File allocation table information is write among the ECCB that CD begins most described step 2) is specially, generating rate according to the video data of catching in real time distributes ECCB, corresponding ECCB is organized into the mode of chained list, then disposable the file-related information CD that writes direct before imprinting begins.
Whether described file allocation table information comprises ECCB, the video compression algorithm that filename, each file take and encrypts.
Compared with prior art, the present invention has the following advantages:
1, can well realize similar multimedia data stream is carried out real-time imprinting (especially imprinting on the write-once CD);
2, greatly improve the fault-tolerant and reliability of system, guarantee to greatest extent the promptness of imprinting when chance failure occurring in system, avoid loss of data;
3, quick envelope dish, the realization imprinting is finished, and CD can take out immediately, need not any wait;
4, video playback is supported various playback controls functions.
Description of drawings
Fig. 1 is process flow diagram of the present invention.
Embodiment
The present invention is described in detail below in conjunction with the drawings and specific embodiments.
Embodiment
As shown in Figure 1, a kind of method of real-time synchronization video and audio recording, the method may further comprise the steps:
Step 1) detect in the DVD burner whether put into new CD, formatting optical disc then creates file allocation table if the judgment is Yes, then forwards step 2 to), then carry out step 3 if the judgment is No);
Step 2) will comprise that ECCB, the video compression algorithm that filename, each file take and the file allocation table information of whether encrypting write among the ECCB that CD begins most, then forward step 4 to); File allocation table information is write the generating rate that is specially according to the video data of catching in real time among the ECCB that CD begins most distributes ECCB, corresponding ECCB is organized into the mode of chained list, then disposable the file-related information CD that writes direct before imprinting begins.
Step 3) read the optical file assignment information, obtain the ECCB allocation table, then order reads ECCB corresponding to each file, finds first blank ECCB corresponding to each file, then carry out step 4);
Step 4) the current ECCB of mark is imprinting, then judge whether Video Capture and coding module collect the data for the treatment of imprinting, then carry out step 5 if the judgment is Yes), otherwise stop to write CD writer buffer, hang up the CD writer laser head, then rejudge Video Capture and coding module and whether collect the data for the treatment of imprinting;
Step 5) calls recording command, write and treat engraving data, then judge whether to be burnt to current ECCB ending, if the judgment is Yes, then carry out step 6), otherwise forward step 4 to) rejudge Video Capture and whether coding module collects the data for the treatment of imprinting;
Step 6) read the next ECCB of current file address, and determine whether last ECCB of CD, if the judgment is Yes, then finish, otherwise forward step 4 to) rejudge Video Capture and whether coding module collects the data for the treatment of imprinting.
The writing speed of DVD burner is all than comparatively fast, even the minimum etch-recording speed (X1) according to CD comes engraving data, also can't realize surpassing 8 hours real-time imprinting, so must will utilize the laser head of DVD burner hangs up and restore funcitons, by software CD writer is write the control of buffer memory buffer, automatically hang up laser head at buffer memory when being empty, when buffer again data writing, automatically recover again the location of laser head, and write data to CD
The file system of supporting " increment type appends " is to realize the key of real-time imprinting.The ISO9660 of common file system such as FAT, NTFS and CD special use and UDF etc.The general information such as length that all need to know in advance file, and catch in real time and this special application of imprinting for video, the length information of file can't be known exactly in advance, and it is along with the carrying out of Video Capture, and the length of file is also in continuous increase.This is with regard to so that traditional file systems is difficult to carry out the real-time imprinting of CD.In order to address this problem, we define a kind of special stream (stream) file system for real-time imprinting.Basic ideas are the available sector on the CD (ECC Block) was just distributed before imprinting and to manage (format), generating rate (code check) according to the video data of catching in real time distributes ECCB, corresponding ECCB is organized into the mode of chained list, like this before imprinting begins, the process by " format " with regard to disposable the file-related information CD that writes direct.When video playback, directly read the ECCB that CD begins several fixed number most, just can get access to the relevant information of All Files on the CD fully, comprise filename, whether each file taken those ECCB, video compression algorithm, encrypt etc.
Video data for gather generating at first can carry out Video coding, and data are compressed (such as algorithm H.264).Compression algorithm is general all take the base unit of frame data as compression.The order that video data in the file layout of this paper definition (after the compression) employing one frame connects a frame directly is burnt on the CD, and data are stored according to the order that they generate.Coupling between the data drops to minimum, so imprinting can stop at any time
During playback of video files, can at first read several ECCB (relevant information such as these sector include file distribution) that CD begins most, just can know has those files, takies respectively how many ECCB on the CD.From the ECCB of correspondence, read related data and deliver in order the compression algorithm module and decode and playback, just can reduce fully and catch video content with imprinting.When (causing certain ECCB not have the imprinting complete such as outage) when among any one ECCB corrupted data being arranged, also can not affect the playback of video.When this situation occurring (error code), corresponding picture can block.This follows when network is play Online Video, and picture can not smoothly be the same when Network Packet Loss occurring.In case subsequent reads is got active data, picture can recover again smooth playback.So so that the reliability of file system and fault-tolerance greatly strengthen.
Because the data bit rate behind Video Capture and the coding can calculate, and therefore by the calculating to the ECCB capacity, can provide completely Play Control function when video playback, comprises F.F. and jumps to the fixed time etc.
In addition, file system provided by the present invention can be supported in the real-time imprinting support that realizes on the write-once medium " stream " files such as multimedias; Can support well fault-tolerant and high reliability, the imprinting of avoiding causing owing to accidental cause interrupts causing the damage of imprinting file, even and the damage of CD Local physical, also can read other parts, guarantee to greatest extent the complete of data; Can repeatedly (limit without number of times) in disposable recordable media realization and append imprinting; Can support the support to various audio/video encoding/decoding algorithms.

Claims (3)

1. the method for a real-time synchronization video and audio recording is characterized in that, the method may further comprise the steps:
1) detect in the DVD burner whether put into new CD, formatting optical disc then creates file allocation table if the judgment is Yes, then forwards step 2 to), then carry out step 3 if the judgment is No);
2) file allocation table information is write among the ECCB that CD begins most, then forward step 4 to);
3) read the optical file assignment information, obtain the ECCB allocation table, then order reads ECCB corresponding to each file, finds first blank ECCB corresponding to each file, then carry out step 4);
4) the current ECCB of mark is imprinting, then judge whether Video Capture and coding module collect the data for the treatment of imprinting, then carry out step 5 if the judgment is Yes), otherwise stop to write CD writer buffer, hang up the CD writer laser head, then rejudge Video Capture and coding module and whether collect the data for the treatment of imprinting;
5) call recording command, write and treat engraving data, then judge whether to be burnt to current ECCB ending, if the judgment is Yes, then carry out step 6), otherwise forward step 4 to) rejudge Video Capture and whether coding module collects the data for the treatment of imprinting;
6) read the next ECCB of current file address, and determine whether last ECCB of CD, if the judgment is Yes, then finish, otherwise forward step 4 to) rejudge Video Capture and whether coding module collects the data for the treatment of imprinting.
2. the method for a kind of real-time synchronization video and audio recording according to claim 1, it is characterized in that, file allocation table information is write among the ECCB that CD begins most described step 2) is specially, generating rate according to the video data of catching in real time distributes ECCB, corresponding ECCB is organized into the mode of chained list, then disposable the file-related information CD that writes direct before imprinting begins.
3. the method for a kind of real-time synchronization video and audio recording according to claim 1 and 2 is characterized in that, whether described file allocation table information comprises ECCB, the video compression algorithm that filename, each file take and encrypt.
CN201110228904.6A 2011-08-10 2011-08-10 A kind of method of real-time synchronization video and audio recording Expired - Fee Related CN102930875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110228904.6A CN102930875B (en) 2011-08-10 2011-08-10 A kind of method of real-time synchronization video and audio recording

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110228904.6A CN102930875B (en) 2011-08-10 2011-08-10 A kind of method of real-time synchronization video and audio recording

Publications (2)

Publication Number Publication Date
CN102930875A true CN102930875A (en) 2013-02-13
CN102930875B CN102930875B (en) 2016-04-27

Family

ID=47645656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110228904.6A Expired - Fee Related CN102930875B (en) 2011-08-10 2011-08-10 A kind of method of real-time synchronization video and audio recording

Country Status (1)

Country Link
CN (1) CN102930875B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105575409A (en) * 2015-12-16 2016-05-11 天津天地伟业数码科技有限公司 Method for writing MP4 file into optical disc under embedded host computer
CN112530467A (en) * 2019-10-08 2021-03-19 北京中科开迪软件有限公司 Optical disk storage additional recording method and system
CN114512151A (en) * 2021-12-28 2022-05-17 奇安信科技集团股份有限公司 Method and system for auditing and controlling optical disc recording
CN116798457A (en) * 2023-08-29 2023-09-22 中孚安全技术有限公司 Recording behavior identification and management and control method, system, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5883867A (en) * 1996-03-25 1999-03-16 Kabushiki Kaisha Toshiba Optical disk device and method for replacing a defective sector within a block containing recording data and error correction data on an optical disk
CN1705020A (en) * 2004-05-26 2005-12-07 联发科技股份有限公司 Automatic CD driver loader recording and reconnecting method
CN1747030A (en) * 2004-09-07 2006-03-15 上海乐金广电电子有限公司 Space search of carving disk
CN101409098A (en) * 2008-11-12 2009-04-15 杭州海康威视数字技术股份有限公司 Method for implementing real time CD-RW of digital HD video recorder

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5883867A (en) * 1996-03-25 1999-03-16 Kabushiki Kaisha Toshiba Optical disk device and method for replacing a defective sector within a block containing recording data and error correction data on an optical disk
CN1705020A (en) * 2004-05-26 2005-12-07 联发科技股份有限公司 Automatic CD driver loader recording and reconnecting method
CN1747030A (en) * 2004-09-07 2006-03-15 上海乐金广电电子有限公司 Space search of carving disk
CN101409098A (en) * 2008-11-12 2009-04-15 杭州海康威视数字技术股份有限公司 Method for implementing real time CD-RW of digital HD video recorder

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105575409A (en) * 2015-12-16 2016-05-11 天津天地伟业数码科技有限公司 Method for writing MP4 file into optical disc under embedded host computer
CN112530467A (en) * 2019-10-08 2021-03-19 北京中科开迪软件有限公司 Optical disk storage additional recording method and system
CN112530467B (en) * 2019-10-08 2024-03-12 北京中科开迪软件有限公司 Method and system for additionally burning optical disk storage
CN114512151A (en) * 2021-12-28 2022-05-17 奇安信科技集团股份有限公司 Method and system for auditing and controlling optical disc recording
CN114512151B (en) * 2021-12-28 2024-03-22 奇安信科技集团股份有限公司 Method and system for auditing, managing and controlling optical disk writing
CN116798457A (en) * 2023-08-29 2023-09-22 中孚安全技术有限公司 Recording behavior identification and management and control method, system, equipment and medium
CN116798457B (en) * 2023-08-29 2023-12-15 中孚安全技术有限公司 Recording behavior identification and management and control method, system, equipment and medium

Also Published As

Publication number Publication date
CN102930875B (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN100578470C (en) Audio/video data access method and device based on raw device
CN1643605B (en) Data recording method, data recording device, data recording medium, data reproduction method, and data reproduction device
CN102136290A (en) Method for storing embedded real-time video files
JP2006510984A (en) Pre-configured backup DVD-RWS
CN102027544A (en) Reproduction device, reproduction method, and program
CN102930875B (en) A kind of method of real-time synchronization video and audio recording
CN107168651A (en) A kind of small documents polymerize storage processing method
CN105100716A (en) Safe memory cell used for network video monitoring and system thereof
US8081396B2 (en) Processing data recorded on a tape medium
TW200418002A (en) Method for writing streaming audiovisual data to a disk drive
JP2004213769A5 (en)
CN102754154B (en) Recording medium, reproduction and recording method, reproduction and recording device
CN100440352C (en) Power failure recovery method
US8230125B2 (en) Methods for reserving index memory space in AVI recording apparatus
CN112530467B (en) Method and system for additionally burning optical disk storage
CN103377664A (en) Data recording/reproducing apparatus and database apparatus
JP2009301148A (en) Distributed storage control system, distributed storage control method, and distributed storage control program
JP2005301641A (en) Video photographing device
TW200421285A (en) Digital recording/reproducing apparatus with a timeshift function, and method therefor
US9812166B2 (en) Recording and reproducing device for reconstructing user data
CN100454225C (en) An apparatus for and a method of storing a real time stream of digital information signals
CN101785062A (en) Reproduction apparatus and method of controlling a reproduction apparatus
KR20100078810A (en) Method and apparatus for recording and reading information
US7756399B2 (en) Safe recovery in DVD recordable/rewritable realtime recording
JPH0512800A (en) Information recording and reproducing device equipped with data compressing function and information recording medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190428

Address after: Room 1111, Block B, West of No. 100 Yunlongshan Road, Nanjing City, Jiangsu Province, 210000

Patentee after: JIANGSU DONGNAN EVIDENCE SCIENCE RESEARCH INSTITUTE Co.,Ltd.

Address before: Room 151, Building 6, 4289 Jindu Road, Minhang District, Shanghai 201108

Patentee before: SHANGHAI CONVEX ELECTRONIC TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160427

Termination date: 20210810