CN102623032B - Method for realizing synchronous playback of hard disk recorder - Google Patents

Method for realizing synchronous playback of hard disk recorder Download PDF

Info

Publication number
CN102623032B
CN102623032B CN201210096078.9A CN201210096078A CN102623032B CN 102623032 B CN102623032 B CN 102623032B CN 201210096078 A CN201210096078 A CN 201210096078A CN 102623032 B CN102623032 B CN 102623032B
Authority
CN
China
Prior art keywords
video
frame
time
passage
output unit
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.)
Expired - Fee Related
Application number
CN201210096078.9A
Other languages
Chinese (zh)
Other versions
CN102623032A (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.)
Shenzhen Infinova Ltd
Original Assignee
Shenzhen Infinova 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 Shenzhen Infinova Ltd filed Critical Shenzhen Infinova Ltd
Priority to CN201210096078.9A priority Critical patent/CN102623032B/en
Publication of CN102623032A publication Critical patent/CN102623032A/en
Application granted granted Critical
Publication of CN102623032B publication Critical patent/CN102623032B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides a method for realizing synchronous playback of a hard disk recorder. The hard disk recorder comprises a video play device; a control unit in the device reads videos of each channel from a storage medium and transmits the videos to an output unit; the output unit decodes and outputs the received videos; the control unit reads the video data of each channel from the storage medium according to playback time; the video timestamp of a first channel is taken as reference time, and the videos of other channels are synchronized in second level with the reference time; and the video data of each channel, which is received by the output unit, is synchronized in microsecond level. By the method for realizing the synchronous playback of the hard disk recorder, the videos of N channels are synchronized in millisecond level through two-time synchronization of the control unit and the output unit.

Description

A kind of method that realizes DVR synchronized playback
Technical field:
The present invention relates to the method for the synchronized playback on watch-dog, particularly in numeral (network) DVR, realize the method for synchronized playback.
Background technology:
All frame of video of video file comprise I frame, B frame and P frame, and I frame is also referred to as key frame, I frame can be decoded separately, B frame and P frame must be with reference to I frame or P frame decodings above, and video frame rate depends on that user arranges, and common video type has N standard and P standard, when video type is N standard, video full frame rate was 30 frame/seconds, and when video type is P standard, video full frame rate was 25 frame/seconds.IP is than the ratio that is I frame and P frame in one group of frame of video, and conventional IP ratio is 25, in one group of video, has an I frame, 25 P frames.The each Frame of video file the inside can comprise a temporal information, is used for representing the acquisition time of this frame, is called the timestamp of this frame.
Video file playback appears on watch-dog as a basic function, requirement can this equipment of playback historical video file, the reproduction scene at that time of recording a video, early stage watch-dog is mainly supported single pass playing back videos, increasingly mature along with watch-dog, multiplexer channel synchronized playback function also engenders in watch-dog.The existing Multi-path synchronous playback in market implementation is generally synchronized to a second level at present, and in the time that playing, high speed (being more than or equal to 2 speeds) only retains I frame, lose the mode of all B, P frame, can lose a lot of useful video datas in special circumstances (in the situation that IP ratio being very large) like this.
Summary of the invention:
The object of the invention is: realize hyperchannel video recording synchronized playback, each video parameter (IP ratio, frame per second) of playing passage can be different, and other is synchronous to realize each passage video record Millisecond.Use the method can realize the individual video file of N (N>1) synchronously plays in various speeds (1/16,1/8,1/4,1/2,1,2X, 4X, 8X, 16X) situation.
For achieving the above object, the invention provides a kind of method that realizes DVR synchronized playback, wherein said video recorder comprises video play device, the video that control module in this device reads each passage from storage medium sends to output unit, output unit is to the video recording the receiving output of decoding, it is characterized in that: described control module is according to the time of playback, from storage medium, read each passage video recording data, stab as reference time according to the video time of first passage, the video recording of other passages with carry out second grade reference time and synchronize; And it is synchronous that output unit carries out Millisecond again to each passage video recording data that receive.
The present invention also provides a kind of video play device, described device comprises control module and output unit, the video that control module reads each passage from storage medium sends to output unit, output unit is to the video recording the receiving output of decoding, it is characterized in that: described control module is according to the time of playback, from storage medium, read each passage video recording data, stab as reference time according to the video time of first passage, other passages video recordings with carry out second grade reference time and synchronize; And it is synchronous that output unit carries out Millisecond again to each passage video recording data that receive.
The invention has the beneficial effects as follows 2 subsynchronous by control module and output unit, other is synchronous to make the individual passage video of N (N>1) realize Millisecond.
Brief description of the drawings:
Fig. 1 is the video play device schematic diagram in the present invention;
Fig. 2 is the control module process flow diagram in the present invention;
Fig. 3 is the output unit process flow diagram in the present invention.
Embodiment:
Below in conjunction with drawings and Examples, the present invention is further described.
The embodiment of the present invention is achieved in that as shown in Figure 1, a kind of video play device, described device comprises control module and output unit, the video that control module for example, reads each passage from storage medium (hard disk) sends to output unit, and output unit is to the video recording the receiving output of decoding.
Realizing method of the present invention is:
Control module is according to the time of playback, reads each passage video recording data from storage medium, stab as reference time according to the video time of first passage, other passages video recordings with carry out second grade reference time and synchronize.It is synchronous that output unit carries out Millisecond again to each passage video recording data that receive.
The process flow diagram of control module is referring to Fig. 2, and concrete steps comprise:
11) open N passage video according to Search Results, navigate to the frame of video that needs broadcasting;
12) according to the interval transmitting time of the frame per second calculating frame of video of broadcasting speed and each passage: due to each frame per second difference of playing passage, the interval transmitting time of the frame of video calculating is also different:
In the time that speed is not more than 1, send all I, B, P frame, the interval transmitting time of frame of video is calculated by formula below:
The scheduling time (formula 1.1) of transmitting time=1000000/, interval (speed * the video frame rate)-system of frame of video
In the time that speed is greater than 1, send I frame, and part B, P frame, the interval transmitting time of frame of video and send B, P frame frame number Frame and calculate according to formula below:
Frame=rounds (IP ratio/speed) (formula 1.2)
The in the situation that of Frame>=1
The scheduling time (formula 1.3) of interval transmitting time=1000000*IP ratio/(video frame rate * (Frame+1))-system of frame of video
The in the situation that of Frame<1
The scheduling time (formula 1.4) of transmitting time=1000000/, the interval speed-system of frame of video
13) obtain N passage video frame rate minimum value (being minimum frame per second) and be sent to output unit, then send N passage audio, video data to output unit; And stab as reference time according to the video time of first passage, the video recording of other passages with carry out second grade reference time and synchronize: video time equals normal play reference time; Be less than and current passage to be dealt with video time be all sent to output unit to all video I frames between reference time reference time; Be greater than and wait for reference time; The control module control synchronized video recording time is to the rank of second;
14) receive and process user's various control commands: put soon, put slowly, frame enters, rewind down, the order such as suspend, stop, dragging progress bar, advance 30 seconds and retreat 30 seconds.
1, put soon, put slowly processing: in the time that playback rate is greater than 1 speed, stops audio frequency and play, play key frame (I frame) and part B, P frame, while being not more than 1 speed, play all types of frame data (I frame P frame B frame); Change broadcasting speed, need to recalculate delay time, and send broadcasting speed to output unit.
2, frame enters to process: play a frame only after, enter halted state, wait for that frame next time enters order.
3, rewind down processing: after playing current 1S video recording frame, all passage video recordings retreat 2S to be continued to play at every turn, and so circulation is until first passage plays to video file head.And send rewind down state to output unit.
4, suspend and process: enter halted state, stop sending data to output unit, cease and desist order and need to reopen video file, and send the data of first second.
5, stop processing: enter halted state, reopen video file, and send the data of first second, send halted state to output unit.
6, drag progress bar, advance 30 seconds and retreat processing in 30 seconds: locate N and play the passage precalculated position of recording a video, send and drag state to output unit.
The process flow diagram of output unit is referring to Fig. 3, and concrete steps comprise:
21) audio/video frames that buffer control unit sends;
22) the minimum frame per second sending according to control module calculates threshold value Tmin
(μ is (formula 1.5) s) for the minimum frame per second of Tmin=1000000/
23) will receive voice data and directly send to audio decoder, judge whether to need Millisecond for video data synchronous, not need directly to give corresponding decoding passage, if need are according to method is synchronous below: obtain all passage minimum time stamp t minvideo frame, and give corresponding decoding channels by this frame; Other passage video frame time stamp and t mindifference while being less than threshold value Tmin, give corresponding decoding channels by this frame;
24) reception control unit sends state or order response:
1, put soon, put slowly processing: in the time that speed is greater than 1 speed, cancel Millisecond synchronous;
2, rewind down processing: cancel Millisecond synchronous;
3, suspend, stop to process: suspend video output;
4, drag progress bar, advance 30 seconds and retreat processing in 30 seconds: empty screen buffer.
25), by the audio, video data of decoding, give output device and show.
Below in conjunction with drawings and Examples, the present invention is further described, but content of the present invention is not limited to this.
The synchronized video recording playback mode of watch-dog set forth in the present invention realizes, and can realize the synchronized playback function of N passage video recording by this kind of back method.
Further illustrate: the video data that is all 25 frames per second with 16 channel coding frame per second of 1 speed playback:
11) main control unit sends 1 speed and minimum frame per second 25 frames to output unit;
12) output unit calculates Tmin=40000 μ s according to formula 1.5
13) main control unit is according to 1.1 computation delay times of formula (the interval transmitting time of frame of video):
The scheduling time of transmitting time=1000000/, interval (speed * the video frame rate)-system of frame of video
The scheduling time of this system is relevant to operating system, and the scheduling time of supposing the system is 10000 μ s, time delay=1000000/ (1*25) ?10000=30000 μ s.
Taking 8 passage videos of 4 speed playback as example, getting the system call time is here 10000 μ s, and 8 passage video parameters are as follows:
Show 1:8 channel parameters and the time delay calculating according to formula and Frame
? Passage 1 Passage 2 Passage 3 Passage 4 Passage 5 Passage 6 Passage 7 Passage 8
Frame per second 25 20 15 10 25 4 8 20
IP ratio 25 20 25 2 10 255 16 100
Time delay (ms) 132857 156666 238095 250000 123333 986094 400000 182307
Frame 6 5 6 0 2 63 4 25
The minimum frame per second of 8 passages is 4, calculates Tmin=25000 μ s according to formula 1.5.
From above embodiment, the present invention can realize the synchronized playback of N video file.Certainly, the present invention is based on and have various embodiments.Only otherwise deviate from the situation of the present invention's spirit and essence, those of ordinary skill in the art can make appropriate change, distortion and optimization according to the demand of oneself, but these apply the protection domain that all belongs to the appended claim of the present invention.The invention has the beneficial effects as follows: 2 subsynchronous by control module and output unit, other is synchronous to make the individual passage video of N (N>1) realize Millisecond.

Claims (9)

1. a video play device, described device comprises control module and output unit, the video that control module reads each passage from storage medium sends to output unit, output unit is to the video recording the receiving output of decoding, it is characterized in that: described control module is according to the time of playback, from storage medium, read each passage video recording data, stab as reference time according to the video time of first passage, other passages video recordings with carry out second grade reference time and synchronize; And it is synchronous that output unit carries out Millisecond again to each passage video recording data that receive; Described output unit is realized the synchronous step of Millisecond and is comprised:
1) audio/video frames that buffer control unit sends;
2) the minimum frame per second sending according to control module calculates threshold value Tmin;
3) will receive voice data and directly send to audio decoder, judge whether to need Millisecond for video data synchronous;
4) reception control unit sends state or order response;
5), by the audio, video data of decoding, give output device and show.
2. realize the method for DVR synchronized playback for one kind, wherein said video recorder comprises video play device, the video that control module in this device reads each passage from storage medium sends to output unit, output unit is to the video recording the receiving output of decoding, it is characterized in that: described control module is according to the time of playback, from storage medium, read each passage video recording data, stab as reference time according to the video time of first passage, the video recording of other passages with carry out second grade reference time and synchronize; And it is synchronous that output unit carries out Millisecond again to each passage video recording data that receive; Described output unit is realized the synchronous step of Millisecond and is comprised:
1) audio/video frames that buffer control unit sends;
2) the minimum frame per second sending according to control module calculates threshold value Tmin;
3) will receive voice data and directly send to audio decoder, judge whether to need Millisecond for video data synchronous;
4) reception control unit sends state or order response;
5), by the audio, video data of decoding, give output device and show.
3. method according to claim 2, is characterized in that, described control module is realized second synchronous step of level and comprised:
1) open N passage video according to Search Results, navigate to the frame of video that needs broadcasting;
2) according to the interval transmitting time of the frame per second calculating frame of video of broadcasting speed and each passage;
3) obtain the minimum frame per second of N passage video and be sent to output unit, then send N passage audio, video data to output unit, and stab as reference time according to the video time of first passage, other passages are recorded a video and are carried out second grade reference time and synchronize;
4) receive and process user's various control commands.
4. method according to claim 3, is characterized in that, realizes second synchronous step 2 of level at described control module) in the computing method of interval transmitting time as follows:
In the time that speed is not more than 1, send all I, B, P frame, the interval transmitting time computing formula of frame of video: the scheduling time of transmitting time=1000000/, interval (speed * the video frame rate)-system of frame of video;
In the time that speed is greater than 1, send I frame, and part B, P frame, the interval transmitting time of frame of video and send B, P frame frame number Frame and calculate according to formula below:
Frame=rounds (IP ratio/speed)
The in the situation that of Frame>=1:
The scheduling time of interval transmitting time=1000000*IP ratio/(video frame rate * (Frame+1))-system of frame of video;
The in the situation that of Frame<1:
The scheduling time of transmitting time=1000000/, the interval speed-system of frame of video;
Described IP is than the ratio that is I frame and P frame in one group of frame of video.
5. method according to claim 3, is characterized in that, realizes second synchronous described step 3 of level at described control module) in realize a second grade synchronous method and be: video time equals normal play reference time; Be less than and current passage to be dealt with video time be all sent to output unit to all video I frames between reference time reference time; Be greater than and wait for reference time, the control module control synchronized video recording time is to the rank of second.
6. method according to claim 3, it is characterized in that, realize the synchronous described step 4 of Millisecond at described output unit) in order comprise soon put, put slowly, frame enters, rewind down, suspend, stop, dragging progress bar, advance 30 seconds and retreat order in 30 seconds.
7. method according to claim 6, it is characterized in that, realize the synchronous step 3 of Millisecond at described output unit) in judge whether to need the synchronous method of Millisecond to be: do not need directly to give corresponding decoding passage when being judged as, if need are according to method is synchronous: obtain all passage minimum times stamp t below minvideo frame, and give corresponding decoding channels by this frame; Other passage video frame time stamp and t mindifference while being less than threshold value Tmin, give corresponding decoding channels by this frame.
8. according to the method described in claim 6 or 7, it is characterized in that, realize the synchronous step 4 of Millisecond at described output unit) described in respond and comprise: put soon, put slowly processing; Rewind down processing; Suspend, stop processing; Drag progress bar, advance 30 seconds and retreat processing in 30 seconds.
9. method according to claim 8, is characterized in that, realizes the synchronous step 2 of Millisecond at described output unit) described in threshold calculations formula be: the minimum frame per second of Tmin=1000000/, unit is μ s.
CN201210096078.9A 2012-04-01 2012-04-01 Method for realizing synchronous playback of hard disk recorder Expired - Fee Related CN102623032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210096078.9A CN102623032B (en) 2012-04-01 2012-04-01 Method for realizing synchronous playback of hard disk recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210096078.9A CN102623032B (en) 2012-04-01 2012-04-01 Method for realizing synchronous playback of hard disk recorder

Publications (2)

Publication Number Publication Date
CN102623032A CN102623032A (en) 2012-08-01
CN102623032B true CN102623032B (en) 2014-09-17

Family

ID=46562902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210096078.9A Expired - Fee Related CN102623032B (en) 2012-04-01 2012-04-01 Method for realizing synchronous playback of hard disk recorder

Country Status (1)

Country Link
CN (1) CN102623032B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639862B (en) * 2013-11-11 2019-04-12 杭州海康威视数字技术股份有限公司 The back method and device of video file
CN104702876B (en) * 2014-01-22 2017-12-01 杭州海康威视数字技术股份有限公司 A kind of Multi-path synchronous back method and device
CN104410807B (en) * 2014-11-24 2018-04-20 深圳市华宝电子科技有限公司 A kind of multi-channel video synchronized playback method and device
CN105307013B (en) * 2015-10-22 2020-09-22 厦门雅迅网络股份有限公司 Fast forward playing video frame selection method
CN106658058B (en) * 2016-10-13 2019-12-13 厦门蓝斯通信股份有限公司 video sending rate synchronization management method and management system based on multiple clients
CN107231574A (en) * 2017-07-05 2017-10-03 北京辰安信息科技有限公司 Video broadcasting method and video play device
CN108966027A (en) * 2018-08-15 2018-12-07 郑州云海信息技术有限公司 A kind of audio video synchronization back method and device
CN112752129A (en) * 2019-10-31 2021-05-04 西安诺瓦星云科技股份有限公司 Video source synchronous output method, device, system and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767601A (en) * 2005-10-21 2006-05-03 西安交通大学 Synchronous broadcast controlling method capable of supporting multi-source stream media
CN1933594A (en) * 2005-09-14 2007-03-21 王世刚 Multichannel audio-video frequency data network transmitting and synchronous playing method
EP1909278A1 (en) * 2005-07-01 2008-04-09 Sony Computer Entertainment Inc. Reproduction device, video decoding device, synchronization/reproduction method, program, and recording medium
KR20090000392A (en) * 2007-06-28 2009-01-07 엘지전자 주식회사 Apparatus and method for reproducing media, its using mobile communication terminal thereof
CN201781583U (en) * 2010-01-22 2011-03-30 深圳市同洲电子股份有限公司 Multichannel server video playback synchronous control system
CN102184739A (en) * 2011-03-08 2011-09-14 深圳英飞拓科技股份有限公司 Video play device and method
CN102522096A (en) * 2011-12-07 2012-06-27 中国航空无线电电子研究所 Synchronous replay system for multi-channel audio and video and method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1909278A1 (en) * 2005-07-01 2008-04-09 Sony Computer Entertainment Inc. Reproduction device, video decoding device, synchronization/reproduction method, program, and recording medium
CN1933594A (en) * 2005-09-14 2007-03-21 王世刚 Multichannel audio-video frequency data network transmitting and synchronous playing method
CN1767601A (en) * 2005-10-21 2006-05-03 西安交通大学 Synchronous broadcast controlling method capable of supporting multi-source stream media
KR20090000392A (en) * 2007-06-28 2009-01-07 엘지전자 주식회사 Apparatus and method for reproducing media, its using mobile communication terminal thereof
CN201781583U (en) * 2010-01-22 2011-03-30 深圳市同洲电子股份有限公司 Multichannel server video playback synchronous control system
CN102184739A (en) * 2011-03-08 2011-09-14 深圳英飞拓科技股份有限公司 Video play device and method
CN102522096A (en) * 2011-12-07 2012-06-27 中国航空无线电电子研究所 Synchronous replay system for multi-channel audio and video and method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多媒体同步技术研究;许延,常义林,刘增基;《西安电子科技大学学报》;20000831;第27卷(第4期);第504-509页 *

Also Published As

Publication number Publication date
CN102623032A (en) 2012-08-01

Similar Documents

Publication Publication Date Title
CN102623032B (en) Method for realizing synchronous playback of hard disk recorder
CN104410807B (en) A kind of multi-channel video synchronized playback method and device
CN104378675B (en) A kind of multi-channel sound audio video synchronization play handling method
CN201781583U (en) Multichannel server video playback synchronous control system
US10129587B2 (en) Fast switching of synchronized media using time-stamp management
CN102724492B (en) Method and system for transmitting and playing video images
CN104618786A (en) Audio/video synchronization method and device
CN107231563A (en) Method for processing video frequency and device
WO2020215453A1 (en) Video recording method and system
CN105141810B (en) It is a kind of to support slow-motion multichannel presentation system and method in real time
CN103718563A (en) Receiving apparatus and receiving method thereof
CN103686315A (en) Synchronous audio and video playing method and device
CN105280205B (en) Non-linear editing software audio-visual synchronization processing method and processing device
CN103888813A (en) Audio and video synchronization realization method and system
CN104618673B (en) A kind of multichannel video recording synchronized playback control method and device based on NVR
CN102075803B (en) Method for synchronously playing video and audio
CN109618208A (en) A kind of live stream distribution slice synchronous method and device
CN101383961B (en) Content reproduction appratus, content reproduction method, and content reproduction system
CN104333795A (en) Real-time video bitstream play speed control method independent of timestamp
CN103873804B (en) Video replay time axis and content synchronous control method for embedded NVR
CN101577618A (en) Transmission apparatus and method
CN104079958B (en) A kind of method of video broadcast synchronous with multichannel audio
CN100521795C (en) Control device and method of audio and video playing status based on the built-in system
CN103596033B (en) Method for solving problem of audio and video non-synchronization in multimedia system terminal playback
CN102184739A (en) Video play device and method

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140917

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