CN109756708A - The continuous transmission method and device of audio, video data - Google Patents

The continuous transmission method and device of audio, video data Download PDF

Info

Publication number
CN109756708A
CN109756708A CN201811621119.5A CN201811621119A CN109756708A CN 109756708 A CN109756708 A CN 109756708A CN 201811621119 A CN201811621119 A CN 201811621119A CN 109756708 A CN109756708 A CN 109756708A
Authority
CN
China
Prior art keywords
gap
video recording
time
video
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.)
Granted
Application number
CN201811621119.5A
Other languages
Chinese (zh)
Other versions
CN109756708B (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 Infineon Information Co ltd
Original Assignee
Shenzhen Infinova Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Infinova Intelligent Technology Co Ltd filed Critical Shenzhen Infinova Intelligent Technology Co Ltd
Priority to CN201811621119.5A priority Critical patent/CN109756708B/en
Publication of CN109756708A publication Critical patent/CN109756708A/en
Application granted granted Critical
Publication of CN109756708B publication Critical patent/CN109756708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of continuous transmission method of audio, video data and device, the present invention passes through the Gap Statistic process repeated and obtains the video recording section for being likely to occur interruption at any time, and is stored in database after carrying out Gap Statistic to video recording section.And then in data forward process, the data forward in corresponding gap is carried out by the Gap Statistic stored in reading database, and then is further equipped with checking process after resuming, to falling flat and part is unsuccessfully handled respectively.Thus single is resumed even if falling flat or partially failing, and still can voluntarily restart corresponding resume.

Description

The continuous transmission method and device of audio, video data
Technical field
The present invention relates to a kind of data processing methods, refer in particular to the continuous transmission method and device of a kind of audio, video data.
Background technique
Basic video monitoring system is usually made of management platform and multiple headend equipments.Management platform is responsible for setting Standby management, headend equipment are responsible for the information collections such as audio-video.Platform access headend equipment video after, by be locally stored module into The streams such as row audio-video storage, if headend equipment, because the reasons such as network go offline, but headend equipment has the interim of oneself to deposit again Storage, such as SD card storage etc., after equipment is again online, the audio, video data of front end during platform needs acquisition to go offline is protected In the presence of being locally stored in module.
However, existing resume in scheme, the transmission that can only be interrupted to the last time is resumed.If resuming again It is interrupted again in journey, it will cause loss of data to resume.
Summary of the invention
The technical problems to be solved by the present invention are: provide a kind of sustainable audio, video data resumed continuous transmission method and Device.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows: a kind of continuous transmission method of audio, video data, Including Gap Statistic process and data forward process;
The Gap Statistic process includes step,
A1 statistics off time t) is judged whether there is, is to obtain statistics off time t, when otherwise creating statistics gap Between t, and by statistics off time t be initialized as current time c;
A2) judge that current time c subtracts the difference of statistics off time t and whether is greater than preset value, otherwise return step A1, It is to continue step;
A3 current time c) is updated to statistics off time t;
A4) all video recordings for t to the c time that inquiry is locally stored
A5) judge whether only one video recording section and the video recording section time is identical to the c time as t, otherwise continue step, be Then return step A1;
A6) st and end time et at the beginning of each video recording section of acquisition;
A7) video recording section is ranked up to evening by early according to time started st;
A8 each video recording gap information between all video recording sections) is counted according to t, c and each video recording section;Between the video recording Gap information includes gst and end time get at the beginning of gap;
A9) all video recording gap informations are saved to video recording gap data library;
A10 current time c) is updated to statistics off time t, return step A1;
The data forward process includes step,
B1 all video recording gap informations saved in video recording gap data library) are loaded into;
B2) according to gst and end time get is forward at the beginning of each video recording gap information in video recording gap data library End equipment obtains the video recording stream of corresponding period;
B3) all video recordings stream amended record is saved into video flowing;
B4 all video recordings of gst to end time get at the beginning of each gap information in video flowing) are inquired;
B5) whether gst to end time get absolutely not records a video at the beginning of the video recording that judgement is inquired, and is to turn It is no to then follow the steps B6 to step B1;
B6) whether the video recording inquired of judgement only has a video recording section and record a video section time and time started gst are to terminating Time, get was identical, if then deleting the corresponding video recording gap information for being stored in video recording gap data library, return step B1, otherwise Execute B7;
B7) st and end time et at the beginning of each video recording section of acquisition;
B8) video recording section is ranked up to evening by early according to time started st;
B9 each record between all video recording sections) is counted according to time started gst, end time get and each video recording section As gap information;The video recording gap information includes gst and end time get at the beginning of gap;
B10) all video recording gap informations are saved to video recording gap data library;
B11) return step B1.
Further, further include B0 before the step B1 of the data forward process) triggering differentiation, step is specifically included,
B01 the maximum number of concurrent of data forward process) is set;
The setting operation time;
B02) judge whether to reach the operating time, be to continue step;
B03) judgement only then continues step when whether current concurrent data forward process is less than maximum number of concurrent.
Among the above, the step A9 of the Gap Statistic process further includes, in initializing set and video recording gap data library The flag bit of all video recordings gap information corresponding " whether gap gets out data flow ";
The triggering of the data forward process further includes step after differentiating B03,
B04 all video recording gap informations that) modification is recorded a video in gap data library are corresponding, and " whether gap gets out data The flag bit of stream " for ready for, then goes to step B1;
The step B1 specifically:
B1 all records of the flag bit of " whether gap gets out data flow " in video recording gap data library for ready for) are loaded into As gap information.
Among the above, the step A9 of the Gap Statistic process further includes, in initializing set and video recording gap data library The corresponding gap of all video recording gap informations handles the frequency of failure;
It include step between the step B1 and B2 of the data forward process,
B12) judge whether the processing frequency of failure of gap corresponding to the video recording gap information being loaded into is more than preset times, is Then the video recording gap information is deleted, and output error message from video recording gap data library, then goes to step B2, otherwise turn To step B2;
The step B5 of the data forward process, specifically:
B5) judge whether absolutely not to record a video, be that gap corresponding to the video recording gap information is then handled into the frequency of failure Add 1, then goes to step B1, it is no to then follow the steps B6.
Among the above, the step A9 of the Gap Statistic process further includes, in initializing set and video recording gap data library The corresponding clearance gap of all video recording gap informations handles the time;
It further include step B45 between the step B4 and B5 of the data forward process,
B45) judge whether the video recording gap information corresponding clearance gap processing time meets, turn after otherwise waiting for satisfaction It to step B5, is to pass directly to step B5;
The step B5 of the data forward process, specifically:
B5) judge whether absolutely not to record a video, be when setting the processing of clearance gap corresponding to the video recording gap information Between, step B1 is then gone to, it is no to then follow the steps B6.
The invention further relates to a kind of devices that resumes of audio, video data, including Gap Statistic module and data forward module;
The Gap Statistic module includes,
Time judging unit is to obtain statistics off time t, otherwise for judging whether there is statistics off time t Newly-built statistics off time t, and statistics off time t is initialized as current time c;
Dif ference judgment unit, for judge current time c subtract statistics off time t difference whether be greater than preset value, Otherwise turnaround time judging unit is to go to the first updating unit;
First updating unit, for current time c to be updated to statistics off time t;
Video recording query unit, for inquiring all video recordings for t to the c time being locally stored
Complete judging unit, for judging whether only one video recording section and the video recording section time is identical to the c time as t, Otherwise time acquisition unit is gone to, is then turnaround time judging unit;
Time acquisition unit, for obtaining each video recording section at the beginning of st and end time et;
Sequencing unit, for being ranked up to evening to video recording section according to time started st by early;
Gap element is counted, for counting each video recording gap between all video recording sections according to t, c and each video recording section Information;The video recording gap information includes gst and end time get at the beginning of gap;
Gap storage unit, for saving all video recording gap informations to video recording gap data library;
Second updating unit, for current time c to be updated to statistics off time t, turnaround time judging unit;
The data forward module includes,
Gap is loaded into unit, for being loaded into all video recording gap informations saved in video recording gap data library;
Amended record unit, gst and end at the beginning of being used for according to each video recording gap information in video recording gap data library End equipment obtains the video recording stream for corresponding to the period to time get forward;
Amended record query unit, for inquiring in video flowing at the beginning of each gap information gst to end time get's All video recordings;
Amended record failure judging unit, whether gst is complete to end time get at the beginning of the video recording for judging to inquire It does not record a video entirely, is to go to gap to be loaded into unit, otherwise goes to the complete judging unit of amended record;
The complete judging unit of amended record, video recording for judging to inquire whether only have a video recording section and the video recording section time and Time started gst is identical to end time get, if then deleting the corresponding video recording gap letter for being stored in video recording gap data library Breath goes to gap and is loaded into unit, otherwise goes to secondary time acquisition unit;
Secondary time acquisition unit, for obtaining each video recording section at the beginning of st and end time et;
Secondary sequencing unit, for being ranked up to evening to video recording section according to time started st by early;
Secondary Gap Statistic unit, for counting institute according to time started gst, end time get and each video recording section There is each video recording gap information between video recording section;The video recording gap information includes gst and end time at the beginning of gap get;
Secondary gap storage unit, for by all video recording gap informations save to video recording gap data library then go back between Gap is loaded into unit.
Among the above, the data forward module further includes triggering judgement unit, is specifically included,
Subelement is set, for setting the maximum number of concurrent of data forward module, setting operation time;
Time judgment sub-unit reaches the operating time for judging whether, is to go to concurrent judgment sub-unit;
Concurrent judgment sub-unit, for judging only when whether current concurrent data forward module is less than maximum number of concurrent Shi Ze goes to gap and is loaded into subelement.
Among the above, the gap storage unit of the Gap Statistic module is also used to initializing set and video recording gap data The flag bit of all video recording gap informations corresponding " whether gap gets out data flow " in library;
The triggering judgement unit of the data forward module further includes preparing label subelement, for modifying video recording gap number According to all video recording gap informations corresponding " whether gap gets out data flow " in library flag bit for ready for, then go to Time judging unit;
The time judging unit is specifically used for being loaded into " whether gap gets out data flow " in video recording gap data library All video recording gap informations of flag bit for ready for.
Among the above, the gap storage unit of the Gap Statistic module is also used to initializing set and video recording gap data The corresponding gap of all video recording gap informations in library handles the frequency of failure;
The gap of the data forward module is loaded into unit and goes to amended record unit by failure judging unit, described unsuccessfully to sentence Disconnected unit, for judging whether the processing frequency of failure of gap corresponding to the video recording gap information being loaded into is more than preset times, is Then the video recording gap information is deleted, and output error message from video recording gap data library, then goes to amended record unit, otherwise Go to amended record unit;
The amended record failure judging unit of the data forward module is then specifically for judging whether absolutely not to record a video The processing frequency of failure of gap corresponding to the video recording gap information is added 1, is then to go to gap to be loaded into unit, otherwise goes to The complete judging unit of amended record.
Among the above, the gap storage unit of the Gap Statistic module is also used to initializing set and video recording gap data The corresponding clearance gap of all video recording gap informations in library handles the time;
The amended record failure judging unit of the data forward module goes to amended record by interval judgment unit and completely judges list Member, the interval judgment unit, for judging whether the video recording gap information corresponding clearance gap processing time meets, otherwise etc. It is to pass directly to the complete judging unit of amended record after go to the complete judging unit of amended record to after meeting;
The complete judging unit of amended record of the data forward module is then specifically for judging whether absolutely not to record a video The processing time of clearance gap corresponding to the video recording gap information is set, gap is then gone to and is loaded into unit, otherwise go to secondary Time acquisition unit.
The beneficial effects of the present invention are: it is obtained at any time by the Gap Statistic process repeated and is likely to occur interruption Video recording section, and database is stored in after carrying out Gap Statistic to video recording section.And then in data forward process, pass through reading database The Gap Statistic of middle storage carries out the data forward in corresponding gap, and then checking process is further equipped with after resuming, and loses to complete It loses and part is unsuccessfully handled respectively.Thus single is resumed even if falling flat or partially failing, and still can voluntarily be opened again Move corresponding resume.
Detailed description of the invention
Specific structure of the invention is described in detail with reference to the accompanying drawing
Fig. 1 is the flow chart of Gap Statistic process of the invention;
Fig. 2 is the flow chart of data forward process of the invention;
Fig. 3 is the flow chart of the data forward process of one embodiment of the invention.
Specific embodiment
In order to describe the technical content, the structural feature, the achieved object and the effect of this invention in detail, below in conjunction with embodiment And attached drawing is cooperated to be explained in detail.
A kind of continuous transmission method of audio, video data, includingGap Statistic processAndData forward process
As shown in Figure 1, describedGap Statistic process, including step,
A1 statistics off time t) is judged whether there is, is to obtain statistics off time t, when otherwise creating statistics gap Between t, and by statistics off time t be initialized as current time c;
A2) judge that current time c subtracts the difference of statistics off time t and whether is greater than preset value, otherwise return step A1, It is to continue step;
A3 current time c) is updated to statistics off time t;
A4) all video recordings for t to the c time that inquiry is locally stored
A5) judge whether only one video recording section and the video recording section time is identical to the c time as t, otherwise continue step, be Then return step A1;
A6) st and end time et at the beginning of each video recording section of acquisition;
This step, in particular to obtain in t to c period st and end time et at the beginning of all video recording sections.By In there are a kind of situation, i.e., t only one video recording section into c time when A5 judges, but when the video recording section is not covered with t to c Between, this represent this video recording section be also it is incomplete, need to resume.Therefore, it can be identified when A5 step differentiates and carry out A6 The step of, A6 step then corresponds to this video recording section and obtains time started st and end time et.
A7) video recording section is ranked up to evening by early according to time started st;
A8 each video recording gap information between all video recording sections) is counted according to t, c and each video recording section;Between the video recording Gap information includes gst and end time get at the beginning of gap;
A9) all video recording gap informations are saved to video recording gap data library;
A10 current time c) is updated to statistics off time t, return step A1;
It is describedData forward processIncluding step,
B1 all video recording gap informations saved in video recording gap data library) are loaded into;
B2) according to gst and end time get is forward at the beginning of each video recording gap information in video recording gap data library End equipment obtains the video recording stream of corresponding period;
B3) all video recordings stream amended record is saved into video flowing;
B4 all video recordings of gst to end time get at the beginning of each gap information in video flowing) are inquired;
B5) whether gst to end time get absolutely not records a video at the beginning of the video recording that judgement is inquired, and is to turn It is no to then follow the steps B6 to step B1;
This step sees if there is starting and resumes to video flow verification, if at the end of gst is arrived at the beginning of former gap Between get have video recording, if there is duty means to resume and has been turned on, otherwise the judgement of further progress B6 then belongs to can not resume completely Function then corresponds to the video recording gap information and resumes again.
B6) whether the video recording inquired of judgement only has a video recording section and record a video section time and time started gst are to terminating Time, get was identical, if then deleting the corresponding video recording gap information for being stored in video recording gap data library, return step B1, otherwise Execute B7;
This step is transferred from step B6, then means that situation resumes and had been turned on, but whether is completely resumed, is walked by this Suddenly it is verified, such as authentication failed, then in order to avoid continuing the data in the gap repeatedly, further carries out following being directed to and be somebody's turn to do The new gap information of section time judges process B7-B10.
B7) st and end time et at the beginning of each video recording section of acquisition;
B8) video recording section is ranked up to evening by early according to time started st;
B9 each record between all video recording sections) is counted according to time started gst, end time get and each video recording section As gap information;
The video recording gap information includes gst and end time get at the beginning of gap;
Gst, end time get refer to the beginning for partially resuming successful gap instantly at the beginning of starting in our department's week Time gst and end time get, and after each video recording gap information between all video recording sections that statistics obtains is then to resume The case where video flowing intermediate gap.
B10) all video recording gap informations are saved to video recording gap data library;
B11) return step B1.
As can be seen from the above description, the beneficial effects of the present invention are: it is obtained at any time by the Gap Statistic process repeated The video recording section for being likely to occur interruption is taken, and is stored in database after carrying out Gap Statistic to video recording section.And then in data forward process In, the data forward in corresponding gap is carried out by the Gap Statistic stored in reading database, and then be further equipped with after resuming Checking process, to fall flat and part unsuccessfully handle respectively.Thus single resume even if fall flat or part failure, according to It so can voluntarily restart corresponding resume.
Embodiment 1
Further, further include B0 before the step B1 of the data forward process) triggering differentiation, step is specifically included,
B01 the maximum number of concurrent of data forward process) is set;
The setting operation time;
B02) judge whether to reach the operating time, be to continue step;
B03) judgement only then continues step when whether current concurrent data forward process is less than maximum number of concurrent.
Because data flow obtains needs, end equipment takes stream forward, in contrast can compare consumption network and Disk bandwidth, institute Can allow user that maximum number of concurrent maxCount is arranged according to the actual situation, thus by judging most before log-on data resumes Whether big number of concurrent is more than, more than not handling then, to wait and recycle to can avoid the consumption of resource next time.
In addition, in addition to maximum number of concurrent, there are one matter of time, certain user it is expected when specified in practical application Between just start suspension and resume.Therefore the setting operation time is as the trigger condition for resuming process.
Embodiment 2
Among the above, the step A9 of the Gap Statistic process further includes, in initializing set and video recording gap data library The flag bit of all video recordings gap information corresponding " whether gap gets out data flow ";
The triggering of the data forward process further includes step after differentiating B03,
B04 all video recording gap informations that) modification is recorded a video in gap data library are corresponding, and " whether gap gets out data The flag bit of stream " for ready for, then goes to step B1;
The step B1 specifically:
B1 all records of the flag bit of " whether gap gets out data flow " in video recording gap data library for ready for) are loaded into As gap information.
In the present embodiment, corresponding each video recording gap information sets the mark of one " whether gap gets out data flow " Position, so that, when meeting time and concurrent condition, the flag bit is modified, so that subsequent can be right in data forward process Should be loaded into meet ready video recording gap information correspondence resumed.
Embodiment 3
Among the above, the step A9 of the Gap Statistic process further includes, in initializing set and video recording gap data library The corresponding gap of all video recording gap informations handles the frequency of failure;
It include step between the step B1 and B2 of the data forward process,
B12) judge whether the processing frequency of failure of gap corresponding to the video recording gap information being loaded into is more than preset times, is Then the video recording gap information is deleted, and output error message from video recording gap data library, then goes to step B2, otherwise turn To step B2;
The step B5 of the data forward process, specifically:
B5) judge whether absolutely not to record a video, be that gap corresponding to the video recording gap information is then handled into the frequency of failure Add 1, then goes to step B1, it is no to then follow the steps B6.
The present embodiment handles the condition of the frequency of failure by increasing the gap of corresponding each video recording interval data, thus in number Judge that " the gap processing frequency of failure " number, then will be between the video recording more than certain number, such as > 10 times according to passing through when resuming process Gap is deleted from database as invalid gap, when necessary also exportable error message, and error message can be used for alarming or log Record is to inquire.To avoid, for the same problem, endless loop is resumed repeatedly.
Embodiment 4
Among the above, the step A9 of the Gap Statistic process further includes, in initializing set and video recording gap data library The corresponding clearance gap of all video recording gap informations handles the time;
It further include step B45 between the step B4 and B5 of the data forward process,
B45) judge whether the video recording gap information corresponding clearance gap processing time meets, turn after otherwise waiting for satisfaction It to step B5, is to pass directly to step B5;
The step B5 of the data forward process, specifically:
B5) judge whether absolutely not to record a video, be when setting the processing of clearance gap corresponding to the video recording gap information Between, step B1 is then gone to, it is no to then follow the steps B6.
The present embodiment handles the condition of time by increasing the clearance gap of corresponding each video recording interval data, thus in number When according to resuming process, delay mechanism is introduced, so that can postpone such as 5min or 10min if last time amended record has failed and carry out Processing, avoids invalid frequent requests.
Implement example:
In one embodiment,
A kind of continuous transmission method of audio, video data, includingGap Statistic processAndData forward process
It is describedGap Statistic process, including step,
S101 statistics off time t) is judged whether there is, is to obtain statistics off time t, otherwise creates statistics gap Time t, and statistics off time t is initialized as current time c;
S102) judge that current time c subtracts the difference of statistics off time t and whether is greater than preset value, otherwise return step S101 is to continue step;
S103 current time c) is updated to statistics off time t;
S104) all video recordings for t to the c time that inquiry is locally stored
S105) judge whether only one video recording section and the video recording section time be identical to the c time as t, otherwise continue step, It is then return step S101;
S106) st and end time et at the beginning of each video recording section of acquisition;
S107) video recording section is ranked up to evening by early according to time started st;
S108 each video recording gap information between all video recording sections) is counted according to t, c and each video recording section;The video recording Gap information includes gst and end time get at the beginning of gap;
S109) all video recording gap informations are saved to video recording gap data library;
Initializing set gap corresponding with all video recording gap informations in video recording gap data library handles the frequency of failure;
Initializing set clearance gap corresponding with all video recording gap informations in video recording gap data library handles the time;
S110 current time c) is updated to statistics off time t, return step S101;
As shown in figure 3, describedData forward processIncluding step,
S201 the maximum number of concurrent of data forward process) is set;
The setting operation time;
S202) judge whether to reach the operating time, be to continue step;
S203) judgement only then continues step when whether current concurrent data forward process is less than maximum number of concurrent
S204 all video recording gap informations that) modification is recorded a video in gap data library are corresponding, and " whether gap gets out data The flag bit of stream " for ready for, then goes to step S205;
S205 the flag bit of " whether gap gets out data flow " in video recording gap data library for ready for all) are loaded into Video recording gap information;
S206) judge whether the processing frequency of failure of gap corresponding to the video recording gap information being loaded into is more than preset times, It is the video recording gap information to be deleted, and output error message from video recording gap data library, then go to step S207, it is no Then go to step S207;
S207) to gst and end time get is forward at the beginning of each video recording gap information in video recording gap data library End equipment obtains the video recording stream of corresponding period;
At this point, invalid video recording gap information has been deleted by S206 in video recording gap data library, therefore for effective Video recording gap information is resumed (amended record).
S208) all video recordings stream amended record is saved into video flowing;
S209 all video recordings of gst to end time get at the beginning of each gap information in video flowing) are inquired;
S210) judge whether the video recording gap information corresponding clearance gap processing time meets, otherwise wait for satisfaction Step S211 is gone to, is, passes directly to step S211;
S211) whether gst to end time get absolutely not records a video at the beginning of the video recording that judgement is inquired, and is then The processing frequency of failure of gap corresponding to the video recording gap information is added 1, is set between gap corresponding to the video recording gap information Every the processing time, step S202 is then gone to, it is no to then follow the steps S212;
S212) whether the video recording that judgement is inquired only has a video recording section and video recording section time and time started gst are extremely tied The beam time, get was identical, if then deleting the corresponding video recording gap information for being stored in video recording gap data library, return step S202, Otherwise S213 is executed;
S213) st and end time et at the beginning of each video recording section of acquisition;
S214) video recording section is ranked up to evening by early according to time started st;
Each of S215) counted between all video recording sections according to time started gst, end time get and each video recording section Video recording gap information;The video recording gap information includes gst and end time get at the beginning of gap;
S216) all video recording gap informations are saved to video recording gap data library;
S217) return step S202.
The invention further relates to a kind of devices that resumes of audio, video data, including Gap Statistic module and data forward module;
It is describedGap Statistic moduleInclude:
Time judging unit is to obtain statistics off time t, otherwise for judging whether there is statistics off time t Newly-built statistics off time t, and statistics off time t is initialized as current time c, then go to dif ference judgment unit;
Dif ference judgment unit, for judge current time c subtract statistics off time t difference whether be greater than preset value, Otherwise turnaround time judging unit is to go to the first updating unit;
First updating unit then goes to video recording query unit for current time c to be updated to statistics off time t;
It is single then to go to complete judgement for inquiring all video recordings for t to the c time being locally stored for query unit of recording a video Member
Complete judging unit, for judging whether only one video recording section and the video recording section time is identical to the c time as t, Otherwise time acquisition unit is gone to, is then turnaround time judging unit;
Time acquisition unit, for obtaining each video recording section at the beginning of st and end time et, then go to sequence Unit;
Sequencing unit then goes to statistics gap for being ranked up to evening to video recording section according to time started st by early Unit;
Gap element is counted, for counting each video recording gap between all video recording sections according to t, c and each video recording section Information then goes to gap storage unit;The video recording gap information includes gst and end time get at the beginning of gap;
Gap storage unit then goes to second for saving all video recording gap informations to video recording gap data library Updating unit;
Second updating unit, for current time c to be updated to statistics off time t, turnaround time judging unit.
It is describedData forward moduleInclude:
Gap is loaded into unit, for being loaded into all video recording gap informations saved in video recording gap data library, then goes to Amended record unit;
Amended record unit, gst and end at the beginning of being used for according to each video recording gap information in video recording gap data library End equipment obtains the video recording stream for corresponding to the period to time get forward, then goes to amended record query unit;
Amended record query unit, for inquiring in video flowing at the beginning of each gap information gst to end time get's All video recordings then go to amended record failure judging unit;
Amended record failure judging unit, whether gst is complete to end time get at the beginning of the video recording for judging to inquire It does not record a video entirely, is to go to gap to be loaded into unit, otherwise goes to the complete judging unit of amended record;
The complete judging unit of amended record, video recording for judging to inquire whether only have a video recording section and the video recording section time and Time started gst is identical to end time get, if then deleting the corresponding video recording gap letter for being stored in video recording gap data library Breath goes to gap and is loaded into unit, otherwise goes to secondary time acquisition unit;
Secondary time acquisition unit, for obtaining each video recording section at the beginning of st and end time et, then go to Secondary sequencing unit;
Secondary sequencing unit is then gone to secondary for being ranked up to evening to video recording section according to time started st by early Gap Statistic unit;
Secondary Gap Statistic unit, for counting institute according to time started gst, end time get and each video recording section There is each video recording gap information between video recording section, then goes to secondary gap storage unit;Between the video recording gap information includes Gst and end time get at the beginning of gap;
Secondary gap storage unit, for by all video recording gap informations save to video recording gap data library then go back between Gap is loaded into unit.
As can be seen from the above description, the beneficial effects of the present invention are: it is obtained at any time by the Gap Statistic module repeated The video recording section for being likely to occur interruption is taken, and is stored in database after carrying out Gap Statistic to video recording section.And then in data forward module In, the data forward in corresponding gap is carried out by the Gap Statistic stored in reading database, and then be further equipped with after resuming Checking process, to fall flat and part unsuccessfully handle respectively.Thus single resume even if fall flat or part failure, according to It so can voluntarily restart corresponding resume.
Embodiment 5
Among the above, the data forward module further includes triggering judgement unit, is specifically included,
Subelement is set, for setting the maximum number of concurrent of data forward module, setting operation time;
Time judgment sub-unit reaches the operating time for judging whether, is to go to concurrent judgment sub-unit;
Concurrent judgment sub-unit, for judging only when whether current concurrent data forward module is less than maximum number of concurrent Shi Ze goes to gap and is loaded into subelement.
Because data flow obtains needs, end equipment takes stream forward, in contrast can compare consumption network and Disk bandwidth, institute Can allow user that maximum number of concurrent maxCount is arranged according to the actual situation, thus by judging most before log-on data resumes Whether big number of concurrent is more than, more than not handling then, to wait and recycle to can avoid the consumption of resource next time.
In addition, in addition to maximum number of concurrent, there are one matter of time, certain user it is expected when specified in practical application Between just start suspension and resume.Therefore the setting operation time is as the trigger condition for resuming process.
Embodiment 6
Among the above, the gap storage unit of the Gap Statistic module is also used to initializing set and video recording gap data The flag bit of all video recording gap informations corresponding " whether gap gets out data flow " in library;
The triggering judgement unit of the data forward module further includes preparing label subelement, for modifying video recording gap number According to all video recording gap informations corresponding " whether gap gets out data flow " in library flag bit for ready for, then go to Time judging unit;
The time judging unit is specifically used for being loaded into " whether gap gets out data flow " in video recording gap data library All video recording gap informations of flag bit for ready for.
In the present embodiment, corresponding each video recording gap information sets the mark of one " whether gap gets out data flow " Position, so that, when meeting time and concurrent condition, the flag bit is modified, so that subsequent can be right in data forward process Should be loaded into meet ready video recording gap information correspondence resumed.
Embodiment 7
Among the above, the gap storage unit of the Gap Statistic module is also used to initializing set and video recording gap data The corresponding gap of all video recording gap informations in library handles the frequency of failure;
The gap of the data forward module is loaded into unit and goes to amended record unit by failure judging unit, described unsuccessfully to sentence Disconnected unit, for judging whether the processing frequency of failure of gap corresponding to the video recording gap information being loaded into is more than preset times, is Then the video recording gap information is deleted, and output error message from video recording gap data library, then goes to amended record unit, otherwise Go to amended record unit;
The amended record failure judging unit of the data forward module is then specifically for judging whether absolutely not to record a video The processing frequency of failure of gap corresponding to the video recording gap information is added 1, is then to go to gap to be loaded into unit, otherwise goes to The complete judging unit of amended record.
The present embodiment handles the condition of the frequency of failure by increasing the gap of corresponding each video recording interval data, thus in number Judge that " the gap processing frequency of failure " number, then will be between the video recording more than certain number, such as > 10 times according to passing through when resuming process Gap is deleted from database as invalid gap, when necessary also exportable error message, and error message can be used for alarming or log Record is to inquire.To avoid, for the same problem, endless loop is resumed repeatedly.
Embodiment 8
Among the above, the gap storage unit of the Gap Statistic module is also used to initializing set and video recording gap data The corresponding clearance gap of all video recording gap informations in library handles the time;
The amended record failure judging unit of the data forward module goes to amended record by interval judgment unit and completely judges list Member, the interval judgment unit, for judging whether the video recording gap information corresponding clearance gap processing time meets, otherwise etc. It is to pass directly to the complete judging unit of amended record after go to the complete judging unit of amended record to after meeting;
The complete judging unit of amended record of the data forward module is then specifically for judging whether absolutely not to record a video The processing time of clearance gap corresponding to the video recording gap information is set, gap is then gone to and is loaded into unit, otherwise go to secondary Time acquisition unit.
The present embodiment handles the condition of time by increasing the clearance gap of corresponding each video recording interval data, thus in number When according to resuming process, delay mechanism is introduced, so that can postpone such as 5min or 10min if last time amended record has failed and carry out Processing, avoids invalid frequent requests.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of continuous transmission method of audio, video data, it is characterised in that: including Gap Statistic process and data forward process;
The Gap Statistic process includes step,
A1 statistics off time t) is judged whether there is, is to obtain statistics off time t, otherwise creates statistics off time t, And statistics off time t is initialized as current time c;
A2) judge current time c subtract statistics off time t difference whether be greater than preset value, otherwise return step A1, is then Continue step;
A3 current time c) is updated to statistics off time t;
A4) all video recordings for t to the c time that inquiry is locally stored
A5) judge whether only one video recording section and the video recording section time is identical to the c time as t, otherwise continue step, be, return Return step A1;
A6) st and end time et at the beginning of each video recording section of acquisition;
A7) video recording section is ranked up to evening by early according to time started st;
A8 each video recording gap information between all video recording sections) is counted according to t, c and each video recording section;The video recording gap letter Breath includes gst and end time get at the beginning of gap;
A9) all video recording gap informations are saved to video recording gap data library;
A10 current time c) is updated to statistics off time t, return step A1;
The data forward process includes step,
B1 all video recording gap informations saved in video recording gap data library) are loaded into;
B2) according to gst and end time get forward end are set at the beginning of each video recording gap information in video recording gap data library The standby video recording stream for obtaining the corresponding period;
B4 all video recordings of gst to end time get at the beginning of each gap information in video flowing) are inquired;
B5) whether gst to end time get absolutely not records a video at the beginning of the video recording that judgement is inquired, and is to go to step Rapid B1, it is no to then follow the steps B6;
B6) whether the video recording that judgement is inquired only has a video recording section and record a video section time and time started gst to end time Get is identical, if then deleting the corresponding video recording gap information for being stored in video recording gap data library, otherwise return step B1 is executed B7;
B7) st and end time et at the beginning of each video recording section of acquisition;
B8) video recording section is ranked up to evening by early according to time started st;
B9) according to time started gst, end time get and it is each video recording section count it is all video recording sections between each video recording between Gap information;The video recording gap information includes gst and end time get at the beginning of gap;
B10) all video recording gap informations are saved to video recording gap data library;
B11) return step B1.
2. the continuous transmission method of audio, video data as described in claim 1, it is characterised in that: the step of the data forward process Further include B0 before B1) triggering differentiation, step is specifically included,
B01 the maximum number of concurrent of data forward process) is set;
The setting operation time;
B02) judge whether to reach the operating time, be to continue step;
B03) judgement only then continues step when whether current concurrent data forward process is less than maximum number of concurrent.
3. the continuous transmission method of audio, video data as claimed in claim 2, it is characterised in that: the step of the Gap Statistic process A9 further includes that initializing set is corresponding with all video recording gap informations in video recording gap data library, and " whether gap is ready to The flag bit of data flow ";
The triggering of the data forward process further includes step after differentiating B03,
B04 all video recording gap informations corresponding " whether gap gets out data flow " in video recording gap data library) are modified Flag bit for ready for, then goes to step B1;
The step B1 specifically:
B1 it) is loaded between all video recordings of the flag bit of " whether gap gets out data flow " in video recording gap data library for ready for Gap information.
4. the continuous transmission method of audio, video data as claimed in any one of claims 1-3, it is characterised in that: the Gap Statistic The step A9 of process further includes initializing set gap location corresponding with all video recording gap informations in video recording gap data library Manage the frequency of failure;
It include step between the step B1 and B2 of the data forward process,
B12) judge whether the processing frequency of failure of gap corresponding to the video recording gap information being loaded into is more than preset times, then will be The video recording gap information is deleted from video recording gap data library, and output error message, is then gone to step B2, is otherwise gone to step Rapid B2;
The step B5 of the data forward process, specifically:
B5) judge whether absolutely not to record a video, be, the processing frequency of failure of gap corresponding to the video recording gap information is added 1, Step B1 is then gone to, it is no to then follow the steps B6.
5. the continuous transmission method of audio, video data as claimed in any one of claims 1-3, it is characterised in that: the Gap Statistic The step A9 of process further includes, between initializing set gap corresponding with all video recording gap informations in video recording gap data library Every the processing time;
It further include step B45 between the step B4 and B5 of the data forward process,
B45) judge whether the video recording gap information corresponding clearance gap processing time meets, step is gone to after otherwise waiting for satisfaction Rapid B5 is to pass directly to step B5;
The step B5 of the data forward process, specifically:
B5) judge whether absolutely not to record a video, be set clearance gap corresponding to the video recording gap information processing time, and After go to step B1, it is no to then follow the steps B6.
6. a kind of audio, video data resumes device, it is characterised in that: including Gap Statistic module and data forward module;
The Gap Statistic module includes,
Time judging unit is to obtain statistics off time t, otherwise creates for judging whether there is statistics off time t Off time t is counted, and statistics off time t is initialized as current time c;
Dif ference judgment unit, for judge current time c subtract statistics off time t difference whether be greater than preset value, otherwise Turnaround time judging unit is to go to the first updating unit;
First updating unit, for current time c to be updated to statistics off time t;
Video recording query unit, for inquiring all video recordings for t to the c time being locally stored
Complete judging unit, for judging whether only one video recording section and the video recording section time is identical to the c time as t, otherwise Time acquisition unit is gone to, is then turnaround time judging unit;
Time acquisition unit, for obtaining each video recording section at the beginning of st and end time et;
Sequencing unit, for being ranked up to evening to video recording section according to time started st by early;
Gap element is counted, for counting each video recording gap information between all video recording sections according to t, c and each video recording section; The video recording gap information includes gst and end time get at the beginning of gap;
Gap storage unit, for saving all video recording gap informations to video recording gap data library;
Second updating unit, for current time c to be updated to statistics off time t, turnaround time judging unit;
The data forward module includes,
Gap is loaded into unit, for being loaded into all video recording gap informations saved in video recording gap data library;
Amended record unit, gst and end time at the beginning of being used for according to each video recording gap information in video recording gap data library End equipment obtains the video recording stream for corresponding to the period to get forward;
Amended record query unit, for inquiring in video flowing all of gst to end time get at the beginning of each gap information Video recording;
Amended record fail judging unit, for judging the video recording inquired at the beginning of gst to end time get whether do not have completely There is video recording, be, goes to gap and be loaded into unit, otherwise go to the complete judging unit of amended record;
Whether the complete judging unit of amended record, the video recording for judging to inquire only have a video recording section and record a video section time and beginning Time gst is identical to end time get, if then deleting the corresponding video recording gap information for being stored in video recording gap data library, turns It is loaded into unit to gap, otherwise goes to secondary time acquisition unit;
Secondary time acquisition unit, for obtaining each video recording section at the beginning of st and end time et;
Secondary sequencing unit, for being ranked up to evening to video recording section according to time started st by early;
Secondary Gap Statistic unit, for counting all records according to time started gst, end time get and each video recording section As each video recording gap information between section;The video recording gap information includes gst and end time get at the beginning of gap;
Secondary gap storage unit then goes back to gap load for saving all video recording gap informations to video recording gap data library Enter unit.
7. audio, video data as claimed in claim 6 resumes device, it is characterised in that: the data forward module further includes Judgement unit is triggered, is specifically included,
Subelement is set, for setting the maximum number of concurrent of data forward module, setting operation time;
Time judgment sub-unit reaches the operating time for judging whether, is to go to concurrent judgment sub-unit;
Concurrent judgment sub-unit, for judge only when whether current concurrent data forward module is less than maximum number of concurrent then It goes to gap and is loaded into subelement.
8. audio, video data as claimed in claim 7 resumes device, it is characterised in that: the gap of the Gap Statistic module Storage unit, being also used to initializing set, corresponding " whether gap with all video recording gap informations for recording a video in gap data library Get out data flow " flag bit;
The triggering judgement unit of the data forward module further includes preparing label subelement, for modifying video recording gap data library In all video recording gap informations corresponding " whether gap gets out data flow " flag bit for ready for, then go to the time Judging unit;
The time judging unit is specifically used for being loaded into the mark of " whether gap gets out data flow " in video recording gap data library All video recording gap informations of position for ready for.
9. audio, video data as described in claim 6-8 any one resumes device, it is characterised in that: the Gap Statistic The gap storage unit of module, it is corresponding with all video recording gap informations recorded a video in gap data library to be also used to initializing set Gap handles the frequency of failure;
The gap of the data forward module is loaded into unit and goes to amended record unit by failure judging unit, and the unsuccessfully judgement is single Member, for judging whether the processing frequency of failure of gap corresponding to the video recording gap information being loaded into is more than preset times, then will be The video recording gap information is deleted from video recording gap data library, and output error message, is then gone to amended record unit, is otherwise gone to Amended record unit;
The amended record failure judging unit of the data forward module specifically for judging whether absolutely not to record a video then should be The gap processing frequency of failure corresponding to video recording gap information adds 1, is then to go to gap to be loaded into unit, otherwise goes to amended record Complete judging unit.
10. audio, video data as described in claim 6-8 any one resumes device, it is characterised in that: the gap system The gap storage unit for counting module, it is corresponding with all video recording gap informations recorded a video in gap data library to be also used to initializing set Clearance gap handle the time;
The amended record failure judging unit of the data forward module goes to the complete judging unit of amended record, institute by interval judgment unit State interval judgment unit, for judging to record a video, whether the gap information corresponding clearance gap processing time meets, otherwise wait for The complete judging unit of amended record is gone to after satisfaction, is to pass directly to the complete judging unit of amended record;
The complete judging unit of amended record of the data forward module is to set specifically for judging whether absolutely not to record a video Clearance gap corresponding to the video recording gap information handles the time, then goes to gap and is loaded into unit, otherwise goes to the secondary time Acquiring unit.
CN201811621119.5A 2018-12-28 2018-12-28 Continuous transmission method and device of audio and video data Active CN109756708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811621119.5A CN109756708B (en) 2018-12-28 2018-12-28 Continuous transmission method and device of audio and video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811621119.5A CN109756708B (en) 2018-12-28 2018-12-28 Continuous transmission method and device of audio and video data

Publications (2)

Publication Number Publication Date
CN109756708A true CN109756708A (en) 2019-05-14
CN109756708B CN109756708B (en) 2021-05-14

Family

ID=66404050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811621119.5A Active CN109756708B (en) 2018-12-28 2018-12-28 Continuous transmission method and device of audio and video data

Country Status (1)

Country Link
CN (1) CN109756708B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112203050A (en) * 2020-09-30 2021-01-08 普联技术有限公司 Method and device for continuously transmitting video

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202908A (en) * 2007-07-18 2008-06-18 深圳市同洲电子股份有限公司 Method, system for complementing lose data and network system
CN101938527A (en) * 2009-06-29 2011-01-05 佳能株式会社 Communication apparatus and method of controlling the same
CN103634083A (en) * 2013-12-20 2014-03-12 哈尔滨工业大学 Dynamic network coded packet loss retransmission method suitable for sensor network
CN104104480A (en) * 2014-07-31 2014-10-15 北京蓝汛通信技术有限责任公司 Method and device for detecting retransmission packet loss of TCP (transmission control protocol)
CN105187754A (en) * 2015-08-31 2015-12-23 浙江宇视科技有限公司 Cache replenishment method and device
CN107181773A (en) * 2016-03-09 2017-09-19 阿里巴巴集团控股有限公司 Data storage and data managing method, the equipment of distributed memory system
CN107491264A (en) * 2016-06-12 2017-12-19 阿里巴巴集团控股有限公司 Method for writing data and device in a kind of distributed system
CN108023906A (en) * 2016-10-31 2018-05-11 杭州海康威视系统技术有限公司 The breaker point continuous transmission method and device of monitoring video
CN108173707A (en) * 2017-11-29 2018-06-15 北京百悟科技有限公司 The control method and device that media resource uses

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202908A (en) * 2007-07-18 2008-06-18 深圳市同洲电子股份有限公司 Method, system for complementing lose data and network system
CN101938527A (en) * 2009-06-29 2011-01-05 佳能株式会社 Communication apparatus and method of controlling the same
CN103634083A (en) * 2013-12-20 2014-03-12 哈尔滨工业大学 Dynamic network coded packet loss retransmission method suitable for sensor network
CN104104480A (en) * 2014-07-31 2014-10-15 北京蓝汛通信技术有限责任公司 Method and device for detecting retransmission packet loss of TCP (transmission control protocol)
CN105187754A (en) * 2015-08-31 2015-12-23 浙江宇视科技有限公司 Cache replenishment method and device
CN107181773A (en) * 2016-03-09 2017-09-19 阿里巴巴集团控股有限公司 Data storage and data managing method, the equipment of distributed memory system
CN107491264A (en) * 2016-06-12 2017-12-19 阿里巴巴集团控股有限公司 Method for writing data and device in a kind of distributed system
CN108023906A (en) * 2016-10-31 2018-05-11 杭州海康威视系统技术有限公司 The breaker point continuous transmission method and device of monitoring video
CN108173707A (en) * 2017-11-29 2018-06-15 北京百悟科技有限公司 The control method and device that media resource uses

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112203050A (en) * 2020-09-30 2021-01-08 普联技术有限公司 Method and device for continuously transmitting video

Also Published As

Publication number Publication date
CN109756708B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
US6490574B1 (en) Method and system for managing rules and events in a multi-user intelligent agent environment
US8392402B2 (en) Hybrid push/pull execution of continuous SQL queries
JP3778652B2 (en) Log data collection management method and apparatus
US8095690B2 (en) Machine-readable medium for storing a stream data processing program and computer system
US6256634B1 (en) Method and system for purging tombstones for deleted data items in a replicated database
CN101222449A (en) Publish/subscribe system
US8682859B2 (en) Transferring records between tables using a change transaction log
US20150205839A1 (en) Multi-Faceted Metadata Storage
US9594794B2 (en) Restoring records using a change transaction log
EP2472415A1 (en) Method, device and system for implementing data synchronization between source database and target database
US8959214B1 (en) Method, system, and storage medium for collecting SNMP bandwidth data
US20060253499A1 (en) System and method for automatically transferring data from one database to another
JP5452030B2 (en) Integrated log generation device, integrated log generation program, and recording medium
US20070150445A1 (en) Dynamic holds of record dispositions during record management
US20050004952A1 (en) Transaction processing method, transaction control apparatus and program thereof
US20070156642A1 (en) Database access method
CN110019469A (en) Distributed data base data processing method, device, storage medium and electronic device
US20090106216A1 (en) Push-model based index updating
CN109756708A (en) The continuous transmission method and device of audio, video data
CN104636211A (en) Information interaction method among software systems, and middleware system
CN115333942B (en) Event retry method and device, storage medium and electronic equipment
US20050149615A1 (en) System and method for processing resource registry updates without regard to chronological order
US20200327122A1 (en) Conflation of topic selectors
CN110674757A (en) Deployment control method, system and computer readable storage medium
CN101364224A (en) Information management system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230320

Address after: 518000 Yingfei Haocheng Science Park, Guansheng 5th Road, Luhu Community, Guanhu Street, Longhua District, Shenzhen, Guangdong 1515

Patentee after: Shenzhen Infineon Information Co.,Ltd.

Address before: 518000 Room 301, Infineon Technology Co., Ltd., No. 12, Guanbao Road, Luhu community, Guanhu street, Longhua District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN INFINOVA INTELLIGENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right