CN103096164A - Handling method and handling device of live broadcast stream - Google Patents

Handling method and handling device of live broadcast stream Download PDF

Info

Publication number
CN103096164A
CN103096164A CN 201310048878 CN201310048878A CN103096164A CN 103096164 A CN103096164 A CN 103096164A CN 201310048878 CN201310048878 CN 201310048878 CN 201310048878 A CN201310048878 A CN 201310048878A CN 103096164 A CN103096164 A CN 103096164A
Authority
CN
China
Prior art keywords
video
fragment file
frame
video fragment
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201310048878
Other languages
Chinese (zh)
Inventor
张金良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN 201310048878 priority Critical patent/CN103096164A/en
Publication of CN103096164A publication Critical patent/CN103096164A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a handling method and a handling device of live broadcast stream, wherein the handling method of live broadcast stream includes the following steps: obtaining indexed files of the live broadcast stream, downloading video fragment files according to the sequence of the video fragment files of the indexed files and downloading addresses and playing downloaded video fragment files according to the sequence. Due to the fact that the video fragment files are directly played and duration of each video fragment file is preset and does not change as the duration of the live broadcast stream increases, video frame location is conducted in the video fragment files and video frame location in live broadcast stream can be achieved.

Description

A kind of live TV stream processing method and device
Technical field
The present invention relates to field of video processing, more specifically, relate to a kind of live TV stream processing method and device.
Background technology
Along with people are more and more higher to the spread requirement of putting of live telecast, the continuous videos cutting in real time that need to play cable television channels is video frequency program independently in logic one by one, then these video frequency programs is pushed to network in real time and watches to the user.
At present, for the broadcast of live telecast stream, usually first download by the converted fragment of the video one by one file of live TV stream from video server, then the video fragment file group of downloading is made into video flowing, this video flowing is play.
Yet, due to the video fragment file of constantly downloading the live TV stream conversion, total duration of the video flowing of broadcast constantly increases, and causes realizing the location of frame of video, make the video editing personnel to edit video, also just the video in live TV stream can't be carried out cutting.
Summary of the invention
In view of this, the purpose of the embodiment of the present invention is to propose a kind of live TV stream processing method and device, the location of using this live TV stream processing method can realize frame of video in live TV stream.
In order to achieve the above object, the present invention proposes a kind of live TV stream processing method, comprises the following steps:
Obtain the index file of live TV stream;
Order and download address foradownloaded video fragment file according to the video fragment file in described index file;
Video fragment file according to described played in order download.
In the embodiment of the present invention owing to play-overing video fragment file, and the duration of each video fragment file sets in advance, can not change along with the duration increase of live TV stream, therefore the frame of video location can be carried out in video fragment file, thereby the frame of video location in live TV stream can be realized.
Preferred as technique scheme, described method also comprises: the numbering that records in progress video fragment file; Judge in progress video fragment file and whether have default frame of video; When having default frame of video in progress video fragment file, the numbering of output record and the position of described default frame of video in described in progress video fragment file.Can realize the location of frame of video like this.
Preferred as technique scheme, described default frame of video comprises start frame and end frame, described method also comprises: according to the numbering of start frame and end frame place video fragment file and start frame and the position of end frame in video fragment file, the frame of video from described start frame to the video fragment file of playing between described end frame is stored as video file.Can obtain required video like this from live TV stream.
Preferred as technique scheme, described method also comprises: the numbering that records in progress video fragment file; Judge whether to receive the instruction that suspends displaying video fragment file; When receiving the instruction that suspends displaying video fragment file, the position of frame of video in described in progress video fragment file the when numbering of output record and time-out.Can realize the location of frame of video like this.
Preferred as technique scheme, described method also comprises:
When receiving the instruction of twice time-out displaying video fragment file, the numbering of the frame of video place video fragment file when suspending according to twice and the position in video fragment file respectively, the frame of video in the video fragment file of playing between the frame of video when twice is suspended is stored as video file.Can obtain required video like this from live TV stream.
The embodiment of the present invention also proposes a kind of live TV stream processing unit, comprising:
Acquisition module is for the index file that obtains live TV stream;
Download module is used for order and download address foradownloaded video fragment file according to the video fragment file of described index file;
Playing module is used for the video fragment file of downloading according to described played in order.
Preferred as technique scheme, described device also comprises:
Logging modle is for the numbering that records in progress video fragment file;
The first judge module is used for judging whether in progress video fragment file exists default frame of video;
The first output module, when having default frame of video in progress video fragment file, the numbering of output record and the position of described default frame of video in described in progress video fragment file.
Preferred as technique scheme, described device also comprises:
The first processing module, be used for comprising start frame and end frame when described default frame of video, according to the numbering of start frame and end frame place video fragment file and start frame and the position of end frame in video fragment file, the frame of video from described start frame to the video fragment file of playing between described end frame is stored as video file.
Preferred as technique scheme, described device also comprises:
Logging modle is for the numbering that records in progress video fragment file;
The second judge module is used for judging whether to receive the instruction that suspends displaying video fragment file;
The second output module is used for when receiving the instruction that suspends displaying video fragment file the position of frame of video in described in progress video fragment file the when numbering of output record and time-out.
Preferred as technique scheme, described device also comprises:
The second processing module, be used for when receiving the instruction of twice time-out displaying video fragment file, the numbering of the frame of video place video fragment file when suspending according to twice and the position in video fragment file respectively, the frame of video in the video fragment file of playing between the frame of video when twice is suspended is stored as video file.
The further feature of the embodiment of the present invention and advantage will be set forth in the following description, and, partly become apparent from specification, perhaps understand by implementing the embodiment of the present invention.The purpose of the embodiment of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of writing, claims and accompanying drawing.
Below by drawings and Examples, the technical scheme of the embodiment of the present invention is described in further detail.
Description of drawings
Accompanying drawing is used to provide the further understanding to the embodiment of the present invention, and consists of the part of specification, does not consist of the restriction to the embodiment of the present invention.In the accompanying drawings:
Fig. 1 is the main flow chart of the live TV stream processing method of embodiment of the present invention proposition;
Fig. 2 is the flow chart of realizing the live TV stream processing method of frame of video location in the embodiment of the present invention;
Fig. 3 is the another kind of flow chart of realizing the live TV stream processing method that frame of video is located in the embodiment of the present invention;
Fig. 4 is the structural representation of the live TV stream processing unit of embodiment of the present invention proposition.
Embodiment
Below in conjunction with accompanying drawing, preferred embodiment is described, should be appreciated that preferred embodiment described herein only is used for the description and interpretation embodiment of the present invention, is not intended to limit the present invention embodiment.
Be illustrated in figure 1 as the main flow process of the live TV stream processing method of embodiment of the present invention proposition, comprise the following steps:
Step S101: the index file that obtains live TV stream.
Video server is divided into video fragment file with live TV stream, and generating indexes file has simultaneously been put down in writing order and the download address of a series of video fragment files in index file.Preferably, video server can be divided into live TV stream TS(Transport Stream, transport stream) file of form, and the file of the TS form of cutting apart is normally isometric.
Step S102: according to order and the download address foradownloaded video fragment file of the video fragment file in described index file.
Step S103: according to the video fragment file of described played in order download.
The main thought of the embodiment of the present invention is: the video fragment file group of downloading is not made into video flowing and plays, but play-over the video fragment file of download.
Because the duration of each video fragment file sets in advance, can not change along with the duration increase of live TV stream, therefore can carry out the frame of video location in video fragment file, thereby can realize the frame of video location in live TV stream.
Introduce in detail implementation procedure below by two exemplary embodiments.
As shown in Figure 2, realize in the embodiment of the present invention that the live TV stream processing method that frame of video is located comprises the following steps:
Step S201: the index file that obtains live TV stream.
The index file that is generated by video server can be for example the index file of m3u8 form, put down in writing the index of a series of TS files that live TV stream is split to form in this index file.
Step S202: resolve described index file, obtain order and the download address of video fragment file.
Step S203: according to described order and download address foradownloaded video fragment file.
Step S204: download the video fragment file of completing according to described played in order.
In this step, download the video fragment file of completing, just can play, and a plurality of video fragment file group that need not wait for downloads are made into video flowing.
Step S205: the filename that records current in progress video fragment file.
Wherein, record the numbering (i.e. order) of this video fragment file in a series of video fragment files of this live TV stream in the filename of video fragment file.
Step S206: judge in progress video fragment file whether have default frame of video; If, execution in step S207; If not, repeat this determining step.
Wherein, judge whether exist default frame of video can adopt following methods in progress video fragment file: with each frame and the default frame of video of video fragment file compare (for example difference between compute histograms), during greater than preset value, confirm to exist in video fragment file default frame of video when similarity.
Step S207: the filename of the in progress video fragment file of output record and the position of default frame of video in progress video fragment file.
The present embodiment can be realized the location of default frame of video.
In other embodiments of the invention, when default described default frame of video comprises start frame and end frame, described method can also according to the numbering of start frame and end frame place video fragment file and start frame and the position of end frame in video fragment file, be stored as video file with the frame of video from described start frame to the video fragment file of playing between described end frame.Can obtain easily so the required video in live TV stream.
As shown in Figure 3, in the embodiment of the present invention, the another kind of live TV stream processing method that realizes that frame of video is located comprises the following steps:
Step S301: the index file that obtains live TV stream.
The index file that is generated by video server can be for example the index file of m3u8 form, put down in writing the index of a series of TS files that live TV stream is split to form in this index file.
Step S302: resolve described index file, obtain order and the download address of video fragment file.
Step S303: according to described order and download address foradownloaded video fragment file.
Step S304: download the video fragment file of completing according to described played in order.
In this step, download the video fragment file of completing and just can play, and a plurality of video fragment file group that need not wait for downloads are made into video flowing.
Step S305: the filename that records current in progress video fragment file.
Wherein, record the numbering (i.e. order) of this video fragment file in a series of video fragment files of this live TV stream in the filename of video fragment file.
Step S306: judge whether to receive the instruction that suspends displaying video fragment file, if, execution in step S307; If not, repeat this determining step.
Step S307: the position of frame of video in progress video fragment file the when filename of the current in progress video fragment file of output record and time-out.
The present embodiment also can be realized the location of default frame of video.
In other embodiments of the invention, when receiving the instruction of twice time-out displaying video fragment file, the numbering of the frame of video place video fragment file when suspending according to twice and the position in video fragment file respectively, the frame of video in the video fragment file of playing between the frame of video when twice is suspended is stored as video file.Can obtain easily so the required video in live TV stream.
Correspondingly, the embodiment of the present invention also proposes a kind of live TV stream processing unit, as shown in Figure 4, comprising:
Acquisition module 401 is for the index file that obtains live TV stream;
Download module 402 is used for order and download address foradownloaded video fragment file according to the video fragment file of described index file;
Playing module 403 is used for the video fragment file of downloading according to described played in order.
Preferably, described device also comprises:
Logging modle is for the numbering that records in progress video fragment file;
The first judge module is used for judging whether in progress video fragment file exists default frame of video;
The first output module, when having default frame of video in progress video fragment file, the numbering of output record and the position of described default frame of video in described in progress video fragment file.
Preferably, described device also comprises:
The first processing module, be used for comprising start frame and end frame when described default frame of video, according to the numbering of start frame and end frame place video fragment file and start frame and the position of end frame in video fragment file, the frame of video from described start frame to the video fragment file of playing between described end frame is stored as video file.
Preferably, described device also comprises:
Logging modle is for the numbering that records in progress video fragment file;
The second judge module is used for judging whether to receive the instruction that suspends displaying video fragment file;
The second output module is used for when receiving the instruction that suspends displaying video fragment file the position of frame of video in described in progress video fragment file the when numbering of output record and time-out.
Preferably, described device also comprises:
The second processing module, be used for when receiving the instruction of twice time-out displaying video fragment file, the numbering of the frame of video place video fragment file when suspending according to twice and the position in video fragment file respectively, the frame of video in the video fragment file of playing between the frame of video when twice is suspended is stored as video file.
Those skilled in the art should understand, the embodiment of the present invention can be provided as method, system or computer program.Therefore, the embodiment of the present invention can adopt complete hardware to realize, software is realized or in conjunction with the form of the realization of software and hardware aspect fully.And the embodiment of the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code one or more.
The embodiment of the present invention is that flow chart and/or the block diagram of reference method, equipment (system) and computer program described.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computer or other programmable data processing device produce to be used for the device of realizing in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, make on computer or other programmable device and to carry out the sequence of operations step producing computer implemented processing, thereby be provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame in the instruction of carrying out on computer or other programmable device.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the embodiment of the present invention the embodiment of the present invention.Like this, if within these of the embodiment of the present invention are revised and modification belongs to the scope of claim and equivalent technologies thereof, the embodiment of the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. a live TV stream processing method, is characterized in that, comprises the following steps:
Obtain the index file of live TV stream;
Order and download address foradownloaded video fragment file according to the video fragment file in described index file;
Video fragment file according to described played in order download.
2. method according to claim 1, is characterized in that, described method also comprises:
Record the numbering of in progress video fragment file;
Judge in progress video fragment file and whether have default frame of video;
When having default frame of video in progress video fragment file, the numbering of output record and the position of described default frame of video in described in progress video fragment file.
3. method according to claim 2, is characterized in that, described default frame of video comprises start frame and end frame, and described method also comprises:
According to the numbering of start frame and end frame place video fragment file and start frame and the position of end frame in video fragment file, the frame of video from described start frame to the video fragment file of playing between described end frame is stored as video file.
4. method according to claim 1, is characterized in that, described method also comprises:
Record the numbering of in progress video fragment file;
Judge whether to receive the instruction that suspends displaying video fragment file;
When receiving the instruction that suspends displaying video fragment file, the position of frame of video in described in progress video fragment file the when numbering of output record and time-out.
5. method according to claim 4, is characterized in that, described method also comprises:
When receiving the instruction of twice time-out displaying video fragment file, the numbering of the frame of video place video fragment file when suspending according to twice and the position in video fragment file respectively, the frame of video in the video fragment file of playing between the frame of video when twice is suspended is stored as video file.
6. a live TV stream processing unit, is characterized in that, comprising:
Acquisition module is for the index file that obtains live TV stream;
Download module is used for order and download address foradownloaded video fragment file according to the video fragment file of described index file;
Playing module is used for the video fragment file of downloading according to described played in order.
7. device according to claim 6, is characterized in that, described device also comprises:
Logging modle is for the numbering that records in progress video fragment file;
The first judge module is used for judging whether in progress video fragment file exists default frame of video;
The first output module, when having default frame of video in progress video fragment file, the numbering of output record and the position of described default frame of video in described in progress video fragment file.
8. device according to claim 7, is characterized in that, described device also comprises:
The first processing module, be used for comprising start frame and end frame when described default frame of video, according to the numbering of start frame and end frame place video fragment file and start frame and the position of end frame in video fragment file, the frame of video from described start frame to the video fragment file of playing between described end frame is stored as video file.
9. device according to claim 6, is characterized in that, described device also comprises:
Logging modle is for the numbering that records in progress video fragment file;
The second judge module is used for judging whether to receive the instruction that suspends displaying video fragment file;
The second output module is used for when receiving the instruction that suspends displaying video fragment file the position of frame of video in described in progress video fragment file the when numbering of output record and time-out.
10. device according to claim 9, is characterized in that, described device also comprises:
The second processing module, be used for when receiving the instruction of twice time-out displaying video fragment file, the numbering of the frame of video place video fragment file when suspending according to twice and the position in video fragment file respectively, the frame of video in the video fragment file of playing between the frame of video when twice is suspended is stored as video file.
CN 201310048878 2013-02-06 2013-02-06 Handling method and handling device of live broadcast stream Pending CN103096164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310048878 CN103096164A (en) 2013-02-06 2013-02-06 Handling method and handling device of live broadcast stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310048878 CN103096164A (en) 2013-02-06 2013-02-06 Handling method and handling device of live broadcast stream

Publications (1)

Publication Number Publication Date
CN103096164A true CN103096164A (en) 2013-05-08

Family

ID=48208210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310048878 Pending CN103096164A (en) 2013-02-06 2013-02-06 Handling method and handling device of live broadcast stream

Country Status (1)

Country Link
CN (1) CN103096164A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244079A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Video download method and device
CN105491400A (en) * 2015-11-24 2016-04-13 腾讯科技(深圳)有限公司 Video stream downloading method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244079A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Video download method and device
CN105491400A (en) * 2015-11-24 2016-04-13 腾讯科技(深圳)有限公司 Video stream downloading method and device
CN105491400B (en) * 2015-11-24 2020-06-02 腾讯科技(深圳)有限公司 Video stream downloading method and device

Similar Documents

Publication Publication Date Title
CN103414949B (en) A kind of multimedia edit system based on intelligent television and method
CN105025319A (en) Video pushing method and device
CN106028092A (en) Television screenshot sharing method and device
CN103096131B (en) A kind of live method for stream processing and device
JP6182609B2 (en) Subtitle processing method, apparatus, system, and storage medium
CN103024289A (en) Method and device for editing live stream on basis of M3U8 listing protocol
CN103491427A (en) Method and device for processing video
CN105898538A (en) Play method and device and mobile terminal equipment based on Android platform
CN104869477A (en) Method and device for segmented playing of video
CN106331089A (en) Video play control method and system
CN104185088A (en) Video processing method and device
CN104954850B (en) The dispatching method and device of non-linear editing software
CN104935975A (en) Short video record playing method and apparatus
CN103096164A (en) Handling method and handling device of live broadcast stream
CN103648021B (en) The method that network video file is played from USB storage device
CN104822087A (en) Processing method and apparatus of video segment
CN105472207A (en) Method and device for video audio file rendering
CN104506920A (en) Method and device for playing omnimedia data information
CN205105345U (en) Audio frequency and video playback devices
CN104837061A (en) Method and device for modifying and managing video playlist
CN104185085A (en) Video on-demand method and device
JP6642016B2 (en) Distribution equipment and information equipment
CN103514196A (en) Information processing method and electronic device
CN104935974A (en) Playlist editing method and apparatus
US20130232144A1 (en) Managing storyboards

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130508