CN109698965A - A kind of audio video synchronization playback method, device, equipment and computer storage medium - Google Patents
A kind of audio video synchronization playback method, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN109698965A CN109698965A CN201710986272.7A CN201710986272A CN109698965A CN 109698965 A CN109698965 A CN 109698965A CN 201710986272 A CN201710986272 A CN 201710986272A CN 109698965 A CN109698965 A CN 109698965A
- Authority
- CN
- China
- Prior art keywords
- video
- multimedia player
- information
- time point
- video file
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/232—Content retrieval operation locally within server, e.g. reading video streams from disk arrays
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the invention discloses a kind of audio video synchronization playback method, device, equipment and computer readable storage medium, including the LKJ log information according to user's input from retrieving all video informations in each video channel corresponding with target locomotive, in object time section in database;All video informations are grouped according to video channel number, and the video information in every group is ranked up according to chronological order, obtain respectively with each video channel each sequence of video information correspondingly;Receive the specified time point of user's input, and control each multimedia player according to corresponding sequence of video information the corresponding video file of the meshwork buffering from video server, and corresponding video file is played simultaneously since specified time point;Each multimedia player and each video channel correspond.The embodiment of the present invention greatly reduces workload in use, improves work efficiency, and versatility is stronger, convenient for centralized management.
Description
Technical field
The present embodiments relate to train operation monitoring technical field, more particularly to a kind of audio video synchronization playback method,
Device, equipment and computer readable storage medium.
Background technique
LKJ is train operation monitoring device, is the component part of Train operation control system system, is for preventing
Train overrun a signal, operation hypervelocity accident and donkey engine driver improve the important running equipment of maneuvering capability.Operation to LKJ
Monitoring record, which carries out analysis, will be seen that the operation conditions and each LKJ event of entire train, and usual LKJ analysis personnel are carrying out
When LKJ data are analyzed, the relevant engine video frequency of Synchronous LKJ event, and then assistant analysis LKJ event are needed.Therefore, it is necessary to
Broadcasting is synchronized to engine video frequency, scheme is played simultaneously in engine video frequency in the prior art mainly in advance will be under engine video frequency
Load is stored to the machine, then synchronizes broadcasting again.But due to the video file format of different automobile types difference, different-format
Video file need different software to be downloaded and play, and there are multiple video channels for the same locomotive, are carrying out
Audio video synchronization needs to store all video files downloading of each video channel relevant to locomotive to the machine, work before playing
Work amount is big, low efficiency, and is unfavorable for managing concentratedly.
Therefore, how a kind of audio video synchronization playback method, device, equipment and computer solving above-mentioned technical problem is provided
Readable storage medium storing program for executing becomes the current problem to be solved of those skilled in the art.
Summary of the invention
The purpose of the embodiment of the present invention is that providing a kind of audio video synchronization playback method, device, equipment and computer-readable depositing
Storage media greatly reduces workload in use, improves work efficiency, and versatility is stronger, convenient for centralized management.
In order to solve the above technical problems, the embodiment of the invention provides a kind of audio video synchronization playback methods, comprising:
LKJ log information according to user's input retrieves each video corresponding with target locomotive from database
All video informations in channel, in object time section;The LKJ log information includes locomotive information and institute
Object time section is stated, the locomotive information includes type of locomotive and engine number;
All video informations are grouped according to video channel number, and to the video information in every group according to the time
Sequencing is ranked up, obtain respectively with each video channel each sequence of video information correspondingly;
The specified time point of user's input is received, and controls each multimedia player according to corresponding sequence of video information
The corresponding video file of meshwork buffering from video server, and corresponding video is played simultaneously since the specified time point
File;Each multimedia player and each video channel correspond.
Optionally, the specified time point for receiving user's input, and each multimedia player is controlled according to corresponding
The corresponding video file of sequence of video information meshwork buffering from video server, and synchronize and broadcast since the specified time point
The process for putting corresponding video file includes:
S30: the specified time point of user's input is received;
S31: each multimedia player foundation and corresponding video information sequence are controlled according to the specified time point
Column find each target video file comprising the specified time point from video server, and by each target video file
Open juxtaposition halted state;
S32: each multimedia player of control determines the play time of target video file corresponding with its
Position is to the specified time point, and the corresponding target video file of meshwork buffering;
S33: being monitored the state of each multimedia player, when each equal network of multimedia player
When buffering finishes, each multimedia player is controlled from the specified time point pair and respective target video file
Synchronize broadcasting;
S34: the current play time according to each multimedia player updates current global video time;
S35: the end time for reaching the object time section is judged whether according to the current global video time, such as
Fruit is then to terminate to play;Otherwise, into S36;
S36: judging whether to need Switch Video file, if it is, using the current global video time as described in
Specified time point, and return to S31;Otherwise, S35 is returned to continue to update the current global video time.
Optionally, the video information includes type of locomotive, engine number, video channel number, video initial time, video knot
Beam time, video files names and video file path;
It is described to control each multimedia player foundation and corresponding video information sequence according to the specified time point
Column find the process of each target video file comprising the specified time point from video server
It is true from corresponding sequence of video information that each multimedia player is controlled according to the specified time point
Make corresponding each target video information;
According in each target video information video files names and video file path found from video server
Corresponding each target video file.
Optionally, described to judge whether that the process for needing Switch Video file includes:
When there is the target video file for playing and terminating in each target video file, then S31 is returned;
Or work as without video playing in some video channel, and the current global video time enters in the video channel
Some video file time interval in when, then return to S31.
The embodiment of the present invention provides a kind of audio video synchronization playing device accordingly, comprising:
Retrieval module, for being retrieved from database and target locomotive according to the LKJ log information of user's input
All video informations in corresponding each video channel, in object time section;The LKJ log information packet
Locomotive information and the object time section are included, the locomotive information includes type of locomotive and engine number;
Grouping module, for being grouped all video informations according to video channel number, and to the view in every group
Frequency information is ranked up according to chronological order, obtain respectively with each video channel each video information sequence correspondingly
Column;
Playing module for receiving the specified time point of user's input, and controls each multimedia player according to corresponding
Sequence of video information from video server the corresponding video file of meshwork buffering, and synchronized since the specified time point
Play corresponding video file;Each multimedia player and each video channel correspond.
Optionally, the playing module includes:
Receiving unit, for receiving the specified time point of user's input;
Unit is found, for controlling each multimedia player foundation and corresponding view according to the specified time point
Frequency information sequence finds each target video file comprising the specified time point from video server, and by each target
Video file opens juxtaposition halted state;
Positioning unit, for controlling each multimedia player broadcasting target video file corresponding with its
Timi requirement is put to the specified time point, and the corresponding target video file of meshwork buffering;
Monitoring unit is monitored for the state to each multimedia player, when each multimedia is broadcast
When putting the equal meshwork buffering of device and finishing, broadcast unit is triggered;
The broadcast unit, for control each multimedia player from the specified time point pair to respectively it is corresponding
Target video file synchronize broadcasting;
Updating unit, when updating current global video for the current play time according to each multimedia player
Between;
First judging unit, for judging whether to reach the object time section according to the current global video time
End time, if it is, terminate play;Otherwise, second judgment unit is triggered;
The second judgment unit needs Switch Video file for judging whether, if it is, triggering first returns to list
Member;Otherwise, the updating unit is triggered, continues to update the current global video time;
First return unit is used for using the current global video time as the specified time point, and triggers
It is described to find unit.
Optionally, the video information includes type of locomotive, engine number, video channel number, video initial time, video knot
Beam time, video files names and video file path;
The unit of finding includes:
Determine subelement, for according to the specified time point control each multimedia player from corresponding view
Corresponding each target video information is determined in frequency information sequence;
Search subelement, for according in each target video information video files names and video file path from view
Corresponding each target video file is found in frequency server.
The embodiment of the invention also provides a kind of audio video synchronization playback equipments, comprising:
Memory, for storing computer program;
Processor, the step of audio video synchronization playback method as described above is realized when for executing the computer program.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited on the computer readable storage medium
Computer program is contained, the computer program realizes the step of audio video synchronization playback method as described above when being executed by processor
Suddenly.
The embodiment of the invention provides a kind of audio video synchronization playback method, device, equipment and computer readable storage medium,
Including retrieving each video channel corresponding with target locomotive from database according to the LKJ log information of user's input
In, all video informations in object time section;LKJ log information includes locomotive information and object time area
Between, locomotive information includes type of locomotive and engine number;All video informations are grouped according to video channel number, and to every group
In video information be ranked up according to chronological order, obtain respectively with each video channel each video correspondingly
Information sequence;The specified time point of user's input is received, and controls each multimedia player according to corresponding video information sequence
Column corresponding video file of meshwork buffering from video server, and corresponding video text is played simultaneously since specified time point
Part;Each multimedia player and each video channel correspond.
It is that retrieval is each with corresponding locomotive according to finding that the embodiment of the present invention, which is with the LKJ log information of user's input,
A video channel is corresponding, each video information in object time section, and each video information is led to according to video
Taoist monastic name is grouped, and a multimedia player is distributed for each video channel, to make each multimedia player to packet
The video file for including specified time point carries out meshwork buffering from video server, control each multimedia player from it is specified when
Between point start that each video file that meshwork buffering finishes, comprising specified time point is played simultaneously.The embodiment of the present invention is right
Video file when video synchronizes broadcasting without that will need to play is locally downloading, greatly reduces workload, improves
Working efficiency, and multimedia player and video channel correspond, and versatility is stronger, and convenient for centralized management.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to institute in the prior art and embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of audio video synchronization playback method provided in an embodiment of the present invention;
Fig. 2 is schematic diagram when a kind of video file provided in an embodiment of the present invention records normal;
Fig. 3 is schematic diagram when a kind of video file node provided in an embodiment of the present invention misplaces;
Fig. 4 is schematic diagram when a kind of video file provided in an embodiment of the present invention lacks;
Fig. 5 is a kind of structural schematic diagram of audio video synchronization playing device provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of audio video synchronization playback method, device, equipment and computer readable storage medium,
Workload is greatly reduced in use, is improved work efficiency, and versatility is stronger, convenient for centralized management.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Generally there are multiple video recording devices on locomotive, to be distinguished with channel number, the minimum number of video channel is 2,
Up to 6, the recording rule of engine video frequency is usually continual recorded video, logical every period each video
Road will generate a video file, for example, 6A video is exactly one video file of generation in each video channel every 15 minutes, no
It is different with the interval time section of vehicle.
Fig. 1 is please referred to, Fig. 1 is a kind of flow diagram of audio video synchronization playback method provided in an embodiment of the present invention.
This method comprises:
S11: the LKJ log information according to user's input retrieves corresponding with target locomotive each from database
All video informations in video channel, in object time section;LKJ log information includes locomotive information and mesh
Time interval is marked, locomotive information includes type of locomotive and engine number;
It should be noted that LKJ, as train operation monitoring device, record has LKJ log relevant to train, use
Family can input the LKJ log information for needing to inquire by client, can specifically select from LKJ log accordingly
Select the LKJ log information for needing to inquire.Every LKJ log information in LKJ log include type of locomotive,
Engine number and time interval, to refer respectively to LKJ log information corresponding with the time is terminated for the initial time of the time interval
The initial time of whole process record and end time, the video in this time section is only retrieved when retrieving to video, in reality
The video time range recorded on locomotive in the application of border is greater than above-mentioned time interval.
In addition, it should be noted that the video file of engine video frequency relevant to locomotive is stored in video server,
And video information corresponding with video file is also stored in video server, wherein video information may include locomotive type
Number, engine number, video channel number, video initial time, video end time, video files names and video path, wherein view
Frequency information is stored in the database of video server.
Specifically, system receive user input LKJ log information after, can be according to the LKJ log
Type of locomotive and engine number in information match corresponding target locomotive into database, to determine according to target locomotive
Each video channel corresponding with target locomotive, further according to each video channel number and LKJ log information of target locomotive
In object time section determine, video initial time corresponding with each video channel in the target locomotive and view
Time range between the frequency end time exists and the equitant each video information in object time section.
For example, user need the time interval in the LKJ log information inquired be the morning 10:00 of some day extremely
11:00, target locomotive has 4 video channels, then full in all video informations relevant to the video channel 1 of target locomotive
The video information of foot-eye time interval includes video information 11, video information 12, video information 13 and video information 14;With view
It includes video information 21, video information 22, video information 23 that frequency channel 2 is relevant, meets the video information in object time section
With video information 24;Video information that is relevant to video channel 3, meeting object time section includes video information 31, video
Information 32, video information 33 and video information 34;Video information packet that is relevant to video channel 4, meeting object time section
Include video information 41, video information 42, video information 43 and video information 44.
It should be noted the view of first video information in each video information corresponding with some video channel
Frequency initial time is possible to the initial time earlier than object time section, and in first video information from video initial time to
In period between the video end time, there are the rear portion times in object time section, and with the video channel pair
The video end time for the last one video information answered is possible to be later than the end time in object time section namely the video
There are the front portion times in object time section in the last one corresponding video information of channel.
S12: all video informations are grouped according to video channel number, and to the video information in every group according to the time
Sequencing is ranked up, obtain respectively with each video channel each sequence of video information correspondingly;
Specifically, all video informations found in S11 are grouped according to video channel number, such as having 4
Video information, can be divided into 4 groups by the target locomotive of video channel, and when by each video information in every group according to recording
Between sequencing be ranked up, and then can be obtained by one group of sequence of video information corresponding with each video channel.
For example, the corresponding sequence of video information 1 of video channel 1 is (video information 11, video information 12, video information 13
With video information 14), wherein video information 11, video information 12, the sequence of video information 13 and video information 14 are video
The sequencing of recording time;The corresponding video sequence 2 of video channel 2 is (video information 21, video information 22, video information
23 and video information 24);The corresponding sequence of video information 3 of video channel 3 is (video information 31, video information 32, video information
33 and video information 34);The corresponding sequence of video information 4 of video channel 4 is (video information 41, video information 42, video information
43 and video information 44).
It should be noted that obtaining after distinguishing one-to-one each sequence of video information with each video channel, system
Also one and its one-to-one, multimedia multimedia player based on LibVLC will be distributed for each video channel, namely
Each video channel of target locomotive corresponds to a multimedia player and one group of sequence of video information.
S13: the specified time point of user's input is received, and controls each multimedia player according to corresponding video information
The corresponding video file of sequence meshwork buffering from video server, and corresponding video is played simultaneously since specified time point
File;Each multimedia player and each video channel correspond.
After completing retrieval video information and initialization multimedia player, user can specify above-mentioned object time section
Interior any point-in-time, and control the specified time point that each multimedia player is inputted from user and corresponding video is played simultaneously
File.
Specifically, each multimedia player can be looked for according to specified time point from corresponding sequence of video information
To corresponding video information, and according to video information from video server the corresponding video file of meshwork buffering, when network is slow
After punching, each corresponding video text is played simultaneously in each multimedia player since the specified time point that user inputs
Part.Whole process is not necessarily to download video files, and the speed of meshwork buffering substantially exceeds speed of download, saves Internet resources
The speed being played simultaneously is substantially increased simultaneously, and the corresponding multimedia player of each video channel is corresponding for playing
Video file in video channel, unrelated with the type of video file itself, versatility is stronger.
It should be noted that the specified time point that user inputs in the application is any time in object time section
Point, for example, object time section is the morning 10:00 to 11:00 of some day, then the specified time point of user's input must be at this
In object time section.In practical applications, user can input specified time point by client.In addition, the present invention is implemented
Example does not in use limit type of train and video type.
It is that retrieval is each with corresponding locomotive according to finding that the embodiment of the present invention, which is with the LKJ log information of user's input,
A video channel is corresponding, each video information in object time section, and each video information is led to according to video
Taoist monastic name is grouped, and a multimedia player is distributed for each video channel, to make each multimedia player to packet
The video file for including specified time point carries out meshwork buffering from video server, control each multimedia player from it is specified when
Between point start that each video file that meshwork buffering finishes, comprising specified time point is played simultaneously.The embodiment of the present invention is right
Video file when video synchronizes broadcasting without that will need to play is locally downloading, greatly reduces workload, improves
Working efficiency, and multimedia player and video channel correspond, and versatility is stronger, and convenient for centralized management.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution.It is specific:
Further, in above-mentioned S13 receive user input specified time point, and control each multimedia player according to
According to corresponding sequence of video information from video server the corresponding video file of meshwork buffering, and it is same since specified time point
Step plays the process of corresponding video file, can specifically include:
S30: the specified time point of user's input is received;
Specifically, user can input the specified time point being located in object time section, specified time by client
Point can be any point-in-time in object time section, which time point user specially in time interval can be according to reality
Border demand is determined.
S31: according to specified time point control each multimedia player according to corresponding sequence of video information from
Find each target video file comprising specified time point in video server, and by each target video File Open juxtaposition
Halted state;
Further, video information may include type of locomotive, engine number, video channel number, video initial time, view
Frequency end time, video files names and video file path;
Then, the foundation specified time point in corresponding above-mentioned S31 control each multimedia player according to it is respectively corresponding
Sequence of video information the process of each target video file comprising specified time point is found from video server, specifically may be used
With are as follows:
S311: it is true from corresponding sequence of video information that each multimedia player is controlled according to specified time point
Make corresponding each target video information;
S312: according in each target video information video files names and video file path from video server
Find corresponding each target video file.
It should be noted that the specified time point that is inputted according to user of each multimedia player from corresponding view
The target video information comprising the specified time point is found in frequency information sequence, when can originate according to the video in video information
Between and the video end time determine in the video information whether comprising specified time point, for example, the video in sequence of video information 2
Information 21, video information 22, the video initial time of video information 23 and video information 24 and video end time are respectively 10:
00-10:15,10:15-10:30,10:30-10:45,10:45-11:00, specified time point is 10:18, then when specifying comprising this
Between the target video information put be video information 22.Foundation above method target video information corresponding with each video channel,
Each multimedia player according to in its corresponding target video information video files names and video file path
Corresponding target video file is found from video server.
For example, target video file corresponding with multimedia player 1 is video file 12, it is right with multimedia player 2
The target video file answered is video file 22, and target video file corresponding with multimedia player 3 is video file 32, with
The corresponding target video file of video file 4 is video file 42, and controlling each multimedia player will be respectively right with it
The target video File Open juxtaposition halted state answered.
S32: control each multimedia player by the play time of target video file corresponding with its position to
Specified time point, and the corresponding target video file of meshwork buffering;
It should be noted that each multimedia player will be distinguished with the play time of corresponding target video file
Start each target video file of meshwork buffering, and real-time update meshwork buffering state after positioning to specified time point.
S33: being monitored the state of each multimedia player, when the equal meshwork buffering of each multimedia player finishes
When, each multimedia player, which is controlled, from specified time point pair and respective target video file synchronizes broadcasting;
Specifically, by the state of real-time monitoring multimedia player, with judge corresponding multimedia player whether net
Network buffering complete, when each multimedia player meshwork buffering after the completion of, control each multimedia player from specified time
Point starts to be played simultaneously and its corresponding target video file.
For example, when multimedia player 1, multimedia player 2, multimedia player 3 and multimedia player 4 are by phase
It is more after the target video file video file 12 answered, 42 meshwork buffering of video file 22, video file 32 and video file
Media player 1, multimedia player 2, multimedia player 3 and multimedia player 4 from specified time point 10:18 (
The 0:03 of i.e. each target video file) start that each target video file is played simultaneously.
S34: the current play time according to each multimedia player updates current global video time;
While synchronizing broadcasting to each target video file, according to the current play time of target video file
Current global video time is updated, for example, specified time point is 10:18, the video time started of target video file
For 10:15, the current play time of target video file is 0:10, then current global video time is 10:25.
S35: judging whether the end time for reaching object time section according to current global video time, if it is,
Terminate to play;Otherwise, into S36;
It is understood that while real-time update currently global video time, it can also be according to updated current
Global video time judges whether to reach the end time in object time section, for example, the end time in object time section is
10:25, and current global video time is also 10:25, then terminate to play namely object time section that user needs to inquire in
Video finished.If the end time in object time section is 11:00, current overall situation video time is 10:25,
The end time in object time section then has not been reached yet, so when need enter S36, to carry out follow-up work.
S36: judging whether to need Switch Video file, if it is, by current global video time as specified time
Point, and return to S31;Otherwise, S35 is returned to continue to update current global video time.
It is understood that each after contraposition is put at fixed time since the specified time point that user inputs due to needing
A video file synchronizes broadcasting, so after determining corresponding target video file according to specified time point, and from this
Specified time point starts after each target video file is played simultaneously, it is also necessary to be located at corresponding video channel in, be located at should
Other video files after target video file synchronize broadcasting, therefore need to judge whether to need Switch Video file, if
Switch Video file is needed, then current global video time is returned into S31 as specified time point, and control each multimedia
Player determines new target video file according to current global time, then when completing meshwork buffering and from the current overall situation
Between start the process that broadcasting is synchronized to each new target video file, until when current global video time reaches target
Between section end time when, terminate play.
Specifically, the process for judging whether to need Switch Video file in above-mentioned S36, can specifically include:
When there is the target video file for playing and terminating in each target video file, then S31 is returned;
Or when without video playing, and currently, global video time enters some view in video channel in some video channel
When in the time interval of frequency file, then S31 is returned.
It should be noted that exactly being needed when there is the target video file for playing and terminating in each target video file
Switch Video file is wanted, is directly returned at this time then by current global video time as specified time point, and return to S31.
Specifically, should be for the recording time of each video file in a video channel it is end to end, i.e.,
The video end time of a upper video file is the video time started of next video file to connect with it, and each
The duration of each video file in video channel is identical, specific as shown in Fig. 2, being when in each target video file at this time
After all target video files play, S31 is returned.
But in a practical situation, the recording time of each video file in some possible video channel may not
Be it is end to end, that is, there is the phenomenon that video time dislocation, specifically as shown in figure 3, at this point, to each target video file
When synchronizing broadcasting, it is understood that there may be a target video file terminates in advance broadcasting namely the reality of the target video file
Duration be less than video file standard time duration, for example, the target video file it is practical when 10 minutes a length of, each video
A length of 15 minutes when the standard of file, judging whether to need the rule of Switch Video file at this time is when each target video file
In some target video file play in advance at the end of, current overall situation video time enters positioned at the next of the video channel
When in the time interval of a video file, S31 is returned to, and after returning to S31, current overall situation video time is new specifies
At time point, multimedia player corresponding with each video channel is tentative at this time plays, and according to current global video time
New target video file is found, at this point, at this time including working as terminating in advance the video channel where the video file of broadcasting
The video file of preceding overall situation video time is next video file, and in addition includes current global video in several video channels
The video file of time is still the last target video file found, so only needing to regard new-found target at this time
Frequency file carries out meshwork buffering, and after its meshwork buffering, each multimedia player is again simultaneously from current global view
The frequency time starts that each target video file is played simultaneously.
In addition, the case where being lacked during actual video record there is likely to be video file, specifically such as Fig. 4 institute
Show, in this case, that is, need to judge whether there is in some video channel without video playing, if it does, and current
When global video time is entered in the time interval of some video file in the video channel, then S31 is returned to determine newly
Target video file, to carry out the switching of video file.
The embodiment of the invention also discloses a kind of audio video synchronization playing devices accordingly, and specifically referring to figure 5., Fig. 5 is this
A kind of structural schematic diagram for audio video synchronization playing device that inventive embodiments provide.On the basis of the above embodiments:
The device includes:
Retrieval module 1, for being retrieved from database and target locomotive according to the LKJ log information of user's input
All video informations in corresponding each video channel, in object time section;LKJ log information includes machine
Vehicle information and object time section, locomotive information include type of locomotive and engine number;
Grouping module 2 is believed for being grouped all video informations according to video channel number, and to the video in every group
Breath is ranked up according to chronological order, obtain respectively with each video channel each sequence of video information correspondingly;
Playing module 3 for receiving the specified time point of user's input, and controls each multimedia player according to corresponding
Sequence of video information from video server the corresponding video file of meshwork buffering, and be played simultaneously since specified time point
Corresponding video file;Each multimedia player and each video channel correspond.
Optionally, playing module 3 includes:
Receiving unit, for receiving the specified time point of user's input;
Unit is found, is believed for controlling each multimedia player according to specified time point according to corresponding video
Breath sequence finds each target video file comprising specified time point from video server, and by each target video file
Open juxtaposition halted state;
Positioning unit, when for controlling broadcasting of each multimedia player by target video file corresponding with its
Between positioning to specified time point, and the corresponding target video file of meshwork buffering;
Monitoring unit is monitored for the state to each multimedia player, when each multimedia player net
When network buffering finishes, broadcast unit is triggered;
Broadcast unit, for controlling each multimedia player from specified time point pair and respective target video text
Part synchronizes broadcasting;
Updating unit updates current global video time for the current play time according to each multimedia player;
First judging unit, for being judged whether at the end of reaching object time section according to current global video time
Between, if it is, terminating to play;Otherwise, second judgment unit is triggered;
Second judgment unit needs Switch Video file for judging whether, if it is, the first return unit of triggering;
Otherwise, updating unit is triggered, continues to update current global video time;
First return unit is used for current global video time as specified time point, and triggers and find unit.
Optionally, at the end of video information includes type of locomotive, engine number, video channel number, video initial time, video
Between, video files names and video file path;
Finding unit includes:
It determines subelement, believes for controlling each multimedia player according to specified time point from corresponding video
Corresponding each target video information is determined in breath sequence;
Search subelement, for according in each target video information video files names and video file path from view
Corresponding each target video file is found in frequency server.
It should be noted that the embodiment of the present invention is to be found with the LKJ log information of user's input for retrieval foundation
Each video information corresponding with each video channel of corresponding locomotive, in object time section, and by each video
Information is grouped according to video channel number, a multimedia player is distributed for each video channel, to make each more
Media player carries out meshwork buffering to the video file for including specified time point from video server, controls each multimedia
Each video file that meshwork buffering finishes, comprising specified time point is played simultaneously in player since specified time point.This
Video file of the inventive embodiments when synchronizing broadcasting to video without that will need to play is locally downloading, greatly reduces
Workload improves work efficiency, and multimedia player and video channel correspond, and versatility is stronger, and convenient for collection
Middle management.
In addition, being please referred to for the specific introduction of audio video synchronization playback method involved in the embodiment of the present invention above-mentioned
Embodiment of the method, details are not described herein by the application.
The embodiment of the invention also provides a kind of audio video synchronization playback equipments, comprising:
Memory, for storing computer program;
Processor is realized when for executing computer program such as the step of above-mentioned audio video synchronization playback method.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored on computer readable storage medium
Computer program is realized when computer program is executed by processor such as the step of above-mentioned audio video synchronization playback method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In the storage medium of any other forms well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (9)
1. a kind of audio video synchronization playback method characterized by comprising
LKJ log information according to user's input retrieves each video channel corresponding with target locomotive from database
In, all video informations in object time section;The LKJ log information includes locomotive information and the mesh
Time interval is marked, the locomotive information includes type of locomotive and engine number;
All video informations are grouped according to video channel number, and to the video information in every group according to time order and function
Sequence is ranked up, obtain respectively with each video channel each sequence of video information correspondingly;
The specified time point of user's input is received, and controls each multimedia player according to corresponding sequence of video information from view
The corresponding video file of meshwork buffering in frequency server, and corresponding video text is played simultaneously since the specified time point
Part;Each multimedia player and each video channel correspond.
2. audio video synchronization playback method according to claim 1, which is characterized in that it is described receive user input it is specified when
Between point, and control each multimedia player the meshwork buffering from video server be corresponding according to corresponding sequence of video information
Video file, and the process that corresponding video file is played simultaneously since the specified time point includes:
S30: the specified time point of user's input is received;
S31: according to the specified time point control each multimedia player according to corresponding sequence of video information from
Find each target video file comprising the specified time point in video server, and by each target video File Open
Juxtaposition halted state;
S32: each multimedia player of control by the play time of target video file corresponding with its position to
The specified time point, and the corresponding target video file of meshwork buffering;
S33: being monitored the state of each multimedia player, when each equal meshwork buffering of multimedia player
When finishing, controls each multimedia player and carried out from the specified time point pair and respective target video file
It is played simultaneously;
S34: the current play time according to each multimedia player updates current global video time;
S35: judging whether the end time for reaching the object time section according to the current global video time, if
It is then to terminate to play;Otherwise, into S36;
S36: judging whether to need Switch Video file, if it is, using the current global video time as described specified
Time point, and return to S31;Otherwise, S35 is returned to continue to update the current global video time.
3. audio video synchronization playback method according to claim 2, which is characterized in that the video information includes locomotive type
Number, engine number, video channel number, video initial time, video end time, video files names and video file path;
It is described according to the specified time point control each multimedia player according to corresponding sequence of video information from
The process that each target video file comprising the specified time point is found in video server includes:
Each multimedia player is controlled according to the specified time point to determine from corresponding sequence of video information
Corresponding each target video information;
According in each target video information video files names and video file path found from video server accordingly
Each target video file.
4. audio video synchronization playback method according to claim 2 or 3, which is characterized in that described to judge whether to need to switch
The process of video file includes:
When there is the target video file for playing and terminating in each target video file, then S31 is returned;
Or work as without video playing in some video channel, and the current global video time enters certain in the video channel
When in the time interval of a video file, then S31 is returned.
5. a kind of audio video synchronization playing device characterized by comprising
Retrieval module, it is corresponding with target locomotive for being retrieved from database according to the LKJ log information of user's input
Each video channel in, all video informations in object time section;The LKJ log information includes machine
Vehicle information and the object time section, the locomotive information include type of locomotive and engine number;
Grouping module is believed for being grouped all video informations according to video channel number, and to the video in every group
Breath is ranked up according to chronological order, obtain respectively with each video channel each sequence of video information correspondingly;
Playing module for receiving the specified time point of user's input, and controls each multimedia player according to corresponding view
The corresponding video file of frequency information sequence meshwork buffering from video server, and be played simultaneously since the specified time point
Corresponding video file;Each multimedia player and each video channel correspond.
6. audio video synchronization playing device according to claim 5, which is characterized in that the playing module includes:
Receiving unit, for receiving the specified time point of user's input;
Unit is found, is believed for controlling each multimedia player according to the specified time point according to corresponding video
Breath sequence finds each target video file comprising the specified time point from video server, and by each target video
File Open juxtaposition halted state;
Positioning unit, when for controlling broadcasting of each multimedia player by target video file corresponding with its
Between positioning to the specified time point, and the corresponding target video file of meshwork buffering;
Monitoring unit is monitored for the state to each multimedia player, when each multimedia player
When equal meshwork buffering finishes, broadcast unit is triggered;
The broadcast unit, for controlling each multimedia player from the specified time point pair and respective mesh
Mark video file synchronizes broadcasting;
Updating unit updates current global video time for the current play time according to each multimedia player;
First judging unit, for judging whether the knot for reaching the object time section according to the current global video time
The beam time, if it is, terminating to play;Otherwise, second judgment unit is triggered;
The second judgment unit needs Switch Video file for judging whether, if it is, the first return unit of triggering;
Otherwise, the updating unit is triggered, continues to update the current global video time;
First return unit is used for using the current global video time as the specified time point, and described in triggering
Find unit.
7. audio video synchronization playing device according to claim 6, which is characterized in that the video information includes locomotive type
Number, engine number, video channel number, video initial time, video end time, video files names and video file path;
The unit of finding includes:
It determines subelement, believes for controlling each multimedia player according to the specified time point from corresponding video
Corresponding each target video information is determined in breath sequence;
Search subelement, for according in each target video information video files names and video file path from video take
Corresponding each target video file is found in business device.
8. a kind of audio video synchronization playback equipment characterized by comprising
Memory, for storing computer program;
Processor realizes that audio video synchronization plays as described in Claims 1-4 any one when for executing the computer program
The step of method.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the audio video synchronization broadcasting side as described in Claims 1-4 any one when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710986272.7A CN109698965B (en) | 2017-10-20 | 2017-10-20 | Video synchronous playing method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710986272.7A CN109698965B (en) | 2017-10-20 | 2017-10-20 | Video synchronous playing method, device, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109698965A true CN109698965A (en) | 2019-04-30 |
CN109698965B CN109698965B (en) | 2021-07-30 |
Family
ID=66226475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710986272.7A Active CN109698965B (en) | 2017-10-20 | 2017-10-20 | Video synchronous playing method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109698965B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111601135A (en) * | 2020-05-09 | 2020-08-28 | 青岛海信传媒网络技术有限公司 | Method for synchronously injecting audio and video elementary streams and display equipment |
CN112272305A (en) * | 2020-09-28 | 2021-01-26 | 天下秀广告有限公司 | Multi-channel real-time interactive video cache storage method |
CN112788282A (en) * | 2019-11-08 | 2021-05-11 | 株洲中车时代电气股份有限公司 | Video information acquisition method and application thereof |
CN113139081A (en) * | 2021-04-27 | 2021-07-20 | 中山亿联智能科技有限公司 | Method for reporting and reading user online playing information with high efficiency and low delay |
CN113938622A (en) * | 2021-12-15 | 2022-01-14 | 慕思健康睡眠股份有限公司 | Blood pressure detection device based on asynchronously recorded video and storage medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716242A (en) * | 2004-06-28 | 2006-01-04 | 千乡万才科技(中国)有限公司 | Broadcasting method and system for computer multimedia files |
CN101227594A (en) * | 2008-02-01 | 2008-07-23 | 深圳市迅雷网络技术有限公司 | On-line video playing control method, apparatus and on-line video player generating method |
CN101727493A (en) * | 2009-12-31 | 2010-06-09 | 成都运达创新科技有限公司 | Video file retrieval method of locomotive monitoring system |
CN102789804A (en) * | 2011-05-17 | 2012-11-21 | 华为软件技术有限公司 | Video playing method, player, monitoring platform and video playing system |
US20130135678A1 (en) * | 1997-10-27 | 2013-05-30 | Canon Kabushiki Kaisha | Data communication apparatus and method |
CN103929611A (en) * | 2013-01-10 | 2014-07-16 | 杭州海康威视数字技术股份有限公司 | Multipicture page-splitting play method |
US20160065790A1 (en) * | 2014-08-29 | 2016-03-03 | Seiko Epson Corporation | Printing control device and printing control method |
CN105578073A (en) * | 2015-12-23 | 2016-05-11 | 浙江大华技术股份有限公司 | Video monitoring image display method and device |
CN105843884A (en) * | 2016-03-21 | 2016-08-10 | 西安银石科技发展有限责任公司 | LKJ and audio-video synchronization based intelligent retrieval analysis method |
CN106448336A (en) * | 2016-12-27 | 2017-02-22 | 郑州爱普锐科技有限公司 | Railway locomotive simulative operation training system and method thereof |
CN106488336A (en) * | 2016-11-21 | 2017-03-08 | 株洲中车时代电气股份有限公司 | A kind of engine video frequency transmission method based on event corner and system |
CN106649745A (en) * | 2016-12-26 | 2017-05-10 | 河南思维信息技术有限公司 | Locomotive application comprehensive analysis method |
CN107139972A (en) * | 2017-06-13 | 2017-09-08 | 湖南中车时代通信信号有限公司 | A kind of method of equipment fault intelligent diagnostics and processing pin number for Locomotive Running Monitor System |
CN107205174A (en) * | 2017-07-14 | 2017-09-26 | 广东工业大学 | A kind of quick playback video file method and system |
-
2017
- 2017-10-20 CN CN201710986272.7A patent/CN109698965B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130135678A1 (en) * | 1997-10-27 | 2013-05-30 | Canon Kabushiki Kaisha | Data communication apparatus and method |
CN1716242A (en) * | 2004-06-28 | 2006-01-04 | 千乡万才科技(中国)有限公司 | Broadcasting method and system for computer multimedia files |
CN101227594A (en) * | 2008-02-01 | 2008-07-23 | 深圳市迅雷网络技术有限公司 | On-line video playing control method, apparatus and on-line video player generating method |
CN101727493A (en) * | 2009-12-31 | 2010-06-09 | 成都运达创新科技有限公司 | Video file retrieval method of locomotive monitoring system |
CN102789804A (en) * | 2011-05-17 | 2012-11-21 | 华为软件技术有限公司 | Video playing method, player, monitoring platform and video playing system |
CN103929611A (en) * | 2013-01-10 | 2014-07-16 | 杭州海康威视数字技术股份有限公司 | Multipicture page-splitting play method |
US20160065790A1 (en) * | 2014-08-29 | 2016-03-03 | Seiko Epson Corporation | Printing control device and printing control method |
CN105578073A (en) * | 2015-12-23 | 2016-05-11 | 浙江大华技术股份有限公司 | Video monitoring image display method and device |
CN105843884A (en) * | 2016-03-21 | 2016-08-10 | 西安银石科技发展有限责任公司 | LKJ and audio-video synchronization based intelligent retrieval analysis method |
CN106488336A (en) * | 2016-11-21 | 2017-03-08 | 株洲中车时代电气股份有限公司 | A kind of engine video frequency transmission method based on event corner and system |
CN106649745A (en) * | 2016-12-26 | 2017-05-10 | 河南思维信息技术有限公司 | Locomotive application comprehensive analysis method |
CN106448336A (en) * | 2016-12-27 | 2017-02-22 | 郑州爱普锐科技有限公司 | Railway locomotive simulative operation training system and method thereof |
CN107139972A (en) * | 2017-06-13 | 2017-09-08 | 湖南中车时代通信信号有限公司 | A kind of method of equipment fault intelligent diagnostics and processing pin number for Locomotive Running Monitor System |
CN107205174A (en) * | 2017-07-14 | 2017-09-26 | 广东工业大学 | A kind of quick playback video file method and system |
Non-Patent Citations (1)
Title |
---|
赵东源: "LKJ与音视频联动分析系统的设计与实现", 《郑州大学》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112788282A (en) * | 2019-11-08 | 2021-05-11 | 株洲中车时代电气股份有限公司 | Video information acquisition method and application thereof |
CN112788282B (en) * | 2019-11-08 | 2022-04-12 | 株洲中车时代电气股份有限公司 | Video information acquisition method |
CN111601135A (en) * | 2020-05-09 | 2020-08-28 | 青岛海信传媒网络技术有限公司 | Method for synchronously injecting audio and video elementary streams and display equipment |
CN112272305A (en) * | 2020-09-28 | 2021-01-26 | 天下秀广告有限公司 | Multi-channel real-time interactive video cache storage method |
CN112272305B (en) * | 2020-09-28 | 2023-03-24 | 天下秀广告有限公司 | Multi-channel real-time interactive video cache storage method |
CN113139081A (en) * | 2021-04-27 | 2021-07-20 | 中山亿联智能科技有限公司 | Method for reporting and reading user online playing information with high efficiency and low delay |
CN113139081B (en) * | 2021-04-27 | 2023-10-27 | 中山亿联智能科技有限公司 | Method for reporting online playing information of reading user with high efficiency and low delay |
CN113938622A (en) * | 2021-12-15 | 2022-01-14 | 慕思健康睡眠股份有限公司 | Blood pressure detection device based on asynchronously recorded video and storage medium |
CN113938622B (en) * | 2021-12-15 | 2022-02-15 | 慕思健康睡眠股份有限公司 | Blood pressure detection device based on asynchronously recorded video and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109698965B (en) | 2021-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109698965A (en) | A kind of audio video synchronization playback method, device, equipment and computer storage medium | |
CN104715770B (en) | A kind of method for playing music and device | |
US8881012B2 (en) | Video storage and retrieval system and method | |
KR20190073418A (en) | Method and apparatus for pushing information | |
CN104281651B (en) | A kind of method and its system of massive video data retrieval | |
CN102999550A (en) | Event searching | |
CN105227656A (en) | Based on information-pushing method and the device of speech recognition | |
CN102244758A (en) | Video-recording-file-based data acquisition method and equipment | |
CN111125065B (en) | Visual data synchronization method, system, terminal and computer readable storage medium | |
CN111773684B (en) | Game data processing method and device, electronic equipment and storage medium | |
CN102970281A (en) | Method for processing multimedia playing records, user terminal and server | |
CN104581218A (en) | Method and device for monitoring flow direction of network television audiences | |
CN102081947A (en) | Management control method of video and audio file on embedded multimedia system | |
CN108076376A (en) | A kind of video location back method and device based on video cloud storage system | |
CN107105323A (en) | A kind of video pushing method and device | |
CN110198494A (en) | A kind of video broadcasting method, device, equipment and storage medium | |
US20200342021A1 (en) | Method for Managing Multimedia Files | |
JP4602535B2 (en) | Schedule execution management apparatus and management method | |
JP4576133B2 (en) | Network conference system, conference terminal and conference server | |
CN104581226A (en) | Method and device for recommending programs by aiming at current live stream | |
CN101197994A (en) | Video and audio synchronization process | |
CN106605412A (en) | Improved interface for accessing television programs | |
US9478258B2 (en) | Method of recording multiple highlights concurrently | |
CN103369397A (en) | Method and device for independently updating program lists of display contents of multiple areas in display screen | |
CN114051162B (en) | Caching method and device based on play records |
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 |