CN103686312B - DVR multipath audio and video recording method - Google Patents
DVR multipath audio and video recording method Download PDFInfo
- Publication number
- CN103686312B CN103686312B CN201310654102.0A CN201310654102A CN103686312B CN 103686312 B CN103686312 B CN 103686312B CN 201310654102 A CN201310654102 A CN 201310654102A CN 103686312 B CN103686312 B CN 103686312B
- Authority
- CN
- China
- Prior art keywords
- data
- video
- audio
- compression
- frame
- 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.)
- Active
Links
Abstract
The invention discloses a DVR multipath audio and video recording method. The method comprises the steps of collecting and buffering all the input audio data sections to an audio data buffer area, collecting and compressing a part of input video frame compression data into a video data buffer area, periodically checking whether data exist in the buffer areas in a timing mode, and reading the data of the buffer areas to a storage card. The method is quite suitable of application of DVR multipath audio and video record large in video frame rate fluctuation range, is wide in frame rate fluctuation range, and can reach 80% in fluctuation range, namely, video still can maintain a good time synchronous effect when being changed into 6frames/second from original preset 30frames/second in frame rate.
Description
Technical field:
The invention belongs to multimedia information field.
Background technology:
With the development of solid state storage technologies and video compression technology, DVR equipment is remembered by the audio frequency and video of traditional magnetic tape type
Record mode is replaced by digital recording mode, has significant raising in terms of the adaptability of volume, weight and environment.Number
Word formula DVR recorded data is mainly the voice data on one to two tunnel, the video data of multichannel (more than typically three tunnels).Its
Operation principle is substantially:To input audio-video signal be acquired, compression process after, by primary control program, data is carried out locally
Buffering simultaneously writes to the specified file on solid-state memory.The main process structure of airborne digital formula DVR as shown in figure 1, it by
One piece or more than one piece of audiovisual compression module, one piece of control management module and one piece of solid-state large-capacity FLASH storage dish group
Become.As shown in Fig. 2 comprising multiple compression processing unit in audiovisual compression module, each compression processing unit has a road and regards
Frequency acquisition interface circuit, compression processor, local exterior's memorizer and to external bus interface, have adopting of a road video data
Collection, the function of compression, buffering and transmission, some compression processing unit also have audio collection interface, have concurrently audio data collecting and
The function of buffering;As shown in figure 3, control management module mainly by general processor, chip external memory, EBI (as CPCI
Deng), storing card data interface composition.Control management module to pass through EBI and process list with each compression in compressing processing module
Unit carries out data interaction, controls the work of compression processing unit, reads compression process by the way of setting compression enabler flags
Voice data on unit and compressed video frame data, these data are added storage cache management queue, and are managed by storage
Audio, video data in cache management queue is write solid-state memory by process.
The data processing of DVR is mainly by the compression process of compression processing unit, the data visit controlling in management module
Ask control process and the data storage process three sub- process composition to storage card.Because video compression data is in front and back's condensed frame
Between there is the dependency of data, therefore it is required that the frame data after compression is processed can not arbitrarily abandon, should be stored completely, with
Keep the video quality of broadcast decoder, this is the basic demand of DVR videograph.In the ideal case, compression process energy
Enough press the fixing frame per second compressed video data of its setting, and these data all can obtain the timely place that data access controls process
Reason, and storage card is write in time by data storage process, do not result in delay or the loss of data.In this case, as long as real
The timely playback setting frame per second pressed by existing player, would not produce the problem of the Time Inconsistency between the audio frequency and video of each road.But this
Plant what ideal situation often can not meet, the situation of reality is to influence each other between above three processing procedure, cause reality
Border records the fluctuation of video frame rate.First, in the compression process of video, the time that compression is processed depends on current video image
Complexity, the simple image for content, the time that compression is processed is shorter, and the data volume of generation is also less, for complicated or prominent
The picture frame becoming, then the time compressing process can extend, and the data volume of generation is also larger, if the high complexity map of continued compression
Picture, is likely to result in reducing it is possible to can produce less than the condensed frame setting frame per second of compression processing unit actual compression frame per second
Rate;Secondly, the master processor processes ability of controlled management module and the restriction of interface transfer rate, in compression processing unit
Compressed data differs and is surely read in time, causes to process time delay interval lengthening, cause the lower compression processing unit of control according to
The actual frame per second slower than setting frame per second is compressed;Again, data writing disk manipulation is likely to bottleneck problem, for burst
A large amount of compressed datas may not be completely written to storage card within the estimated time, cause data buffer zone to use up, lead to be
System blocks it is impossible to obtain new data from compression processing unit again, and then leads to data compression process unit to slow down compression frame per second,
Adapt to current memory bandwidth to adjust.The impact that the situation of above-mentioned generation causes for each compression processing unit is in degree
It is independent, that is, their changes of the data frame per second of generation compared with ideal situation are inconsistent, and inconsistent degree
Also respectively there is difference, add up and deviation is produced with regard to Zao Ge road video compress frame number, and the degree of deviation all differs to each road video
Cause, when many, this difference can reach the frame of video quantity of several minutes, if not taking suitable synchronisation measures, Jiu Huizao
Serious asynchrony phenomenon on time of origin when becoming multi-channel video to play, audio, video data in time mutual dislocation it is impossible to phase
Mutually mapping, has a strong impact on the effective utilization of DVR record data.
Existing audio video transmission standard, such as the TS data flow of MPEG-2 and PS stream, and Foreign Military standard
IRIG106, is all to stab labelling by additional period on audio, video data, indicates the time that corresponding player is specified according to it
Intervening sequences decodes audio, video data, reaches the effect of audio-visual synchronization, these mechanism all can have sound in DVR and other and regard
Adopt in the application of frequency writing function, but the enforcement of these mechanism, it is all sound based on the synchronous acquisition realizing audio frequency and video
The method of video data synchronization collection is different, depending on factors such as application level, application conditions.The video recording of private-use class
Broadcast system, due to employing clock integrated design, and the dedicated treatment facility that matches with video formats is it is ensured that internal number
According to the synchronicity of acquisition process, focus on the time synchronizing relation between single channel video and multichannel track.
But the DVR application product of the amateur level for airborne multichannel audio-video frequency, by the power consumption of equipment, volume and
The restriction of the application conditions such as weight, should not be realized using excessively complicated hardware.Its faced by process multi-channel video, input
Do not controlled by DVR in the sequential of signal, produced by different video input apparatus respectively, be independent each other, can not keep away
There is the deviation in sequential to each other with exempting from, and the impact that these deviations are fluctuated to frame per second due to DVR processing procedure is again not
Disconnected change, if each adopting independent timestamp information to every road video, pursuing and strictly reducing during recorded broadcast is put
These video sequential are extremely difficult it is desirable to the processor in DVR editing equipment management module must provide for clock function clothes
Business function or have a considerable amount of timer functions, these are typically all difficult to meet for common flush bonding processor, because
Great majority control the processor of management module to lack clock function service, and the quantity of its intervalometer is also less than three, condition
And these resources nor be fully allocated to video acquisition process use.In addition, during playing, due to video playback ground
Face station is to the read-write speed of disk video file data and the restriction of order read-write it is also difficult to realize independent many in strict accordance with each road
Sequential timestamp carries out decoding display while multi-channel video.
Content of the invention
The defect existing for prior art, the goal of the invention of the present invention is to provide a kind of DVR multichannel audio-video frequency record
Method is it is adaptable to less demanding, applied widely to the disposal ability of airborne equipment hardware and ground playback process equipment
Multichannel audio-video frequency synchronous data sampling method, the process of ShiDVRGe road audio, video data is harmonious in time, thus side
Just joining day stamp labelling, generates follow-up audio and video data streams, produces the record being available for the broadcasting of Multi-audio-frequency many audio video synchronization
Data is it is ensured that the practical value of DVR record data.
The goal of the invention of the present invention is achieved through the following technical solutions:
A kind of DVR multichannel audio-video frequency recording method, comprises:
1), the collection of audio compression processing procedure and the audio frequency number buffering the voice data of all inputs to compression processing unit
According to relief area;
2), Video compression process is controlled, by data access, the frame of video pressure that Process flowchart collection and compression section input
Contracting data to compression processing unit video data buffer;
3), whether data access controls the video data buffer that process checks each compression processing unit according to timing cycle
There is the video frame compression data that compression completes, if it has, then reading the video frame compression number of the compression processing unit that compression completes
According to being loaded into the cushion space controlling management module and stamping time labelling, if having voice data in compression processing unit,
The voice data continuing to read above is loaded into cushion space;
4), storage card reads video frame compression data according to data storage process from cushion space and voice data is carried out
Storage.
According to features described above, described audio compression processing procedure is:
1.1), for the compression processing unit being configured with a road voice data processing function, need to initialize sound
Frequency data buffer zone, setting audio data buffer is double-damping structure, and each relief area has the storage audio frequency of at least 1 second
Space required for data;
The time span of setting audio frame, voice data is acquired in the form of audio frame;
One audio data buffer is set to currently gather the relief area of voice data;
Setting voice data length field initial value is 0;
Status register bit s_S of audio data buffer is designated as non-outside reading state;
1.2) if status register bit s_S is non-outside reading state, collection is buffered to when the voice data of former frame
Audio data buffer, the length of accumulative voice data, if data access controls, process is also following to read voice data buffering
Voice data in area then continues the length gathering next frame voice data and continuing accumulative voice data;
1.3), when, data access controls the audio data section that process reads audio data buffer, first read present video
Data buffer address, and the length of voice data, and status register bit s_S is designated as outside reading state, then read
Voice data in relief area;
1.4) if inspection state register-bit s_S is outside reading state, audio compression processing procedure is then by another
Audio data buffer is set to current buffer, and voice data length is set to 0, status register bit s_S is designated as non-
Outside reading state;
1.5) 1.2, are repeated) -1.4).
According to features described above, described Video compression process is:
2.1), setting video data buffer is double-damping structure, after the length of each relief area can deposit a frame compression
Video data, in initialization procedure by one of setting buffers be current video data relief area;
Setting video data length field is 0;
Status register bit v_S of video data buffer is designated as non-outside reading state;
Collection is when the video data compression of former frame is to video data buffer, video data this video of length field record
The length of frame data;
2.2) if status register bit v_S is non-outside reading state, wait data access to control process to read and regard
The video frame compression data of frequency data buffer zone;
2.3), when data access controls the video frame compression data of process reading video data relief area, by video counts
It is designated as outside reading state according to status register bit v_S of relief area;
2.4) if status register bit v_S is outside reading state, another video is delayed by Video compression process
Rush area and be set to current compression screen buffer, status register bit s_S is designated as non-outside reading state, former frame is worked as in collection
Video data compression to video data buffer, the length of video data length field this video requency frame data of record;
2.5) 2.2, are repeated) -2.4).
According to features described above, in described data access control process, comprise interrupt service routine, from all compressions
In the compression frame per second of each video in reason unit, frame per second is selected to require the maximum time interval representated by frame per second as timing week
Phase, provide interrupt signal when each timing cycle starts, and add fixed time interval on current timestamp, as next time
Interrupt service routine starting time.
According to features described above, described data access control process is:
3.1), it is compressed the data access of processing unit according to timing cycle log-on data access control process;
3.2), check whether current compression processing unit sound intermediate frequency data buffer zone, video data buffer have data;
3.3) if it has, reading the voice data length field of voice data, the length field of video frame compression data,
And judge to control the cushion space in management module whether enough;
3.4) if it has, the time that current timing cycle is started as timestamp write data head relevant position,
The length of video frame compression data is write the relevant position of data head, the video frame compression number in reading video data relief area
According to cushion space;The length of voice data is write the relevant position of data head, read the audio frequency in audio data buffer
Data is to cushion space;
3.5), inquire about each compression processing unit successively, execute 3.2) -3.4);
3.6), end interrupt signal, waits the data access of a new round to control process initiation.
According to features described above, described data storage process is:
4.1), create and open audio file, video file;
4.2), whether inquiry cushion space has voice data, video data;
4.3), if there are video data, video frame compression data and data header information are write video file;If there are sound
Frequency evidence, audio data section and data header information are write audio file;
4.4), discharge cushion space;
4.5) if equipment pass hull closure is detected closes interrupt signal, audio file, video file are closed;
Otherwise repeat 4.2) -4.4).
Compared with prior art, the present invention in this way, can with minimum CPU operating cost and resource requirement,
Realize the synchronous recording of DVR multichannel audio-video frequency data, and the synchronization delay error of Shi Ge road video is maintained at twi-read
In the range of time interval, also allow for realizing synchronous decoding and the broadcasting of multichannel audio-video frequency simultaneously, so that user subjective sensation is not gone out
Wherein there is the presence of time synchronization error.
The present invention is highly suitable for the application of video frame rate fluctuation range larger DVR multichannel audio-video frequency record, its frame per second
Fluctuation range is wider, can reach 80%, that is, in the former frame per second that sets as the video of 30 frames/second, when frame per second is changed into 6 frames/second, remains to
Keep good time synchronized effect.
Brief description
Fig. 1 is the main process structural representation of airborne digital formula DVR;
Fig. 2 is the structural representation of audiovisual compression module;
Fig. 3 is the structural representation controlling management module;
Fig. 4 compressing processing module handling process schematic diagram;
The data access of Fig. 5 master control management module controls process schematic flow sheet;
Fig. 6 is storing card data storage process schematic flow sheet.
Specific embodiment
Make a step to the present invention below in conjunction with the accompanying drawings to describe in detail, the visual persistence effect based on human eye for the present invention, i.e. people
The eye time smoothing characteristic that possesses of vision in itself, the moment that the frame of video representated by original video time stamp is occurred general
Read, expand the concept going out the short time piece residing for current moment for frame of video, represent a timeslice, time with a timestamp
The length of piece is the time interval between two field pictures, i.e. the retentivity time of eye.For each road video occurring in same timeslice
Frame, gives identical timestamp.The present invention only need to using a timer resource it becomes possible to realize audio-video collection compression and
The time management of data read process and control, reach the purpose of the time synchronized between multichannel audio-video frequency data.Its main contents
Including:
A) process of voice data;
B) process of compressed video data;
C) data access based on cycle timing controls process.
A) process of voice data
Voice data is acquired in the form of audio frame, the time span of each audio frame be 20ms about it is also possible to
Set according to actual situation.Due to there is no the dependency of data content between audio frame and frame, if losing frame number therein
According to may result in the disappearance of voice data content.Therefore, DVR must gather and record the voice data of all inputs.For reaching
Above-mentioned purpose it is desirable to for its enough spatial cache of configuration on the memorizer of compression processing unit, using double-damping structure, often
Individual relief area at least can cache the voice data of more than 1s, so can read one of relief area in primary control program
During voice data, ensure that using another relief area the collection of voice data and buffering are not interrupted.So, even if master control journey
There is big change in the time interval that sequence accesses this compression processing unit, also can guarantee that the integrity of voice data.
Handling process audio collection as shown in Figure 4 buffers component:
1.1), for the compression processing unit being configured with a road voice data processing function, need to initialize sound
Frequency data buffer zone, setting audio data buffer is double-damping structure, and each relief area has the storage audio frequency of at least 1 second
Space required for data;
The time span of setting audio frame, voice data is acquired in the form of audio frame;
One audio data buffer is set to currently gather the relief area of voice data;
Setting voice data length field initial value is 0;
Status register bit s_S of audio data buffer is designated as non-outside reading state;
1.2) if status register bit s_S is non-outside reading state, collection is buffered to when the voice data of former frame
Audio data buffer, the length of accumulative voice data, if data access controls, process is also following to read voice data buffering
Voice data in area then continues the length gathering next frame voice data and continuing accumulative voice data;
1.3), when, data access controls the audio data section that process reads audio data buffer, first read present video
Data buffer address, and the length of voice data, and status register bit s_S is designated as outside reading state, then read
Voice data in relief area;
1.4) if inspection state register-bit s_S is outside reading state, audio compression processing procedure is then by another
Audio data buffer is set to current buffer, and voice data length is set to 0, status register bit s_S is designated as non-
Outside reading state;
1.5) 1.2, are repeated) -1.4).
Because voice data was acquired using the strict time cycle, and can completely be kept, therefore be possessed very
Good time reference, in order to keep its such characteristic, simultaneously again mutually independent with current compression video, therefore this method is not
Suggestion carries out further compression process to voice data.This mode is little to total amount of storage data bandwidth contributions.
Select a road audio frequency as relative time reference.Recorded as this DVR with the initial time of this road audio frequency
Initial time, and be associated with its exterior clock of DVR equipment.
B) process of compressed video data
Because the system clock information of DVR is provided in controlling in management module, be there is no on compression processing unit the time
Information, therefore, for ensureing the problem of video compression data not existence time and time interval aspect in compression processing unit,
Each compression processing unit is asked only to cache the compressing image data of a frame.Access in the controlled management module of compression process
Control Process flowchart, this program arranges compression after having read current compressed data and enables marker bit, compression processing unit exists
The video data of next frame is compressed in compact token position under conditions of enabling, and is provided with flag, and then can be to control pipe
Reason module sends condensed frame and completes signal.This mechanism can make control pipe manage the access control process of module to current data
Flow carries out dynamic regulation, and the mode of this regulation is realized indeed through the mode actively dropping frame, due to video image
There is very big content relevance, therefore suitable fall frame will not produce the imperfect problem of video content between middle successive frame,
Such process is appropriate.
Concrete handling process video acquisition as shown in Figure 4 buffering component:
2.1), setting video data buffer is double-damping structure, after the length of each relief area can deposit a frame compression
Video data, in initialization procedure by one of setting buffers be current video data relief area;
Setting video data length field is 0;
Status register bit v_S of video data buffer is designated as non-outside reading state;
Collection is when the video data compression of former frame is to video data buffer, video data this video of length field record
The length of frame data;
2.2) if status register bit v_S is non-outside reading state, wait data access to control process to read and regard
The video frame compression data of frequency data buffer zone;
2.3), when data access controls the video frame compression data of process reading video data relief area, by video counts
It is designated as outside reading state according to status register bit v_S of relief area;
2.4) if status register bit v_S is outside reading state, another video is delayed by Video compression process
Rush area and be set to current compression screen buffer, status register bit s_S is designated as non-outside reading state, former frame is worked as in collection
Video data compression to video data buffer, the length of video data length field this video requency frame data of record;
2.5) 2.2, are repeated) -2.4).
C) data access based on cycle timing controls process
This process includes the following aspects:
C1) the determination of timing cycle
In the compression frame per second of all videos, frame per second is selected to require the maximum time interval representated by frame per second as being adopted
Timing cycle.For example, in the requirement of DVR, there is the video compress frame per second of 30 frames/second, also have the video pressure of 25 frames/second simultaneously
Contracting frame per second, selects maximum of which 30 time/second as timing cycle, and its period distances is a thirtieth second.Can adopt and set
Put the mode of cycle timer, its interrupt service routine is had no progeny receiving in this every time, adds on current timestamp data
This time interval, as the timestamp of next video data, and initiated access controls process to carry out the video compress of a new round
The data access of processing unit;
C2) the access of video compression data
After initiated access controls process to carry out the data access of Video compression unit of a new round, data access control
Process processed can obtain whether each Video compression unit has compression to complete in the way of using active inquiry or passive acceptance
Video requency frame data, and check currently whether there is enough video data cushion spaces, if condition meets, read certain video pressure
The video requency frame data of contracting processing unit, the video requency frame data that this period is read, and give current timestamp information.Need
It is emphasized that the video compression data access process of each wheel is it is not required that wait all of Video compression unit all complete
Become compression, simply read the Video compression unit having completed to compress occurring within this timing cycle time slice interval phase
Interior data, and in Fig. 5, control the audio, video data part of management module accesses compression processing unit.
C3) the access of audio collection data
Access control process access read certain Video compression unit compressed data after, if having sound on this unit
Frequency data acquisition function, then continue to read voice data above.After speech data reads, do not use current timestamp information
The time of carrying out labelling, but the time span of current this section of speech data is directly judged using the length of speech data, pass through
Add up the relative instant that this length information determines current speech data.
Complete access process flow process schematic process is as shown in Figure 5:
3.1), it is compressed the data access of processing unit according to timing cycle log-on data access control process;
3.2), check whether current compression processing unit sound intermediate frequency data buffer zone, video data buffer have data;
3.3) if it has, reading the voice data length field of voice data, the length field of video frame compression data,
And judge to control the cushion space in management module whether enough;
3.4) if it has, the time that current timing cycle is started as timestamp write data head relevant position,
The length of video frame compression data is write the relevant position of data head, the video frame compression number in reading video data relief area
According to cushion space;The length of voice data is write the relevant position of data head, read the audio frequency in audio data buffer
Data is to cushion space;
3.5), inquire about each compression processing unit successively, execute 3.2) -3.4);
3.6), end interrupt signal, waits the data access of a new round to control process initiation.
Storage card storage audio, video data flow process schematic process is as shown in Figure 6
4.1), create and open audio file, video file;
4.2), whether inquiry cushion space has voice data, video data;
4.3), if there are video data, video frame compression data and data header information are write video file;If there are sound
Frequency evidence, audio data section and data header information are write audio file;
4.4), discharge cushion space;
4.5) if equipment pass hull closure is detected closes interrupt signal, audio file, video file are closed;
Otherwise repeat 4.2) -4.4).
The above is only the present invention preferably embodiment, and based on the way of example in the present invention, this area is general
All other embodiment that logical technical staff is obtained under the premise of not making creative work, belongs to the protection of the present invention
Scope.
Claims (5)
1. a kind of DVR multichannel audio-video frequency recording method, comprises:
1), the voice data of the collection of audio compression processing procedure and all inputs of buffering delays to the voice data of compression processing unit
Rush area;
2), Video compression process is controlled, by data access, the video frame compression number that Process flowchart collection and compression section input
According to the video data buffer to compression processing unit;
3), data access controls whether process has pressure according to the video data buffer that timing cycle checks each compression processing unit
Contract the video frame compression data completing, if it has, then reading under the video frame compression data of compression processing unit that compression completes
Being downloaded to the cushion space controlling management module and stamp time labelling, if having voice data in compression processing unit, continuing
Read audio data download above to the cushion space of control management module;
4), storage card reads video frame compression data according to data storage process from cushion space and voice data is deposited
Storage;
Wherein, described audio compression processing procedure is:
1.1), for the compression processing unit being configured with a road voice data processing function, need to initialize audio frequency number
According to relief area, setting audio data buffer is double-damping structure, and each relief area has the storage voice data of at least 1 second
Required space;
The time span of setting audio frame, voice data is acquired in the form of audio frame;
One audio data buffer is set to currently gather the relief area of voice data;
Setting voice data length field initial value is 0;
Status register bit s_S of audio data buffer is designated as non-outside reading state;
1.2) if status register bit s_S is non-outside reading state, collection is buffered to audio frequency when the voice data of former frame
Data buffer zone, the length of accumulative voice data, if data access controls, process is also following to be read in audio data buffer
Voice data then continue the length that gathers next frame voice data and continue accumulative voice data;
1.3), when, data access controls the voice data that process reads audio data buffer, first read current audio data and delay
Rush regional address, and the length of voice data, and status register bit s_S is designated as outside reading state, then read relief area
In voice data;
1.4) if inspection state register-bit s_S is outside reading state, audio compression processing procedure is then by another audio frequency
Data buffer zone is set to current buffer, and voice data length is set to 0, and status register bit s_S is designated as non-outside
Reading state;
1.5) 1.2, are repeated) -1.4).
2. a kind of DVR multichannel audio-video frequency recording method according to claim 1 is it is characterised in that described Video compression
Process is:
2.1), setting video data buffer is double-damping structure, and the length of each relief area can deposit regarding after a frame compresses
Frequency evidence, in initialization procedure by one of setting buffers be current video data relief area;
Setting video data length field is 0;
Status register bit v_S of video data buffer is designated as non-outside reading state;
Collection is when the video data compression of former frame is to video data buffer, video data this video frame number of length field record
According to length;
2.2) if status register bit v_S is non-outside reading state, data access is waited to control process to read video counts
Video frame compression data according to relief area;
2.3), when data access controls the video frame compression data of process reading video data relief area, video data is delayed
Status register bit v_S rushing area is designated as outside reading state;
2.4) if status register bit v_S is outside reading state, Video compression process is by another screen buffer
It is set to current compression screen buffer, status register bit s_S is designated as non-outside reading state, collection regards when former frame
Frequency evidence is compressed to video data buffer, the length of video data length field this video requency frame data of record;
2.5) 2.2, are repeated) -2.4).
3. a kind of DVR multichannel audio-video frequency recording method according to claim 1 is it is characterised in that described data access controls
Comprise interrupt service routine in process, wanted from the compression frame per second of each video in all compression processing unit, selecting frame per second
The time interval representated by frame per second seeking maximum, as timing cycle, provides interrupt signal when each timing cycle starts, and
Current timestamp adds fixed time interval, as interrupt service routine starting time next time.
4. a kind of DVR multichannel audio-video frequency recording method according to claim 1 or 3 is it is characterised in that described data access
Control process is:
3.1), it is compressed the data access of processing unit according to timing cycle log-on data access control process;
3.2), check whether current compression processing unit sound intermediate frequency data buffer zone, video data buffer have data;
3.3) if it has, reading the voice data length field of voice data, the length field of video frame compression data, and sentence
Whether the disconnected cushion space controlling in management module is enough;
3.4) if it has, the time starting current timing cycle writes the relevant position of data head, will regard as timestamp
The length of frequency frame compressed data writes the relevant position of data head, and the video frame compression data in reading video data relief area is extremely
Cushion space;The length of voice data is write the relevant position of data head, read the voice data in audio data buffer
To cushion space;
3.5), inquire about each compression processing unit successively, execute 3.2) -3.4);
3.6), end interrupt signal, waits the data access of a new round to control process initiation.
5. a kind of DVR multichannel audio-video frequency recording method according to claim 1 is it is characterised in that described data storage process
For:
4.1), create and open audio file, video file;
4.2), whether inquiry cushion space has voice data, video data;
4.3), if there are video data, video frame compression data and data header information are write video file;If there are audio frequency number
According to by voice data and data header information write audio file;
4.4), discharge cushion space;
4.5) if equipment pass hull closure is detected closes interrupt signal, audio file, video file are closed;Otherwise
Repeat 4.2) -4.4).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310654102.0A CN103686312B (en) | 2013-12-05 | 2013-12-05 | DVR multipath audio and video recording method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310654102.0A CN103686312B (en) | 2013-12-05 | 2013-12-05 | DVR multipath audio and video recording method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103686312A CN103686312A (en) | 2014-03-26 |
CN103686312B true CN103686312B (en) | 2017-02-08 |
Family
ID=50322382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310654102.0A Active CN103686312B (en) | 2013-12-05 | 2013-12-05 | DVR multipath audio and video recording method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103686312B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105763926A (en) * | 2014-12-18 | 2016-07-13 | 中兴通讯股份有限公司 | Screen recording method and device |
CN104954760B (en) * | 2015-06-30 | 2017-12-05 | 西安中飞航空测试技术发展有限公司 | Airborne generic video acquisition system |
CN105242882B (en) * | 2015-10-13 | 2018-09-21 | 东方网力科技股份有限公司 | The frame storage method and device of time series data, time series data querying method and device |
CN110213635B (en) * | 2018-04-08 | 2021-11-30 | 腾讯科技(深圳)有限公司 | Video mixing method, video mixing device and storage medium |
CN109600563B (en) * | 2018-08-01 | 2020-05-15 | 北京微播视界科技有限公司 | Method and apparatus for determining a timestamp |
US11677902B2 (en) | 2018-10-09 | 2023-06-13 | Shenzhen Corerain Technologies Co., Ltd. | Data processing method and related product |
CN112203031B (en) * | 2020-08-12 | 2023-06-02 | 深圳市豪恩汽车电子装备股份有限公司 | Digital video caching system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098472A (en) * | 2006-06-26 | 2008-01-02 | 富士通株式会社 | Encoded data transfer device and encoded data transferring method |
CN101246627A (en) * | 2007-12-12 | 2008-08-20 | 广州市聚晖电子科技有限公司 | Security signal alarm system |
CN101702760A (en) * | 2009-10-30 | 2010-05-05 | 深圳市深视音电子技术有限公司 | Integrated network hard disk video recorder |
CN101931775A (en) * | 2010-09-01 | 2010-12-29 | 中兴通讯股份有限公司 | Video recording method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3277787B2 (en) * | 1995-12-21 | 2002-04-22 | ソニー株式会社 | Audio / video data recording / reproducing device |
KR100506845B1 (en) * | 2002-02-14 | 2005-08-08 | 엘지전자 주식회사 | Method for editing a multi-view stream in optical disc device |
CN101118776B (en) * | 2007-08-21 | 2012-09-05 | 中国科学院计算技术研究所 | Method, system and device for realizing audio and video data synchronizing |
US20090150939A1 (en) * | 2007-12-05 | 2009-06-11 | Microsoft Corporation | Spanning multiple mediums |
CN202738111U (en) * | 2012-06-06 | 2013-02-13 | 孙绎成 | Device enabling video monitoring apparatus to synchronously record information of mobile apparatus |
-
2013
- 2013-12-05 CN CN201310654102.0A patent/CN103686312B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098472A (en) * | 2006-06-26 | 2008-01-02 | 富士通株式会社 | Encoded data transfer device and encoded data transferring method |
CN101246627A (en) * | 2007-12-12 | 2008-08-20 | 广州市聚晖电子科技有限公司 | Security signal alarm system |
CN101702760A (en) * | 2009-10-30 | 2010-05-05 | 深圳市深视音电子技术有限公司 | Integrated network hard disk video recorder |
CN101931775A (en) * | 2010-09-01 | 2010-12-29 | 中兴通讯股份有限公司 | Video recording method and device |
Non-Patent Citations (2)
Title |
---|
DVR系统中多路视频处理技术的研究与实现;王钢等;《杭州电子科技大学学报》;20121031;第32卷(第5期);第70-74页 * |
多通道DVR系统的软件设计与实现;姜露露;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130615(第6期);正文第21-24页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103686312A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103686312B (en) | DVR multipath audio and video recording method | |
CN104410807B (en) | A kind of multi-channel video synchronized playback method and device | |
CN101674486B (en) | Streaming media audio and video synchronization method and system | |
CN103024363A (en) | Method, system and electronic device for stitching multiple channels of videos | |
JP3438223B2 (en) | Multiplexing device and multiplexing method, and transmission device and transmission method | |
US5987418A (en) | Synchronous decoding of packetized audio for different reproduction modes | |
JP4207639B2 (en) | Data multiplexing method, data multiplexing device, transmission device, and reception device | |
KR100490403B1 (en) | Method for controlling buffering of audio stream and apparatus thereof | |
CN103731625A (en) | Method for simultaneously and synchronously playing multiple paths of audios and videos | |
CN102098423B (en) | Seamless file collection method and system | |
KR100810288B1 (en) | Device and method for processing information and recorded medium | |
CN101296323A (en) | Lossless time-delay broadcasting system | |
CN1194536C (en) | Method for simultaneously recording and reading digital audio and video dataflow and receiver using same | |
CN100498951C (en) | Recording method | |
CN103188473A (en) | Video capture card and processing method thereof | |
JP3185863B2 (en) | Data multiplexing method and apparatus | |
AU767952B2 (en) | Method for storing digital audio and video dataflow, storage device and receiver for implementing said method | |
US6339669B1 (en) | Picture-reproducing apparatus | |
CN109981590A (en) | A kind of stream medium audio and video synchronous broadcast method based on B/S framework | |
CN115665493A (en) | Large screen splicing device supporting recording and playing, splicer, playing control method and system | |
CN100531351C (en) | Recording/reproducing device and method | |
CN102215363B (en) | Frame precision collecting method of video and audio materials in video tapes | |
JP3774579B2 (en) | AV bitstream recording / playback system | |
US20040018005A1 (en) | Clock-slaving in a programmable video recorder | |
EP1161841B1 (en) | Demultiplexing and buffering of bitstreams for a DVD audio decoder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |