CN109600653A - Playback method, device and the electronic equipment of video file - Google Patents
Playback method, device and the electronic equipment of video file Download PDFInfo
- Publication number
- CN109600653A CN109600653A CN201710923012.5A CN201710923012A CN109600653A CN 109600653 A CN109600653 A CN 109600653A CN 201710923012 A CN201710923012 A CN 201710923012A CN 109600653 A CN109600653 A CN 109600653A
- Authority
- CN
- China
- Prior art keywords
- video
- played
- video file
- file
- frame
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
-
- 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Abstract
The embodiment of the invention provides a kind of playback method of video file, device and electronic equipment, in this method, video file to be played is obtained first;Judge different scene informations whether is carried in video file to be played;If so, video file to be played is divided into the first quantity video clip based on different scene informations;Then the second quantity video playback window is created again;Above-mentioned first quantity video clip is separately dispensed into above-mentioned second quantity video playback window and is played out, wherein the second quantity is the positive integer greater than 2.Scheme provided in an embodiment of the present invention can reduce the playing duration of video file to be played, and the viewer of video is enabled to obtain the video content information in video file to be played in a short time.
Description
Technical field
The present invention relates to field of video broadcasting technology, more particularly to the playback method, device and electricity of a kind of video file
Sub- equipment.
Background technique
Video file refers mainly to those and contains the multimedia file of audio, video information, and certainly, video file can also be with
Being includes video information, but does not include the multimedia file for having audio-frequency information, for example, including multiple views in certain video file
Frequency frame, but do not include audio frame.
Video file is usually directly played in a video playback window when played.And for video record etc.
Certain special video files, the viewer of video file wishes can be completely clear in a short time by video playback apparatus
The video content look in video file, still, a video file is carried out by a video playback window in the prior art
It plays, causes the play time of video file long.
Summary of the invention
The playback method, device and electronic equipment for being designed to provide a kind of video file of the embodiment of the present invention, with
When playing video file to be played, video file to be played is divided into multiple video clips, and will divide obtained multiple
Video clip, which is assigned in multiple video playback windows, synchronizes broadcasting, achievees the purpose that reduce video file playing duration,
It enables a viewer to browse the video content in video file to be played in a short time.Specific technical solution is as follows:
In order to achieve the above object, in a first aspect, the embodiment of the invention provides a kind of playback method of video file, the side
Method includes:
Obtain video file to be played;
Judge whether carry different scene informations in the video file to be played;
If so, the video file to be played is divided into the first quantity view based on the different scene information
Frequency segment;
Create the second quantity video playback window, wherein second quantity is the positive integer greater than 2;
The first quantity video clip is separately dispensed into the second quantity video playback window and is broadcast
It puts.
Optionally, described based on the different scene information, the video file to be played is divided into the first quantity
The step of a video clip, comprising:
Based on the different scene information and geographical location information, camera identification information, acquisition time information,
At least one of environmental information is monitored, the video file to be played is divided into the first quantity video clip.
Optionally, the video file to be played includes privately owned frame;
It is described to judge the step of whether carrying different scene informations in the video file to be played, comprising:
Judge whether carry different scene informations in all privately owned frames of the video file to be played;
If carried, determine to carry different scene informations in the video file to be played;
If do not carried, determine not carrying different scene informations in the video file to be played.
Optionally, described to judge the step of whether carrying different scene informations in the video file to be played, packet
It includes:
Judge whether carry different scene informations in all video frames of the video file to be played;
If carried, determine to carry different scene informations in the video file to be played;
If do not carried, determine not carrying different scene informations in the video file to be played.
Optionally, described based on the different scene information, the video file to be played is divided into the first quantity
The step of a video clip, comprising:
Video according to the corresponding scene information of each video frame in same video clip in identical and adjacent video clip
The video file to be played is divided into the first quantity piece of video by the different division mode of the corresponding scene information of frame
Section;
Or,
It is greater than preset duration threshold value according to the corresponding playing duration of video clip, and in adjacent video clip, previous video
The corresponding scene information of the last one video frame is different from the corresponding scene of first video frame in latter video clip in segment
The video file to be played is divided into the first quantity video clip by the division mode of information.
Optionally, before the second quantity video playback window of the creation the step of, the method also includes:
Judge whether first quantity is greater than number of windows threshold value,
If it does, executing the second quantity video of the creation using the number of windows threshold value as the second quantity and broadcasting
The step of putting window;
If it is not greater, executing the second quantity video playing of the creation using first quantity as the second quantity
The step of window.
Second aspect, the embodiment of the invention provides a kind of playing device of video file, described device includes:
Module is obtained, for obtaining video file to be played;
First judgment module, for judging whether carry different scene informations in the video file to be played;
Division module, for the judging result of the first judgment module be in the case where, based on described different
The video file to be played is divided into the first quantity video clip by scene information;
Creation module, for creating the second quantity video playback window, wherein second quantity is just greater than 2
Integer;
Playing module, for the first quantity video clip to be separately dispensed into the second quantity video playing
It is played out in window.
Optionally, the division module, is specifically used for:
In the case where the judging result of the first judgment module, which is, is, based on the different scene information, and
At least one of geographical location information, camera identification information, acquisition time information, monitoring environmental information, by described wait broadcast
It puts video file and is divided into the first quantity video clip.
Optionally, the video file to be played includes privately owned frame;
The first judgment module, is specifically used for:
Judge whether carry different scene informations in all privately owned frames of the video file to be played;If taken
Band determines to carry different scene informations in the video file to be played;If do not carried, the video to be played is determined
Different scene informations is not carried in file.
Optionally, the first judgment module, is specifically used for:
Judge whether carry different scene informations in all video frames of the video file to be played;If taken
Band determines to carry different scene informations in the video file to be played;If do not carried, the video to be played is determined
Different scene informations is not carried in file.
Optionally, the division module, is specifically used for:
In the case where the judging result of the first judgment module, which is, is, according to each video frame in same video clip
Corresponding scene information is identical and adjacent video clip in the different division mode of the corresponding scene information of video frame,
The video file to be played is divided into the first quantity video clip;
Or,
It is big according to the corresponding playing duration of video clip in the case where the judging result of the first judgment module, which is, is
In preset duration threshold value, and in adjacent video clip, in previous video clip, the corresponding scene information of the last one video frame is not
It is same as the division mode of the corresponding scene information of first video frame in latter video clip, the video file to be played is drawn
It is divided into the first quantity video clip.
Optionally, described device further include:
Second judgment module, for judging that first quantity is before creating the second quantity video playback window
It is no to be greater than number of windows threshold value, if it does, executing second number of creation using the number of windows threshold value as the second quantity
The step of measuring a video playback window;If it is not greater, executing the creation second using first quantity as the second quantity
The step of quantity video playback window.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including processor and memory,
Wherein, memory, for storing program code;
Processor when for executing the program code stored on memory, realizes the broadcasting of any of the above-described video file
Method and step described in method.
As known from the above, in scheme provided in an embodiment of the present invention, after obtaining video file to be played, first determine whether to
Whether different scene information is carried in playing video file;If so, based on different scene informations, by video to be played
File is divided into the first quantity video clip;Then the second quantity video playback window is created, and first quantity is a
Video clip is assigned in the second quantity video playback window and plays out, wherein second quantity is greater than 1.With it is existing
Technology is compared, and in scheme provided in an embodiment of the present invention, the feelings of different scene informations are carried in video file to be played
Under condition, video file to be played can be divided into multiple video clips according to different scene informations, obtained by then dividing
Multiple video clips carry out multiwindow be played simultaneously, this programme can reduce the playing duration of video file to be played so that
The viewer of video can obtain the video content information in video file to be played in a short time.Also, due to view to be played
Frequency file is divided based on scene information, so the video content in video file to be played under Same Scene can be
It is continuously played in same broadcast window, the friendliness of video playing is high, ensure that user experience effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the playback method for video file that one embodiment of the invention provides;
Fig. 2 be the present embodiments relate to video file inside composed structure schematic diagram;
Fig. 3 be the present embodiments relate to privately owned frame inside composed structure schematic diagram;
Fig. 4 be the present embodiments relate to video display interface schematic diagram;
Fig. 5 be another embodiment of the present invention provides a kind of video file playback method flow diagram;
Fig. 6 is a kind of structural schematic diagram of the playing device for video file that one embodiment of the invention provides;
Fig. 7 be another embodiment of the present invention provides a kind of video file playing device structural schematic diagram;
Fig. 8 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Technical term involved in present specification is simply introduced first below.
Scene can refer to video capture device when shooting video, and video capture device is used to acquire video pictures
Scene, for example, above-mentioned scene can be mobile detection scene, target for being used to carry out the monitoring device of video monitoring
Track scene, intrusion detection scene etc..
Scene information involved in present specification is then scene corresponding to each video frame in characterization video file
Information, it is to be appreciated that the scene information can be the raw information for directly showing scene, for example, including word in the scene information
Section " mobile detection ";The scene information can also be the information of the mark of record scene, and video playback apparatus is according to preset field
The mark of scape and the corresponding relationship of raw information determine that certain identifies the raw information of corresponding scene, for example, being directed to a certain mark
X, video playback apparatus search the mark of preset scene and the mapping table of raw information, determine that corresponding mark x is corresponding
Scene raw information be " target following ".
It should be noted that scene information involved in present specification, when being that equipment generates video file, equipment is added
The information being added in video file;For example, monitoring device carries out video monitoring for a certain scene in surveillance video field
When, the corresponding scene information of the scene can be added in monitoring device video record file collected.
In order to solve to play by list window in the prior art, play time caused by video file to be played is long to be asked
Topic, the embodiment of the invention provides a kind of playback method of video file, device and electronic equipments.
It describes in detail below by specific embodiment to the present invention.
A kind of playback method of video file provided in an embodiment of the present invention can be applied to video playback apparatus, the video
Playback equipment can be computer, television set etc., and the embodiment of the present invention does not limit the concrete form of the video playback apparatus.
A kind of playback method of video file provided in an embodiment of the present invention, as shown in Figure 1, this method comprises:
S101: video file to be played is obtained.
Video file to be played in the embodiment of the present invention, which can be, acquires acquisition, example by an image capture device
Such as, a certain monitoring device is shot in a certain period of time video file or its shot within multiple periods it is more
The complete video file that a video file combines.The video file to be played can also be by least two Image Acquisition
Equipment acquisition obtains, for example, ball machine (ball-shaped camera) A collects video file 1, ball machine B collects video file
2, then the video file to be played can be that video file 1 and video file 2 are combined and obtained.
For video playback apparatus, which can be its own and acquires and be stored in its local
, for example, the video file A that shooting obtains is stored in local by video playback apparatus, when needing playing video file A, from this
Ground obtains video file (video file A) to be played;The video file to be played can also be that other equipment are sent to video and broadcast
Equipment is put, for example, sending video file B after the video capture device in monitoring system front end collects video file B
To the video playback apparatus of monitoring system rear end, then video playback apparatus, which receives, obtains video file (video file to be played
B)。
S102: judge different scene informations whether is carried in video file to be played.
It should be noted that video file to be played might not carry scene letter for video playback apparatus
Breath, therefore in the embodiment of the present invention, in both cases, the judging result of step S102 is no: in a kind of situation, video to be played
Any scene information is not carried in file;In another case, scene information is carried in video file to be played, but wait broadcast
It puts and only carries a kind of scene information in video file.
Video file to be played carries a kind of implementation of scene information, can be in the privately owned of video file to be played
Scene information is carried in frame.It should be noted that necessarily including multiple video frames in video file to be played, can also include
There is audio frame, it is often more important that, video file to be played can also include privately owned frame or private data.Privately owned frame and view
For frequency frame there are corresponding relationship, a privately owned frame can be corresponding with a video frame or at least two continuous video frames, and one
A video frame only corresponds to a privately owned frame.As shown in Fig. 2, video file to be played includes multiple video frames, each video frame
It is corresponding with an audio frame and a privately owned frame.
In video file, privately owned frame can in addition to video frame and audio frame, additionally add to record other letters
The data of breath;For example, can carry caption information in privately owned frame, then when video playback apparatus playing video file, video is broadcast
Subtitle can also be shown by putting on window;For another example, in order to enable when video file is played, object A shown by video playback window
Image remembered by red collimation mark, the corresponding data information of the red frame can also be carried in privately owned frame.
Fig. 3 is the schematic diagram of internal structure of privately owned frame involved in the embodiment of the present invention, as shown in figure 3, privately owned frame can be with
Including privately owned frame head, privately owned frame type, privately owned frame load information and verification, further, the privately owned frame head include opening code,
Frame length, timestamp and head verification.Wherein, opening code is to characterize the data information that this frame data is privately owned frame;Frame length is
The data length of privately owned frame;Timestamp then indicates the corresponding temporal information of this privately owned frame, may indicate that corresponding to this privately owned frame
Video frame;Head verification can be for finally verify this frame data whether be privately owned frame data;And privately owned frame class therein
Type can carry scene information involved in the embodiment of the present invention, and scene information is a kind of letter entrained in privately owned frame type
Breath;Privately owned frame load information is data content entrained in privately owned frame, such as above-mentioned caption information and the corresponding number of red frame
It is believed that breath;Verification can be the data information of the integrality to verify this privately owned frame data.
Certainly, Fig. 3 is only the exemplary illustration to privately owned frame structure, and the tool of privately owned frame is not limited in the embodiment of the present invention
Body structure, as long as carrying scene information in the privately owned frame.Such as under MPEG2 standard (a kind of video encoding standard)
In video file, above-mentioned scene information can be carried in the stream_id field in privately owned frame.
Therefore a kind of optional implementation as the embodiment of the present invention, it include privately owned frame in video file to be played
In the case where, it is above-mentioned to judge the step of different scene informations (S102) whether is carried in video file to be played, it can wrap
It includes:
Judge whether carry different scene informations in all privately owned frames of video file to be played;
If carried, determine to carry different scene informations in video file to be played;
If do not carried, determine not carrying different scene informations in video file to be played.
Judge whether carry different scene informations in all privately owned frames of video file to be played, can be judge to
In all privately owned frames of playing video file, if there are two privately owned frames, and the scene information carried respectively is not identical, if
In the presence of, then determine the judging result that different scene informations is carried in all privately owned frames of video file to be played be it is yes, it is no
Then, determine that it is no for not carrying the judging result of different scene informations in all privately owned frames of video file to be played.
Illustratively, it is assumed that the inside composition of video file to be played is as shown in Figure 2, it is clear that, wait broadcast corresponding to Fig. 2
It puts in video file, scene information 1 is carried in the privately owned frame having, the privately owned frame having carries scene information 2, and privately owned frame also is taken
Band scene information m, it is possible to carry different fields in all privately owned frames of video file to be played corresponding to process decision chart 2
Scape information determines to carry different scene informations in video file to be played.
Video file to be played carries another implementation of scene information, can be the view in video file to be played
Scene information is carried in frequency frame.For example, the specific field of any video frame can carry scene information.Those skilled in the art can
With understanding, in video frame other than carrying image data, other description informations for corresponding to video frames can also be carried,
Foregoing description information may include the above-mentioned scene information to describe the corresponding scene of video frame.Such as under MPEG2 standard
Video file in, can include scene information in the descriptor (descriptor) in video frame.
So the optional implementation of another kind as the embodiment of the present invention, in above-mentioned judgement video file to be played
The step of whether carrying different scene informations (S102) may include:
Judge different scene informations whether is carried in all video frames of video file to be played;
If carried, determine to carry different scene informations in video file to be played;
If do not carried, determine not carrying different scene informations in video file to be played.
It, can be with likewise, judge whether carry different scene informations in all video frames of video file to be played
It is in all video frames for judge video file to be played, if there are two video frames, and the scene information carried respectively is not
It is identical;If it is present determining to carry different scene informations in all video frames of video file to be played, otherwise, sentence
Different scene informations is not carried in all video frames of fixed video file to be played.
For example, video frame a1~z1 carries scene information 1, and video frame a2~z2 is equal in video file to be played
Scene information 2 is carried, shows to carry different scene informations in all video frames of video file to be played, it can sentence
Different scene informations is carried in fixed video file to be played.
Since in video file to be played, scene information may be both carried in privately owned frame, it is also possible to be carried at
In video frame, so above two implementation can be combined together, that is, all privately owned frames of video file to be played are judged
In whether carry different scene informations, and judge whether to carry in all video frames of video file to be played different
Scene information;As long as have in two judging results at least one judging result be it is yes, can be determined that in video file to be played
Carry different scene informations;Otherwise, it is determined that different scene informations is not carried in video file to be played.
It should be noted that scene information can also be carried at other than being carried at above-mentioned privately owned frame or video frame
Other positions in video file to be played, such as audio frame, the embodiment of the present invention do not limit video file to be played this
The position that scape information is carried.
As shown in Figure 1, if the judging result of step S102 is yes, execution step S103: based on above-mentioned different scene
Video file to be played is divided into the first quantity video clip by information.
It should be noted that method flow refers in the case that the judging result of step S102 shown in Fig. 1 is no
To " end ", this shows that video playback apparatus can not treat playing video file when the judging result of step S102 is no
It is divided, specifically, in the case, video playback apparatus can play the video file to be played by single window.
By preceding description it is appreciated that no matter scene information is carried in the privately owned frame of video file to be played, also
It is in video frame or in other positions, each of video file to be played video frame has its corresponding scene letter
Breath.Such as, when scene information is carried in the privately owned frame of video file to be played, if at the corresponding timestamp of video frame itself
In the range of the corresponding timestamp of the privately owned frame of Mr. Yu, then the corresponding scene information of the video frame is entrained in the privately owned frame
Scene information;For another example, when scene information is carried in the video frame of video file to be played, the corresponding scene information of video frame
Entrained scene information as in the video frame.
In addition, first quantity is necessarily the positive integer greater than 1 in the embodiment of the present invention, but it is not one pre-
If value, the quantity of different video clips to be played, the video clip divided may be different.For example, view to be played
Frequency file A includes 4 kinds of different scene informations, then the video file A to be played can be divided into 4 video clips;To
Playing video file B includes 5 kinds of different scene informations, then the video file B to be played can be divided into 5 piece of video
Section.
Herein it is emphasized that in the embodiment of the present invention, video file to be played is divided into the first quantity video
Segment, in a kind of situation, each video clip itself divided is not a complete video file, after division
Above-mentioned video file to be played is still an entirety, and each video clip is a part of video file to be played;It is another
In the case of kind, each video clip divided respectively becomes a complete video file, above-mentioned video to be played
File is not split as the sub- video file of the first quantity.
It is above-mentioned based on above-mentioned different scene information as a kind of optional implementation of the embodiment of the present invention, it will be wait broadcast
The step of video file is divided into the first quantity video clip (S103) is put, may include:
Based on the different scene information and geographical location information, camera identification information, acquisition time information,
At least one of environmental information is monitored, the video file to be played is divided into the first quantity video clip.
Above-mentioned geographical location information can be understood as the corresponding camera site of each video frame in the video file to be played
Information, such as the monitor camera of fixed installation, captured by video frame corresponding to taking location information be should
The location of monitor camera information.
Above-mentioned camera identification information can be understood as acquiring the video camera of each video frame in the video file to be played
Identification information, such as MAC (Media Access Control, media interviews medium) address of video camera etc..
Above-mentioned acquisition time information can be the corresponding acquisition moment of each video frame in the video file to be played, example
Such as, camera on September 30,9 2017 5 divide 3 seconds 100 milliseconds acquire video frame a, then a of video frame the acquisition moment letter
Breath can be on September 30,9 2017 when 5 divide 3 seconds 100 milliseconds.
Above-mentioned monitoring environmental information can be monitoring environment locating for camera, such as daylight environment, night-environment, interior
Environment, outdoor environment more specifically can also be the environmental informations such as garage, market.
Above-mentioned geographical location information, camera identification information, acquisition time information, monitoring four kinds of information of environmental information can be with
It is carried in privately owned frame, can also be carried in each video frame, the embodiment of the present invention pair as above-mentioned scene information
Than without limitation.
In addition, dividing the view to be played based at least one of above-mentioned different scene information and above-mentioned four kinds of information
The mode of frequency file can be it is diversified, the embodiment of the present invention do not limit based on above-mentioned different scene information and on
The implementation that at least one of four kinds of information divides the video file to be played is stated, only carries out exemplary theory with following examples
It is bright.
Assuming that video playback apparatus is divided based on above-mentioned different scene information and monitoring environmental information should in this example
Video file to be played, then video playback apparatus can be first with above-mentioned different scene information to the video file to be played
It is divided in advance, obtains multiple video clips;Then using monitoring environmental information to divide in advance obtained multiple video clips into
Row is subdivided, obtains above-mentioned first quantity video clip, e.g., for each the obtained video clip divided in advance, judgement
Two video frames that environmental information is daylight environment and night-environment are monitored with the presence or absence of corresponding in the video clip, such as
Fruit exists, then the video-frequency band is again divided into the piece of video that the corresponding monitoring environment of all video frames is daylight environment
Section is corresponding with all video frames to monitor the video clip that environment is night-environment.
It is above-mentioned based on above-mentioned different scene information as a kind of optional implementation of the embodiment of the present invention, it will be wait broadcast
The step of video file is divided into the first quantity video clip (S103) is put, may include:
Video according to the corresponding scene information of each video frame in same video clip in identical and adjacent video clip
Video file to be played is divided into the first quantity video clip by the different division mode of the corresponding scene information of frame.
It is appreciated that under this implementation, it is all in video clip for each video clip that division obtains
The corresponding scene information of video frame institute is all identical;Also, for any two video in above-mentioned video file to be played
Frame, if respectively locating video clip is adjacent video clip to the two video frames, the two video frames are corresponding
Scene information is different.
Wherein, above-mentioned adjacent video clip refers to two video clips, meets condition: playing in single window above-mentioned
During video file to be played, after the video video segment of preceding broadcasting is played, and then video playback apparatus can exist
The video clip in rear broadcasting is played in the list window.
For this implementation, illustratively, video playback apparatus is directed to video file to be played, according to video to be played
The normal play sequence of file, since first video frame, by it is continuous, corresponding to all video frames of Same Scene information
It is divided into a video clip, the video clip of corresponding different scenes information is divided into different video clips, according to such as
This division mode obtains above-mentioned first quantity video clip.
For example, including 100000 video frames in video file to be played, number of frames is respectively 1~26000 view
Frequency frame corresponds to scene information 1, and number of frames is respectively that 26001~61000 video frame corresponds to scene information 2, frame sequence
Number be respectively 61001~83000 video frame correspond to scene information 3, number of frames is respectively 83001~10000 video
Frame corresponds to scene information 4, then can be respectively that 1~26000 each video frame is divided into a piece of video by number of frames
Duan Zhong, number of frames are respectively that 26001~61000 each video frame is divided into another video clip, number of frames point
Not Wei 61001~83000 each video frame be divided into another video clip, number of frames is respectively 83001~10000
Each video frame be divided into another video clip, i.e., the final video file to be played is divided into 4 video clips.
It should be noted that in video file to be played other than it may include video frame, can also comprising audio frame with
And privately owned frame, there are corresponding relationships with video frame for privately owned frame and audio frame, so including audio frame and private in division
When having the video file to be played of frame, for each video frame, corresponding privately owned frame and audio frame also should all
It is divided in its divided video clip of institute.
It is appreciated that in each video clip, all there is no respectively correspond different scenes letter in above-mentioned implementation
Two video frames of breath, divide above-mentioned video file to be played according to above-mentioned implementation, it is likely that will lead to division
Obtained certain video clip playing durations are too short, so, as the optional implementation of another kind of the embodiment of the present invention, on
It states based on above-mentioned different scene information, video file to be played is divided into the step of the first quantity video clip (S103)
Suddenly, can also include:
It is greater than preset duration threshold value according to the corresponding playing duration of video clip, and in adjacent video clip, previous video
The corresponding scene information of the last one video frame is different from the corresponding scene of first video frame in latter video clip in segment
Video file to be played is divided into the first quantity video clip by the division mode of information.
In this implementation, when playing duration corresponding to any one video clip for dividing is all larger than default
Long threshold value, and the last one video frame institute according to the playing sequence of the video file to be played, in any one video clip
Corresponding scene information is believed different from scene corresponding to first video frame in video clip adjacent after the video clip
Breath.Certainly, as shown in Fig. 2, playing duration corresponding to video clip can be measured with video time stamp span.
For this implementation, illustratively, video playback apparatus is directed to video file to be played, according to video to be played
File normal play sequence, first video frame of video file to be played as a starting video frame, then start by
Sequence searches for one near preceding end video frame backward, this terminates video frame and meets following conditions 1 or condition 2: condition 1 is somebody's turn to do
Terminate the last one video frame that video frame is video file to be played;Condition 2, in video file to be played, this terminates to regard
Frequency frame and its next corresponding scene information of video frame be not identical;And from the starting video frame to this terminate video frame it
Between, the corresponding video playing duration of all video frames is greater than preset duration threshold value.
Then, video playback apparatus terminates the starting video frame composed by all video frames between video frame to this
Video clip divides obtained video clip as one.If this terminates behind video frame, there is also video frames, by the knot
The latter video frame of beam video frame is as NEW BEGINNING video frame, and return execution is above-mentioned, and sequentially forward knot is done in search one backward
The step of beam video frame, until instructing no longer to there is video frame after the newest end video frame searched.
For example, including 100000 video frames in video file to be played, number of frames is respectively 1~6000 video
Frame corresponds to scene information 1, and number of frames is respectively that 6001~26000 video frame corresponds to scene information 2, number of frames point
Not Wei 26001~61000 video frame correspond to scene information 3, number of frames be respectively 61001~83000 video frame it is equal
Corresponding scene information 4, number of frames are respectively that 83001~10000 video frame corresponds to scene information 5, wherein number of frames
The playing duration of video clip corresponding to respectively 1~6000 video frame is less than above-mentioned preset duration threshold value, number of frames point
Video clip corresponding to video frame not for 6001~26000, number of frames be respectively 26001~61000 video frame it is right
Answer video clip, number of frames be respectively 61001~83000 video frame corresponding to video clip and number of frames be respectively
The corresponding playing duration of the institute of video clip corresponding to 83001~10000 video frame is all larger than above-mentioned preset duration threshold value.
Finally, number of frames can be respectively that 1~26000 each video frame is divided into a view by video playback apparatus
In frequency segment, number of frames is respectively that 26001~61000 each video frame is divided into another video clip, frame sequence
It number is respectively that 61001~83000 each video frame is divided into another video clip, number of frames is respectively 83001~
10000 each video frame is divided into another video clip, i.e., the final video file to be played is divided into 4 videos
Segment.
S104: the second quantity video playback window of creation, wherein second quantity is the positive integer greater than 2.
Second quantity can be a fixed preset value, but be directed to different video files to be played, final to draw
The quantity for the video clip got is different, if the second quantity of fixed setting is greater than above-mentioned first quantity, under
The case where video playback window certainly existed in step S105 can not be assigned to video clip is stated, is caused excessive because creating
Video playback window caused by problem of resource waste.
So the problem of in order to avoid the wasting of resources, in the embodiment of the present invention, can be selected 2 between above-mentioned first quantity
A numerical value is selected as the second quantity.For example, first quantity is 6, then the second quantity can be any one between 2~6
Positive integer, video playback apparatus randomly choose 4 between 2~6 and are used as the second quantity, then hold before executing step S104
The step of row above-mentioned the second quantity of creation video playback window S104.
It should be noted that above-mentioned created video playback window is to be simultaneously displayed on video in the embodiment of the present invention
Window on the video display interface of playback equipment, each video playback window created is not overlapped, so that video-see
Person can see the video pictures in each video playback window simultaneously.Such as shown in Fig. 4,4 video playings being created
Window is not overlapped on video display interface.
S105: by above-mentioned first quantity video clip be separately dispensed into above-mentioned second quantity video playback window into
Row plays.
After each video playback window is assigned video clip, each video playback window, which starts simultaneously at, plays respective institute's quilt
The video clip being assigned to;Certainly, the video playback window of at least two video clips is assigned for any one, needs
Sequentially to play its at least two video clip being assigned to.
It should be noted that when the second quantity is not more than the first quantity, in above-mentioned second quantity video playback window,
Each video playback window at least plays a video clip, also, a video clip only can be in a video playing
It is played out in window.For example, the first quantity and the second quantity are 4, then it will divide 4 obtained video clips and distribute respectively
It starts simultaneously at and plays out into 4 video playback windows created.
When above-mentioned first quantity is greater than the second quantity, video playback apparatus can be according to each video playback window at least
It is assigned the principle of a video clip, the first quantity video clip is assigned to the second quantity at random and is played out.
Certainly, in order to reduce as far as possible divide after video file to be played playing duration, when above-mentioned first quantity is big
When the second quantity, as a kind of optinal plan of the embodiment of the present invention, video playback apparatus can be broadcast according to each video
The principle that window is at least assigned a video clip is put, determines all allocation plans;Then it is selected from all schemes
Select out one divide after video file to be played the shortest allocation plan of playing duration as target distribution schemes, and according to
Above-mentioned first quantity video clip is assigned in above-mentioned second quantity video playback window and carries out by the target distribution schemes
It plays.
Wherein, the playing duration of the video file to be played after division are as follows: under specific allocation plan, finally play view
Playing duration corresponding to the video playback window of frequency segment.For example, video playback apparatus creates video playback window 1~4,
Divide the obtained corresponding playing duration of video clip 1~6 be 10 minutes, 12 minutes, 16 minutes, 5 minutes, 3 minutes with
And 13 minutes, current allocation plan are as follows: video clip 3 and 6 is respectively allocated in video playback window 1 and 2, video clip
1 and 4 are dispensed in video playback window 3, and video clip 2 and 5 is dispensed in video playback window 4;Each video playing
After window starts simultaneously at the video clip for playing and being respectively assigned, it is clear that, video playback window 1 is inevitable finally to play view
Frequency segment, corresponding to playing duration be 16 minutes, that is, divide after video file to be played playing duration be 16 minutes.
In the view according to the corresponding scene information of each video frame in same video clip in identical and adjacent video clip
The video file to be played is divided into the first quantity video by the different division mode of the corresponding scene information of frequency frame
In the case where segment, as the alternative dispensing means of the embodiment of the present invention, video playback apparatus can be first, in accordance with setting in advance
Then the priority for the scene information set selects the preceding second quantity video clip of highest priority first, and will be selected
The second quantity video clip be separately dispensed into above-mentioned second quantity video playback window.
Then, video playback apparatus determines that distributed video clip is corresponding again from current each video playback window
The shortest video playback window of playing duration be target video broadcast window, and will be current unappropriated, highest priority
Video clip is assigned in current target broadcast window, if it is above-mentioned to return to execution there is also unappropriated video clip
From current each video playback window, the distributed shortest video playback window of the corresponding playing duration of video clip is determined
The step of for target video broadcast window, until all video clips have all been assigned.
It should be noted that the priority of scene information usually can be according to the importance of each scene information institute in advance
It is arranged, scene information is more important, and the priority of the scene information is higher.
It is understood that after video file to be played divides, video playback apparatus will be divided in the embodiment of the present invention
To video clip broadcasting is started simultaneously at least two video playback windows, since each video playback window is assigned
Video clip playing duration be respectively less than divide before video file to be played playing duration, so using this programme certainty
The playing duration of video file to be played can be reduced.Under extreme case, it is assumed that above-mentioned second quantity is M, and each piece of video
The corresponding playing duration of section is all the same, and the scheme implemented using the present invention, the playing duration of video file to be played can be reduced to
OriginallyTimes, substantially reduce the playing duration of video file to be played.
For example, playing the feelings of video file A to be played by a video playback window for video file A to be played
Under condition, the playing duration of video file A to be played is 60 minutes;And it plays and is somebody's turn to do wait broadcast according to scheme provided in an embodiment of the present invention
When putting video file A, video file A to be played is divided into 4 video clips that playing duration is 15 minutes, and by institute
It divides 4 obtained video clips and starts simultaneously at broadcasting in 4 video playback windows created respectively, then video text to be played
The playing duration of part A is 15 minutes.
From the foregoing, it will be observed that compared with prior art, in scheme provided in this embodiment, being carried in video file to be played
In the case where different scene informations, video file to be played can be divided into multiple piece of video according to different scene informations
Then section the multiple video clips divided progress multiwindow is played simultaneously, this programme can reduce video to be played
The playing duration of file enables the viewer of video to obtain the video content letter in video file to be played in a short time
Breath.Also, since video file to be played is divided based on scene information, so same field in video file to be played
Video content under scape can continuously be played in same broadcast window, and the friendliness of video playing is high, ensure that user
Experience effect.
As described above, the value of the second quantity is usually between 2 to the first quantity, if the first quantity is excessive, it is likely that
Cause the value of the second quantity larger.And for video playback apparatus, the size for the display interface that can be shown is to exist
Upper limit value, it will be understood that if the second quantity is excessive, it is too small to may cause each video playback window, leads to view to be played
The viewer of frequency is not clearly visible the video pictures that video playback window is played.In order to reasonably control the second number
A number of windows threshold value was originally arranged in the embodiment of the present invention in the value of amount, which is video playback apparatus
The upper limit value for the video playback window that can be created.
Above-mentioned number of windows threshold value can be rule of thumb arranged, specifically, can be according to display circle of video playback apparatus
Face size, the hobby of the clarity of video file to be played and user and be arranged, the embodiment of the present invention does not limit the window
The value of amount threshold.
In embodiments of the present invention, before above-mentioned the second quantity of creation video playback window (S104) the step of, on
The method of stating can also include:
Judge whether the first quantity is greater than number of windows threshold value,
If it does, executing above-mentioned the second quantity of creation video playing using the number of windows threshold value as the second quantity
The step of window (S104);
If it is not greater, executing above-mentioned the second quantity of the creation video playing of institute using first quantity as the second quantity
The step of window (S104).
That is, in the embodiment of the present invention, on the basis of embodiment of the method shown in Fig. 1, as shown in figure 5, above-mentioned video file
Playback method can be with are as follows:
S201: video file to be played is obtained.
S202: judge different scene informations whether is carried in video file to be played.
If the judging result of step S202 is yes, execution step S203:, will be wait broadcast based on above-mentioned different scene information
It puts video file and is divided into the first quantity video clip.
S204: judge whether the first quantity is greater than number of windows threshold value;If it does, using the number of windows threshold value as
Two quantity;If it is not greater, using first quantity as the second quantity.
When the first quantity is greater than number of windows threshold value, the second quantity is set as the number of windows threshold value;When the first quantity
When no more than number of windows threshold value, the second quantity is set as first quantity.Illustratively, number of windows threshold value is 4;If the
One quantity is 6, then it is 4 that the second quantity, which is arranged,;If the first quantity is 3, it is 3 that the second quantity, which is arranged,.
S205: the second quantity video playback window of creation, wherein second quantity is not more than first quantity.
S206: by above-mentioned first quantity video clip be separately dispensed into above-mentioned second quantity video playback window into
Row plays.
In the embodiment of the present invention, step S201~S203, S205 and S206 are respectively and in embodiment of the method shown in Fig. 1
Step S101~S105 is identical, and the particular content and explanation of step S201~S203, S205 and S206 are referred to Fig. 1
Step S101~S105 in shown embodiment of the method, this will not be repeated here for the embodiment of the present invention.
To carry out the playback method of video file provided in an embodiment of the present invention below by a specific example simple
It introduces.
Video playback apparatus is the rear end equipment of a monitoring system, and the headend equipment ball machine for receiving monitoring system is sent
Video file X to be played, the inside composition of the video file X to be played is as shown in Figure 2.Video playback apparatus first determine whether to
Different scene informations whether is carried in all privately owned frames of playing video file, it is clear that, as shown in Fig. 2, view to be played
In all privately owned frames of frequency file, entrained scene information includes scene information 1,2 ... m, so video playback apparatus is sentenced
Different scene informations is carried in all privately owned frames of fixed video file to be played.
Then, video playback apparatus judges the scene information for each scene information in scene information 1,2 ... m
The playing duration of video clip corresponding to corresponding all video frames, as that whether the video time stamp span in Fig. 2 is less than is pre-
If threshold value, judging result shows that video time stamp span T1, T2 ... Tm is not less than preset threshold.In this case, the video
Video file X to be played is divided into the corresponding m piece of video of video time stamp span T1, T2 ... Tm by playback equipment
Section.
Assuming that number of windows threshold value is 4, above-mentioned m value is similarly 4, then video playback apparatus at this time sets the second quantity to
4, and 4 video playback windows are created, above-mentioned 4 video clips are separately dispensed into above-mentioned 4 video playback windows synchronous
Start to play.
Corresponding to embodiment of the method shown in Fig. 1, the embodiment of the invention also provides a kind of playing devices of video file, such as
Shown in Fig. 6, described device includes:
Module 110 is obtained, for obtaining video file to be played;
First judgment module 120, for judging whether carry different scene informations in the video file to be played;
Division module 130, for being based on the difference in the case where the judging result of the first judgment module, which is, is
Scene information, the video file to be played is divided into the first quantity video clip;
Creation module 140, for creating the second quantity video playback window, wherein second quantity is greater than 2
Positive integer;
Playing module 150, for the first quantity video clip to be separately dispensed into the second quantity video
It is played out in broadcast window.
As a kind of implementation of the embodiment of the present invention, the division module 130 can be specifically used for:
In the case where the judging result of the first judgment module, which is, is, based on the different scene information, and
At least one of geographical location information, camera identification information, acquisition time information, monitoring environmental information, by described wait broadcast
It puts video file and is divided into the first quantity video clip.
As a kind of implementation of the embodiment of the present invention, the video file to be played includes privately owned frame;
The first judgment module 120, can be specifically used for:
Judge whether carry different scene informations in all privately owned frames of the video file to be played;If taken
Band determines to carry different scene informations in the video file to be played;If do not carried, the video to be played is determined
Different scene informations is not carried in file.
As another implementation of the embodiment of the present invention, the first judgment module 120 can be specifically used for:
Judge whether carry different scene informations in all video frames of the video file to be played;If taken
Band determines to carry different scene informations in the video file to be played;If do not carried, the video to be played is determined
Different scene informations is not carried in file.
As a kind of implementation of the embodiment of the present invention, the division module can be specifically used for:
In the case where the judging result of the first judgment module, which is, is, according to each video frame in same video clip
Corresponding scene information is identical and adjacent video clip in the different division mode of the corresponding scene information of video frame,
The video file to be played is divided into the first quantity video clip;
Or,
It is big according to the corresponding playing duration of video clip in the case where the judging result of the first judgment module, which is, is
In preset duration threshold value, and in adjacent video clip, in previous video clip, the corresponding scene information of the last one video frame is not
It is same as the division mode of the corresponding scene information of first video frame in latter video clip, the video file to be played is drawn
It is divided into the first quantity video clip.
As a kind of implementation of the embodiment of the present invention, specifically, corresponding to embodiment of the method shown in Fig. 5, such as Fig. 7 institute
Show, described device can also include:
Second judgment module 160, for judging first quantity before creating the second quantity video playback window
Whether number of windows threshold value is greater than, if it does, executing the creation second using the number of windows threshold value as the second quantity
The step of quantity video playback window;If it is not greater, using first quantity as the second quantity, the creation the is executed
The step of two quantity video playback windows.
From the foregoing, it will be observed that compared with prior art, in scheme provided in an embodiment of the present invention, being taken in video file to be played
In the case where different scene informations, video file to be played can be divided into multiple views according to different scene informations
Then frequency segment the multiple video clips divided progress multiwindow is played simultaneously, this programme can reduce video to be played
The playing duration of file enables the viewer of video to obtain the video content letter in video file to be played in a short time
Breath.Also, since video file to be played is divided based on scene information, so same field in video file to be played
Video content under scape can continuously be played in same broadcast window, and the friendliness of video playing is high, ensure that user
Experience effect.
Corresponding to any of the above-described embodiment of the method, the embodiment of the invention also provides a kind of electronic equipment, as shown in figure 8,
Including processor 210 and memory 220, wherein
Memory 220, for storing computer program;
Processor 210 when for executing the program stored on memory 220, realizes following steps:
Obtain video file to be played;
Judge whether carry different scene informations in the video file to be played;
If so, according to default division rule, which is divided into based on the different scene information
First quantity video clip;
Create the second quantity video playback window, wherein the second quantity is the positive integer greater than 2;
Above-mentioned first quantity video clip is separately dispensed into above-mentioned second quantity video playback window and is broadcast
It puts.
Specific implementation and relevant explanation content about each step of this method may refer to shown in above-mentioned Fig. 1 or 5
Embodiment of the method, this will not be repeated here.
Above-mentioned electronic equipment can have the communication interface realized and communicated between above-mentioned electronic equipment and other equipment.
Above-mentioned processor 210, communication interface, memory 220 complete mutual communication by communication bus, this place
It is total that the communication bus mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI)
Line or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..This is logical
Letter bus can be divided into address bus, data/address bus, control bus etc..
Memory 220 may include random access memory (Random Access Memory, RAM), also may include
Nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory
It can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor 210 can be general processor, including central processing unit (Central Processing
Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital
Signal Processing, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components.
From the foregoing, it will be observed that compared with prior art, in scheme provided in this embodiment, being carried in video file to be played
In the case where different scene informations, video file to be played can be divided into multiple piece of video according to different scene informations
Then section the multiple video clips divided progress multiwindow is played simultaneously, this programme can reduce video to be played
The playing duration of file enables the viewer of video to obtain the video content letter in video file to be played in a short time
Breath.Also, since video file to be played is divided based on scene information, so same field in video file to be played
Video content under scape can continuously be played in same broadcast window, and the friendliness of video playing is high, ensure that user
Experience effect.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and
For electronic equipment embodiment, since it is substantially similar to the method embodiment, so be described relatively simple, related place referring to
The part of embodiment of the method illustrates.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (13)
1. a kind of playback method of video file, which is characterized in that the described method includes:
Obtain video file to be played;
Judge whether carry different scene informations in the video file to be played;
If so, the video file to be played is divided into the first quantity piece of video based on the different scene information
Section;
Create the second quantity video playback window, wherein second quantity is the positive integer greater than 2;
The first quantity video clip is separately dispensed into the second quantity video playback window and is played out.
2. the method according to claim 1, wherein
It is described based on the different scene information, the video file to be played is divided into the first quantity video clip
Step, comprising:
Based on the different scene information and geographical location information, camera identification information, acquisition time information, monitoring
The video file to be played is divided into the first quantity video clip by least one of environmental information.
3. the method according to claim 1, wherein the video file to be played includes privately owned frame;
It is described to judge the step of whether carrying different scene informations in the video file to be played, comprising:
Judge whether carry different scene informations in all privately owned frames of the video file to be played;
If carried, determine to carry different scene informations in the video file to be played;
If do not carried, determine not carrying different scene informations in the video file to be played.
4. the method according to claim 1, wherein
It is described to judge the step of whether carrying different scene informations in the video file to be played, comprising:
Judge whether carry different scene informations in all video frames of the video file to be played;
If carried, determine to carry different scene informations in the video file to be played;
If do not carried, determine not carrying different scene informations in the video file to be played.
5. the method according to claim 1, wherein described based on the different scene information, will it is described to
Playing video file is divided into the step of the first quantity video clip, comprising:
Video frame point according to the corresponding scene information of each video frame in same video clip in identical and adjacent video clip
The video file to be played is divided into the first quantity video clip by the different division mode of not corresponding scene information;
Or,
It is greater than preset duration threshold value according to the corresponding playing duration of video clip, and in adjacent video clip, previous video clip
In the corresponding scene information of the last one video frame be different from latter video clip in the corresponding scene information of first video frame
Division mode, the video file to be played is divided into the first quantity video clip.
6. -5 any method according to claim 1, which is characterized in that in the second quantity video playing window of the creation
Before the step of mouth, the method also includes:
Judge whether first quantity is greater than number of windows threshold value,
If it does, executing the second quantity video playing window of the creation using the number of windows threshold value as the second quantity
The step of mouth;
If it is not greater, executing the second quantity video playback window of the creation using first quantity as the second quantity
The step of.
7. a kind of playing device of video file, which is characterized in that described device includes:
Module is obtained, for obtaining video file to be played;
First judgment module, for judging whether carry different scene informations in the video file to be played;
Division module, for the judging result of the first judgment module be in the case where, based on the different scene
The video file to be played is divided into the first quantity video clip by information;
Creation module, for creating the second quantity video playback window, wherein second quantity is the positive integer greater than 2;
Playing module, for the first quantity video clip to be separately dispensed into the second quantity video playback window
In play out.
8. device according to claim 7, which is characterized in that the division module is specifically used for:
In the case where the judging result of the first judgment module, which is, is, based on the different scene information, and geography
At least one of location information, camera identification information, acquisition time information, monitoring environmental information, by the view to be played
Frequency file is divided into the first quantity video clip.
9. device according to claim 7, which is characterized in that the video file to be played includes privately owned frame;
The first judgment module, is specifically used for:
Judge whether carry different scene informations in all privately owned frames of the video file to be played;If carried, sentence
Different scene informations is carried in the fixed video file to be played;If do not carried, the video file to be played is determined
In do not carry different scene informations.
10. device according to claim 7, which is characterized in that
The first judgment module, is specifically used for:
Judge whether carry different scene informations in all video frames of the video file to be played;If carried, sentence
Different scene informations is carried in the fixed video file to be played;If do not carried, the video file to be played is determined
In do not carry different scene informations.
11. device according to claim 7, which is characterized in that the division module is specifically used for:
It is corresponding according to each video frame in same video clip in the case where the judging result of the first judgment module, which is, is
Scene information is identical and adjacent video clip in the different division mode of the corresponding scene information of video frame, by institute
It states video file to be played and is divided into the first quantity video clip;
Or,
In the case where the judging result of the first judgment module, which is, is, it is greater than according to the corresponding playing duration of video clip pre-
If duration threshold value, and in adjacent video clip, the corresponding scene information of the last one video frame is different from previous video clip
The division mode of the corresponding scene information of first video frame, the video file to be played is divided into latter video clip
First quantity video clip.
12. according to any device of claim 7-11, which is characterized in that described device further include:
Second judgment module, for judging whether first quantity is big before creating the second quantity video playback window
In number of windows threshold value, if it does, executing the second quantity of the creation using the number of windows threshold value as the second quantity
The step of video playback window;If it is not greater, executing the second quantity of the creation using first quantity as the second quantity
The step of a video playback window.
13. a kind of electronic equipment, which is characterized in that including processor and memory,
Wherein, memory, for storing program code;
Processor when for executing the program code stored on memory, realizes any method step of claim 1-6
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710923012.5A CN109600653B (en) | 2017-09-30 | 2017-09-30 | Video file playing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710923012.5A CN109600653B (en) | 2017-09-30 | 2017-09-30 | Video file playing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109600653A true CN109600653A (en) | 2019-04-09 |
CN109600653B CN109600653B (en) | 2021-04-20 |
Family
ID=65956063
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710923012.5A Active CN109600653B (en) | 2017-09-30 | 2017-09-30 | Video file playing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109600653B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112135179A (en) * | 2020-09-11 | 2020-12-25 | 游艺星际(北京)科技有限公司 | Video playing method and device, electronic equipment and storage medium |
CN112770167A (en) * | 2020-12-21 | 2021-05-07 | 深圳Tcl新技术有限公司 | Video display method and device, intelligent display terminal and storage medium |
CN113766325A (en) * | 2021-08-11 | 2021-12-07 | 珠海格力电器股份有限公司 | Video playing method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488529A (en) * | 2013-09-06 | 2014-01-01 | 上海骋娱传媒技术有限公司 | Method and equipment for controlling access of video resources |
CN103596044A (en) * | 2013-11-22 | 2014-02-19 | 深圳创维数字技术股份有限公司 | Method, device and system for processing and displaying video file |
KR101437584B1 (en) * | 2013-02-27 | 2014-09-05 | 부경대학교 산학협력단 | An automatical shot change detection device and shot change detection result identification convenience improvement show device on digital surveillance camera system |
CN104581380A (en) * | 2014-12-30 | 2015-04-29 | 联想(北京)有限公司 | Information processing method and mobile terminal |
CN106888169A (en) * | 2017-01-06 | 2017-06-23 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device |
-
2017
- 2017-09-30 CN CN201710923012.5A patent/CN109600653B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101437584B1 (en) * | 2013-02-27 | 2014-09-05 | 부경대학교 산학협력단 | An automatical shot change detection device and shot change detection result identification convenience improvement show device on digital surveillance camera system |
CN103488529A (en) * | 2013-09-06 | 2014-01-01 | 上海骋娱传媒技术有限公司 | Method and equipment for controlling access of video resources |
CN103596044A (en) * | 2013-11-22 | 2014-02-19 | 深圳创维数字技术股份有限公司 | Method, device and system for processing and displaying video file |
CN104581380A (en) * | 2014-12-30 | 2015-04-29 | 联想(北京)有限公司 | Information processing method and mobile terminal |
CN106888169A (en) * | 2017-01-06 | 2017-06-23 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112135179A (en) * | 2020-09-11 | 2020-12-25 | 游艺星际(北京)科技有限公司 | Video playing method and device, electronic equipment and storage medium |
CN112770167A (en) * | 2020-12-21 | 2021-05-07 | 深圳Tcl新技术有限公司 | Video display method and device, intelligent display terminal and storage medium |
CN113766325A (en) * | 2021-08-11 | 2021-12-07 | 珠海格力电器股份有限公司 | Video playing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109600653B (en) | 2021-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109089154B (en) | Video extraction method, device, equipment and medium | |
CN109089127B (en) | Video splicing method, device, equipment and medium | |
WO2015081776A1 (en) | Method and apparatus for processing video images | |
US9788034B1 (en) | Systems and methods for processing a traffic log having an optional-promotion log entry | |
US20150104149A1 (en) | Video summary apparatus and method | |
CN109274982B (en) | Video carousel method and device, computer equipment and storage medium | |
CN106921864A (en) | Video broadcasting method and device | |
CN105791949B (en) | Method of program recording and device | |
CN109600653A (en) | Playback method, device and the electronic equipment of video file | |
US9621929B1 (en) | Method of video content selection and display | |
CN104506922A (en) | Method, device and equipment for broadcasting video signal | |
US9437243B1 (en) | Method of generating highlights for live videos | |
US10021433B1 (en) | Video-production system with social-media features | |
CN109257618A (en) | Company wheat interflow method, apparatus and server in a kind of live streaming | |
CN106658030A (en) | Method and device for playing composite video comprising single-path audio and multipath videos | |
CN104539984B (en) | A kind of video broadcasting method, apparatus and system | |
CN109714622A (en) | A kind of video data handling procedure, device and electronic equipment | |
CN110536164A (en) | Display methods, video data handling procedure and relevant device | |
CN109688419A (en) | Company's wheat method, apparatus and server in a kind of live streaming | |
CN110401872A (en) | Event-prompting method, device and storage medium based on smart home operating system | |
CN103763303A (en) | Method and device for drama series playing | |
CN108174227B (en) | Virtual article display method and device and storage medium | |
CN103763575B (en) | A kind of programme method of combination and device | |
CN108881938A (en) | Live video intelligently cuts broadcasting method and device | |
CN105898398A (en) | Advertisement play method and device, advertising method and device and advertisement system |
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 |