CN107018442A - One kind video recording synchronized playback method and device - Google Patents
One kind video recording synchronized playback method and device Download PDFInfo
- Publication number
- CN107018442A CN107018442A CN201610061280.6A CN201610061280A CN107018442A CN 107018442 A CN107018442 A CN 107018442A CN 201610061280 A CN201610061280 A CN 201610061280A CN 107018442 A CN107018442 A CN 107018442A
- Authority
- CN
- China
- Prior art keywords
- video
- video camera
- data
- caching
- synchronized playback
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/432—Content retrieval operation from a local storage medium, e.g. hard-disk
- H04N21/4325—Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
Abstract
The present invention provides a kind of video recording synchronized playback method and device, and this method includes:Receive client send video recording synchronized playback information, and according to video recording synchronized playback acquisition of information synchronized playback in need each video camera Video data;By the corresponding Video data of each video camera of acquisition, decoded, synthesized successively, coded treatment obtains splicing Video data;Send splicing Video data to correspondence client be used for institute synchronized playback in need each video camera progress video recording synchronized playback.The present invention is applied to various network environments, and drastically increases the synchronism of playing back videos.
Description
Technical field
The present invention relates to field of video monitoring, more particularly to a kind of video recording synchronized playback method and device.
Background technology
Playing back videos business, as the important means of post-mordem forensics, is always the main work(of video monitoring system
Energy.Synchronized playback refers to that the video recording simultaneously to multichannel video camera is played back, and is easy to contrast to check.Generally
In the case of code stream total bandwidth shared by synchronized playback be synchronized playback all video cameras video recording code stream it is total
With such as video recording to tetra- video cameras of A, B, C, D synchronizes playback, it is assumed that four shooting
The video recording code check of machine is all 2M, then the total bitrate bandwidth that the synchronized playbacks of No. four video cameras takes is exactly
8M.For the poor monitors environment of the network condition either application of monitoring mobile phone client, bandwidth
A series of problems, such as deficiency can bring data packetloss, image interim card flower screen, influence synchronized playback business is just
Often use.And synchronized playback all video cameras video recording synchronous effect be limited to system CPU performance,
Network transmission, playback the factor influence such as client process is asynchronous, cause the playing back videos of each video camera
Time irreversibility problem.
The content of the invention
It is big for conventional synchronization playback code check, high is required to network environment, synchronized playback poor synchronization is asked
Topic, the present invention provides a kind of video recording synchronized playback method and device, can effectively solve the network bandwidth not enough
The variety of problems brought, and the playing back videos synchronism of each video camera can be significantly improved.
First aspect according to embodiments of the present invention there is provided one kind record a video synchronized playback method, applied to regarding
Back-end server in frequency monitoring system, this method includes:
The video recording synchronized playback information that client is sent is received, and according to video recording synchronized playback acquisition of information need
Want the Video data of each video camera of synchronized playback;
The video recording form of each video camera is obtained, the video recording form includes:Resolution ratio, frame per second;
The corresponding decoding speed of each video camera is calculated according to the frame per second of each video camera correspondence video recording, and according to
Decoding speed extracts the corresponding Video data of each video camera from the Video data of acquisition and decoded, and obtains
Temporal information and the view data of frame number are carried, described image data are put into the first caching, the time
Information unit is the second;
The frame per second maximum in each video camera correspondence video recording frame per second is selected to calculate aggregate velocity, according to synthesis
Speed extracts the corresponding view data of each video camera from the first caching, and each video camera of extraction is corresponding
View data be put into the second caching, if in the second caching during the corresponding view data of existing each video camera,
Then first delete the corresponding view data of already present each video camera in the second caching;
Extracted from the second caching after the corresponding view data of each video camera, judge that each video camera correspondence is recorded a video
Resolution ratio it is whether identical, if identical, directly each frame image data of extraction is closed
Stitching image is obtained into processing;If incomplete same, first by each frame image data of acquisition according to default
Rule zooms in and out processing so that each frame image data size is identical, then by each two field picture number after scaling
Stitching image is obtained according to synthesis processing is carried out;
Stitching image progress coded treatment is obtained splicing Video data;
Send splicing Video data to correspondence client be used for synchronized playback in need each video camera
Carry out video recording synchronized playback.
Second aspect according to embodiments of the present invention there is provided one kind record a video synchronous playback means, applied to regarding
Back-end server in frequency monitoring system, the device includes:
Message processing module, the video recording synchronized playback information for receiving client transmission;
Video recording acquisition module, for needing each shooting of synchronized playback according to video recording synchronized playback acquisition of information
The Video data of machine;
Form acquisition module, the video recording form for obtaining each video camera, video recording form includes:Differentiate
Rate, frame per second;
Video recording decoder module, each video camera correspondence is calculated for the frame per second according to the correspondence video recording of each video camera
Decoding speed, and the corresponding video recording of each video camera is extracted according to decoding speed from the Video data of acquisition
Data are decoded, and obtain carrying temporal information and the view data of frame number, described image data are put
Enter the first caching, the temporal information unit is the second;
Image zooming-out module, for selecting the frame per second maximum in each video camera correspondence video recording frame per second to calculate
Aggregate velocity, the corresponding view data of each video camera is extracted according to aggregate velocity from the first caching, and will
The corresponding view data of each video camera extracted is put into the second caching, if existing each shooting in the second caching
During the corresponding view data of machine, then the corresponding picture number of already present each video camera in the second caching is first deleted
According to;
Video recording synthesis module, for being extracted from the second caching after the corresponding view data of each video camera, sentences
Whether the resolution ratio of disconnected each video camera correspondence video recording is identical, if identical, directly by extraction
Each frame image data carries out synthesis processing and obtains stitching image;If incomplete same, first by each of acquisition
Frame image data zooms in and out processing according to preset rules so that each frame image data size is identical, then will
Each frame image data after scaling carries out synthesis processing and obtains stitching image;
Video recording coding module, for obtaining splicing Video data stitching image progress coded treatment;
Record a video sending module, for send splicing Video data be used for correspondence client it is in need to institute same
Each video camera of step playback carries out video recording synchronized playback.
The present invention can be according to real network ambient conditions, to the code of the synchronized playback video recording of multichannel video camera
Rate value carries out any setting, effectively solves data packetloss, image interim card that network bandwidth deficiency is brought
A series of problems, such as flower screen, go for various network environments.The present invention is by the way that synchronizing process is put in
Back-end server processing obtains splice Video data, then splice Video data be sent to correspondence client be used for
Video recording synchronized playback, video recording is asynchronous caused by reducing the factors such as network transmission, client decoding performance
Problem, drastically increases playing back videos synchronism, reaches the synchronized playback in " real " meaning.
Brief description of the drawings
Fig. 1 is present invention method flow chart;
Fig. 2 is the stitching image schematic diagram of the embodiment of the present invention;
Fig. 3 is device building-block of logic of the embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make
Above-mentioned purpose, the feature and advantage of the embodiment of the present invention can be more obvious understandable, right below in conjunction with the accompanying drawings
Technical scheme is described in further detail in the embodiment of the present invention.
Fig. 1 is referred to, Fig. 1 is a kind of flow for synchronized playback method of recording a video provided in an embodiment of the present invention
Schematic diagram, this method can apply to video monitoring system, and the rear end for being such as applied to video monitoring system takes
It is engaged in device, the video monitoring system also includes client and video camera.Above-mentioned back-end server can be
NVR network video recorders, or support the separate server of codec functions;Above-mentioned client
Can be NVR associated clients end, or support the separate customer end of synchronized playback function.For just
In description, the executive agent of following method described above is to be described exemplified by back-end server.Such as Fig. 1 institutes
Show, this method may comprise steps of:
Step 101, the video recording synchronized playback information for receiving client transmission, and according to video recording synchronized playback
Acquisition of information needs the Video data of each video camera of synchronized playback.
When the synchronized playback information of recording a video can include the video camera ID of institute's synchronized playback in need, video recording and originate
Between and video recording the end time.Back-end server is obtained according to video recording initial time and video recording end time and respectively taken the photograph
The Video data of camera.
In the embodiment of the present invention, user can select each video camera for synchronized playback on the client
And setting needs the video recording beginning and ending time of synchronized playback.Back-end server is according to the video recording initial time of setting
With the video recording end time retrieve each video camera be stored in storage device (such as carry hard disk back-end server,
Independent storage server etc.) on Video data, and obtain in the corresponding retrieval result of each video camera pre-
If the Video data of quantity is put into caching, such as obtain every time preceding 5 in the corresponding retrieval result of each video camera
The record of second (what it is closest to video recording initial time is " preceding ", and what it is closest to the end time of recording a video is " rear ")
As data are respectively put into corresponding caching, specifically cache way and caching can be set according to practical application
The Video data of first 1 second in the corresponding retrieval result of each video camera, such as can also be put into same by size
In individual caching, if the spatial cache of back-end server is sufficiently large, each video camera can also be obtained corresponding
Whole video recordings in retrieval result are put into caching, and the present invention is to this without limiting.
Step 102, the video recording form for obtaining each video camera, the video recording form include:Resolution ratio, frame per second.
Back-end server is managed collectively each video camera, it will usually the video recording form of pre-configured each video camera,
Including resolution ratio, frame per second, code check, the storage parameter such as duration, therefore can be from the configuration text of back-end server
The video recording form of each video camera is obtained in part.Back-end server can also each video camera correspondence video recording of pre decoding
One second in data or several seconds video recording, to obtain the corresponding video recording form of each video camera, the present invention to this not
It is defined.
Step 103, the frame per second recorded a video according to each video camera correspondence are fast to calculate the corresponding decoding of each video camera
Spend, and the corresponding Video data of each video camera is extracted from the Video data of acquisition according to decoding speed and carry out
Decoding, obtains carrying temporal information and the view data of frame number, described image data are put into first delays
Deposit, the temporal information unit is the second.
In the embodiment of the present invention, back-end server is respectively taken the photograph according to the frame per second of each video camera correspondence video recording to calculate
The frame per second of the decoding speed of camera, wherein decoding speed=1/.Such as video camera A corresponds to the frame per second recorded a video
25fps (frames per second, transmission frame number per second), then corresponding decoding speed is 40ms/f, i.e.,
The corresponding Video datas of 1 frame video camera A are extracted at interval of 40ms from the Video data of acquisition to be solved
Code.Because Video data carries temporal information and frame number per frame in itself, then obtained view data is decoded
Corresponding temporal information and frame number can also be carried, and the chronomere is the second.Such as video camera A record
Image-to-frame ratio is 25fps, with 2016-1-1 8:00:Exemplified by 00 Video data decoding, then video camera A is decoded
View data afterwards is carrying temporal information 2016-1-1 8:00:00 and frame number 1-25 view data.Will
Decoded view data is put into the first caching, and first caching is simultaneously not specific to some caching, and refers to deposit
The caching of decoded image data is put, first caching can be one and cache or multiple cachings,
I.e. each decoded view data of video camera can be put into same caching, can also be respectively put into corresponding
Caching, the present invention is without limiting.
Step 104, each video camera of selection correspond to the frame per second maximum in video recording frame per second to calculate aggregate velocity,
The corresponding view data of each video camera, and respectively taking the photograph extraction are extracted from the first caching according to aggregate velocity
The corresponding view data of camera is put into the second caching, if the corresponding figure of existing each video camera in the second caching
During as data, then the corresponding view data of already present each video camera in the second caching is first deleted.
The frame per second of each video camera correspondence video recording is ranked up by size, selects frame per second maximum to calculate conjunction
Into speed, the wherein frame per second maximum of aggregate velocity=1/.Because the video recording frame per second of each video camera is less than or equal to
Frame per second maximum, therefore the corresponding decoding speed of each video camera is slower than aggregate velocity or equivalent.Therefore when synthesis speed
When degree is faster than video camera corresponding decoding speed, not necessarily the shooting can be got from the first caching every time
The corresponding view data of machine, that is, there is a situation where to take view data corresponding less than the video camera.Therefore from
The view data frame number extracted in one caching is likely less than the number for the video camera for needing synchronized playback.It will carry
The corresponding view data of each video camera taken is put into before the second caching, first judges whether deposited in the second caching
In the corresponding view data of each video camera, if existing, first delete already present each in the second caching
The corresponding view data of video camera, then the corresponding view data of each video camera of extraction is put into the second caching;
If being not present, the corresponding view data of each video camera of extraction is directly put into the second caching.It will carry
Each video camera corresponding view data taken has the process of individual Refresh Data when being put into the second caching, to ensure
The view data for being subsequently used for synthesis processing is newest.
In the embodiment of the present invention, second caches and is not specific to some caching, and refers to storage from the first caching
The caching of each video camera correspondence image data of middle acquisition, second caching can be a caching, also may be used
To be multiple cachings, i.e., the corresponding view data of each video camera obtained from the first caching can be put into together
One caching, can also be respectively put into corresponding caching, the present invention is without limiting.
Step 105, from second caching in extract after the corresponding view data of each video camera, judge each shooting
Whether the resolution ratio of machine correspondence video recording is identical, if identical, directly by each two field picture of extraction
Data carry out synthesis processing and obtain stitching image;If incomplete same, first by each two field picture number of acquisition
Processing is zoomed in and out according to according to preset rules so that each frame image data size is identical, then by after scaling
Each frame image data carries out synthesis processing and obtains stitching image.
The corresponding video recording resolution ratio of each video camera for synchronized playback is not necessarily identical, i.e., each shooting
The corresponding each two field picture size of machine is not necessarily identical.Therefore when the corresponding record of each video camera of synchronized playback
, it is necessary to first carry out the corresponding each two field picture of each video camera by preset rules when picture resolution ratio is incomplete same
Scaling processing, to cause the size of the corresponding each two field picture of each video camera after scaling identical.Preset rules
Refer to the corresponding each two field picture of each video camera being scaled to identical size, such as can uniformly be scaled to D1
(720*576) size, can also uniformly be scaled to other sizes, the present invention is herein without limiting.
To make above-mentioned decoding, building-up process of greater clarity, illustrate in one specific example of this measure.
Embodiment one, such as selection video camera A, B, C, D synchronize playback, and the video recording of setting rises
Only the time is 2016-1-1 8:00-10:00, with 2016-1-1 8:00:00 Video data is decoded, synthesized
Example.Assuming that it is 25fps that video camera A video recording resolution ratio, which is 720P (1280*720 pixels), frame per second,
Video camera B video recording resolution ratio is that 720P (1280*720), frame per second are 20fps, video camera C record
As resolution ratio is that 1080P (1920*1080), frame per second are 25fps, video camera D video recording resolution ratio is
CIF (352*288), frame per second are 5fps.Each video camera is obtained according to the corresponding video recording frame per second of each video camera
Corresponding decoding speed, video camera A, B, C, D decoding speed is respectively 40ms/f, 50ms/f,
40ms/f, 200ms/f.Frame per second maximum is 25fps in the corresponding frame per second of recording a video of each video camera, then synthesizes
Speed is 40ms/f.
Back-end server extracts the corresponding Video data of each video camera by the corresponding decoding speed of each video camera,
Each video camera is first obtained in 2016-1-1 8 when initial:00:The Video data of 00 frame number 1 is decoded
The corresponding 2016-1-1 8 of each video camera:00:The view data of 00 frame number 1, and be put into the first caching.
Back-end server extracts the corresponding view data of each video camera by aggregate velocity from the first caching, extracts
The corresponding 2016-1-1 8 of each video camera:00:The view data of 00 frame number 1.Due to the video recording of each video camera
Resolution ratio is incomplete same, it is necessary to 2016-1-1 8 corresponding to each video camera:00:The image of 00 frame number 1
Data first zoom in and out processing, it is assumed that be uniformly scaled D1, the i.e. corresponding view data of video camera A, B
D1 is contracted to from 720P, the corresponding view data of video camera C is contracted to D1 from 1080P, imaged
The corresponding view data of machine D is amplified to D1 from CIF, the corresponding figure of each video camera after scaling is handled
As data size is D1.Each frame image data after scaling is subjected to synthesis processing and obtains 2016-1-1
8:00:The stitching image of 00 frame number 1.
During by 40ms, back-end server extracts video camera A, C in 2016-1-1 8:00:00 frame number 2
Video data decode and obtain corresponding 2016-1-1 8:00:The view data of 00 frame number 2, and put
Enter in the first caching.Back-end server extracts the corresponding figure of each video camera by aggregate velocity from the first caching
As data, video camera A, C are now only extracted in 2016-1-1 8:00:The view data of 00 frame number 2.
Video camera A, C in the second caching are first deleted in 2016-1-1 8:00:The view data of 00 frame number 1,
Video camera A, C of extraction are placed into 2016-1-1 8:00:The view data of 00 frame number 2.Again from
The corresponding view data of each video camera is extracted in two cachings and zooms in and out processing, by the video camera A after scaling
In 2016-1-1 8:00:The view data of 00 frame number 2, video camera B are in 2016-1-1 8:00:00 frame number 1
View data, video camera C is in 2016-1-1 8:00:The view data of 00 frame number 2, video camera D exist
2016-1-1 8:00:The view data of 00 frame number 1 carries out synthesis processing and obtains 2016-1-1 8:00:00 frame number
2 stitching image.
When passing through 10ms again, back-end server extracts video camera B in 2016-1-1 8:00:00 frame number 2
Video data decode and obtain corresponding 2016-1-1 8:00:The view data of 00 frame number 2, and put
Enter in the first caching.When passing through 30ms again, back-end server extracts video camera A, C in 2016-1-1
8:00:The Video data of 00 frame number 3 decode obtaining corresponding 2016-1-1 8:00:The figure of 00 frame number 3
As data, and it is put into the first caching.The corresponding view data of each video camera is extracted from the first caching to replace
Already present view data in the second caching is changed, and place is zoomed in and out to the corresponding view data of each video camera
Reason, then by the video camera A after scaling in 2016-1-1 8:00:The view data of 00 frame number 3, shooting
Machine B is in 2016-1-1 8:00:The view data of 00 frame number 2, video camera C are in 2016-1-1 8:00:00 frame
Numbers 3 view data, video camera D are in 2016-1-1 8:00:The view data of 00 frame number 1 is synthesized
Processing obtains 2016-1-1 8:00:The stitching image of 00 frame number 3.
By that analogy, 2016-1-1 8 is obtained:00:00 frame number 1-25 stitching image.
As an alternative embodiment, back-end server to Video data before synthesizing, may be used also
To select synthesis model, by the corresponding view data of each video camera extracted from the second caching or by contracting
The corresponding view data of each video camera of processing is put, is carried out according to the synthesis model of selection according to preset order
Synthesis is handled, and obtains stitching image sequence.Synthesis model can be by back-end server according to synchronized playback
Video camera number is selected, and can also be set by user is self-defined on the client.Above-mentioned preset order can be with
For:Arranged according to video camera ID, by left-to-right, first up and then down order, or according to
Video camera ID is arranged, first up and then down, by left-to-right order, and the present invention is herein without limiting.
Preferably, back-end server selects synthesis model according to the video camera number of synchronized playback, works as shooting
What machine number was less than or equal to the pattern N+1 maximums video camera number supported and supported more than pattern N maximums
During video camera number, the video camera number that synthesis model selection mode N+1, wherein pattern N maximum are supported
For N square, pattern N is N row * N row patterns, and N is positive integer.I.e. synthesis model includes pattern
One 1 video camera of maximum support, which is the row patterns of 1 row * 1, pattern two is maximum supports 4 video cameras, is
The row patterns of 2 row * 2, pattern three are maximum to support 9 video cameras, is row patterns of 3 row * 3, etc..
Illustrated as an example with embodiment one, selection video camera A, B, C, D synchronize playback,
It is 4 to select for the video camera number of synchronized playback, therefore synthesis model selection mode two, i.e. 2 row * 2
Row pattern, such as arranged according to video camera ID, is closed by left-to-right, first up and then down order
Into obtaining stitching image as shown in Figure 2.
Alternatively, back-end server selects synthesis model according to the video camera number of synchronized playback, synthesizes mould
Formula can also be i row * j row patterns, and wherein j can be predetermined fixed value, and i is according to the shooting of synchronized playback
Machine number is adjusted, it is assumed that the video camera number of synchronized playback is m, when m is less than or equal to j, synthesizes mould
Formula arranges for 1 row * m;When m be more than j and be j integral multiple when, synthesis model be i row * j row, its
Middle i=INT (m/j)+1, INT () are bracket function;When m is more than j and the integral multiple for j, mould is synthesized
Formula arranges for i row * j, wherein i=INT (m/j).Such as j is 5, and the video camera number m of synchronized playback is 9,
Then synthesis model is 2*5.
Step 106, by stitching image progress coded treatment obtain splice Video data.
Back-end server carries out coded treatment to stitching image sequence according to coding rule and obtains splicing video recording number
According to.Coding rule can be that back-end server is pre-set according to client-class, such as pc client
Or PAD clients correspondence coding rule one, cell-phone customer terminal correspondence coding rule two or client
End sets synchronized playback coding parameter according to actual application environment.
Preferably, above-mentioned video recording synchronized playback information can also include synchronized playback coding parameter.User can
To set synchronized playback coding parameter according to actual application environment on the client, include but is not limited to:Point
Resolution, code check, frame per second, GOP (Group Of Pictures, picture group) size, coded format.
By taking embodiment one as an example, the corresponding view data of video camera A, B, C, D by scaling is entered
The stitching image resolution ratio that row synthesis processing is obtained should be 1440*1152.Assuming that the synchronized playback set
Coding parameter is:Resolution ratio D1, code check 2Mbit/s, frame per second 25FPS, GOP size 25, coding lattice
H.264 stitching image sequence, is then encoded H.264 form, D1 resolution ratio, 2Mbit/s by formula
Code check, frame per second 25FPS, GOP25 splicing Video data.
Step 107, send splicing Video data to correspondence client be used for synchronized playback in need
Each video camera carries out video recording synchronized playback.
The process back-end server received is synchronously dropped bandwidth processing by client in advance, i.e., solved successively
The splicing Video data that code, synthesis, coded treatment are obtained, for playing, what user can be on the client
The video recording synchronized playback of each video camera is checked on one broadcast window.
Video recording synchronized playback method flow diagram as shown in Figure 1 can be seen that the present invention is by the way that multichannel is imaged
The synchronized playback video recording of machine is decoded, synthesized, coded treatment, and unified is one complete splicing video recording,
Synchronizing process is completed by back-end server, the synchronism of playing back videos, and this hair is greatly improved
It is bright any setting to be carried out, effectively to the code check value that splicing is recorded a video according to real network ambient conditions
A series of problems, such as solving data packetloss, the image interim card flower screen that network bandwidth deficiency is brought, Ke Yishi
For various network environments.
In practical application, the storage plan of each video camera is not necessarily identical, that is, is stored in storage device
On the time range that is covered of Video data it is not necessarily identical, that is, select to take the photograph for each of synchronized playback
There may be that video recording beginning and ending time of one or more video cameras not comprising setting section covered in camera is complete
Portion's Video data.
As an alternative embodiment, the video recording synchronized playback method also includes:
Step 104 ', back-end server from first caching in extract after the corresponding view data of each video camera,
First judge whether the corresponding temporal information of each frame image data extracted is identical, if incomplete same,
Then the corresponding temporal information of each frame image data is ranked up by size, only extracting time information is minimum
View data is put into the second caching, and other view data are put back into the first caching;, will if identical
Each frame image data extracted is put into the second caching.
The corresponding view data of each video camera carries temporal information and frame number in first caching, and the wherein time believes
Interest statement position is the second.The video recording that the video recording frame per second of usual video camera is at least 1fps, i.e. video camera is per second at least
There is 1 frame, therefore the intensive qualifications of the invention by temporal information are in second level.It is each when what is extracted from the first caching
When temporal information corresponding to the corresponding view data of video camera is differed, illustrate some or certain multiple shootings
Machine does not have corresponding video recording in certain time point.To keep the integrality of splicing video recording, therefore synchronously to return
On the basis of video recording covers most full video camera in the video recording beginning and ending time section for putting setting, synthesis splicing is carried out.
When the temporal information corresponding to the corresponding view data of each video camera extracted from the first caching is differed,
By the corresponding temporal information of each frame image data, (what it is closest to video recording initial time is " small ", most by size
Close to video recording the end time be " big ") be ranked up, only extracting time information minimum view data
The second caching is put into, other view data are put back into the first caching.Follow-up processing flow is with step 104-107
Shown method.
In the embodiment of the present invention, when certain video camera corresponding view data is extracted in rear end from the first caching,
The corresponding view data of the video camera is deleted from the first caching.Storage has certain shooting in being cached when first
When the corresponding view data of machine is not extracted by, Video data no longer follow-up to the video camera is carried out at decoding
Reason, the corresponding view data of the video camera is extracted in being cached until first, that is, is known in the first caching not
During view data corresponding in the presence of the video camera, just the Video data follow-up to video camera carries out decoding process.
To make the process shown in above-mentioned steps 104 ' of greater clarity, for one specific example of this measure
It is bright.
Embodiment two, such as selection video camera A, B, C, D synchronize playback, and the video recording of setting rises
Only the time is 2016-1-1 8:00-10:00, it is assumed that the video recording resolution ratio and frame per second all same of each video camera,
Frame per second is 25fps, it is assumed that currently completed 2016-1-1 8:30:00 stitching image, i.e., the second caching
In have each video camera 2016-1-1 8:30:The corresponding view data of 00 frame number 25.Assuming that rear end next time
The corresponding view data of each video camera that server is extracted from the first caching is respectively that video camera A, C exist
2016-1-1 8:30:The view data of 01 frame number 1, video camera B are in 2016-1-1 9:00:00 frame number 1
View data, video camera D are in 2016-1-1 8:35:The view data of 00 frame number 1.I.e. this time from first
The temporal information corresponding to the corresponding view data of each video camera extracted in caching is differed, therefore is only extracted
Temporal information minimum video camera A, C are in 2016-1-1 8:30:The view data of 01 frame number 1 is put into second
In caching, by video camera B in 2016-1-1 9:00:The view data of 00 frame number 1, video camera D exist
2016-1-1 8:35:The view data of 00 frame number 1 is put back in the first caching.Therefore as shown in step 104-105
Method, this time by video camera A, C in 2016-1-1 8:30:The view data of 01 frame number 1, video camera B,
D is in 2016-1-1 8:30:The view data of 00 frame number 25 carries out synthesis processing, obtains 2016-1-1 8:30:01
The stitching image of frame number 1.By that analogy, therefore in 2016-1-1 8:30:01 to 2016-1-1 8:34:When 59
Between image in the corresponding stitching image of section on video camera D position remain it in 2016-1-1
8:30:The view data of 00 frame number 25, in 2016-1-1 8:30:01 to 2016-1-1 8:59:59 periods
Image in corresponding stitching image on video camera B position remains it in 2016-1-1 8:30:00 frame
Numbers 25 view data.
As an alternative embodiment, the video recording synchronized playback method also includes:
Step 105 ', back-end server will from the second caching the corresponding view data of each video camera extracted
Synthesis before processing is carried out, also judging whether the view data frame number extracted is less than needs respectively taking the photograph for synchronized playback
The number of camera, if being less than, further determines that the one or more video cameras for not extracting view data,
The image of this in the stitching image of synthesis or the plurality of video camera correspondence position part are filled out with solid-color image
Fill;If being not less than, each frame image data of extraction is subjected to synthesis processing and obtains stitching image.
When one or more video cameras do not include synchronized playback in each video camera of selection for synchronized playback
During the Video data that the video recording start time point of setting is covered, i.e. this or the plurality of video camera correspondence examines
Video recording initial time and the video recording initial time of setting in hitch fruit is inconsistent, and more than the video recording of setting
Initial time (what it is closest to video recording initial time is " small ", and what it is closest to the video recording end time is " big ").
When video recording in the video recording initial time retrieval result corresponding with this or the plurality of video camera of setting is originated
Between between the image of this or the plurality of video camera correspondence position part can be with the stitching image sequence that synthesizes
Filled with solid-color image, such as black color image.
To make the process shown in above-mentioned steps 105 ' of greater clarity, now lift a specific example and said
It is bright.
Embodiment three, such as selection video camera A, B, C, D synchronize playback, and the video recording of setting rises
Only the time is 2016-1-1 8:00:00-10:00:00, retrieval finds that video camera A, B, C include 2016-1-1
8:00:00-10:00:The Video data of 00 period, but video camera D only includes 2016-1-1
8:30:00-10:00:The Video data of 00 period.Assuming that the video recording frame per second of each video camera is 25fps.
Video camera A, B, C are first obtained in 2016-1-1 8 when initial:00:The Video data of 00 frame number 1, shooting
Machine D is in 2016-1-1 8:30:The Video data of 00 frame number 1, which carries out decoding respectively, obtains each video camera correspondence
View data, and be put into the first caching.Based on step 104 ', due to what is extracted from the first caching
The temporal information of video camera D correspondence image data is more than the temporal information of other video camera correspondence image data,
Therefore video camera A, B, C are only extracted in 2016-1-1 8:00:The view data of 00 frame number 1 is put into second
Caching.Due to being first synthesis, therefore the corresponding image of video camera A, B, C is only existed in the second caching
Data, in the absence of the corresponding view data of video camera, i.e., the view data frame number extracted from the second caching
(being 3) is less than the number (being 4) for each video camera for needing synchronized playback, therefore further determines that and do not extract
Video camera to view data is video camera D, by video camera D correspondence positions portion in the stitching image of synthesis
The image divided is filled with solid-color image.By that analogy, in the video recording time started 2016-1-1 8 of setting:00
Video recording initial time 2016-1-1 8 in retrieval result corresponding with video camera D:The spliced map synthesized between 30
As in sequence, the image of video camera D correspondence positions part is filled with solid-color image, such as black chromatic graph
Picture.
Certainly it is first to be not based on step 104 when extracting ', such as it is first when extracting by video camera A, B,
C is in 2016-1-1 8:00:The view data of 00 frame number 1, video camera D are in 2016-1-1 8:30:00 frame number
1 view data extracts and is put into the second caching;It is based on step 104 again in follow-up extraction ',
Video camera A, B, C are only extracted in 2016-1-1 8:00:00 frame number 2 is to 2016-1-1 8:29:59 frames
Numbers 25 view data.In the video recording time started 2016-1-1 8 of setting:00:00 is corresponding with video camera D
Video recording initial time 2016-1-1 8 in retrieval result:30:In the stitching image sequence synthesized between 00,
The image of video camera D correspondence positions part can also be the video recording starting in video camera D correspondence retrieval results
Time 2016-1-1 8:30:The corresponding view data of 00 frame number 1.The present invention is without limiting.
As a kind of optional embodiment, during the client terminal playing splicing Video data, also
Can carry out including but not limited to dragging playback progress bar, pause playback, continue play back, stop playback,
Change the video camera played back, stop the playback controls such as playback business of part video camera in synchronized playback
Action.
Alternatively, when client is during video recording synchronized playback, back-end server receives client and sent
Synchronized playback control information, the synchronized playback control information includes but is not limited to:Jump information, pause
Information, continuation broadcast information, ending message.
When synchronized playback control information is jump information, redirected according to the video recording that the jump information is carried
Time beginning and video recording end time obtain the Video data of each video camera.Such as selection video camera A, B, C,
D synchronizes playback, and the video recording beginning and ending time set is 2016-1-1 8:00-10:00, it is assumed that currently just
It is 2016-1-1 8 in the video time of playback:45, now user drag on the client playback progress bar arrive
2016-1-1 9:It is respectively 2016-1-1 9 that 10, i.e. video recording, which redirect initial time and video recording end time,:10、
2016-1-1 10:00.Back-end server empties all video recordings obtained in caching according to the jump information
Data, retrieve and obtain each video camera in 2016-1-1 9:10-10:Record on a storage device is stored between 00
As data.Then the corresponding Video data of each video camera of acquisition decoded successively, synthesized, encoded
Processing obtains splicing Video data, and sends splicing Video data to correspondence client for synchronous return of recording a video
Put.
When synchronized playback control information is pause information, pause obtains the Video data of each video camera, when
When receiving continuation broadcast information, continue to obtain the Video data of each video camera.Such as selection video camera A,
B, C, D synchronize playback, and the video recording beginning and ending time set is 2016-1-1 8:00-10:00, it is assumed that
The current video time played back is 2016-1-1 8:45, now user click on suspend back on the client
Button is put, back-end server obtains the Video data of each video camera according to pause information pause, and no longer sends out
Splicing Video data is sent to show 2016-1-1 8 to stop in client, i.e. client:45 synchronized playback is drawn
Face;Until user clicks on after continuation playback button on the client, back-end server just recovers to continue to obtain
The Video data of each video camera, and recover to send Video data to client.
When synchronized playback control information is ending message, stop obtaining the Video data of each video camera, and
And empty the Video data of each video camera of caching.Such as selection video camera A, B, C, D is synchronized
Playback, the video recording beginning and ending time set is 2016-1-1 8:00-10:00, it is assumed that the current record played back
As the time is 2016-1-1 8:45, now user clicks on the client stops playback button, back-end services
Device stops obtaining the Video data of each video camera according to ending message, and empty each video camera of caching
Video data, client terminates the synchronized playback business.
Alternatively, when client is during video recording synchronized playback, the shooting played back can also be changed
Machine.
When client is during video recording synchronized playback, wherein one in all synchronized playback video cameras is changed
During individual or multiple video cameras, back-end server receives the video camera replacing information that client is sent, the shooting
Machine, which changes information, to be included replacing video camera ID, is replaced video camera ID, currently video recording reproduction time, record
As the synchronized playback order of end time and renewal;Information is changed according to video camera, obtains and replaces video camera
Video data and delete the Video data for being replaced video camera that has cached, then by each shooting of acquisition
The corresponding Video data of machine is decoded, synthesized successively, coded treatment obtains splicing Video data, concurrently
Splicing Video data is sent to be used for synchronized playback of recording a video to correspondence client.
Such as selection video camera A, B, C, D synchronize playback, the video recording beginning and ending time set as
2016-1-1 8:00-10:00.Assuming that the current video time played back is 2016-1-1 8:45, now use
Video camera D is replaced by video camera E by family on the client, and back-end server is changed according to the video camera to be believed
Breath, retrieves and obtains video camera E in 2016-1-1 8:45-10:Video data between 00, deletion has been obtained
The video camera D deposited in caching Video data is taken, then by video camera A, B, C, E of acquisition
Video data is decoded, synthesized successively, coded treatment obtains splicing Video data, and sends splicing record
As data give correspondence client to be used for synchronized playback of recording a video.
Alternatively, when client is during video recording synchronized playback, part in synchronized playback can also be stopped
The playback business of video camera.
When client is during video recording synchronized playback, stop wherein one in all synchronized playback video cameras
During the playback business of individual or multiple video cameras, back-end server receives the part Stop message that client is sent,
The camera part Stop message includes stopping playback business video camera ID;According to part Stop message, stop
Only obtain stop playback business video camera Video data and delete cached stop playback business video camera
Video data, the Video data of remaining each video camera is decoded successively, synthesized, coded treatment
Obtain splicing Video data, and send splicing Video data to correspondence client for synchronized playback of recording a video.
Such as selection video camera A, B, C, D synchronizes playback.Assuming that in replayed section, Yong Hu
Stop video camera B playback business in client, back-end server stops according to the part Stop message
Obtain video camera B Video data and delete the Video data for having obtained the video camera B deposited in caching,
Remaining video camera A, C, D Video data are decoded successively again, synthesized, coded treatment is obtained
To splicing Video data, and splicing Video data is sent to correspondence client for synchronized playback of recording a video.
During the client terminal playing splicing Video data, it can carry out including but not limited to dragging back
Put the playback controls actions such as progress bar, pause are played back, continuation is played back, stopped playback;It can change
The video camera of playback;The playback business of part video camera in synchronized playback can be stopped.Ensureing to record a video back
While putting synchronism, the various playback operation demands of user are met, user experience is improved.
Embodiment can be seen that from the above, and the present invention can be according to real network ambient conditions, to multichannel
The code check value of the synchronized playback video recording of video camera carries out any setting, effectively solves the network bandwidth not enough
A series of problems, such as data packetloss, the image interim card flower brought shields, go for various network environments.
The present invention obtains splicing Video data by the way that synchronizing process is put in into back-end server processing, then splices video recording
Data, which are sent to correspondence client, is used for synchronized playback of recording a video, and reduces network transmission, client decoding property
The asynchronous problem of video recording, drastically increases playing back videos synchronism caused by the factors such as energy, reaches " true
Just " the synchronized playback in meaning.
Fig. 3 is referred to, is a kind of structural representation of synchronous playback means of recording a video provided in an embodiment of the present invention
Figure, wherein, the video monitoring system that the video recording synchronous playback means can apply in above method embodiment
System, for example, applied in the back-end server of video monitoring system, the video monitoring system also includes visitor
Family end and video camera, as shown in figure 3, the video recording synchronous playback means can include:
Message processing module 11, the video recording synchronized playback information for receiving client transmission;
Video recording acquisition module 12, for needing respectively taking the photograph for synchronized playback according to video recording synchronized playback acquisition of information
The Video data of camera;
Form acquisition module 13, the video recording form for obtaining each video camera, video recording form includes:Point
Resolution, frame per second;
Video recording decoder module 14, each video camera pair is calculated for the frame per second according to the correspondence video recording of each video camera
The decoding speed answered, and the corresponding record of each video camera is extracted according to decoding speed from the Video data of acquisition
As data are decoded, obtain carrying temporal information and the view data of frame number, by described image data
The first caching is put into, the temporal information unit is the second;
Image zooming-out module 15, by selecting based on the frame per second maximum in each video camera correspondence video recording frame per second comes
Aggregate velocity is calculated, the corresponding view data of each video camera is extracted from the first caching according to aggregate velocity, and
The corresponding view data of each video camera of extraction is put into the second caching, if existing in the second caching respectively take the photograph
During the corresponding view data of camera, then the corresponding image of already present each video camera in the second caching is first deleted
Data;
Video recording synthesis module 16, for being extracted from the second caching after the corresponding view data of each video camera,
Judge whether the resolution ratio of each video camera correspondence video recording is identical, if identical, will directly extract
Each frame image data carry out synthesis processing obtain stitching image;If incomplete same, first by acquisition
Each frame image data zooms in and out processing according to preset rules so that each frame image data size is identical, then
Each frame image data after scaling is subjected to synthesis processing and obtains stitching image;
Video recording coding module 17, for obtaining splicing Video data stitching image progress coded treatment;
Record a video sending module 18, for send splicing Video data to correspondence client be used for institute it is in need
Each video camera of synchronized playback carries out video recording synchronized playback.
Alternatively, the video recording synchronized playback letter that message processing module 11 is received in the video recording synchronous playback means
Breath includes synchronized playback coding parameter;Above-mentioned video recording coding module 17, is additionally operable to stitching image according to same
Step playback of encoded parameter carries out coded treatment and obtains splicing Video data.
Alternatively, the video recording synchronous playback means can also include:(Fig. 3 is not marked mode selection module 19
Know), for selecting synthesis model according to the video camera number of synchronized playback, be less than when video camera number or
When the video camera number supported equal to pattern N+1 maximums and the video camera number more than pattern N maximum supports,
Square that the video camera number that synthesis model selection mode N+1, wherein pattern N maximum are supported is N, mould
Formula N is N row * N row patterns, and N is positive integer.Above-mentioned video recording synthesis module 16 is additionally operable to each shooting
The corresponding each two field picture of machine carries out synthesis processing according to synthesis model.
Alternatively, above-mentioned image zooming-out module 15 also includes the first judgment sub-unit 151, first extraction
Unit 152 (Fig. 3 is not identified), wherein:
First judgment sub-unit 151, for extracting the corresponding view data of each video camera from the first caching
Afterwards, judge whether the corresponding temporal information of each frame image data extracted is identical;
First extracts subelement 152, and each frame image data extracted for working as from the first caching is corresponding
When temporal information is incomplete same, the corresponding temporal information of each frame image data is ranked up by size,
The only minimum view data of extracting time information is put into the second caching, and other view data are put back into first and delayed
Deposit;When the corresponding temporal information of each frame image data extracted from the first caching is identical, it will carry
Each frame image data taken is put into the second caching.
Alternatively, above-mentioned video recording synthesis module 16 also includes the second judgment sub-unit 161, second extraction
Unit 162 (Fig. 3 is not identified), wherein:
Second judgment sub-unit 161, for the corresponding image of each video camera that will be extracted from the second caching
Data carry out synthesis before processing, and judging whether the view data frame number extracted is less than needs each of synchronized playback
The number of video camera;
Second extracts subelement 162, for being needed when the view data frame number extracted from the second caching is less than
When wanting each video camera number of synchronized playback, further determine that and do not extract the one or more of view data
Video camera, by the image of this in the stitching image of synthesis or the plurality of video camera correspondence position part with pure
Color image is filled;The each of synchronized playback is needed when the view data frame number extracted from the second caching is not less than
During video camera number, each frame image data of extraction is subjected to synthesis processing and obtains stitching image.
The function of modules and the implementation process of effect specifically refer to correspondence in the above method in said apparatus
The implementation process of step, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is joined
See the part explanation of embodiment of the method.Device embodiment described above be only it is schematical,
The wherein described module illustrated as separating component can be or may not be it is physically separate, make
It can be for the part that module is shown or may not be physical location, you can with positioned at a place,
Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or
Person's whole modules realize the purpose of the present invention program.Those of ordinary skill in the art are not paying creativeness
In the case of work, you can to understand and implement.
As seen from the above-described embodiment, the present invention can be according to real network ambient conditions, to multichannel video camera
Synchronized playback video recording code check value carry out it is any set, effectively solve what network bandwidth deficiency was brought
A series of problems, such as data packetloss, image interim card flower screen, go for various network environments.The present invention
Obtain splicing Video data by the way that synchronizing process is put in into back-end server processing, then splice Video data hair
Giving correspondence client is used to record a video synchronized playback, reduce network transmission, client decoding performance etc. because
The asynchronous problem of video recording, drastically increases playing back videos synchronism caused by plain, reaches " real " meaning
Synchronized playback in justice.
Those skilled in the art will readily occur to this after considering specification and putting into practice invention disclosed herein
Other embodiments of invention.The application is intended to any modification, purposes or the adaptability of the present invention
Change, these modifications, purposes or adaptations follow the general principle of the present invention and including this hair
Bright undocumented common knowledge or conventional techniques in the art.Description and embodiments only by
It is considered as exemplary, true scope and spirit of the invention are pointed out by claim.
It should be appreciated that the invention is not limited in be described above and be shown in the drawings it is accurate
Structure, and various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only by institute
Attached claim is limited.
Claims (10)
1. one kind video recording synchronized playback method, applied to the back-end server in video monitoring system, its
It is characterised by, this method includes:
The video recording synchronized playback information that client is sent is received, and is obtained according to the video recording synchronized playback information
Take the Video data for each video camera for needing synchronized playback;
The video recording form of each video camera is obtained, the video recording form includes:Resolution ratio, frame per second;
The corresponding decoding speed of each video camera is calculated according to the frame per second of each video camera correspondence video recording, and according to
Decoding speed extracts the corresponding Video data of each video camera from the Video data of acquisition and decoded, and obtains
Temporal information and the view data of frame number are carried, described image data the first caching is put into, when described
Between information unit be the second;
The frame per second maximum in each video camera correspondence video recording frame per second is selected to calculate aggregate velocity, according to synthesis
Speed extracts the corresponding view data of each video camera from the first caching, and each video camera of extraction is corresponding
View data be put into the second caching, if in the second caching during the corresponding view data of existing each video camera,
Then first delete the corresponding view data of already present each video camera in the second caching;
Extracted from the second caching after the corresponding view data of each video camera, judge that each video camera correspondence is recorded a video
Resolution ratio it is whether identical, if identical, directly each frame image data of extraction is closed
Stitching image is obtained into processing;If incomplete same, first by each frame image data of acquisition according to default
Rule zooms in and out processing so that each frame image data size is identical, then by each two field picture number after scaling
Stitching image is obtained according to synthesis processing is carried out;
Stitching image progress coded treatment is obtained splicing Video data;
Send splicing Video data to correspondence client be used for synchronized playback in need each video camera
Carry out video recording synchronized playback.
2. synchronized playback method of recording a video as claimed in claim 1, it is characterised in that the video recording is same
Step playback information includes synchronized playback coding parameter;It is described to be spliced stitching image progress coded treatment
The process of Video data, is specifically included:
Stitching image is subjected to coded treatment according to the synchronized playback coding parameter and obtains splicing video recording number
According to.
3. synchronized playback method of recording a video as claimed in claim 1, it is characterised in that this method is also wrapped
Include:
Synthesis model is selected according to the video camera number of synchronized playback, when video camera number is less than or equal to mould
When the video camera number of formula N+1 maximum supports and the video camera number more than pattern N maximum supports, selection
Pattern N+1 is synthesized the corresponding each two field picture of each video camera according to synthesis model as synthesis model
Processing, square that the video camera number that wherein pattern N maximums are supported is N, pattern N arranges for N row * N
Pattern, N is positive integer.
4. synchronized playback method of recording a video as claimed in claim 1, it is characterised in that this method is also wrapped
Include:
Extracted from the first caching after the corresponding view data of each video camera, first judge each two field picture extracted
Whether the corresponding temporal information of data is identical, if incomplete same, by each frame image data correspondence
Temporal information be ranked up by size, the only minimum view data of extracting time information is put into the second caching,
Other view data are put back into the first caching;If identical, each frame image data of extraction is put into second
Caching.
5. synchronized playback method of recording a video as claimed in claim 1, it is characterised in that this method is also wrapped
Include:
The corresponding view data of each video camera extracted from the second caching is subjected to synthesis before processing, also sentenced
Whether the disconnected view data frame number extracted is less than the number for each video camera for needing synchronized playback, if being less than,
The one or more video cameras for not extracting view data are then further determined that, by the stitching image of synthesis
The image of this or the plurality of video camera correspondence position part is filled with solid-color image;, will if being not less than
Each frame image data extracted carries out synthesis processing and obtains stitching image.
6. one kind video recording synchronous playback means, applied to the back-end server in video monitoring system, its
It is characterised by, the device includes:
Message processing module, the video recording synchronized playback information for receiving client transmission;
Video recording acquisition module, for needing each of synchronized playback according to the video recording synchronized playback acquisition of information
The Video data of video camera;
Form acquisition module, the video recording form for obtaining each video camera, the video recording form includes:Point
Resolution, frame per second;
Video recording decoder module, each video camera correspondence is calculated for the frame per second according to the correspondence video recording of each video camera
Decoding speed, and the corresponding video recording of each video camera is extracted according to decoding speed from the Video data of acquisition
Data are decoded, and obtain carrying temporal information and the view data of frame number, described image data are put
Enter the first caching, the temporal information unit is the second;
Image zooming-out module, for selecting the frame per second maximum in each video camera correspondence video recording frame per second to calculate
Aggregate velocity, the corresponding view data of each video camera is extracted according to aggregate velocity from the first caching, and will
The corresponding view data of each video camera extracted is put into the second caching, if existing each shooting in the second caching
During the corresponding view data of machine, then the corresponding picture number of already present each video camera in the second caching is first deleted
According to;
Video recording synthesis module, for being extracted from the second caching after the corresponding view data of each video camera, sentences
Whether the resolution ratio of disconnected each video camera correspondence video recording is identical, if identical, directly by extraction
Each frame image data carries out synthesis processing and obtains stitching image;If incomplete same, first by each of acquisition
Frame image data zooms in and out processing according to preset rules so that each frame image data size is identical, then will
Each frame image data after scaling carries out synthesis processing and obtains stitching image;
Video recording coding module, for obtaining splicing Video data stitching image progress coded treatment;
Record a video sending module, for send splicing Video data be used for correspondence client it is in need to institute same
Each video camera of step playback carries out video recording synchronized playback.
7. synchronous playback means of recording a video as claimed in claim 6, it is characterised in that at described information
Managing the video recording synchronized playback information of module reception includes synchronized playback coding parameter;The video recording coding module,
It is additionally operable to stitching image obtaining splicing video recording number according to synchronized playback coding parameter progress coded treatment
According to.
8. synchronous playback means of recording a video as claimed in claim 6, it is characterised in that the device is also wrapped
Include:
Mode selection module, for selecting synthesis model according to the video camera number of synchronized playback, works as shooting
What machine number was less than or equal to the pattern N+1 maximums video camera number supported and supported more than pattern N maximums
During video camera number, the video camera number that synthesis model selection mode N+1, wherein pattern N maximum are supported
For N square, pattern N is N row * N row patterns, and N is positive integer;
Video recording synthesis module, is additionally operable to be closed the corresponding each two field picture of each video camera according to synthesis model
Into processing.
9. synchronous playback means of recording a video as claimed in claim 6, it is characterised in that described image is carried
Modulus block also includes the first judgment sub-unit, the first extraction subelement,
First judgment sub-unit, for extracting the corresponding view data of each video camera from the first caching
Afterwards, judge whether the corresponding temporal information of each frame image data extracted is identical;
Described first extracts subelement, and each frame image data extracted for working as from the first caching is corresponding
When temporal information is incomplete same, the corresponding temporal information of each frame image data is ranked up by size,
The only minimum view data of extracting time information is put into the second caching, and other view data are put back into first and delayed
Deposit;When the corresponding temporal information of each frame image data extracted from the first caching is identical, it will carry
Each frame image data taken is put into the second caching.
10. synchronous playback means of recording a video as claimed in claim 6, it is characterised in that the video recording is closed
Also include the second judgment sub-unit, the second extraction subelement into module,
Second judgment sub-unit, for the corresponding image of each video camera that will be extracted from the second caching
Data carry out synthesis before processing, and judging whether the view data frame number extracted is less than needs each of synchronized playback
The number of video camera;
Described second extracts subelement, for being needed when the view data frame number extracted from the second caching is less than
When wanting each video camera number of synchronized playback, further determine that and do not extract the one or more of view data
Video camera, by the image of this in the stitching image of synthesis or the plurality of video camera correspondence position part with pure
Color image is filled;The each of synchronized playback is needed when the view data frame number extracted from the second caching is not less than
During video camera number, each frame image data of extraction is subjected to synthesis processing and obtains stitching image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610061280.6A CN107018442B (en) | 2016-01-28 | 2016-01-28 | A kind of video recording synchronized playback method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610061280.6A CN107018442B (en) | 2016-01-28 | 2016-01-28 | A kind of video recording synchronized playback method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107018442A true CN107018442A (en) | 2017-08-04 |
CN107018442B CN107018442B (en) | 2019-06-11 |
Family
ID=59439260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610061280.6A Active CN107018442B (en) | 2016-01-28 | 2016-01-28 | A kind of video recording synchronized playback method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107018442B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108010058A (en) * | 2017-11-29 | 2018-05-08 | 广东技术师范学院 | A kind of method and system that vision tracking is carried out to destination object in video flowing |
WO2020135055A1 (en) * | 2018-12-28 | 2020-07-02 | 广州市百果园信息技术有限公司 | Method, device and apparatus for adding video special effects and storage mediem |
CN111949344A (en) * | 2019-05-14 | 2020-11-17 | 华为技术有限公司 | Method for virtual machine to remotely access data of USB peripheral |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201781583U (en) * | 2010-01-22 | 2011-03-30 | 深圳市同洲电子股份有限公司 | Multichannel server video playback synchronous control system |
CN103024352A (en) * | 2012-12-07 | 2013-04-03 | 康佳集团股份有限公司 | Video monitoring method and system based on code rate mutation |
CN103686071A (en) * | 2013-10-30 | 2014-03-26 | 北京中星微电子有限公司 | Monitoring video playback method and system |
CN103888729A (en) * | 2014-03-19 | 2014-06-25 | 浙江宇视科技有限公司 | Method and device for synchronizing camera information between video monitoring platforms |
CN105262971A (en) * | 2015-11-30 | 2016-01-20 | 浙江宇视科技有限公司 | Replay method and device of video of fisheye camera |
-
2016
- 2016-01-28 CN CN201610061280.6A patent/CN107018442B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201781583U (en) * | 2010-01-22 | 2011-03-30 | 深圳市同洲电子股份有限公司 | Multichannel server video playback synchronous control system |
CN103024352A (en) * | 2012-12-07 | 2013-04-03 | 康佳集团股份有限公司 | Video monitoring method and system based on code rate mutation |
CN103686071A (en) * | 2013-10-30 | 2014-03-26 | 北京中星微电子有限公司 | Monitoring video playback method and system |
CN103888729A (en) * | 2014-03-19 | 2014-06-25 | 浙江宇视科技有限公司 | Method and device for synchronizing camera information between video monitoring platforms |
CN105262971A (en) * | 2015-11-30 | 2016-01-20 | 浙江宇视科技有限公司 | Replay method and device of video of fisheye camera |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108010058A (en) * | 2017-11-29 | 2018-05-08 | 广东技术师范学院 | A kind of method and system that vision tracking is carried out to destination object in video flowing |
WO2020135055A1 (en) * | 2018-12-28 | 2020-07-02 | 广州市百果园信息技术有限公司 | Method, device and apparatus for adding video special effects and storage mediem |
US11553240B2 (en) | 2018-12-28 | 2023-01-10 | Bigo Technology Pte. Ltd. | Method, device and apparatus for adding video special effects and storage medium |
CN111949344A (en) * | 2019-05-14 | 2020-11-17 | 华为技术有限公司 | Method for virtual machine to remotely access data of USB peripheral |
Also Published As
Publication number | Publication date |
---|---|
CN107018442B (en) | 2019-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10735798B2 (en) | Video broadcast system and a method of disseminating video content | |
CN107295284B (en) | Method and device for generating, retrieving and playing video file consisting of audio and picture | |
CN106331645B (en) | The method and system of VR panoramic video later stage compilation is realized using virtual lens | |
CN103428555B (en) | A kind of synthetic method of multimedia file, system and application process | |
CN112291627A (en) | Video editing method and device, mobile terminal and storage medium | |
KR101530826B1 (en) | Playing method and the system of 360 degree spacial video | |
WO2021135334A1 (en) | Method and apparatus for processing live streaming content, and system | |
CN113067994B (en) | Video recording method and electronic equipment | |
CN105141810B (en) | It is a kind of to support slow-motion multichannel presentation system and method in real time | |
KR20150125947A (en) | Method and apparatus for using a list driven selection process to improve video and media time based editing | |
CN109587570B (en) | Video playing method and device | |
US11570415B2 (en) | Methods, systems, and media for generating a summarized video using frame rate modification | |
CN113747240B (en) | Video processing method, apparatus and storage medium | |
CN109905749B (en) | Video playing method and device, storage medium and electronic device | |
JP2006254366A (en) | Image processing apparatus, camera system, video system, network data system, and image processing method | |
CN107018442A (en) | One kind video recording synchronized playback method and device | |
EP3684048B1 (en) | A method for presentation of images | |
US8774605B2 (en) | Display processing apparatus, control method therefor, and display processing system | |
KR20200013658A (en) | Temporary Placement of Rappering Events | |
US20240146863A1 (en) | Information processing device, information processing program, and recording medium | |
JP2020524450A (en) | Transmission system for multi-channel video, control method thereof, multi-channel video reproduction method and device thereof | |
EP2942949A1 (en) | System for providing complex-dimensional content service using complex 2d-3d content file, method for providing said service, and complex-dimensional content file therefor | |
JP2012222399A (en) | Video playback system, video playback method, and video playback device and program | |
JP3683462B2 (en) | Movie display device | |
JP4828354B2 (en) | Multi-channel image transfer device |
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 |