CN105262979B - A kind of multi-video-stream render method and device - Google Patents
A kind of multi-video-stream render method and device Download PDFInfo
- Publication number
- CN105262979B CN105262979B CN201410302380.4A CN201410302380A CN105262979B CN 105262979 B CN105262979 B CN 105262979B CN 201410302380 A CN201410302380 A CN 201410302380A CN 105262979 B CN105262979 B CN 105262979B
- Authority
- CN
- China
- Prior art keywords
- video
- trace route
- route path
- path
- corresponding video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of multi-video-stream render method and devices.Method is that client is indicated according to multi-video-stream render input by user, and the corresponding video playback request message of multiple ID of trace route path is sent to server;After client receives the corresponding video playback response message of each ID of trace route path that server is generated according to the corresponding video playback request message of each ID of trace route path respectively, respectively according to the timestamp information of the video data carried in the corresponding video playback response message of each ID of trace route path, on the basis of the current time of client local, the corresponding video data of all ID of trace route path is played simultaneously.Using technical solution of the present invention, client is respectively according to the timestamp information of the corresponding video data of each ID of trace route path, the corresponding video data in all paths is played simultaneously, presented video keeps synchronizing in multiple windows when making multi-video-stream render, effectively increases system performance.
Description
Technical field
The present invention relates to video data process field more particularly to a kind of multi-video-stream render method and devices.
Background technology
Multichannel playback technology as exists the monitor video to one or more scene stored in multiple monitoring devices
The technology presented in the same window.The multichannel playback technology is carried with cost of human resources during effectively save monitoring
The characteristics of height is to the management of performance of each scene, is widely used.
In the multi-video-stream render system using multichannel playback technology, multiple video monitoring equipments are to one or more fields
Scape is monitored, and sends at most road Video service platform (such as NVR) by generated video data is monitored, in the multi-channel video
In service platform, each video monitoring equipment corresponds to unique ID of trace route path.When there are any one clients according to user
Instruction is when needing to obtain the video data in the corresponding any one time range of one or more ID of trace route path, i.e., with it is above-mentioned more
Road Video service platform carries out Signalling exchange, to obtain each ID of trace route path pair respectively from the multi-channel video service platform
The video data answered, and the video data is played simultaneously.
During client and multi-channel video service platform carry out Signalling exchange, the corresponding network of different ID of trace route path
Delay may be different.Therefore, it is obtained when client sends the corresponding video data of multiple ID of trace route path to multi-channel video service platform
It wins the confidence when enabling, client, which gets the different ID of trace route path corresponding video data time, to be all different, so that obtaining
Time to the corresponding video data of each ID of trace route path is all different, that is, leads to occur video difference when multi-video-stream render
The problem of step.
In conclusion during the prior art realizes multi-video-stream render, there are the corresponding videos of multiple ID of trace route path
The nonsynchronous problem of data playback.
Invention content
The embodiment of the present invention provides a kind of multi-video-stream render method and device, realizes that multichannel regards to solve the prior art
During frequency plays back, there are the corresponding video datas of multiple ID of trace route path to play nonsynchronous problem.
Specific technical solution provided in an embodiment of the present invention is as follows:
A kind of multi-video-stream render method, including:
After client receives multi-video-stream render instruction input by user, client is based on the multi-video-stream render
It indicates to generate the corresponding video playback request message of all ID of trace route path for meeting preset condition, and the video playback is asked
Message is sent to server;
The client receives the server respectively according to the corresponding video playback request message of each ID of trace route path
The respective paths of generation identify corresponding video playback response message;
The client obtains regarding of being carried in the corresponding video playback response message of each ID of trace route path respectively
Frequency according to this and the timestamp information of video data, and the video data is preserved to local;
The client obtains all video datas locally preserved and the corresponding ID of trace route path of each video data,
And according to the timestamp information of the corresponding video data of each described ID of trace route path, it is with client local current time
The corresponding video data of all ID of trace route path of acquisition is played simultaneously in benchmark.
A kind of multi-video-stream render device, including:
Transmission unit is based on the multi-video-stream render after receiving multi-video-stream render instruction input by user
It indicates to generate the corresponding video playback request message of all ID of trace route path for meeting preset condition, and the video playback is asked
Message is sent to server;
Receiving unit disappears according to the corresponding video playback request of each ID of trace route path respectively for receiving the server
The respective paths that breath generates identify corresponding video playback response message;
Acquiring unit is carried for obtaining respectively in the corresponding video playback response message of each ID of trace route path
The timestamp information of video data and video data, and the video data is preserved to local;
Broadcast unit, for obtaining all video datas locally preserved and the corresponding path mark of each video data
Know, and according to the timestamp information of the corresponding video data of each described ID of trace route path, on the basis of local current time, together
Step plays the corresponding video data of all ID of trace route path obtained.
In the embodiment of the present invention, client is indicated according to multi-video-stream render input by user, is sent to server multiple
The corresponding video playback request message of ID of trace route path;After the video playback response message that client is sent according to server,
The video data carried in video playback response message is obtained respectively to store to local;Client is according to each ID of trace route path
The video data locally preserved is played simultaneously on the basis of the current time of client local in timestamp information.Using skill of the present invention
Art scheme, client cache the corresponding video data of all ID of trace route path, and respectively according to each ID of trace route path pair
The corresponding video data in all paths is played simultaneously in the timestamp information for the video data answered, multiple when making multi-video-stream render
Presented video keeps synchronizing in window.
Description of the drawings
Fig. 1 is multi-video-stream render system architecture schematic diagram in the embodiment of the present invention;
Fig. 2 is multi-video-stream render flow diagram in the embodiment of the present invention;
Fig. 3 is video recordings schematic diagram one in the embodiment of the present invention;
Fig. 4 is video recordings schematic diagram two in the embodiment of the present invention;
Fig. 5 is that video data obtains flow diagram in the embodiment of the present invention;
Fig. 6 is multi-video-stream render apparatus structure schematic diagram in the embodiment of the present invention.
Specific implementation mode
During solving prior art realization multi-video-stream render, there are the corresponding video counts of multiple ID of trace route path
According to the nonsynchronous problem of broadcasting.In the embodiment of the present invention, client is indicated according to multi-video-stream render input by user, to service
Device sends the corresponding video playback request message of multiple ID of trace route path;Client is rung according to the video playback that server is sent
After answering message, the video data carried in video playback response message is obtained respectively and is stored to local;Client is according to each
The timestamp information of ID of trace route path is played simultaneously that all ID of trace route path are corresponding to be regarded on the basis of the current time of client local
Frequency evidence.Using technical solution of the present invention, client caches the corresponding video data of all ID of trace route path, and root respectively
According to the timestamp information of the corresponding video data of each ID of trace route path, all video datas locally preserved are played simultaneously, make
Presented video keeps synchronizing in multiple windows when multi-video-stream render.
Currently preferred implementation is described in detail below in conjunction with the accompanying drawings.
As shown in fig.1, being multi-video-stream render system architecture diagram provided in an embodiment of the present invention, multi-video-stream render system
System includes multiple video monitoring equipments, multi-channel video service platform and client.Wherein, video monitoring equipment is for monitoring
Scene simultaneously preserves video data and video recordings are sent to multi-channel video service platform;Wherein, video recordings are
There are the time segment informations of video data for record;Multi-channel video service platform is used to preserve regarding for all video monitoring equipments transmissions
Frequency is according to this and video recordings;Client be used for by Signalling exchange from multi-channel video service platform obtain video data with
And video recordings carry out multi-video-stream render.
As shown in fig.2, in the embodiment of the present invention, the flow for carrying out multi-video-stream render is:
Step 200:After client receives multi-video-stream render instruction input by user, client is regarded based on the multichannel
Frequency playback instruction generates the corresponding video playback request message of all ID of trace route path for meeting preset condition, and video playback is asked
Message is asked to be sent to server.
In the embodiment of the present invention, when user is intended to check multi-video-stream render by client, i.e., inputted in the client
Multi-video-stream render indicates, the ID of trace route path for carrying out video playback, such as instruction playback road are included in multi-video-stream render instruction
Two corresponding video data of diameter one and path, in addition, further including the video playback of user's selection in multi-video-stream render instruction
Time range.Optionally, the corresponding video playback time range of each ID of trace route path is identical or different.Preferably, user
Input it is all after, all ID of trace route path and its corresponding video playback time range, user, which are presented, in client can pass through visitor
Family end to any one ID of trace route path delete and be carried out to the corresponding video playback time range of any one ID of trace route path
Modification.The corresponding video playback time range of above-mentioned all ID of trace route path is identical or different.Below with all ID of trace route path pair
It is introduced for the video playback time range answered is identical.
Further, it after client receives multi-video-stream render instruction input by user, that is, obtains above-mentioned multichannel and regards
The corresponding video playback time range of all ID of trace route path carried in frequency playback instruction;Client is each based on what is locally preserved
The corresponding video recordings of a ID of trace route path, and the corresponding video playback time range of each ID of trace route path that obtains,
The corresponding video playback request message of each ID of trace route path for meeting preset condition is generated, which is sent out
It send to server.In above process, the corresponding video recordings of each above-mentioned ID of trace route path pass through real-time for client
The mode that video recordings acquisition message is sent to server obtains.
Further, as shown in fig.3, for the corresponding videograph letter of any one ID of trace route path preserved in server
Breath, may have video recordings due to extraneous factor or artificial settings, not all time, such as in figure 3, road
Diameter 1:00 to 14:There is no video recordings between 00, i.e., without video data in the period.In addition, refering to Fig. 4 institutes
Show, in section at the same time, there will be different situations for the corresponding video recordings of multiple ID of trace route path, i.e., in path one
In, 11:00 to 14:There is no video recordings between 00, and in path two, 12:00 to 15:There is no videograph between 00
Information.Based on this problem, in the embodiment of the present invention, client generates each for meeting preset condition according to video recordings
The corresponding video playing request message of ID of trace route path, i.e. client detect the corresponding video recordings of each ID of trace route path,
There are any one ID of trace route path is corresponding any one within the scope of there are the corresponding video playback time of any one ID of trace route path
When video recordings, client respectively according to the corresponding video recordings of any one ID of trace route path and this arbitrarily all the way
Diameter identifies corresponding video playback time range, generates the corresponding video playback request message of any one above-mentioned ID of trace route path.
Following three kinds of situations can be specifically divided into:
The first situation:When client is according to the corresponding video recordings of all ID of trace route path locally preserved, judgement
When any one video recordings are not present within the scope of the corresponding video playback time of any one ID of trace route path, it is arbitrary that this is not generated
The corresponding video playback request message in one path, for example, for path one, when the one corresponding video playback time range of path
It is 12:00 to 13:When 00, due to 12 in one corresponding video recordings of path:00 to 13:00 does not have video recordings,
Any video recordings are not present within the scope of i.e. above-mentioned video playback time, then client does not generate one corresponding video of path
Playback request message.
The second situation:When client is according to the corresponding video recordings of all ID of trace route path locally preserved, judgement
There are at least one video recordings within the scope of the corresponding video playback time of any one ID of trace route path, and this at least one is regarded
When being at the beginning of above-mentioned video playback time range at the beginning of frequency record information, it is based on any one ID of trace route path pair
The video playback time range answered generates the corresponding video playback request message of any one ID of trace route path, and by the video playback
Request message is sent to server;For example, for path one, when the one corresponding video playback time ranging from 14 of path:00
To 16:When 00, due to 14 in one corresponding video recordings of path:00 there are video recordings, then client generates road
One corresponding video playback request message of diameter, and send the video playback request message.Wherein, above-mentioned at least one videograph
It is at the beginning of indicating video playback time range at the beginning of above-mentioned video playback time range at the beginning of information
There are video recordings, for example, video playback time ranging from 14:00 to 16:00, the time range of video recordings is
14:00 to 17:00 or video recordings time range be 11:00 to 15:00, indicate video playback time range
At the beginning of it is identical as at the beginning of at least one video recordings.
The third situation:When client is according to the corresponding video recordings of all ID of trace route path locally preserved, judgement
There are at least one video recordings within the scope of the corresponding video playback time of any one ID of trace route path, and this at least one is regarded
When being later than at the beginning of above-mentioned video playback time range at the beginning of frequency record information, remember from above-mentioned at least one video
It records at the beginning of selecting above-mentioned video recordings in information nearest one at the beginning of the video playback time range
A video recordings are based on the corresponding video playback time range of any one ID of trace route path, generate video playback request message,
And the corresponding video playback request message of above-mentioned any one ID of trace route path is sent to server;Wherein, client can be immediately
The corresponding video playback request message of above-mentioned any one ID of trace route path is sent to server, it can also be above-mentioned selected above-mentioned
The corresponding video playback request message of above-mentioned any one ID of trace route path is sent to server at the beginning of video recordings.
For example, for path one, when the one corresponding video playback time ranging from 12 of path:00 to 16:When 00, due to path a pair
12 in the video recordings answered:00 to 14:00 do not have video recordings, 14:There are video recordings after 00, i.e., on
At the beginning of stating at the beginning of video playback time range earlier than one corresponding video recordings of path, then client is given birth to
At one corresponding video playback request message of path, and 12:00 or 14:00 sends the video playback request message.
Further, during client obtains the corresponding video data of each ID of trace route path, if receiving
Multi-video-stream render modification instruction input by user, then modify to the acquisition process of above-mentioned video data, specially:If connecing
When receiving repositioning instruction input by user, after carrying the corresponding modification of at least one ID of trace route path in repositioning instruction
Video playback time range, then client be based on the modified video playback time range and generate localization message being sent to clothes
Business device enables server based on the ID of trace route path and video playback time range carried in the localization message, obtains and reposition
The corresponding video data of each ID of trace route path send to client, optionally, when the video carried in above-mentioned localization message
When not including video data within the scope of playback duration, returns within the scope of video playback time to client and disappear without video data prompt
Breath;If receive pause instruction input by user, video playback request message is sent to server by client pause
Process;If receive video data acquisition cancellation instruction input by user, client will stop sending video playback request
Message, and disconnect the network connection with server.
Using above-mentioned technical proposal, client is according to the differences of the corresponding video recordings of different ID of trace route path, every
One ID of trace route path corresponding the best time sends the corresponding video playback request message in the path to server, so as to avoid
The different paths corresponding video data moment that client obtains causes multi-video-stream render nonsynchronous there are larger difference
Problem.
Step 210:Client receives server and is asked respectively according to the corresponding multi-video-stream render of each ID of trace route path
The respective paths that message generates identify corresponding video playback response message.
In the embodiment of the present invention, server receives each for meeting preset condition that client is sent in synchronization
After the corresponding video playback request message of ID of trace route path, i.e., each ID of trace route path pair for meeting preset condition is obtained respectively
The video data answered generates corresponding video playback response message.
Step 220:Client obtains regarding of being carried in the corresponding video playback response message of each ID of trace route path respectively
Frequency according to this and the timestamp information of video data, and the video data is preserved to local.
In the embodiment of the present invention, when client receives each ID of trace route path pair for meeting preset condition of server transmission
After the video response message answered, the corresponding video playback response of ID of trace route path that each meets preset condition is parsed respectively and is disappeared
Breath, and obtain the corresponding video data of ID of trace route path that each meets preset condition and store to local.Using above-mentioned technical side
Case stores the corresponding video data of each ID of trace route path of acquisition to local, avoids client directly broadcasting and gets
Video data when, video data obtains caused by the network delay of certain video data errors or different ID of trace route path
It is asynchronous, the caused nonsynchronous problem of multi-video-stream render.
In addition to this, further include the timestamp letter of video data and video data in above-mentioned video playback response message
Breath, wherein the timestamp information of the video data be when video monitoring equipment records each width video image when
Between information.
Step 230:Client obtains all video datas locally preserved and the corresponding path of each video data
Mark, and according to the timestamp information of the corresponding video data of each above-mentioned ID of trace route path, with client local current time
On the basis of, the corresponding video data of all ID of trace route path is played simultaneously.
In the embodiment of the present invention, it is corresponding that client obtains multiple ID of trace route path for meeting preset condition that server is sent
After video playback response message, judge that each ID of trace route path for meeting preset condition of current time is regarded with the presence or absence of corresponding
Frequency record information;When client judges to regard there are any one ID of trace route path is corresponding in all ID of trace route path for meeting preset condition
At the beginning of frequency record information when being above-mentioned current time, the corresponding path status of any one ID of trace route path is changed to broadcast
State is put, and plays the corresponding video recordings of above-mentioned any one ID of trace route path;When above-mentioned any one ID of trace route path is corresponding
When being later than current time at the beginning of video recordings, believe when reaching the corresponding videograph of above-mentioned any one ID of trace route path
When at the beginning of breath, the corresponding path status of any one ID of trace route path is changed to broadcast state.For example, refering to Fig. 3 institutes
Show, in path one, 11:00 to 14:There is no video recordings between 00, and in path two, 12:00 to 15:Between 00
There is no video recordings, if video playback time input by user ranging from 11:00 to 16:00, then in this video playback
Between in range, therefore two corresponding path status of path is changed comprising video recordings in path one and path two
For broadcast state, and 14:One corresponding path status of path is changed to broadcast state by 00.
Based on above-mentioned decision process, for the ID of trace route path there are video recordings within the scope of video playback time,
Client judges locally whether preserve the corresponding video data of above-mentioned each ID of trace route path respectively, and determines the institute locally preserved
There is the corresponding ID of trace route path of video data, is believed respectively according to the timestamp of the determining corresponding video data of each ID of trace route path
Breath and client local current time, are played simultaneously the determining corresponding video data of all ID of trace route path.
Further, when judgement is local without preserving some road for including in multi-video-stream render instruction input by user
When diameter identifies corresponding video data, client repeats to detect locally whether preserve the corresponding video of some above-mentioned ID of trace route path
Data send out warning information when the first preset duration reaches, and prompt some above-mentioned path to exist abnormal.
Using above-mentioned technical proposal, when client is got according to the corresponding video recordings of different ID of trace route path
After video playback response message, i.e., whether judgement is local is cached with the corresponding video data of each ID of trace route path, it is ensured that
Client be capable of it is relatively reliable control being played simultaneously for different corresponding video datas in path, effectively increase system performance.
Further, it after the corresponding video data of all ID of trace route path of client terminal playing, is inputted when receiving user
Multi-video-stream render halt instruction when, stop playing the specified path mark carried in above-mentioned multi-video-stream render halt instruction
Corresponding video data;When receiving multi-video-stream render pause instruction input by user, pause plays above-mentioned multi-channel video
The specified path carried in playback pause instruction identifies corresponding video data;When receiving multi-video-stream render input by user
When positioning instruction, judge each ID of trace route path carried in the multi-video-stream render positioning instruction with the presence or absence of correspondence respectively
Video recordings, and according to judgement result carry out multi-video-stream render.
Based on the above-mentioned technical proposal, with reference to concrete application scene, as shown in fig.5, the detailed description present invention is implemented
In example, the acquisition process of video data:
Step 500:Client receives multi-video-stream render instruction input by user, and obtains above-mentioned multi-video-stream render and refer to
Show the video playback time range and ID of trace route path of middle carrying.
Step 510:Client is directed to each ID of trace route path, judges within the scope of above-mentioned video playback time, if
Including video recordings, if so, executing step 520;Otherwise, step 550 is executed.
Step 520:Client is according to judging whether be equal to ID of trace route path at the beginning of above-mentioned video playback time range
At the beginning of corresponding video recordings, if so, executing step 530;Otherwise, step 540 is executed.
Step 530:Client is based respectively on the corresponding video playback time range of each ID of trace route path and generates corresponding road
Diameter identifies corresponding video playback request message, and the video playback request message is sent to server.
Step 540:Client selectes videograph letter from the corresponding video recordings of each ID of trace route path respectively
A video recordings nearest at the beginning of the video playback time range at the beginning of breath, are based on respective paths
It identifies corresponding video playback time range, generates video playback request message, and any one ID of trace route path is corresponding regards by this
Frequency playback request message is sent to server.
Step 550:Any one path pair for not including any video recordings within the scope of video playback time is not generated
The video playback request message answered.
During each ID of trace route path of above-mentioned client acquisition corresponding video data, if it is defeated to receive user
When the repositioning instruction entered, the corresponding modified video playback of at least one ID of trace route path is carried in repositioning instruction
Time range, then client be based on the modified video playback time range and generate newest video playback request message being sent to
Server;If receive pause instruction input by user, video playback request message is sent to service by client pause
The process of device;If receive video data acquisition cancellation instruction input by user, client will stop sending video playback
Request message, and disconnect the network connection with server.
Step 560:Client is received server and is disappeared based on the video playback response that above-mentioned video playback request message is sent
Breath, and obtain the video data carried in video playback response message and preserve to local.
Based on the above-mentioned technical proposal, as shown in fig.6, the present invention also provides a kind of multi-video-stream render device, including hair
Unit 60, receiving unit 61, acquiring unit 62 and broadcast unit 63 are sent, wherein:
Transmission unit 60 is returned after receiving multi-video-stream render instruction input by user based on the multi-channel video
It puts instruction and generates the corresponding video playback request message of all ID of trace route path for meeting preset condition, and the video playback is asked
Message is asked to be sent to server;
Receiving unit 61 is asked according to the corresponding video playback of each ID of trace route path respectively for receiving the server
The respective paths that message generates identify corresponding video playback response message;
Acquiring unit 62 is carried for obtaining respectively in the corresponding video playback response message of each described ID of trace route path
Video data and video data timestamp information, and the video data is preserved to local;
Broadcast unit 63, for obtaining all video datas locally preserved and the corresponding path of each video data
Mark, and according to the timestamp information of the corresponding video data of each described ID of trace route path, on the basis of local current time,
The corresponding video data of all ID of trace route path of acquisition is played simultaneously.
Above-mentioned apparatus further includes judging unit 64, is used for:It is played simultaneously before the corresponding video data of all ID of trace route path,
Respectively according to the corresponding video recordings of each ID of trace route path, judge whether each ID of trace route path described in current time is deposited
In corresponding video recordings;When judging there are the corresponding video recordings of an at least ID of trace route path in all ID of trace route path
At the beginning of when being the current time, the corresponding path status of an at least ID of trace route path is changed to broadcast state;
It is later than described work as at the beginning of judging to there are the corresponding video recordings of an at least ID of trace route path in all ID of trace route path
When the preceding time, when at the beginning of the corresponding video recordings of an at least ID of trace route path described in reaching, at least one by described in
The corresponding path status of ID of trace route path is changed to broadcast state.
Above-mentioned apparatus further includes administrative unit 65, is used for:Start to play the corresponding video data of all ID of trace route path it
Afterwards, when receiving multi-video-stream render halt instruction input by user, stop playing the multi-video-stream render halt instruction
The specified path of middle carrying identifies corresponding video data;When receiving multi-video-stream render pause instruction input by user,
Pause plays the specified path carried in the multi-video-stream render pause instruction and identifies corresponding video data;When receiving use
When the multi-video-stream render positioning instruction of family input, each carried in the multi-video-stream render positioning instruction is judged respectively
ID of trace route path whether there is corresponding video recordings, and carry out multi-video-stream render according to judgement result.
In conclusion in the embodiment of the present invention, client is indicated according to multi-video-stream render input by user, to server
Send the corresponding video playback request message of multiple ID of trace route path;Client is responded according to the video playback that server is sent
After message, the video data carried in video playback response message is obtained respectively and is stored to local;Client is according to each road
The corresponding video of all ID of trace route path is played simultaneously on the basis of the current time of client local in the timestamp information of diameter mark
Data.Using technical solution of the present invention, client caches the corresponding video data of all ID of trace route path, and basis respectively
The timestamp information of the corresponding video data of each ID of trace route path is played simultaneously the corresponding video data in all paths, makes more
Presented video keeps synchronizing in multiple windows when the video playback of road.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of multi-video-stream render method, which is characterized in that including:
After client receives multi-video-stream render instruction input by user, client is indicated based on the multi-video-stream render
It generates and meets the corresponding video playback request message of all ID of trace route path of preset condition, and by the video playback request message
It is sent to server;
The client receives the server and is generated respectively according to the corresponding video playback request message of each ID of trace route path
Respective paths identify corresponding video playback response message;
The client obtains the video counts carried in the corresponding video playback response message of each described ID of trace route path respectively
According to this and the timestamp information of video data, and the video data is preserved to local;
The timestamp information of the client corresponding video data of each ID of trace route path according to, with the client sheet
On the basis of ground current time, the corresponding video data of all ID of trace route path of acquisition is played simultaneously;
Wherein, when judgement is local without preserving some ID of trace route path pair for including in multi-video-stream render instruction input by user
When the video data answered, client repeats to detect locally whether preserve the corresponding video data of some above-mentioned ID of trace route path, when
When the first preset duration reaches, warning information is sent out, prompts some above-mentioned path to exist abnormal;
Client generates the corresponding video time of all ID of trace route path for meeting preset condition based on multi-video-stream render instruction
Request message is put, and the video playback request message is sent to server, is specifically included:
The client obtains the corresponding video playback time of all ID of trace route path carried in the multi-video-stream render instruction
Range;
The client obtains the corresponding video recordings of each ID of trace route path locally preserved and each road respectively
Diameter identifies corresponding video playback time range;
It is described when existing within the scope of the corresponding video playback time of any one ID of trace route path for any one ID of trace route path
When the corresponding any one video recordings of any one ID of trace route path, client is corresponded to according to any one ID of trace route path respectively
Video recordings and the corresponding video playback time range of any one ID of trace route path, generate any one described road
Diameter identifies corresponding video playback request message, and the video playback request message is sent to server;
When the client is according to the video recordings, the corresponding video playback time of the judgement any one ID of trace route path
When any one video recordings being not present in range, the corresponding video playback request message in any one path is not generated.
2. the method as described in claim 1, which is characterized in that client is corresponding according to any one ID of trace route path respectively
Video recordings and the corresponding video playback time range of any one ID of trace route path generate any one described path
Corresponding video playback request message is identified, and the video playback request message is sent to server, is specifically included:
When the client is according to the video recordings, the corresponding video playback time of the judgement any one ID of trace route path
There are at least one video recordings in range, and are the video at the beginning of at least one video recordings
When at the beginning of playback duration range, it is based on described in the corresponding video playback time range generation of any one ID of trace route path
The corresponding video playback request message of any one ID of trace route path, and the video playback request message is sent to the service
Device;
When the client is according to the video recordings, the corresponding video playback time of the judgement any one ID of trace route path
There are at least one video recordings in range, and are later than described regard at the beginning of at least one video recordings
When at the beginning of frequency playback duration range, the video recordings are selected from least one video recordings
Time started video recordings nearest at the beginning of the video playback time range, based on described arbitrary
The corresponding video playback time range of one ID of trace route path generates video playback request message, and by any one ID of trace route path
Corresponding video playback request message is sent to the server.
3. such as claim 1-2 any one of them methods, which is characterized in that the client synchronization plays all ID of trace route path
Before corresponding video data, further comprise:
The client according to the corresponding video recordings of each ID of trace route path, judges each described in current time respectively
ID of trace route path whether there is corresponding video recordings;
When the client judges the beginning that there are the corresponding video recordings of an at least ID of trace route path in all ID of trace route path
When time is the current time, the corresponding path status of an at least ID of trace route path is changed to broadcast state;
When the client judges the beginning that there are the corresponding video recordings of an at least ID of trace route path in all ID of trace route path
When time is later than the current time, at the beginning of the corresponding video recordings of an at least ID of trace route path described in reaching
When, the corresponding path status of an at least ID of trace route path is changed to broadcast state.
4. method as claimed in claim 3, which is characterized in that the client is corresponding according to each described ID of trace route path
The timestamp information of video data is played simultaneously all ID of trace route path and is corresponded on the basis of the current time of the client local
Video data, specifically include:
The client obtains the corresponding path status of each ID of trace route path respectively;
On the basis of local current time, according to the timestamp information of determining ID of trace route path, road is played simultaneously in the client
Diameter state is the corresponding video data of all ID of trace route path of broadcast state.
5. the method as described in claim 1, which is characterized in that start to play the corresponding video data of all ID of trace route path it
Afterwards, further comprise:
When the client receives multi-video-stream render halt instruction input by user, stop playing the ID of trace route path pair
The video data answered;
When the client receives multi-video-stream render pause instruction input by user, pause plays the multi-channel video and returns
It puts the specified path carried in pause instruction and identifies corresponding video data;
When the client receives multi-video-stream render positioning instruction input by user, judge that the multi-channel video returns respectively
Each ID of trace route path carried in blow-down bit instruction whether there is corresponding video recordings, and be carried out according to judgement result
Multi-video-stream render.
6. a kind of multi-video-stream render device, which is characterized in that including:
Transmission unit is indicated after receiving multi-video-stream render instruction input by user based on the multi-video-stream render
It generates and meets the corresponding video playback request message of all ID of trace route path of preset condition, and by the video playback request message
It is sent to server;
Receiving unit is given birth to according to the corresponding video playback request message of each ID of trace route path respectively for receiving the server
At respective paths identify corresponding video playback response message;
Acquiring unit, for obtaining the video carried in the corresponding video playback response message of each described ID of trace route path respectively
The timestamp information of data and video data, and the video data is preserved to local;
Broadcast unit, for obtaining all video datas locally preserved and the corresponding ID of trace route path of each video data,
It is synchronous on the basis of local current time and according to the timestamp information of the corresponding video data of each described ID of trace route path
Play the corresponding video data of all ID of trace route path obtained;
Wherein, when judgement is local without preserving some ID of trace route path pair for including in multi-video-stream render instruction input by user
When the video data answered, client repeats to detect locally whether preserve the corresponding video data of some above-mentioned ID of trace route path, when
When the first preset duration reaches, warning information is sent out, prompts some above-mentioned path to exist abnormal;
The transmission unit, is specifically used for:
Obtain the corresponding video playback time range of all ID of trace route path carried in the multi-video-stream render instruction;It obtains respectively
Take the corresponding video recordings of each ID of trace route path locally preserved and the corresponding video playback of each ID of trace route path
Time range;For any one ID of trace route path, when in the corresponding video playback time range memory of any one ID of trace route path
In the corresponding any one video recordings of any one ID of trace route path, corresponded to respectively according to any one ID of trace route path
Video recordings and the corresponding video playback time range of any one ID of trace route path, generate any one described road
Diameter identifies corresponding video playback request message, and the video playback request message is sent to server;
The transmission unit, is specifically used for:
When according to the video recordings, do not deposited within the scope of the corresponding video playback time of the judgement any one ID of trace route path
In any one video recordings, the corresponding video playback request message in any one path is not generated.
7. device as claimed in claim 6, which is characterized in that the transmission unit is specifically used for:
When according to the video recordings, presence in the corresponding video playback time of the judgement any one ID of trace route path
At least one video recordings, and be the video playback time model at the beginning of at least one video recordings
When at the beginning of enclosing, based on any one corresponding video playback time range generation of ID of trace route path any one path
Corresponding video playback request message is identified, and the video playback request message is sent to the server;When according to institute
Video recordings are stated, judge that there are at least one videos within the scope of the corresponding video playback time of any one ID of trace route path
Information is recorded, and at the beginning of being later than the video playback time range at the beginning of at least one video recordings
Between when, video described in distance returns at the beginning of the video recordings are selected from least one video recordings
A nearest video recordings at the beginning of time range are put, are returned based on the corresponding video of any one ID of trace route path
It puts time range, generates video playback request message, and by the corresponding video playback request message of any one ID of trace route path
It is sent to the server.
8. such as claim 6-7 any one of them devices, which is characterized in that further include judging unit, be used for:
It is played simultaneously before the corresponding video data of all ID of trace route path, is remembered respectively according to the corresponding video of each ID of trace route path
Information is recorded, judges that each ID of trace route path described in current time whether there is corresponding video recordings;When all roads of judgement
It, will be described when being the current time at the beginning of there are the corresponding video recordings of an at least ID of trace route path in diameter mark
The corresponding path status of an at least ID of trace route path is changed to broadcast state;When judging there is an at least path in all ID of trace route path
When being later than the current time at the beginning of identifying corresponding video recordings, when reach described in an at least ID of trace route path pair
When at the beginning of the video recordings answered, the corresponding path status of an at least ID of trace route path is changed to play shape
State.
9. device as claimed in claim 8, which is characterized in that the broadcast unit specifically includes:
The corresponding path status of each ID of trace route path is obtained respectively;On the basis of local current time, according to determining path
The corresponding video data of all ID of trace route path that path status is broadcast state is played simultaneously in the timestamp information of mark.
10. device as claimed in claim 6, which is characterized in that further include administrative unit, be used for:
After starting to play the corresponding video data of all ID of trace route path, stop when receiving multi-video-stream render input by user
When only instructing, stop playing the corresponding video data of specified path mark carried in the multi-video-stream render halt instruction;
When receiving multi-video-stream render pause instruction input by user, pause plays to be taken in the multi-video-stream render pause instruction
The specified path of band identifies corresponding video data;When receiving multi-video-stream render positioning instruction input by user, respectively
Judge that each ID of trace route path carried in the multi-video-stream render positioning instruction whether there is corresponding video recordings,
And multi-video-stream render is carried out according to judgement result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410302380.4A CN105262979B (en) | 2014-06-27 | 2014-06-27 | A kind of multi-video-stream render method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410302380.4A CN105262979B (en) | 2014-06-27 | 2014-06-27 | A kind of multi-video-stream render method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105262979A CN105262979A (en) | 2016-01-20 |
CN105262979B true CN105262979B (en) | 2018-09-28 |
Family
ID=55102466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410302380.4A Active CN105262979B (en) | 2014-06-27 | 2014-06-27 | A kind of multi-video-stream render method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105262979B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506483B (en) * | 2016-10-24 | 2019-06-11 | 浙江宇视科技有限公司 | Video source group synchronized playback method and device based on ONVIF |
CN108174132B (en) * | 2016-12-07 | 2020-12-11 | 杭州海康威视数字技术股份有限公司 | Video file playback method and device |
CN108769609B (en) * | 2018-06-14 | 2020-08-04 | 浙江大华技术股份有限公司 | Video display method and device |
CN108966027A (en) * | 2018-08-15 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of audio video synchronization back method and device |
CN110049341B (en) * | 2019-03-08 | 2022-02-18 | 视联动力信息技术股份有限公司 | Video processing method and device |
CN111432150A (en) * | 2019-04-23 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Method and device for synchronously playing back videos |
CN110248047B (en) * | 2019-06-27 | 2021-06-15 | 深圳市拔超科技有限公司 | Synchronous switching method and system of video matrix |
CN110719529B (en) * | 2019-10-24 | 2021-11-23 | 北京文渊佳科技有限公司 | Multi-channel video synchronization method, device, storage medium and terminal |
CN110996139B (en) * | 2019-12-19 | 2022-04-29 | 浙江大华技术股份有限公司 | Video path switching processing method and device |
CN111935533B (en) * | 2020-07-06 | 2022-06-24 | 南京熊猫电子股份有限公司 | Multi-source measurement and control data playback method for unmanned aerial vehicle |
CN114827680A (en) * | 2022-04-21 | 2022-07-29 | 上海艺赛旗软件股份有限公司 | Multi-channel video synchronous playing method, system, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201781583U (en) * | 2010-01-22 | 2011-03-30 | 深圳市同洲电子股份有限公司 | Multichannel server video playback synchronous control system |
CN102231863A (en) * | 2011-06-02 | 2011-11-02 | 南京中兴力维软件有限公司 | Transmission method of multichannel video streams and system thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4483906B2 (en) * | 2007-08-08 | 2010-06-16 | ソニー株式会社 | INFORMATION PROVIDING SYSTEM, VIDEO REPRODUCTION DEVICE, INFORMATION PROVIDING DEVICE, INFORMATION PROVIDING METHOD, AND PROGRAM |
CN103686219B (en) * | 2012-09-24 | 2017-09-29 | 华为技术有限公司 | A kind of method, equipment and the system of video conference recorded broadcast |
CN103596033B (en) * | 2013-11-11 | 2017-01-11 | 北京佳讯飞鸿电气股份有限公司 | Method for solving problem of audio and video non-synchronization in multimedia system terminal playback |
CN103702013B (en) * | 2013-11-28 | 2017-02-01 | 北京航空航天大学 | Frame synchronization method for multiple channels of real-time videos |
-
2014
- 2014-06-27 CN CN201410302380.4A patent/CN105262979B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201781583U (en) * | 2010-01-22 | 2011-03-30 | 深圳市同洲电子股份有限公司 | Multichannel server video playback synchronous control system |
CN102231863A (en) * | 2011-06-02 | 2011-11-02 | 南京中兴力维软件有限公司 | Transmission method of multichannel video streams and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN105262979A (en) | 2016-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105262979B (en) | A kind of multi-video-stream render method and device | |
CN108702369B (en) | Interaction method and device for mobile terminal and cloud platform of unmanned aerial vehicle | |
CN106411927B (en) | A kind of monitoring video recording method and device | |
CN105120217B (en) | Intelligent camera mobile detection alert system and method based on big data analysis and user feedback | |
CN104967875B (en) | The method and apparatus that control monitor video checks permission | |
CN104469512B (en) | A kind of video player and its method for controlling video playback | |
PH12019500660A1 (en) | Devices, systems, and related methods for real-time monitoring and display of related data for gaming devices | |
CN110958446B (en) | Video service quality evaluation method, device, equipment and readable storage medium | |
CN105404266B (en) | A kind of method and device of monitoring area | |
RU2015146300A (en) | METHOD FOR MANAGING THE REVERB FIELD FOR IMMERSIVE AUDIO | |
CN103731631B (en) | The method, apparatus and system of a kind of transmitting video image | |
CN107800791B (en) | Debugging method and device | |
CN102917249B (en) | IPTV reservation systems and the reservation plan adding method based on the system | |
CN105429905A (en) | Method, device and system for monitoring advertisement putting terminal | |
CN107690081B (en) | Video playing method and device, storage medium and electronic device | |
CN108206958A (en) | A kind of method for obtaining video recording resource and association turn server | |
CN112866765A (en) | Processing system of media resource | |
WO2018232796A1 (en) | Method for processing streaming media file and live broadcast system | |
CN102789804B (en) | Video broadcasting method, player, monitor supervision platform and audio/video player system | |
KR20180091826A (en) | METHOD AND APPARATUS FOR TRIGGING INTERACTIVE APPLICATIONS | |
CN105989048A (en) | Data record processing method, equipment and system | |
CN109756616B (en) | Message processing method and device, storage medium and electronic device | |
CN104994412B (en) | A kind of information-pushing method and device | |
CN107613365A (en) | A kind of video broadcasting method and device | |
CN104537796A (en) | Alarm message processing system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |