CN103731625A - Method for simultaneously and synchronously playing multiple paths of audios and videos - Google Patents

Method for simultaneously and synchronously playing multiple paths of audios and videos Download PDF

Info

Publication number
CN103731625A
CN103731625A CN201310677256.1A CN201310677256A CN103731625A CN 103731625 A CN103731625 A CN 103731625A CN 201310677256 A CN201310677256 A CN 201310677256A CN 103731625 A CN103731625 A CN 103731625A
Authority
CN
China
Prior art keywords
video
audio
audio frequency
timestamp
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310677256.1A
Other languages
Chinese (zh)
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.)
Xiamen Yaxon Networks Co Ltd
Original Assignee
Xiamen Yaxon Networks 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 Xiamen Yaxon Networks Co Ltd filed Critical Xiamen Yaxon Networks Co Ltd
Priority to CN201310677256.1A priority Critical patent/CN103731625A/en
Publication of CN103731625A publication Critical patent/CN103731625A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for simultaneously and synchronously playing multiple paths of audios and videos. Cross storage of audio and video stream data is adopted, a playing program can perform playing while reading the audio and video stream data on a hard disk or an optical disk, so that when the audio and video stream data are played, only a few amount of video images and part of the audio data need to be accessed within the designated time, and the large volume of the audio and video stream data do not need to be loaded in the memory in advance. Thus, in the time of playing, only limited memory space needs to be occupied, the working efficiency of a system can be improved, and meanwhile fast loading can be achieved and the playing program can be fast started. The waiting time of a user when the audio and video data are played is reduced, and the method can achieve the synchronization effect by only depending on the storage sequence.

Description

A kind of multichannel audio-video frequency is the synchronous method of playing simultaneously
Technical field
The present invention relates to a kind of multichannel audio-video frequency synchronous method of playing simultaneously.
Background technology
Based on the DVR of file system, the large packet (several G are to the data of tens of G) producing for long-time video recording cannot be managed, can only carry out subpackage, by one section of complete video recording, divide several little file bags, as a file of automatic formation in 5,10,30 minutes, or 150M, 200M are as a file.Therefore easily produce frame losing phenomenon between bag and bag, magnetic disc head need to read and write data and file index continually simultaneously, and magnetic head is frequently beated, for the DVR system of every day tens to the continuous reading writing harddisk of twenty four hours, the as easy as rolling off a log hard disk failure that causes.
Because the file of newly recording is different from old file size, while needing to delete whole segment file, can on hard disk, produce a large amount of fragment spaces after hard disk record is full, affect use and the system effectiveness of hard disk.
In addition, by file system, carry out video-recorder recording data management and also have two risks, the one, if file allocation table is damaged, Video Document can be lost mostly, the 2nd, if System Sudden power-off or suffer artificial destruction, the current video recording data of recording can not be preserved.
Based on the DVR of file system, every road camera collection image a period of time is just preserved into data a video file, and audio, video data is all kept in identical file.Such as 4 road cameras, record 1 hour, produce 4 files, during playback, the audio frequency and video of Single document can synchronously be play, but the audio frequency and video of 4 passages will be all simultaneously synchronous play just more difficult because be mutually independent between them, there is no relevance, be difficult to synchronous reference of playing simultaneously.Therefore, based on the DVR of file system, traditional audio and video synchronization playing method is only applicable to play a road audio, video data, and cannot be used for multichannel audio-video frequency synchronous broadcasting simultaneously.
Summary of the invention
For above weak point, the invention provides a kind of multichannel audio-video frequency synchronous method of playing simultaneously, when playing, multichannel audio-video frequency can reach strict synchronous effect.
Multichannel audio-video frequency is a synchronous method of playing simultaneously, comprises the steps:
Step 1, when video recording starts, the selective system time as with reference to clock, stamps timestamp to each audio frequency and video piece according to the time on reference clock while generating audio and video data streams, comprises time started and end time;
Step 2, from the audio-video signal harvester on N road, get N road audio, video data, according to following sequential storage on hard disk:
1, each audio frequency and video piece is comprised of " information header "+" audio/video flow ", and wherein " information header " includes the information of data stream type, channel number, timestamp;
2, the audio frequency and video piece on each road storage successively in pairs, form and be staggered with the audio frequency and video piece on another road, be after all video block storages of the first via, then store all audio blocks of the first via, then be all video blocks in the second tunnel, all audio blocks in the second tunnel again, until all video block, the audio blocks in N road;
Step 3, play time, read the timestamp on audio frequency and video piece, with reference to the time on current reference clock, arrange playing sequence simultaneously, be specially: first calculate the timestamp of first audio frequency and video piece and the difference X of current reference clock, in follow-up play process, if the timestamp of audio frequency and video piece and the difference of current reference clock are greater than X, be not eager to play this audio frequency and video piece, until reference clock reaches; If the timestamp of audio frequency and video piece and the difference of current reference clock are less than X, to play as early as possible this data block or this data block is abandoned.
The present invention uses the hard Disk Management System that is applicable to media data flow storage mode: audio/video flow memory module.Adopt audio/video flow memory module, the soverlay technique of circulation frame by frame that continue, seamless to hard disk.Do not have documentary concept, one section of audio frequency and video video recording is not limited by file size, is not limited by time period length yet, is only limited by hard-disk capacity.One section of video recording, can, from several seconds to some months, can, from several K to tens T, need only hard disk enough large.To writing of hard disk, be that continue, seamless circulation frame by frame covers, do not have frame losing phenomenon.There is not subpackage video recording, after hard disk record is full, adopt soverlay technique frame by frame, there is no the action of deletion, do not have hard disk fragment.The read-write of magnetic head is order substantially, without frequently beating, can fine protection hard disc magnetic head, and reduce hard disk failure rate, extend hard disk life-span.Hard disk mistake Anywhere, can not affect above or video recording below.The in the situation that of power-off suddenly, also can preserve the power-off image of front moment; Meanwhile, original Video Document data and PC are incompatible, cannot on PC, directly revise, and guarantee confidentiality and the reliability of firsthand information.
Accompanying drawing explanation
Fig. 1 is the storage organization schematic diagram of middle pitch video block of the present invention.
Below in conjunction with drawings and Examples, the invention will be further described.
Embodiment
A kind of multichannel audio-video frequency of the present invention is the synchronous method of playing simultaneously, comprises the steps:
Step 1, when video recording starts, the selective system time as with reference to clock, stamps timestamp to each audio frequency and video piece according to the time on reference clock while generating audio and video data streams, comprises time started and end time;
Step 2, from the audio-video signal harvester on N road, get N road audio, video data, according to following sequential storage on hard disk, as shown in Figure 1:
1, each audio frequency and video piece is comprised of " information header "+" audio/video flow ", and wherein " information header " includes the information of data stream type, channel number, timestamp;
2, the audio frequency and video piece on each road storage successively in pairs, form and be staggered with the audio frequency and video piece on another road, be after all video block storages of the first via, then store all audio blocks of the first via, then be all video blocks in the second tunnel, all audio blocks in the second tunnel again, until all video block, the audio blocks in N road;
Step 3, play time, read the timestamp on audio frequency and video piece, with reference to the time on current reference clock, arrange playing sequence simultaneously, be specially: first calculate the timestamp of first audio frequency and video piece and the difference X of current reference clock, in follow-up play process, if the timestamp of audio frequency and video piece and the difference of current reference clock are greater than X, explanation is play too fast, be not eager to play this audio frequency and video piece, until reference clock reaches; If the timestamp of audio frequency and video piece and the difference of current reference clock are less than X, explanation broadcasting is too slow, play as early as possible this data block or this data block is abandoned, so that playing progress rate catch up with reference clock.Be synchronously a dynamic process, being one has the process that people waits for, someone catches up with.Be synchronously temporary transient, and the asynchronous normality that is only.The always vibration fluctuation on synchronous horizontal line of audio frequency, video, but it is too far away can not depart from this baseline.
Voice data and video data between Zhong Mei of the present invention road are staggered in pairs.Due to the paired stores synchronized of audio/video flow data, thus while playing without doing synchronous processing, can play take out successively audio/video flow data from hard disk after, the audio/video flow data on a road can synchronously be play, and when multichannel is play simultaneously, also can synchronously play.
The present invention only relies on storage order substantially can reach synchronous effect, but along with the propelling of reproduction time, plays 1 hour, 5 hours, even plays 1 day, and error can slowly expand along with the time, caused finally asynchronous.In order to overcome this problem, introduce the reference time stamp in N road audio frequency and video unified " information header " that be stored in every road audio frequency and video, during broadcasting, playout software is finely tuned according to these timestamps.
In the present invention due to the interleaved of audio/video flow data, playing program can read the audio/video flow data on hard disk or CD while play, like this when playing audio-video flow data, only need within the time of specifying, access a small amount of video image and part voice data, and without in advance audio/video flow data very large capacity being loaded in internal memory, while therefore playing, only need take limited memory headroom, not only can improve the operating efficiency of system, also can realize and promptly load and start rapidly playing program simultaneously, user's stand-by period while reducing playing audio-video data.
The above, it is only preferred embodiment of the present invention, not technical scope of the present invention is imposed any restrictions, therefore any trickle modification, equivalent variations and modification that every foundation technical spirit of the present invention is done above embodiment all still belong in the scope of technical solution of the present invention.

Claims (1)

1. a multichannel audio-video frequency synchronous method of playing simultaneously, is characterized in that comprising the steps:
Step 1, when video recording starts, the selective system time as with reference to clock, stamps timestamp to each audio frequency and video piece according to the time on reference clock while generating audio and video data streams, comprises time started and end time;
Step 2, from the audio-video signal harvester on N road, get N road audio, video data, according to following sequential storage on hard disk:
1, each audio frequency and video piece is comprised of " information header "+" audio/video flow ", and wherein " information header " includes the information of data stream type, channel number, timestamp;
2, the audio frequency and video piece on each road storage successively in pairs, form and be staggered with the audio frequency and video piece on another road, be after all video block storages of the first via, then store all audio blocks of the first via, then be all video blocks in the second tunnel, all audio blocks in the second tunnel again, until all video block, the audio blocks in N road;
Step 3, play time, read the timestamp on audio frequency and video piece, with reference to the time on current reference clock, arrange playing sequence simultaneously, be specially: first calculate the timestamp of first audio frequency and video piece and the difference X of current reference clock, in follow-up play process, if the timestamp of audio frequency and video piece and the difference of current reference clock are greater than X, be not eager to play this audio frequency and video piece, until reference clock reaches; If the timestamp of audio frequency and video piece and the difference of current reference clock are less than X, to play as early as possible this data block or this data block is abandoned.
CN201310677256.1A 2013-12-13 2013-12-13 Method for simultaneously and synchronously playing multiple paths of audios and videos Pending CN103731625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310677256.1A CN103731625A (en) 2013-12-13 2013-12-13 Method for simultaneously and synchronously playing multiple paths of audios and videos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310677256.1A CN103731625A (en) 2013-12-13 2013-12-13 Method for simultaneously and synchronously playing multiple paths of audios and videos

Publications (1)

Publication Number Publication Date
CN103731625A true CN103731625A (en) 2014-04-16

Family

ID=50455534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310677256.1A Pending CN103731625A (en) 2013-12-13 2013-12-13 Method for simultaneously and synchronously playing multiple paths of audios and videos

Country Status (1)

Country Link
CN (1) CN103731625A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516542A (en) * 2014-09-26 2016-04-20 北京同步科技有限公司 Multichannel video synchronization system based on hardware encoders and synchronization method thereof
CN105812914A (en) * 2014-12-29 2016-07-27 Tcl集团股份有限公司 Mixed multiplex decoding method and device of video
CN106373600A (en) * 2016-10-08 2017-02-01 广东欧珀移动通信有限公司 Audio synchronous play method, audio synchronous play device, audio synchronous play system and terminal
CN108600814A (en) * 2018-04-08 2018-09-28 浙江大华技术股份有限公司 A kind of audio video synchronization playback method and device
CN111355989A (en) * 2018-12-21 2020-06-30 深圳市中兴微电子技术有限公司 Frame rate control method and related equipment
CN115643442A (en) * 2022-10-25 2023-01-24 广州市保伦电子有限公司 Audio and video converging recording and playing method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2401378A1 (en) * 2000-03-31 2001-10-11 United Video Properties, Inc. Personal video recording system with home surveillance feed
CN1933594A (en) * 2005-09-14 2007-03-21 王世刚 Multichannel audio-video frequency data network transmitting and synchronous playing method
CN101710997A (en) * 2009-11-04 2010-05-19 中兴通讯股份有限公司 MPEG-2 (Moving Picture Experts Group-2) system based method and system for realizing video and audio synchronization
CN101778269A (en) * 2009-01-14 2010-07-14 扬智电子(上海)有限公司 Synchronization method of audio/video frames of set top box
CN101902649A (en) * 2010-07-15 2010-12-01 浙江工业大学 Audio-video synchronization control method based on H.264 standard
CN101984672A (en) * 2010-11-03 2011-03-09 深圳芯邦科技股份有限公司 Method and device for multi-thread video and audio synchronous control
CN103414957A (en) * 2013-07-30 2013-11-27 广东工业大学 Method and device for synchronization of audio data and video data
CN103428462A (en) * 2013-08-29 2013-12-04 中安消技术有限公司 Method and device for processing multichannel audio and video

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2401378A1 (en) * 2000-03-31 2001-10-11 United Video Properties, Inc. Personal video recording system with home surveillance feed
CN1933594A (en) * 2005-09-14 2007-03-21 王世刚 Multichannel audio-video frequency data network transmitting and synchronous playing method
CN101778269A (en) * 2009-01-14 2010-07-14 扬智电子(上海)有限公司 Synchronization method of audio/video frames of set top box
CN101710997A (en) * 2009-11-04 2010-05-19 中兴通讯股份有限公司 MPEG-2 (Moving Picture Experts Group-2) system based method and system for realizing video and audio synchronization
CN101902649A (en) * 2010-07-15 2010-12-01 浙江工业大学 Audio-video synchronization control method based on H.264 standard
CN101984672A (en) * 2010-11-03 2011-03-09 深圳芯邦科技股份有限公司 Method and device for multi-thread video and audio synchronous control
CN103414957A (en) * 2013-07-30 2013-11-27 广东工业大学 Method and device for synchronization of audio data and video data
CN103428462A (en) * 2013-08-29 2013-12-04 中安消技术有限公司 Method and device for processing multichannel audio and video

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516542A (en) * 2014-09-26 2016-04-20 北京同步科技有限公司 Multichannel video synchronization system based on hardware encoders and synchronization method thereof
CN105812914A (en) * 2014-12-29 2016-07-27 Tcl集团股份有限公司 Mixed multiplex decoding method and device of video
CN105812914B (en) * 2014-12-29 2019-01-04 Tcl集团股份有限公司 A kind of the mixed multiplex coding/decoding method and device of video
CN106373600A (en) * 2016-10-08 2017-02-01 广东欧珀移动通信有限公司 Audio synchronous play method, audio synchronous play device, audio synchronous play system and terminal
CN106373600B (en) * 2016-10-08 2018-03-02 广东欧珀移动通信有限公司 A kind of audio sync player method, device, system and terminal
CN108600814A (en) * 2018-04-08 2018-09-28 浙江大华技术股份有限公司 A kind of audio video synchronization playback method and device
CN111355989A (en) * 2018-12-21 2020-06-30 深圳市中兴微电子技术有限公司 Frame rate control method and related equipment
CN111355989B (en) * 2018-12-21 2023-08-08 深圳市中兴微电子技术有限公司 Frame rate control method and related equipment
CN115643442A (en) * 2022-10-25 2023-01-24 广州市保伦电子有限公司 Audio and video converging recording and playing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
KR100332332B1 (en) Recording medium, data recording unit and data playback unit reading from and writing to the recording medium
CN103731625A (en) Method for simultaneously and synchronously playing multiple paths of audios and videos
JP4481889B2 (en) Data recording apparatus and method, program, and recording medium
CN1643605B (en) Data recording method, data recording device, data recording medium, data reproduction method, and data reproduction device
US20080301380A1 (en) Data Processor
US8165455B2 (en) Data processing apparatus and data processing method, and computer program
CN102780836B (en) High-standard definition compatibility and high-safety news non-linear editing network system
CN101351845A (en) Recording device, recording method, recording program, imaging device, imaging method, and imaging program
JP2007306255A (en) Unit and method for processing information, and computer program
JP4513780B2 (en) Information processing apparatus, information processing method, and computer program
US8230125B2 (en) Methods for reserving index memory space in AVI recording apparatus
KR20080025246A (en) Method for video recording by parsing video stream by gop and video apparatus thereof
JPH11298845A (en) Optical disk, optical disk recorder and optical disk player
EP1768402A1 (en) Data processor
CN101409098B (en) Method for implementing real time CD-RW of digital HD video recorder
JP2004128938A (en) Av data recording/reproducing device and method
JP4930358B2 (en) Data processing apparatus and data processing method
JP2012160245A (en) Information recording and reproducing device and information recording and reproducing method
US7471872B2 (en) Reproducing apparatus for data stored in disk-shape storage media
JP2004334969A (en) Method for recording multifile in real time and reproducing method
JP5123874B2 (en) Recording / reproducing apparatus and recording / reproducing method
CN101198071A (en) Recording method
JP2005115606A (en) Data library device
JP3826743B2 (en) Video / audio signal recording and playback device
JP5712631B2 (en) Video recording apparatus and video recording 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140416