CN108235151A - A kind of method and apparatus of net cast - Google Patents

A kind of method and apparatus of net cast Download PDF

Info

Publication number
CN108235151A
CN108235151A CN201711490017.XA CN201711490017A CN108235151A CN 108235151 A CN108235151 A CN 108235151A CN 201711490017 A CN201711490017 A CN 201711490017A CN 108235151 A CN108235151 A CN 108235151A
Authority
CN
China
Prior art keywords
file
slice
data
sliced
server
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
CN201711490017.XA
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201711490017.XA priority Critical patent/CN108235151A/en
Publication of CN108235151A publication Critical patent/CN108235151A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/4402Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4

Abstract

An embodiment of the present invention provides a kind of method and apparatus of net cast, the method includes:Current live data is sliced, obtains multiple slice files;It determines and the multiple slice corresponding index file of file;The multiple slice file and its corresponding index file are stored to server;When receiving play instruction, target slice file is downloaded from the server;According to the target slice file generated video file;Play the video file.The present embodiment to be each by being sliced file generated index file, so that the slice file stored to server can be corresponding with some index file, even if being sliced service in the case where server generates exception is switched to other servers, the integrality of video recording can be also ensured.Later after it confirmed the broadcast information of user, video recording slice can quickly be positioned by search index file, complete video information is provided.

Description

A kind of method and apparatus of net cast
Technical field
The present invention relates to field of communication technology, method and a kind of dress of net cast more particularly to a kind of net cast It puts.
Background technology
Net cast refers to the live streaming using internet and stream media technology progress.Because video fusion image, word, The abundant element such as sound, excellent both in sound and shape, excellent so that net cast has been increasingly becoming the mainstream expression way of internet.
When carrying out net cast, live TV stream can usually be distributed to each node, such as CDN by dissemination system (Content Delivery Network, content distributing network), so as to which user is facilitated to watch live streaming in time.
At present, when carrying out net cast, the audio, video data of generation, which is broadcast live, can also be stored to cloud server, supply User downloads.But traditional CDN is abnormal if there is disconnecting or service in live streaming, can to store to server Audio, video data go out active.After user downloads to above-mentioned audio, video data from server, the Video content watched Also can be incomplete.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly State a kind of method of net cast of problem and a kind of corresponding device of net cast.
One side according to the present invention provides a kind of method of net cast, including:
Current live data is sliced, obtains multiple slice files;
It determines and the multiple slice corresponding index file of file;
The multiple slice file and its corresponding index file are stored to server;
When receiving play instruction, target slice file is downloaded from the server;
According to the target slice file generated video file;
Play the video file.
Optionally, it is described that current live data is sliced, obtain it is multiple slice file the step of include:
Acquire the audio data and/or video data of current live streaming;
The audio data and/or video data are sliced, obtain multiple slice files.
Optionally, it is described that the audio data and/or video data are sliced, obtain multiple the step of being sliced file Including:
According to preset format, the audio data and/or video data are encapsulated as target data;
The target data is sliced, obtains multiple slice files.
Optionally, the audio data and/or video data are sliced described, obtain the step of multiple slice files After rapid, further include:
Respectively by slice file of each slice Document encapsulation for preset format.
Optionally, the preset format is TS forms.
Optionally, described the step of determining index file corresponding with the multiple slice file, includes:
Obtain the time stamp data of each slice file;
According to the time stamp data, multiple slice files in prefixed time interval are obtained;
Using sart point in time as key, according to the prefixed time interval, index file name is formatted, traverses the end time Until all indexes, and generate new index file.
Optionally, it is described when receiving play instruction, include from the step of server download target slice file:
When receiving play instruction, the reproduction time information in the play instruction is determined;
The target slice file for matching the reproduction time information is downloaded from the server.
Optionally, described the step of downloading the target slice file for matching the reproduction time information from the server, wraps It includes:
Traverse the index file stored in the server;
Determine the target index file with the reproduction time information match;
Download the corresponding target slice file of the target index file.
Optionally, it is described to include according to the step of target slice file generated video file:
It is sequentially in time video file by each target slice Piece file mergence.
According to another aspect of the present invention, a kind of device of net cast is provided, including:
Module is sliced, for being sliced to current live data, obtains multiple slice files;
Determining module, for determining and the multiple slice corresponding index file of file;
Memory module, for storing the multiple slice file and its corresponding index file to server;
Download module, for when receiving play instruction, target slice file to be downloaded from the server;
Generation module, for according to the target slice file generated video file;
Playing module, for playing the video file.
Optionally, the slice module includes:
Submodule is acquired, for acquiring the audio data of current live streaming and/or video data;
Submodule is sliced, for being sliced to the audio data and/or video data, obtains multiple slice files.
Optionally, the slice submodule includes:
Encapsulation unit, for according to preset format, the audio data and/or video data to be encapsulated as target data;
Unit is sliced, for being sliced to the target data, obtains multiple slice files.
Optionally, the slice module further includes:
Submodule is encapsulated, for respectively by slice file of each slice Document encapsulation for preset format.
Optionally, the preset format is TS forms.
Optionally, the determining module includes:
First acquisition submodule, for obtaining the time stamp data of each slice file;
Second acquisition submodule, for according to the time stamp data, obtaining multiple slices text in prefixed time interval Part;
Submodule is generated, for using sart point in time as key, according to the prefixed time interval, formatting index file Name, all indexes until traversing the end time, and generate new index file.
Optionally, the download module includes:
First determination sub-module, for when receiving play instruction, determining that the reproduction time in the play instruction is believed Breath;
Submodule is downloaded, for downloading the target slice file for matching the reproduction time information from the server.
Optionally, the download submodule includes:
Traversal Unit, for traversing the index file stored in the server;
Determination unit, for determining the target index file with the reproduction time information match;
Download unit, for downloading the corresponding target slice file of the target index file.
Optionally, the generation module includes:
Merge submodule, for sequentially in time will each target slice Piece file mergence be video file.
According to the third aspect of the invention we, a kind of device of net cast is provided, including processor, memory and storage On the memory and the computer program that can run on the processor, the computer program are held by the processor The step of method of above-mentioned net cast is realized during row.
According to the fourth aspect of the invention, a kind of computer readable storage medium, the computer-readable storage are provided Computer program is stored on medium, the computer program realizes the step of the method for above-mentioned net cast when being executed by processor Suddenly.
The embodiment of the present invention by being sliced to current live data, while HLS live streamings are supported, will be sliced File indexes and formats name again, then stores slice file and its corresponding index file to server, thus When receiving play instruction, new video recording index and corresponding slice text can be synthesized from server download formats index list Part.The present embodiment is by for each slice file generated index file so that the slice file stored to server can be with Some index file is corresponding, even if being sliced service in the case where server generates exception is switched to other servers, also can Ensure the integrality of video recording.Later after it confirmed the broadcast information of user, can quickly it be determined by search index file Position video recording slice, provides complete video information.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of step flow diagram of the method for net cast according to an embodiment of the invention;
Fig. 2 shows the step flow diagrams of the method for another net cast according to an embodiment of the invention; And
Fig. 3 shows a kind of schematic block diagram of the device of net cast according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
With reference to Fig. 1, a kind of step flow signal of the method for net cast according to an embodiment of the invention is shown Figure, specifically may include steps of:
Step 101, current live data is sliced, obtains multiple slice files;
In embodiments of the present invention, current live data can be based on HLS (HTTP Live Streaming, it is super literary This transport protocol live broadcast stream media) agreement live data.HLS stream media technologys are low with demanding terminal with streaming server, The advantages that can ensureing the fluency played under heterogeneous networks by multi code Rate of Chinese character, it is increasingly becoming internet video business in recent years In a kind of widely used technology.
In general, user when being broadcast live, can acquire audio number by equipment such as the camera in terminal and microphones According to and video data.Therefore, the audio data and video that can refer to collecting are sliced to current live data The slice that data carry out.
In the concrete realization, live data can be sliced sequentially in time so that is obtained after slice is each Slice file is respectively provided with corresponding timestamp.
Step 102, it determines and the multiple slice corresponding index file of file;
In embodiments of the present invention, can be respectively each slice file setting phase after being sliced to live data The index file answered.
In the concrete realization, index file can be set for each slice file according to certain time interval.
It for example, can be with ten minutes for an interval, by the slice file obtained in every ten minutes and an index file It is corresponding;Alternatively, then the slice file obtained in each hour and one can also be indexed with one hour for an interval File is corresponded to.Those skilled in the art can select the length of the time interval of setting index file according to actual needs, The present embodiment is not construed as limiting this.
In embodiments of the present invention, in the corresponding index file of setting slice file, it is also necessary to respectively to each index File is named, and can subsequently be positioned in time when downloading to required index file and slice file with facilitating.
In the concrete realization, index file can be named with the formatted. times at time point.For example, can be with Time point during first slice files generated in the whole slice files included in some index file is to time interval Modulus names the index file, can be directly targeted to index file when positioning and indexing with same naming method in this way.
Step 103, the multiple slice file and its corresponding index file are stored to server;
In embodiments of the present invention, live data is being sliced and is being respectively the corresponding index text of each slice setting After part, slice file and its corresponding index file can be stored to server.
Step 104, when receiving play instruction, target slice file is downloaded from the server;
In embodiments of the present invention, play instruction can refer to that user watches the instruction of live data.It can in play instruction To include reproduction time information, which can refer to that user wishes to start the live streaming corresponding period of viewing, Server can traverse corresponding index file according to user's play instruction information, then provide new index list, and download Corresponding slice file.Above-mentioned new index list can be HLS video recording index lists.
For example, user wishes to watch the data since A time points, then a period of time since A time points be and broadcast Put the reproduction time information in instruction.
It should be noted that reproduction time information can since the time point live streaming to appointing current time point One time point.The present embodiment is not construed as limiting this.
Step 105, according to the target slice file generated video file;
It in embodiments of the present invention, can be according to the time of each target slice file after target slice file is downloaded Sequencing merges whole target slice files, so as to generate video file.
Step 106, the video file is played.
User can record a video index list to play video recording according to newly-generated HLS.In embodiments of the present invention, by right Current live data is sliced, and while HLS live streamings are supported, slice file is indexed again and formats name, so Slice file and its corresponding index file are stored to server afterwards, thus when receiving play instruction, it can be from service Device download formats index list synthesizes new video recording index and corresponding slice file.The present embodiment passes through literary for each slice Part generates index file so that the slice file stored to server can be corresponding with some index file, even if taking Business device is sliced service in the case of generating exception and is switched to other servers, can also ensure the integrality of video recording.Confirming later After the broadcast information of user, video recording slice can quickly be positioned by search index file, complete video recording letter is provided Breath.
With reference to Fig. 2, show that the step flow of the method for another net cast according to an embodiment of the invention is shown It is intended to, specifically may include steps of:
Step 201, current live data is sliced, obtains multiple slice files;
In embodiments of the present invention, when user is when being broadcast live, the camera in terminal and microphone etc. can be passed through Equipment acquires the audio data and/or video data of current live streaming, and then above-mentioned audio data and/or video data are carried out Slice, so as to obtain multiple slice files.
In the concrete realization, after audio data and/or video data is collected, can first, in accordance with preset format, Above-mentioned audio data and/or video data are encapsulated as target data, then target data is sliced, obtains multiple slices File.Wherein, target data can be the live data based on HLS protocol.
In embodiments of the present invention, after multiple slice files are obtained, can also be by each slice Document encapsulation respectively The slice file of preset format, the preset format can be TS (Transport Stream, transmitting stream) form.
Therefore, in embodiments of the present invention, acquiring audio data and/or video data and be encapsulated into HLS forms Target data after, the target data of HLS forms can be sliced, obtain the slice file of multiple TS forms.
Step 202, the time stamp data of each slice file is obtained;
In embodiments of the present invention, target data can be sliced sequentially in time.Therefore, it is obtained after slice After multiple slice files, it may be determined that the timestamp of each slice file.
Step 203, according to the time stamp data, multiple slice files in prefixed time interval are obtained;
In embodiments of the present invention, index file can be set for each slice file according to certain time interval.Cause This, after the slicing is completed, can extract multiple slices text in prefixed time interval according to the timestamp of each slice file Part.
For example, the slice file obtained in every ten minutes can be extracted with ten minutes for prefixed time interval;Or Then person can also extract the slice file obtained in each hour with one hour for prefixed time interval.This implementation Example is not construed as limiting the length of prefixed time interval.
Step 204, using sart point in time as key, according to the prefixed time interval, index file name is formatted, is traversed All indexes until end time, and generate new index file;
Step 205, the multiple slice file and its corresponding new index file are stored to server;
In embodiments of the present invention, the index file for being sliced file and its name of corresponding all formatting can be stored To server.
Step 206, when receiving play instruction, the reproduction time information in the play instruction is determined;
In embodiments of the present invention, play instruction can refer to that user watches the instruction of live data.It is played when receiving During instruction, the reproduction time information in the instruction can be extracted first.
In embodiments of the present invention, reproduction time information can refer to that user wishes to start the live streaming corresponding time of viewing Section.For example, user wishes to watch the data since A time points, then a period of time since A time points is play instruction In reproduction time information.
Step 207, the target slice file for matching the reproduction time information is downloaded from the server;
In embodiments of the present invention, when downloading target slice file, the index that can store in traversal server first Then file determines the target index file with above-mentioned reproduction time information match, and it is corresponding to download target index file Target slice file.
Step 208, sequentially in time by each target slice Piece file mergence be video file;
In embodiments of the present invention, can determine the time sequencing of each target slice file first, then according to this when Between sequence whole target slice files is merged, so as to generate video file.
Step 209, the video file is played.
After video file is generated, above-mentioned video file can be played to user.
In embodiments of the present invention, by being the slice file of TS forms, and generate by the live data slice of HLS forms The index file of each slice file, then stores slice file and its index file to server, so as to play When, the target slice file of matching reproduction time information is found out in the server and generates video file, even if in server When there is disconnecting or abnormal service, corresponding slice file can be also found by search index file, convenient for rapidly Positioning ensure that the integrality of the video file of generation to required slice file.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this field Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, certain steps may be used other sequences or are carried out at the same time.Secondly, those skilled in the art should also know, specification Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 3, a kind of schematic structure frame of the device of net cast according to an embodiment of the invention is shown Figure, can specifically include following module:
Module 301 is sliced, for being sliced to current live data, obtains multiple slice files;
Determining module 302, for determining and the multiple slice corresponding index file of file;
Memory module 303, for storing the multiple slice file and its corresponding index file to server;
Download module 304, for when receiving play instruction, target slice file to be downloaded from the server;
Generation module 305, for according to the target slice file generated video file;
Playing module 306, for playing the video file.
In embodiments of the present invention, the slice module 301 can specifically include following submodule:
Submodule is acquired, for acquiring the audio data of current live streaming and/or video data;
Submodule is sliced, for being sliced to the audio data and/or video data, obtains multiple slice files.
In embodiments of the present invention, the slice submodule can specifically include such as lower unit:
Encapsulation unit, for according to preset format, the audio data and/or video data to be encapsulated as target data;
Unit is sliced, for being sliced to the target data, obtains multiple slice files.
In embodiments of the present invention, the slice module 301 can also include following submodule:
Submodule is encapsulated, for respectively by slice file of each slice Document encapsulation for preset format.
In embodiments of the present invention, the preset format can be TS forms.
In embodiments of the present invention, the determining module 302 can specifically include following submodule:
First acquisition submodule, for obtaining the time stamp data of each slice file;
Second acquisition submodule, for according to the time stamp data, obtaining multiple slices text in prefixed time interval Part;
Submodule is generated, for using sart point in time as key, according to the prefixed time interval, formatting index file Name, all indexes until traversing the end time, and generate new index file.
In embodiments of the present invention, the download module 304 can specifically include following submodule:
First determination sub-module, for when receiving play instruction, determining that the reproduction time in the play instruction is believed Breath;
Submodule is downloaded, for downloading the target slice file for matching the reproduction time information from the server.
In embodiments of the present invention, the download submodule can specifically include such as lower unit:
Traversal Unit, for traversing the index file stored in the server;
Determination unit, for determining the target index file with the reproduction time information match;
Download unit, for downloading the corresponding target slice file of the target index file.
In embodiments of the present invention, the generation module 305 can specifically include following submodule:
Merge submodule, for sequentially in time will each target slice Piece file mergence be video file.
The embodiment of the present invention additionally provides a kind of device of net cast, including processor, memory and is stored in described It is real when the computer program is performed by the processor on memory and the computer program that can run on the processor Now the step of method of net cast as described above.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is deposited on the computer readable storage medium The step of storage computer program, the computer program realizes the method for net cast as described above when being executed by processor.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization or to be run on one or more processor Software module realize or realized with combination thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are realized in the method and apparatus of net cast according to embodiments of the present invention Some or all components some or all functions.The present invention is also implemented as performing side as described herein The some or all equipment or program of device (for example, computer program and computer program product) of method.It is such Realizing the program of the present invention can may be stored on the computer-readable medium or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website to be obtained either providing or with any other shape on carrier signal Formula provides.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and run after fame Claim.
The invention discloses A1, a kind of method of net cast, including:
Current live data is sliced, obtains multiple slice files;
It determines and the multiple slice corresponding index file of file;
The multiple slice file and its corresponding index file are stored to server;
When receiving play instruction, target slice file is downloaded from the server;
According to the target slice file generated video file;
Play the video file.
A2, the method as described in A1, it is described that current live data is sliced, obtain multiple the step of being sliced file Including:
Acquire the audio data and/or video data of current live streaming;
The audio data and/or video data are sliced, obtain multiple slice files.
A3, the method as described in A2, it is described that the audio data and/or video data are sliced, obtain multiple cut The step of piece file, includes:
According to preset format, the audio data and/or video data are encapsulated as target data;
The target data is sliced, obtains multiple slice files.
A4, the method as described in A2 are sliced the audio data and/or video data described, obtain multiple After the step of being sliced file, further include:
Respectively by slice file of each slice Document encapsulation for preset format.
A5, the method as described in A3 or A4, the preset format are TS forms.
A6, the method as described in A1, described the step of determining index file corresponding with the multiple slice file, wrap It includes:
Obtain the time stamp data of each slice file;
According to the time stamp data, multiple slice files in prefixed time interval are obtained;
Using sart point in time as key, according to the prefixed time interval, index file name is formatted, traverses the end time Until all indexes, and generate new index file.
A7, the method as described in A6, it is described when receiving play instruction, download target slice file from the server The step of include:
When receiving play instruction, the reproduction time information in the play instruction is determined;
The target slice file for matching the reproduction time information is downloaded from the server.
A8, the method as described in A7, it is described that the target slice for matching the reproduction time information is downloaded from the server The step of file, includes:
Traverse the index file stored in the server;
Determine the target index file with the reproduction time information match;
Download the corresponding target slice file of the target index file.
A9, the method as described in A7, it is described to include according to the step of target slice file generated video file:
It is sequentially in time video file by each target slice Piece file mergence.
The invention also discloses B10, a kind of device of net cast, including:
Module is sliced, for being sliced to current live data, obtains multiple slice files;
Determining module, for determining and the multiple slice corresponding index file of file;
Memory module, for storing the multiple slice file and its corresponding index file to server;
Download module, for when receiving play instruction, target slice file to be downloaded from the server;
Generation module, for according to the target slice file generated video file;
Playing module, for playing the video file.
B11, the device as described in B10, the slice module include:
Submodule is acquired, for acquiring the audio data of current live streaming and/or video data;
Submodule is sliced, for being sliced to the audio data and/or video data, obtains multiple slice files.
B12, the device as described in B11, the slice submodule include:
Encapsulation unit, for according to preset format, the audio data and/or video data to be encapsulated as target data;
Unit is sliced, for being sliced to the target data, obtains multiple slice files.
B13, the device as described in B11, the slice module further include:
Submodule is encapsulated, for respectively by slice file of each slice Document encapsulation for preset format.
B14, the device as described in B12 or B13, the preset format are TS forms.
B15, the device as described in B10, the determining module include:
First acquisition submodule, for obtaining the time stamp data of each slice file;
Second acquisition submodule, for according to the time stamp data, obtaining multiple slices text in prefixed time interval Part;
Submodule is generated, for using sart point in time as key, according to the prefixed time interval, formatting index file Name, all indexes until traversing the end time, and generate new index file.
B16, the device as described in B15, the download module include:
First determination sub-module, for when receiving play instruction, determining that the reproduction time in the play instruction is believed Breath;
Submodule is downloaded, for downloading the target slice file for matching the reproduction time information from the server.
B17, the device as described in B16, the download submodule include:
Traversal Unit, for traversing the index file stored in the server;
Determination unit, for determining the target index file with the reproduction time information match;
Download unit, for downloading the corresponding target slice file of the target index file.
B18, the device as described in B16, the generation module include:
Merge submodule, for sequentially in time will each target slice Piece file mergence be video file.
The invention also discloses C19, a kind of devices of net cast, including processor, memory and are stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being performed by the processor The step of method of net cast as described in any one of A1 to A9.
The invention also discloses D20, a kind of computer readable storage medium, stored on the computer readable storage medium Computer program realizes the side of the net cast as described in any one of A1 to A9 when the computer program is executed by processor The step of method.

Claims (10)

1. a kind of method of net cast, including:
Current live data is sliced, obtains multiple slice files;
It determines and the multiple slice corresponding index file of file;
The multiple slice file and its corresponding index file are stored to server;
When receiving play instruction, target slice file is downloaded from the server;
According to the target slice file generated video file;
Play the video file.
2. the method as described in claim 1, which is characterized in that it is described that current live data is sliced, it obtains multiple The step of being sliced file includes:
Acquire the audio data and/or video data of current live streaming;
The audio data and/or video data are sliced, obtain multiple slice files.
3. method as claimed in claim 2, which is characterized in that described to be cut to the audio data and/or video data Piece, obtain it is multiple slice file the step of include:
According to preset format, the audio data and/or video data are encapsulated as target data;
The target data is sliced, obtains multiple slice files.
4. method as claimed in claim 2, which is characterized in that carried out described to the audio data and/or video data Slice after obtaining multiple the step of being sliced file, further includes:
Respectively by slice file of each slice Document encapsulation for preset format.
5. the method as described in claim 3 or 4, which is characterized in that the preset format is TS forms.
6. the method as described in claim 1, which is characterized in that described to determine and the multiple slice corresponding index of file The step of file, includes:
Obtain the time stamp data of each slice file;
According to the time stamp data, multiple slice files in prefixed time interval are obtained;
Using sart point in time as key, according to the prefixed time interval, index file name is formatted, until traversing the end time All indexes, and generate new index file.
7. method as claimed in claim 6, which is characterized in that it is described when receiving play instruction, under the server The step of carrying target slice file includes:
When receiving play instruction, the reproduction time information in the play instruction is determined;
The target slice file for matching the reproduction time information is downloaded from the server.
8. a kind of device of net cast, including:
Module is sliced, for being sliced to current live data, obtains multiple slice files;
Determining module, for determining and the multiple slice corresponding index file of file;
Memory module, for storing the multiple slice file and its corresponding index file to server;
Download module, for when receiving play instruction, target slice file to be downloaded from the server;
Generation module, for according to the target slice file generated video file;
Playing module, for playing the video file.
9. a kind of device of net cast, which is characterized in that including processor, memory and be stored on the memory and can The computer program run on the processor realizes such as claim when the computer program is performed by the processor The step of method of net cast described in any one of 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that computer journey is stored on the computer readable storage medium Sequence, the method that the net cast as described in any one of claim 1 to 7 is realized when the computer program is executed by processor The step of.
CN201711490017.XA 2017-12-29 2017-12-29 A kind of method and apparatus of net cast Pending CN108235151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711490017.XA CN108235151A (en) 2017-12-29 2017-12-29 A kind of method and apparatus of net cast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711490017.XA CN108235151A (en) 2017-12-29 2017-12-29 A kind of method and apparatus of net cast

Publications (1)

Publication Number Publication Date
CN108235151A true CN108235151A (en) 2018-06-29

Family

ID=62647507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711490017.XA Pending CN108235151A (en) 2017-12-29 2017-12-29 A kind of method and apparatus of net cast

Country Status (1)

Country Link
CN (1) CN108235151A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376254A (en) * 2018-09-11 2019-02-22 青岛海信移动通信技术股份有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of data flow
CN109800343A (en) * 2018-12-12 2019-05-24 四川商通实业有限公司 A kind of method and its system carrying out data acquisition based on PHP custom rule
CN110392277A (en) * 2019-07-30 2019-10-29 杭州雅顾科技有限公司 A kind of content recording method, device, equipment and the storage medium of live video
WO2020094012A1 (en) * 2018-11-06 2020-05-14 中兴通讯股份有限公司 Streaming media video data processing method and apparatus, and computer device and storage medium
CN111225242A (en) * 2020-01-17 2020-06-02 广州酷狗计算机科技有限公司 Video playing disaster tolerance method and device and computer storage medium
CN111327951A (en) * 2020-03-24 2020-06-23 苏州科达科技股份有限公司 Multimedia data playing method, device, system and storage medium
CN111447455A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Live video stream playback processing method and device and computing equipment
CN111514580A (en) * 2019-02-01 2020-08-11 网易(杭州)网络有限公司 Game video file generation method, game video file playing method and game video file playing device
CN112199052A (en) * 2020-11-04 2021-01-08 江苏特思达电子科技股份有限公司 File downloading method and device and computer equipment
CN112243159A (en) * 2019-07-19 2021-01-19 武汉佳世创科技有限公司 Data processing and reading method and server, terminal and system based on DVB
CN112584155A (en) * 2020-12-11 2021-03-30 南京中兴力维软件有限公司 Video data processing method and device
CN113038248A (en) * 2021-03-25 2021-06-25 浙江大华技术股份有限公司 File processing method and device, video playing method and device and electronic device
CN113364724A (en) * 2020-03-05 2021-09-07 中国电信股份有限公司 Live broadcast distribution method, system, device and computer readable storage medium
CN113411544A (en) * 2021-04-25 2021-09-17 青岛海尔科技有限公司 Video fragment file sending method and device, storage medium and electronic device
CN114025199A (en) * 2022-01-10 2022-02-08 北京美摄网络科技有限公司 Live video editing method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297452A (en) * 2012-02-24 2013-09-11 北京对角巷科技发展有限公司 Method and system for publishing and broadcasting streaming media on Internet in live mode
CN103607639A (en) * 2013-11-26 2014-02-26 乐视网信息技术(北京)股份有限公司 Live broadcast time shifting method and server
US20140351674A1 (en) * 2010-03-16 2014-11-27 Cleversafe, Inc. Utilizing cached encoded data slices in a dispersed storage network
CN104469433A (en) * 2013-09-13 2015-03-25 深圳市腾讯计算机系统有限公司 Live video replay method and device
CN105893433A (en) * 2015-12-09 2016-08-24 乐视云计算有限公司 File storage method, file access method, file storage device and file access device
CN106488259A (en) * 2016-10-25 2017-03-08 上海网达软件股份有限公司 A kind of virtual joining method of HLS Streaming Media burst and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351674A1 (en) * 2010-03-16 2014-11-27 Cleversafe, Inc. Utilizing cached encoded data slices in a dispersed storage network
CN103297452A (en) * 2012-02-24 2013-09-11 北京对角巷科技发展有限公司 Method and system for publishing and broadcasting streaming media on Internet in live mode
CN104469433A (en) * 2013-09-13 2015-03-25 深圳市腾讯计算机系统有限公司 Live video replay method and device
CN103607639A (en) * 2013-11-26 2014-02-26 乐视网信息技术(北京)股份有限公司 Live broadcast time shifting method and server
CN105893433A (en) * 2015-12-09 2016-08-24 乐视云计算有限公司 File storage method, file access method, file storage device and file access device
CN106488259A (en) * 2016-10-25 2017-03-08 上海网达软件股份有限公司 A kind of virtual joining method of HLS Streaming Media burst and system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376254A (en) * 2018-09-11 2019-02-22 青岛海信移动通信技术股份有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of data flow
WO2020094012A1 (en) * 2018-11-06 2020-05-14 中兴通讯股份有限公司 Streaming media video data processing method and apparatus, and computer device and storage medium
CN109800343B (en) * 2018-12-12 2022-11-22 四川商通实业有限公司 PHP self-defined rule based data acquisition method and system
CN109800343A (en) * 2018-12-12 2019-05-24 四川商通实业有限公司 A kind of method and its system carrying out data acquisition based on PHP custom rule
CN111447455A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Live video stream playback processing method and device and computing equipment
CN111514580A (en) * 2019-02-01 2020-08-11 网易(杭州)网络有限公司 Game video file generation method, game video file playing method and game video file playing device
CN111514580B (en) * 2019-02-01 2023-05-05 网易(杭州)网络有限公司 Game video file generation method, playing method and device
CN112243159A (en) * 2019-07-19 2021-01-19 武汉佳世创科技有限公司 Data processing and reading method and server, terminal and system based on DVB
CN110392277A (en) * 2019-07-30 2019-10-29 杭州雅顾科技有限公司 A kind of content recording method, device, equipment and the storage medium of live video
CN111225242A (en) * 2020-01-17 2020-06-02 广州酷狗计算机科技有限公司 Video playing disaster tolerance method and device and computer storage medium
CN113364724A (en) * 2020-03-05 2021-09-07 中国电信股份有限公司 Live broadcast distribution method, system, device and computer readable storage medium
CN113364724B (en) * 2020-03-05 2022-12-30 中国电信股份有限公司 Live broadcast distribution method, system, device and computer readable storage medium
CN111327951A (en) * 2020-03-24 2020-06-23 苏州科达科技股份有限公司 Multimedia data playing method, device, system and storage medium
CN112199052A (en) * 2020-11-04 2021-01-08 江苏特思达电子科技股份有限公司 File downloading method and device and computer equipment
CN112584155A (en) * 2020-12-11 2021-03-30 南京中兴力维软件有限公司 Video data processing method and device
CN112584155B (en) * 2020-12-11 2022-11-04 南京中兴力维软件有限公司 Video data processing method and device
CN113038248B (en) * 2021-03-25 2023-03-31 浙江大华技术股份有限公司 File processing method and device, video playing method and device and electronic device
CN113038248A (en) * 2021-03-25 2021-06-25 浙江大华技术股份有限公司 File processing method and device, video playing method and device and electronic device
CN113411544A (en) * 2021-04-25 2021-09-17 青岛海尔科技有限公司 Video fragment file sending method and device, storage medium and electronic device
CN114025199A (en) * 2022-01-10 2022-02-08 北京美摄网络科技有限公司 Live video editing method, device and system

Similar Documents

Publication Publication Date Title
CN108235151A (en) A kind of method and apparatus of net cast
CN103385008B (en) Content delivery method and system
US9948965B2 (en) Manifest re-assembler for a streaming video channel
US10728354B2 (en) Slice-and-stitch approach to editing media (video or audio) for multimedia online presentations
CN106134146B (en) Handle continuous multicycle content
JP2017519382A5 (en)
JP2019506059A5 (en)
JP2015530002A (en) Dynamic adaptive streaming over hypertext transfer protocol client behavior framework and session management implementation
JP2017063339A (en) Video content automatic generation system
CN108174229A (en) The determining method and apparatus of delay are broadcast live
CN108200444A (en) A kind of methods, devices and systems of net cast
CN108156475A (en) The monitoring method and device of a kind of net cast
CN106878815B (en) Video playing method and device
CN109218765A (en) A kind of net cast room recommended method and device
CN113767639A (en) Dynamic self-adaptive streaming transmission method and device based on HTTP
CN108174242A (en) Live data multiplexing method, device, storage medium and equipment
CN108241672A (en) A kind of method and apparatus of online displaying PowerPoint
CN108174264A (en) Synchronous lyrics display methods, system, device, medium and equipment
CN103002019A (en) Browser and method for sending webpage game message for browser
CN108235064A (en) HLS stream media live broadcasting methods and system
CN104980817B (en) A kind of video flowing takes out frame method and device
CN106060573A (en) Live broadcast method and device based on terminal screen content
CN105872857B (en) Video processing method and device and electronic equipment
CN110691280B (en) Video advertisement processing method, client, video server and readable storage medium
CN106878608A (en) A kind of mobile terminal and its processing method of taking pictures

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629

RJ01 Rejection of invention patent application after publication