CN110113389A - A kind of video broadcasting method, device, electronic equipment and storage medium - Google Patents
A kind of video broadcasting method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110113389A CN110113389A CN201910308335.2A CN201910308335A CN110113389A CN 110113389 A CN110113389 A CN 110113389A CN 201910308335 A CN201910308335 A CN 201910308335A CN 110113389 A CN110113389 A CN 110113389A
- Authority
- CN
- China
- Prior art keywords
- video file
- video
- file
- address information
- playing
- 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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5076—Update or notification mechanisms, e.g. DynDNS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- 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
-
- 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- 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/84—Generation or processing of descriptive data, e.g. content descriptors
- H04N21/8405—Generation or processing of descriptive data, e.g. content descriptors represented by keywords
Abstract
The invention discloses a kind of video broadcasting method, device, electronic equipment and storage mediums, which comprises is directed to each first video file, determines the address information of next first video file of first video file;The first current video file is downloaded and played, and next first video file is downloaded according to the address information of next first video file;When the first current video file finishes playing, next first video file is played, until each first video file finishes playing.While due to downloading and playing the first current video file, next first video file is downloaded according to the address information of next first video file, therefore it may be implemented that next first video file can be played immediately after the first current video file finishes playing, until each first video file finishes playing.When so as to avoid playing multiple video files, the problem of video playing is interrupted, discontinuously, and playing efficiency is low, poor user experience.
Description
Technical field
The present invention relates to field of video broadcasting technology more particularly to a kind of video broadcasting method, device, electronic equipment and deposit
Storage media.
Background technique
The normal play process of stream media network transmission (Http Live Streaming, HLS) agreement is: 1, first downloading
Video file parses slice information;2, first slice is downloaded to play out;3, it is then regarded if there is dragging progress bar
Since frequency timi requirement navigate to specific slice section according to time point, and download and play out being sliced head;4, one is played
After section slice, lower a slice that automatic downloading is parsed from video file, and broadcasting is sent, until the downloading of all slices finishes.
The slice in a video file can be smoothly played in the prior art, but is worked as and needed to play longer one section
When the multiple video files saved in the time, the slice in a video file is needed to play and then download another
Slice in video file plays out, and can all have longer time interval between every two video file in this way.Cause to regard
Frequency is played and is interrupted, discontinuously, and playing efficiency is low, poor user experience.
Summary of the invention
The embodiment of the invention provides a kind of video broadcasting method, device, electronic equipment and storage mediums, broadcast to solve
When putting multiple video files, the problem of video playing is interrupted, discontinuously, and playing efficiency is low, poor user experience.
The embodiment of the invention provides a kind of video broadcasting methods, which comprises
For each first video file, the address information of next first video file of first video file is determined;
The first current video file is downloaded and plays, and next according to the downloading of the address information of next first video file
First video file;
When the first current video file finishes playing, next first video file is played, until each first view
Frequency file finishes playing.
Further, described to be directed to each first video file, determine next first video text of first video file
After the address information of part, before downloading and playing the first current video file, the method also includes:
When being inserted into the second video file, according to insertion position, upper one first view of the video file of the insertion is determined
Frequency file and next first video file;
The address information of next first video file of upper one first video file is updated to the of the insertion
The address information of two video files, and determine the address letter of next first video file of the second video file of the insertion
Breath.
Further, described to be directed to each first video file, determine next first video text of first video file
The address information of part includes:
For each first video file, determine next first video file of first video file address information and
The address information of upper one first video file;
It is described to be directed to each first video file, determine the address letter of next first video file of first video file
After breath, before downloading and playing the first current video file, the method also includes:
When deleting third video file, next first video file and upper one first of the third video file is determined
Video file;The address information of next first video file of upper one first video file is updated to the third video
The address information of next first video file of file, and by upper the one of next first video file of the third video file
The address information of video file is updated to the address information of upper one first video file of the third video file.
Further, described to be directed to each first video file, determine next first video text of first video file
The address information of part includes:
For each first video file, determine next first video file of first video file address information and
Each key frame information in first video file;
The downloading simultaneously plays the first current video file, when the first current video file finishes playing, broadcasts
One first video file is put down, until each first video file finishes playing and includes:
According to speed information is played, the interval of downloading key frame is determined;
According to the key frame information in the interval and each first video file of the downloading key frame, each first is determined
Key frame to be played and downloading in video file;
The key frame to be played in the first current video file is played, when in the first current video file
Key frame to be played finishes playing, and plays the key frame to be played in next first video file, until each first view
Key frame to be played in frequency file finishes playing.
Further, described to be directed to each first video file, determine next first video text of first video file
The address information of part includes:
For each first video file, determine next first video file of first video file address information,
First video file is relative to each key frame in the shift time and first video file of upper one first video file
Information;
The downloading simultaneously plays the first current video file, when the first current video file finishes playing, broadcasts
One first video file is put down, until each first video file finishes playing and includes:
Shift time according to positioning time and each first video file relative to upper one first video file, determines mesh
Mark video file;
According to each key frame information in the positioning time and the target video file, the positioning time is determined
Corresponding Target key frames;
The target video file is played from the Target key frames, when the target video file finishes playing, is broadcast
One first video file is put down, until each first video file finishes playing.
The embodiment of the invention provides a kind of video play device, described device includes:
Determining module determines next first video text of first video file for being directed to each first video file
The address information of part;
Download module, for downloading and playing the first current video file, and according to the ground of next first video file
Location information downloads next first video file;
Playing module plays next first video file, directly for finishing playing when the first current video file
It finishes playing to each first video file.
Further, the determining module is also used to, according to insertion position, determine institute when being inserted into the second video file
State upper one first video file and next first video file of the video file of insertion;By upper one first video file
The address information of next first video file is updated to the address information of the second video file of the insertion, and determines described insert
The address information of next first video file of the second video file entered.
Further, the determining module is specifically used for being directed to each first video file, determines first video file
Next first video file address information and upper one first video file address information;
The determining module is also used to when deleting third video file, determines next the of the third video file
One video file and upper one first video file;The address of next first video file of upper one first video file is believed
Breath is updated to the address information of next first video file of the third video file, and will be under the third video file
The address information of a upper video file for one first video file is updated to the upper one first video text of the third video file
The address information of part.
Further, the determining module is specifically used for being directed to each first video file, determines first video file
Next first video file address information and first video file in each key frame information;
The download module is specifically used for determining the interval of downloading key frame according to speed information is played;Under described
The key frame information in the interval and each first video file of key frame is carried, is determined to be played in each first video file
Key frame and downloading;The playing module, specifically for playing the key frame to be played in the first current video file,
When the key frame to be played in the first current video file finishes playing, play in next first video file to
The key frame of broadcasting, until the key frame to be played in each first video file finishes playing.
Further, the determining module is specifically used for being directed to each first video file, determines first video file
The address information of next first video file, first video file relative to upper one first video file shift time and
Each key frame information in first video file;
The playing module is specifically used for according to positioning time and each first video file relative to upper one first video
The shift time of file determines target video file;According to each pass in the positioning time and the target video file
Key frame information determines the positioning time corresponding Target key frames;The target video is played from the Target key frames
File plays next first video file when the target video file finishes playing, until each first video file plays
It completes.
The embodiment of the invention provides a kind of electronic equipment, including processor, communication interface, memory and communication bus,
Wherein, processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes above method step.
The embodiment of the invention provides a kind of computer readable storage medium, storage in the computer readable storage medium
There is computer program, above method step is realized when the computer program is executed by processor.
The embodiment of the invention provides a kind of video broadcasting method, device, electronic equipment and storage medium, the method packets
It includes: for each first video file, determining the address information of next first video file of first video file;Downloading is simultaneously
The first current video file is played, and next first video file is downloaded according to the address information of next first video file;
When the first current video file finishes playing, next first video file is played, until each first video file is broadcast
It discharges into.
Due in embodiments of the present invention, for each first video file, determining next the of first video file
The address information of one video file, while downloading and play the first current video file, according to next first video file
Address information download next first video file, therefore may be implemented after the first current video file finishes playing can be with
Next first video file is played immediately, until each first video file finishes playing.So as to avoid the multiple videos of broadcasting
When file, the problem of video playing is interrupted, discontinuously, and playing efficiency is low, poor user experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is video display process schematic diagram provided in an embodiment of the present invention;
Fig. 2 is video file product process schematic diagram provided in an embodiment of the present invention;
Process flow diagram when Fig. 3 is deletion video file provided in an embodiment of the present invention;
Fig. 4 is the flow diagram provided in an embodiment of the present invention quickly played;
Fig. 5 is pinpoint flow diagram in video playing provided in an embodiment of the present invention;
Fig. 6 is video play device structural schematic diagram provided in an embodiment of the present invention;
Fig. 7 is electronic devices structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
The present invention will be describe below in further detail with reference to the accompanying drawings, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
All other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Fig. 1 be video display process schematic diagram provided in an embodiment of the present invention, the process the following steps are included:
S101: it is directed to each first video file, determines the address of next first video file of first video file
Information.
Video broadcasting method provided in an embodiment of the present invention is applied to electronic equipment, which can be PC, plate
Apparatus such as computer.
After video capture device collects video, video can be sent to electronic equipment, electronic equipment protects video
It deposits into video file.For the video of the video in certain time length, such as whole day, electronic equipment is saved to multiple
In video file, in embodiments of the present invention, above-mentioned multiple video files are known as each first video file, and the present invention is real
Applying the video file in example can be, but not limited to be M3U8 file.
Electronic equipment can be ranked up each first video file, such as according to the time of each first video file
Information is ranked up each first video file.Wherein, each first video file have corresponding temporal information, this when
Between information can be the temporal information of any video segment for including in the first video file, be also possible in the first video file
The average value etc. of the temporal information for all video segments for including.According to each first video file temporal information it is successive suitable
Sequence is ranked up each first video file.Certainly, electronic equipment can also be according to the needs of users to each first video
File is ranked up, and is not defined in embodiments of the present invention to the sequencing of the first video file.
The address information of the first video file of each of the available preservation of electronic equipment, for each first video text
Part can determine the address information of next first video file of first video file.Wherein, the ground of the first video file
Location information is the download path information of the first video file.
S102: downloading and plays the first current video file, and according under the address information of next first video file
Carry next first video file.
Electronic equipment is particularly needed to current to currently the first video file played being needed to be downloaded and played
The video segment in the first video file played is successively downloaded and is played.It is downloading and is playing current the first video text
While part, current can be downloaded according to the address information of next first video file of the first current video file
Next first video file of one video file.
S103: when the first current video file finishes playing, playing next first video file, until each the
One video file finishes playing.
Electronic equipment continues to play next first video for having downloaded completion after playing the first current video file
File.While playing next first video file, which is the first view being currently played
Frequency file continues to download next first video file at this time, until each first video file finishes playing.
Wherein, electronic equipment, can be according to the first video file after being ranked up to each first video file
It puts in order as each first video file Allotment Serial Number label.During playing the first video file, identification is currently broadcast
The number label for the first video file put, when judging the number label of the first currently playing video file for the last one sequence
When number label, after the first currently playing video file finishes playing, determine that each first video file finishes playing.Or
It can be directed to each first video file, determine the address information of next first video file of first video file, finally
The address information of next first video file of one the first video file is sky, when judging the first currently playing video file
The address information of next first video file when being empty, after the first currently playing video file finishes playing, determine each
First video file finishes playing.
Due in embodiments of the present invention, for each first video file, determining next the of first video file
The address information of one video file, while downloading and play the first current video file, according to next first video file
Address information download next first video file, therefore may be implemented after the first current video file finishes playing can be with
Next first video file is played immediately, until each first video file finishes playing.So as to avoid the multiple videos of broadcasting
When file, the problem of video playing is interrupted, discontinuously, and playing efficiency is low, poor user experience.
In embodiments of the present invention, putting in order for each first video file can be recorded by way of chained list.Tool
Body, chained list head pointer is introduced in first first video file for needing to play, is entered as what each first video file played
Mouthful.Then by the chain table pointer of each first video file, it is rearwardly directed to the address information of next first video file.
During user plays each first video file, as needed, it is possible in each first video file
The video file of insertion is known as the second video file in embodiments of the present invention by one video file of middle insertion.In order to guarantee
It is inserted into after the second video file, still is able to continuously smoothly play each video file, it is in embodiments of the present invention, described
For each first video file, after the address information of next first video file for determining first video file, downloading
And before playing the first current video file, the method also includes:
When being inserted into the second video file, according to insertion position, upper one first view of the video file of the insertion is determined
Frequency file and next first video file;
The address information of next first video file of upper one first video file is updated to the of the insertion
The address information of two video files, and determine the address letter of next first video file of the second video file of the insertion
Breath.
Electronic equipment is directed to each first video file, determines the ground of next first video file of first video file
After the information of location, when being inserted into the second video file, electronic equipment obtains the insertion position information of the second video file, the position
Information can be carried in the second video file, be also possible to when being inserted into the second video file, be sent out from user to electronic equipment
Instruction information is sent, the insertion position information of the second video file is used to indicate.The location information can pass through the upper of insertion position
The address information of one first video file and the address information of next address file are indicated.
Electronic equipment can determine upper one first video file and next of the second video file according to insertion position
Then the address information of next first video file of one first video file on this is updated to the second video by one video file
The address information of file, and determine the address information of next first video file of the second video file.
For example, the first video file includes A, B, C, D, and sequencing is A, B, C, D.When in the first video file B
When being inserted into the second video file E between C, the address information of next video file of the first video file B is believed by the address of C
Breath is updated to the address information of E;And determine the address information that the address information of next video file of the second video file E is C.
Due in embodiments of the present invention, when being inserted into the second video file, by next the of upper one first video file
The address information of one video file is updated to the address information of the second video file of insertion, and determines the second video text of insertion
The address information of next first video file of part.It can guarantee in this way when playing upper first video file, it can be simultaneously
The second video file of insertion is downloaded, therefore can guarantee to be inserted into after the second video file, still is able to continuously smoothly broadcast
Put each video file.
During user plays each first video file, as needed, it is possible to some video file is deleted,
In the embodiment of the present invention, video file will be deleted and be known as third video file.In order to guarantee after deleting third video file, still
Each video file so continuously can be smoothly played, it is in embodiments of the present invention, described to be directed to each first video file, really
The address information of next first video file of first video file includes: calmly
For each first video file, determine next first video file of first video file address information and
The address information of upper one first video file;
It is described to be directed to each first video file, determine the address letter of next first video file of first video file
After breath, before downloading and playing the first current video file, the method also includes:
When deleting third video file, next first video file and upper one first of the third video file is determined
Video file;The address information of next first video file of upper one first video file is updated to the third video
The address information of next first video file of file, and by upper the one of next first video file of the third video file
The address information of video file is updated to the address information of upper one first video file of the third video file.
In embodiments of the present invention, electronic equipment is directed to each first video file, in addition under first video file
Except the address information of one first video file, the address letter of upper one first video file of first video file is also determined
Breath.Wherein, the address information of upper one first video file of first first video file is sky.
Electronic equipment is directed to each first video file, determines the ground of next first video file of first video file
After the information of location, when deleting third video file, believed according to the address of next first video file of the third video file
The address information of breath and upper one first video file, next first video file and upper one first for determining third video file regard
Frequency file.Then the address information of next first video file of upper one first video file is updated to third video file
The address information of next first video file, and by a upper video file for next first video file of third video file
Address information is updated to the address information of upper one first video file of third video file.
For example, the first video file includes A, B, C, D, and sequencing is A, B, C, D.When in the first video file B
When deletion, the address information of next video file of the first video file A is updated to the address information of C by the address information of B;
And determine that the address information of a upper video file of the first video file C is updated to the address information of A by the address information of B.
Since in embodiments of the present invention, when deleting video file, next the first of upper one first video file being regarded
The address information of frequency file is updated to the address information of next first video file of third video file, and third video is literary
The address information of a upper video file for next first video file of part is updated to upper one first video of third video file
The address information of file.It can guarantee the third view that can download deletion simultaneously when playing upper first video file in this way
Next first video file of frequency file, therefore can guarantee after deleting third video file, it still is able to continuously smoothly
Play each video file.
During user plays each first video file, it is possible to fast-forward play is needed, in the embodiment of the present invention
In, it is in embodiments of the present invention, described for each the in order to guarantee continuously smoothly quickly to play each video file
One video file determines that the address information of next first video file of first video file includes:
For each first video file, determine next first video file of first video file address information and
Each key frame information in first video file;
The downloading simultaneously plays the first current video file, when the first current video file finishes playing, broadcasts
One first video file is put down, until each first video file finishes playing and includes:
According to speed information is played, the interval of downloading key frame is determined;
According to the key frame information in the interval and each first video file of the downloading key frame, each first is determined
Key frame to be played and downloading in video file;
The key frame to be played in the first current video file is played, when in the first current video file
Key frame to be played finishes playing, and plays the key frame to be played in next first video file, until each first view
Key frame to be played in frequency file finishes playing.
In embodiments of the present invention, electronic equipment is directed to each first video file, in addition to determining first video file
Next first video file address information, also determine each key frame information in first video file, wherein crucial
Frame information includes at least the temporal information of key frame.
When needing fast-forward play video file, user can input to electronic equipment and play speed information.Electronic equipment
According to speed information is played, the interval of downloading key frame can be determined.Wherein, when broadcasting speed information is 2, key frame is downloaded
Between be divided into 0;When to play speed information be 4, download and be divided into 1 between key frame;When broadcasting speed information is 8, key frame is downloaded
Between be divided into 2 etc..
Electronic equipment can be determined according to the key frame information in the interval and each first video file of downloading key frame
Key frame to be played and downloading in each first video file.When play speed information be 2 when, each key frame be to
The key frame of broadcasting continuously downloads key frame at this time;When broadcasting speed information is 4, it is spaced two key frames of a key frame
It is key frame to be played, this time downloads next key frame etc. every a key frame, successively downloads key frame until complete
Finish.
After the completion of key frame downloading to be played in the first video file for currently needing to play, broadcast according to current needs
The address information of next first video file for the first video file put, determines next first video file, and continue to download
Key frame to be played in next first video file.And so on, until all key frames to be played are downloaded and are completed.
After the completion of all key frame downloadings to be played, from the first video file for currently needing to play, play in order each
The key frame of downloading.
Or it can also be broadcast after the completion of the key frame downloading to be played in the first video file for currently needing to play
The key frame to be played in the first video file for currently needing to play is put, while playing, downloads next first video
Key frame to be played in file.
After electronic equipment downloads key frame, the key frame to be played in the first current video file is played, when
Key frame to be played in the first current video file finishes playing, and plays to be played in next first video file
Key frame, until the key frame to be played in each first video file finishes playing.To guarantee continuously smoothly
Quickly play each video file.
In order to realize multiple video files continuously play in accurate positioning, it is in embodiments of the present invention, described for every
A first video file determines that the address information of next first video file of first video file includes:
For each first video file, determine next first video file of first video file address information,
First video file is relative to each key frame in the shift time and first video file of upper one first video file
Information;
The downloading simultaneously plays the first current video file, when the first current video file finishes playing, broadcasts
One first video file is put down, until each first video file finishes playing and includes:
Shift time according to positioning time and each first video file relative to upper one first video file, determines mesh
Mark video file;
According to each key frame information in the positioning time and the target video file, the positioning time is determined
Corresponding Target key frames;
The target video file is played from the Target key frames, when the target video file finishes playing, is broadcast
One first video file is put down, until each first video file finishes playing.
In embodiments of the present invention, electronic equipment is directed to each first video file, in addition to determining first video file
Next first video file address information except, also determine first video file relative to upper one first video file
Each key frame information in shift time and first video file.Wherein it is possible to according to first video file and upper one
The temporal information of same sequence number frame in first video file determines first video file relative to upper one first video file
Shift time.For example, by the second frame in the temporal information of the second frame in first video file and upper one first video file
Temporal information difference, the shift time as first video file relative to upper one first video file.Preferably, can be with
By the difference of the temporal information of the first frame in the temporal information of first frame in first video file and upper one first video file,
Shift time as first video file relative to upper one first video file.First first video file is relative to upper one
The shift time of first video file is 0.
When needing positioning video file, user can input positioning time to electronic equipment.Electronic equipment basis first
The shift time of positioning time and each first video file relative to upper one first video file determines the target video of positioning
File.
For example, positioning time is Ω, from second the first video file, each first video file is relative to upper 1 the
The shift time of one video file be respectively A (1), A (2) ..., A (m).When A (1)+A (2)+... A (N)≤Ω and A (1)+A
(2)+... when A (N+1) > Ω, the first video file of n-th is then the target video file for meeting positioning time.
After electronic equipment determines target video file, according to each key frame in positioning time and target video file
Information can determine positioning time corresponding Target key frames.Specifically, calculating p=Ω-first (A (1)+A (2)+... A
(N)) the temporal information q of first frame in target video file, is then identified, it is determined that temporal information is p+ in target video file
The key frame of q is Target key frames.It needs, if there is no the passes that temporal information is p+q in target video file
Key frame, it is determined that with temporal information be the nearest key frame of p+q as Target key frames.
Electronic equipment plays target video file from Target key frames, works as target after determining Target key frames
Video file finishes playing, and plays next first video file, until each first video file finishes playing.
Since in embodiments of the present invention, electronic equipment is according to positioning time, each first video file relative to upper one
The shift time of first video file and each key frame information, can determine the target critical in target video file
Then frame plays target video file from Target key frames, when target video file finishes playing, play next first video
File, until each first video file finishes playing.Therefore may be implemented multiple video files continuously plays in it is accurate calmly
Position.
In embodiments of the present invention, putting in order for each first video file can be recorded by way of chained list.Tool
Body, chained list head pointer is introduced in first first video file for needing to play, is entered as what each first video file played
Mouthful.Then by the chain table pointer of each first video file, it is rearwardly directed to the address information of next first video file.
Linked list head pointer file structure includes file first trip label, last of file row label, head pointer, backwarding pointer, such as
The first video file headed by backpointer, video file in embodiments of the present invention can be M3U8 file.Other videos
The structure of file includes file first trip label, last of file row label, shift time, backwarding pointer, the permission of forwarding pointer this document
The time span of maximum video-frequency band, the time span of video-frequency band and key frame information, by taking first the first video file as an example,
Backwarding pointer is second the first video file, and forwarding pointer is linked list head pointer file.The maximum video that this document allows
The time span of section can be 10 seconds, 12 seconds etc..The time span of video-frequency band can be 10 seconds, 8 seconds etc..
Fig. 2 is video file product process schematic diagram, as shown in Fig. 2, the first step judges the view when one section of video generates
Whether frequency is first segment video, if it is, generating a linked list head pointer file, and its backwarding pointer is set to first segment view
Then forwarding pointer and shift time in video file is arranged if not, generating current video file in frequency file.Then more
Backwarding pointer in new previous video file is updated to current newly generated video file path.From video file
A slice is obtained, and obtains time, offset and the size of corresponding key frame, is updated to key frame information.Previous step is generated
Slice routing information, key frame information is added in video file.After the completion of current slice processing, entire video file is judged
Whether processing is completed, if not, continuing with next slice, is generated if so, judging whether there is next section of video file, program
The relevant information record for saving the newest video file once generated, if generated without next section of video file, video file
Generation terminates, if so, returning to the first step.
Fig. 3 is process flow diagram when deleting video file, as shown in figure 3, when one section of video file is deleted, according to its view
The forwarding pointer of frequency file finds the preceding paragraph video file.Judge whether the video file found is linked list head pointer file,
It can judge by the way that whether the forwarding pointer of the preceding paragraph video file is sky, if so, modification linked list head pointer file, will be deleted
Except the backwarding pointer of video file is attached to the backwarding pointer of chained list head pointer, if not, by the backward of deleted video file
Pointer is attached to the backwarding pointer of the video file found.Then to video file after finding, judge to be deleted video file
Backwarding pointer whether be it is empty, if so, process terminates, if not, next section of video file is found, before the video file
It is updated to be deleted the forwarding pointer of video file to pointer, while recalculating shift time and the update of the video file.
Fig. 4 is the flow diagram quickly played, as shown in figure 4, the first step, downloads linked list head pointer file, according to rear
First segment video file is found to pointer, second step parses video file slice and key frame information, according to outside setting
Speed determines the interval for taking out frame downloading key frame, such as not set, then normal downloading slice is until video file tail;As being arranged, then
Successively downloading key frame is until video file tail.Whether the backwarding pointer for judging the video file is sky, if so, process knot
Beam if not, finding next section of video file according to backwarding pointer, and returns to second step.
Fig. 5 is pinpoint flow diagram in video playing, as shown in figure 5, being looked for according to incoming positioning time Ω
To corresponding video file, next section of video file can be navigated to according to the backwarding pointer of each video file, concrete operations are such as
Under: assuming that A (i) indicate i-th of video file in shift time, when A (1)+A (2)+... A (N)≤Ω and A (1)+A (2)
+ ... when A (N+1) > Ω, n-th video file is then the video file for meeting positioning time.It is closed according to the video file navigated to
Key frame information navigates to the key frame closest to Ω, realizes precise positioning, and downloading slice is up to video file since positioning place
Tail.Whether the backwarding pointer for judging the video file is sky, if so, process terminates, if not, continuing to download next video
File is until terminate.
Fig. 6 is video play device structural schematic diagram provided in an embodiment of the present invention, and described device includes:
Determining module 61 determines next first video of first video file for being directed to each first video file
The address information of file;
Download module 62, for downloading and playing the first current video file, and according to next first video file
Address information downloads next first video file;
Playing module 63, for finishing playing when the first current video file, next first video file of broadcasting,
Until each first video file finishes playing.
The determining module 61 is also used to, according to insertion position, determine the insertion when being inserted into the second video file
Upper one first video file of video file and next first video file;By next the first of upper one first video file
The address information of video file is updated to the address information of the second video file of the insertion, and determines the second of the insertion
The address information of next first video file of video file.
The determining module 61 is specifically used for being directed to each first video file, determines the next of first video file
The address information of the address information of first video file and upper one first video file;
The determining module 61 is also used to determine the next of the third video file when deleting third video file
First video file and upper one first video file;By the address of next first video file of upper one first video file
Information update is the address information of next first video file of the third video file, and by the third video file
The address information of a upper video file for next first video file is updated to upper one first video of the third video file
The address information of file.
The determining module 61 is specifically used for being directed to each first video file, determines the next of first video file
Each key frame information in the address information of first video file and first video file;
The download module 62 is specifically used for determining the interval of downloading key frame according to speed information is played;According to described
Download key frame interval and each first video file in key frame information, determine in each first video file wait broadcast
The key frame put and downloading;The playing module 83, specifically for playing the pass to be played in the first current video file
Key frame plays next first video file when the key frame to be played in the first current video file finishes playing
In key frame to be played, until each first video file in key frame to be played finish playing.
The determining module 61 is specifically used for being directed to each first video file, determines the next of first video file
The address information of first video file, first video file relative to upper one first video file shift time and this first
Each key frame information in video file;
The playing module 63 is specifically used for according to positioning time and each first video file relative to upper one first view
The shift time of frequency file determines target video file;According to each of the positioning time and the target video file
Key frame information determines the positioning time corresponding Target key frames;The target view is played from the Target key frames
Frequency file plays next first video file when the target video file finishes playing, until each first video file is broadcast
It discharges into.
A kind of electronic equipment is additionally provided in the embodiment of the present invention, as shown in fig. 7, comprises: processor 701, communication interface
702, memory 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 pass through communication bus
704 complete mutual communication;
It is stored with computer program in the memory 703, when described program is executed by the processor 701, so that
The processor 701 executes following steps:
For each first video file, the address information of next first video file of first video file is determined;
The first current video file is downloaded and plays, and next according to the downloading of the address information of next first video file
First video file;
When the first current video file finishes playing, next first video file is played, until each first view
Frequency file finishes playing.
Based on the same inventive concept, a kind of electronic equipment is additionally provided in the embodiment of the present invention, due to above-mentioned electronic equipment
The principle solved the problems, such as is similar to video broadcasting method, therefore the implementation of above-mentioned electronic equipment may refer to the implementation of method, weight
Multiple place repeats no more.
Electronic equipment provided in an embodiment of the present invention be specifically as follows desktop computer, portable computer, smart phone,
Tablet computer, personal digital assistant (Personal Digital Assistant, PDA), network side equipment etc..
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface 702 is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit, network processing unit (Network
Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), dedicated collection
At circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hard
Part component etc..
When processor executes the program stored on memory in embodiments of the present invention, realizes and be directed to each first video
File determines the address information of next first video file of first video file;It downloads and plays the first current video
File, and next first video file is downloaded according to the address information of next first video file;When the first current view
Frequency file finishes playing, and plays next first video file, until each first video file finishes playing.Due in the present invention
In embodiment, for each first video file, the address information of next first video file of first video file is determined,
While downloading and play the first current video file, according to the address information of next first video file downloading next first
Video file, therefore may be implemented that next first video text can be played after the first current video file finishes playing immediately
Part, until each first video file finishes playing.When so as to avoid playing multiple video files, video playing is interrupted,
Discontinuously, the problem of playing efficiency is low, poor user experience.
The embodiment of the invention also provides a kind of computers to store readable storage medium storing program for executing, the computer readable storage medium
It is inside stored with the computer program that can be executed by electronic equipment, when described program is run on the electronic equipment, so that institute
It states when electronic equipment executes and realizes following steps:
For each first video file, the address information of next first video file of first video file is determined;
The first current video file is downloaded and plays, and next according to the downloading of the address information of next first video file
First video file;
When the first current video file finishes playing, next first video file is played, until each first view
Frequency file finishes playing.
Based on the same inventive concept, a kind of computer readable storage medium is additionally provided in the embodiment of the present invention, due to place
The principle and video playing that reason device is solved the problems, such as in the computer program stored on executing above-mentioned computer readable storage medium
Method is similar, therefore processor may refer in the implementation for the computer program for executing above-mentioned computer-readable recording medium storage
The implementation of method, overlaps will not be repeated.
Above-mentioned computer readable storage medium can be any usable medium that the processor in electronic equipment can access
Or data storage device, including but not limited to magnetic storage such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc., optical memory
Such as CD, DVD, BD, HVD and semiconductor memory such as ROM, EPROM, EEPROM, nonvolatile memory (NAND
FLASH), solid state hard disk (SSD) etc..
Computer program, computer program quilt are provided in the computer readable storage medium provided in embodiments of the present invention
It is realized when processor executes and is directed to each first video file, determine the ground of next first video file of first video file
Location information;The first current video file is downloaded and plays, and next according to the downloading of the address information of next first video file
First video file;When the first current video file finishes playing, next first video file is played, until each the
One video file finishes playing.Due in embodiments of the present invention, for each first video file, determining first video text
The address information of next first video file of part, while downloading and play the first current video file, according to next
The address information of one video file downloads next first video file, therefore the first current video file may be implemented and play
At next first video file can be played immediately later, until each first video file finishes playing.So as to avoid broadcasting
When putting multiple video files, the problem of video playing is interrupted, discontinuously, and playing efficiency is low, poor user experience.
The embodiment of the invention provides a kind of video broadcasting method, device, electronic equipment and storage medium, the method packets
It includes: for each first video file, determining the address information of next first video file of first video file;Downloading is simultaneously
The first current video file is played, and next first video file is downloaded according to the address information of next first video file;
When the first current video file finishes playing, next first video file is played, until each first video file is broadcast
It discharges into.
Due in embodiments of the present invention, for each first video file, determining next the of first video file
The address information of one video file, while downloading and play the first current video file, according to next first video file
Address information download next first video file, therefore may be implemented after the first current video file finishes playing can be with
Next first video file is played immediately, until each first video file finishes playing.So as to avoid the multiple videos of broadcasting
When file, the problem of video playing is interrupted, discontinuously, and playing efficiency is low, poor user experience.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of video broadcasting method, which is characterized in that the described method includes:
For each first video file, the address information of next first video file of first video file is determined;
The first current video file is downloaded and plays, and according to the address information of next first video file downloading next first
Video file;
When the first current video file finishes playing, next first video file is played, until each first video text
Part finishes playing.
2. the method as described in claim 1, which is characterized in that it is described to be directed to each first video file, determine first view
It is described before downloading and playing the first current video file after the address information of next first video file of frequency file
Method further include:
When being inserted into the second video file, according to insertion position, the upper one first video text of the video file of the insertion is determined
Part and next first video file;
The address information of next first video file of upper one first video file is updated to the second view of the insertion
The address information of frequency file, and determine the address information of next first video file of the second video file of the insertion.
3. the method as described in claim 1, which is characterized in that it is described to be directed to each first video file, determine first view
The address information of next first video file of frequency file includes:
For each first video file, the address information and upper one of next first video file of first video file is determined
The address information of first video file;
It is described be directed to each first video file, determine next first video file of first video file address information it
Afterwards, before downloading and playing the first current video file, the method also includes:
When deleting third video file, next first video file and upper one first video of the third video file are determined
File;The address information of next first video file of upper one first video file is updated to the third video file
Next first video file address information, and by a upper video for next first video file of the third video file
The address information of file is updated to the address information of upper one first video file of the third video file.
4. the method as described in claim 1, which is characterized in that it is described to be directed to each first video file, determine first view
The address information of next first video file of frequency file includes:
For each first video file, determine next first video file of first video file address information and this
Each key frame information in one video file;
The downloading simultaneously plays the first current video file, when the first current video file finishes playing, under broadcasting
One first video file, until each first video file finishes playing and includes:
According to speed information is played, the interval of downloading key frame is determined;
According to the key frame information in the interval and each first video file of the downloading key frame, each first video is determined
Key frame to be played and downloading in file;
Play the key frame to be played in the first current video file, when in the first current video file wait broadcast
The key frame put finishes playing, and plays the key frame to be played in next first video file, until each first video text
Key frame to be played in part finishes playing.
5. the method as described in claim 1, which is characterized in that it is described to be directed to each first video file, determine first view
The address information of next first video file of frequency file includes:
For each first video file, determine next first video file of first video file address information, this
One video file is relative to each key frame information in the shift time and first video file of upper one first video file;
The downloading simultaneously plays the first current video file, when the first current video file finishes playing, under broadcasting
One first video file, until each first video file finishes playing and includes:
Shift time according to positioning time and each first video file relative to upper one first video file determines that target regards
Frequency file;
According to each key frame information in the positioning time and the target video file, determine that the positioning time is corresponding
Target key frames;
The target video file is played from the Target key frames, when the target video file finishes playing, under broadcasting
One first video file, until each first video file finishes playing.
6. a kind of video play device, which is characterized in that described device includes:
Determining module determines next first video file of first video file for being directed to each first video file
Address information;
Download module is believed for downloading and playing the first current video file, and according to the address of next first video file
Breath downloads next first video file;
Playing module plays next first video file, until every for finishing playing when the first current video file
A first video file finishes playing.
7. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the described in any item method steps of claim 1-5
Suddenly.
8. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-5 described in any item method and steps when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910308335.2A CN110113389B (en) | 2019-04-17 | 2019-04-17 | Video playing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910308335.2A CN110113389B (en) | 2019-04-17 | 2019-04-17 | Video playing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110113389A true CN110113389A (en) | 2019-08-09 |
CN110113389B CN110113389B (en) | 2022-06-07 |
Family
ID=67485672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910308335.2A Active CN110113389B (en) | 2019-04-17 | 2019-04-17 | Video playing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110113389B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112637669A (en) * | 2020-12-18 | 2021-04-09 | 北京浪潮数据技术有限公司 | Streaming media data processing method and related device |
CN113784179A (en) * | 2021-01-21 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Material playing method and system applied to offline scene |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075792A (en) * | 2010-12-23 | 2011-05-25 | 华为技术有限公司 | Video file playing method and system, user equipment and server equipment |
CN102340705A (en) * | 2010-07-19 | 2012-02-01 | 中兴通讯股份有限公司 | System and method for obtaining key frame |
CN103517135A (en) * | 2012-06-28 | 2014-01-15 | Tcl集团股份有限公司 | Method, system and television capable of playing MP4-format video files continuously |
CN105187896A (en) * | 2015-09-09 | 2015-12-23 | 北京暴风科技股份有限公司 | Multi-segment media file playing method and system |
CN106358047A (en) * | 2016-10-09 | 2017-01-25 | 天脉聚源(北京)科技有限公司 | Method and device for playing streaming media video |
US20170140408A1 (en) * | 2015-11-16 | 2017-05-18 | Bank Of America Corporation | Transparent self-managing rewards program using blockchain and smart contracts |
-
2019
- 2019-04-17 CN CN201910308335.2A patent/CN110113389B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340705A (en) * | 2010-07-19 | 2012-02-01 | 中兴通讯股份有限公司 | System and method for obtaining key frame |
CN102075792A (en) * | 2010-12-23 | 2011-05-25 | 华为技术有限公司 | Video file playing method and system, user equipment and server equipment |
CN103517135A (en) * | 2012-06-28 | 2014-01-15 | Tcl集团股份有限公司 | Method, system and television capable of playing MP4-format video files continuously |
CN105187896A (en) * | 2015-09-09 | 2015-12-23 | 北京暴风科技股份有限公司 | Multi-segment media file playing method and system |
US20170140408A1 (en) * | 2015-11-16 | 2017-05-18 | Bank Of America Corporation | Transparent self-managing rewards program using blockchain and smart contracts |
CN106358047A (en) * | 2016-10-09 | 2017-01-25 | 天脉聚源(北京)科技有限公司 | Method and device for playing streaming media video |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112637669A (en) * | 2020-12-18 | 2021-04-09 | 北京浪潮数据技术有限公司 | Streaming media data processing method and related device |
CN113784179A (en) * | 2021-01-21 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Material playing method and system applied to offline scene |
Also Published As
Publication number | Publication date |
---|---|
CN110113389B (en) | 2022-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10182095B2 (en) | Method and system for video call using two-way communication of visual or auditory effect | |
CN108076377B (en) | Video storage and playing method and device, electronic equipment and storage medium | |
US20170195387A1 (en) | Method and Electronic Device for Increasing Start Play Speed | |
CN108009261A (en) | A kind of method of data synchronization, device and electronic equipment | |
CN110287372A (en) | Label for negative-feedback determines method, video recommendation method and its device | |
WO2018076174A1 (en) | Multimedia editing method and device, and smart terminal | |
US20220028424A1 (en) | Systems for optimized presentation capture | |
CN104243590A (en) | Resource object recommendation method and device | |
CN110113389A (en) | A kind of video broadcasting method, device, electronic equipment and storage medium | |
CN106558305A (en) | voice data processing method and device | |
CN104601535B (en) | Method for processing video frequency and system | |
CN104978377A (en) | Multimedia data processing method, multimedia data processing device and terminal | |
US11540004B2 (en) | Methods, apparatuses, computer-readable storage media and electronic devices for video playback | |
CN109561339A (en) | The treating method and apparatus of video file | |
CN110505502A (en) | A kind of method for processing video frequency, equipment and computer readable storage medium | |
CN107040826A (en) | Video loading method and device, computer installation and computer-readable recording medium | |
JP2006146294A (en) | Data storage control system | |
US20210322825A1 (en) | Graph Based Method of Next Pitch Prediction | |
CN111599449B (en) | Automatic playing method, device and equipment of electronic image and storage medium | |
US11055217B2 (en) | Using additional intermediate buffer queues to identify interleaved media data to be read together | |
WO2016145829A1 (en) | Media file playback control method, device and storage medium | |
CN112463746A (en) | File storage and generation method and device and electronic equipment | |
JP2005136485A (en) | Edit apparatus | |
CN112019912A (en) | Screen recording method, device, equipment and medium | |
CN110970059A (en) | Multimedia information playing method and device and readable storage medium |
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 |