CN106604062A - Streaming media on demand method and device - Google Patents
Streaming media on demand method and device Download PDFInfo
- Publication number
- CN106604062A CN106604062A CN201611099708.2A CN201611099708A CN106604062A CN 106604062 A CN106604062 A CN 106604062A CN 201611099708 A CN201611099708 A CN 201611099708A CN 106604062 A CN106604062 A CN 106604062A
- Authority
- CN
- China
- Prior art keywords
- transcoding
- fragments
- client
- encapsulation
- program request
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
- H04N21/4385—Multiplex stream processing, e.g. multiplex stream decrypting
-
- 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/4402—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 reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—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 reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
-
- 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/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/6437—Real-time Transport Protocol [RTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Abstract
The invention provides a streaming media on demand method and system. The method comprises the following steps: receiving a play request of a TS fragment in a high-definition film packaging format of a client; when determining that data cache has no storage of the TS fragment, sending a trans-coding request to a trans-coding cluster; and obtaining the TS fragment generated when the trans-coding cluster carries out transcoding encapsulation on on-demand materials from the data cache, and sending the generated TS fragment to the client. The technical scheme introduces the trans-coding cluster; when the data cache has no storage of the TS fragment, the trans-coding cluster is triggered to carry out transcoding encapsulation on the on-demand materials, so that the TS fragment can be generated efficiently and quickly for a user to play; and besides, the generated TS fragment is stored into the data cache, and can be reused when demanded again without carrying out TS fragment transcoding encapsulation again, thereby preventing resource waste.
Description
Technical field
The present invention relates to broadcasting television technology field, more particularly to a kind of stream media ordering method and device..
Background technology
Streaming Media refers to the media formats played in Internet (internet) by the way of stream transmission.Realize streaming
Transmission has sequential control design method and Real Time Streaming both approaches.Sequential control design method refer to download file while,
User may be viewed by the part downloaded, but can not jump to the part having not yet been downloaded.Real Time Streaming is adjusted according to network condition
So as to realize the in real time transmission that continues of media, user F.F. or can retreat to watch above or below the quality of output audio frequency and video
Content.Sequential control design method is based on HTTP (HTTP, HyperText Transfer Protocol, HTTP) gradually
Enter download protocol, Real Time Streaming is then based on RTSP (Real Time Streaming Protocol, real-time streaming transport association
View)/RTP (Real-time Transport Protocol, RTP) real-time stream media protocol.
At present more convenient and handy is HTTP progressive download methods, HLS (the HTTP Live of Apple
Streaming, HTTP self adaptation real-time transmission stream) be this respect representative.HLS protocol is based on HTTP HTTP
Streaming transfer protocol, the huge continuous media data of capacity are carried out into transcoding encapsulation according to certain time interval, encapsulate
For large number of TS (one of Transport Stream, high-definition movie encapsulation format) fragment, and set up m3u (8) file and enter
H.264 row transmission, its video flowing supported is encoded to, and audio stream is encoded to AAC.
When carrying out program request based on existing demand stream media system, if user is newly operated, Seek is such as carried out (in Open
The settled front writing/reading position of document that sentence is opened) operation, need to wait transcoding to be encapsulated into specifying for user Seek operations
Could continue to play after fragment, long-time Caton phenomenon easily occur, period of reservation of number is long, affect Consumer's Experience.Even if having
A little demand stream media systems can be operated according to Seek, jumped directly to the specified segment of Seek operations and carried out transcoding encapsulation, but be
System expense is excessive, and the TS fragments that transcoding encapsulation is generated can not be multiplexed, and cause the wasting of resources.
The deficiencies in the prior art are:
Existing demand stream media system transcoding packaging efficiency is low, the TS fragments that transcoding encapsulation is generated can not be multiplexed.
The content of the invention
The embodiment of the present invention is directed to the problems referred to above, it is proposed that a kind of stream media ordering method and device, improves TS fragments
Transcoding packaging efficiency, and the TS fragment reusables that transcoding encapsulation is generated.
A kind of stream media ordering method is embodiments provided, is comprised the following steps:
Receive the playing request of the high-definition movie encapsulation format TS fragments of client;
When it is determined that be not stored with data buffer storage the TS fragments when, send transcoding request to transcoding cluster;
The TS fragments that transcoding cluster carries out being generated after transcoding encapsulation to program request material are obtained from data buffer storage, by the life
Into TS fragments be sent to client.
A kind of demand stream media system is embodiments provided, including:
Processing module, for receiving the playing request of the TS fragments of client, when it is determined that not storing in data buffer storage
When stating TS fragments, send transcoding request to transcoding cluster, and transcoding cluster is obtained from data buffer storage is carried out to program request material
The TS fragments generated after transcoding encapsulation, by the TS fragments of the generation client is sent to;
Transcoding cluster module, for carrying out transcoding encapsulation to program request material TS fragments are generated, by the TS fragments storage for generating
In data buffer storage.
Have the beneficial effect that:
Current demand stream media system in on-demand process, when new operation requests (such as the Seek operations) of user is responded,
Need transcoding be encapsulated into user operation request specified segment after could continue broadcasting, due to transcoding packaging efficiency it is relatively low, user
Need to wait for the long period could continue viewing, though and some demand stream media systems can directly transcoding be encapsulated into user operation ask
Specified segment, but overhead is big, and the TS fragments that transcoding encapsulation is generated can not be multiplexed.Because the embodiment of the present invention is provided
Technical scheme introduce transcoding cluster, transcoding cluster includes multiple transcoding modules, when it is determined that the TS that is not stored with data buffer storage
Fragment, triggering transcoding cluster carries out efficient transcoding encapsulation to program request material, quickly generates TS fragments to be supplied to user to be broadcast
Put, greatly shorten the stand-by period of user, and the TS fragments of generation are stored in data buffer storage, user is in point again
Sowing time, the TS fragments that reusable transcoding encapsulation is generated, it is to avoid the wasting of resources.
Description of the drawings
The specific embodiment of the present invention is described below with reference to accompanying drawings, wherein:
The step of Fig. 1 is stream media ordering method in embodiment of the present invention schematic flow sheet;
Fig. 2 is the structural representation of streaming media on demand device in the embodiment of the present invention.
Specific embodiment
In order that technical scheme and advantage become more apparent, below in conjunction with accompanying drawing to the exemplary of the present invention
Embodiment is described in more detail, it is clear that described embodiment is only a part of embodiment of the present invention, rather than
The exhaustion of all embodiments.And in the case where not conflicting, the feature in embodiment and embodiment in this explanation can be mutual
Combine.
Inventor notices during invention:
Existing demand stream media system is in program request, if user is newly operated, such as carries out Seek operations, needs to wait for turning
Code is encapsulated into after the specified segment of Seek operations could be continued to play, and transcoding packaging efficiency is low, and period of reservation of number is long, user's body
Test difference.Though some demand stream media systems can be operated according to Seek, jump directly to the specified segment of Seek operations and carry out transcoding
Encapsulation, but overhead is excessive, and the TS fragments that transcoding encapsulation is generated can not be multiplexed, and cause the wasting of resources.
Based on this, the embodiment of the present invention proposes a kind of stream media ordering method, is illustrated below.
The step of Fig. 1 is stream media ordering method in embodiment of the present invention schematic flow sheet, as shown in figure 1, including following
Step:
Step 101, receives the playing request of the TS fragments of client;
Step 102, when it is determined that be not stored with data buffer storage the TS fragments when, send transcoding request to transcoding cluster;
Step 103, obtains the TS fragments that transcoding cluster carries out being generated after transcoding encapsulation to program request material from data buffer storage,
The TS fragments of the generation are sent to into client.
In being embodied as, transcoding cluster may include multiple transcoding modules, by multiple transcoding modules to needing transcoding to encapsulate
Program request material carry out transcoding encapsulation, it is ensured that transcoding encapsulation be efficiently rapidly completed.And the TS fragments of generation are stored in
In data buffer storage, the TS fragments reusable of the production reviews broadcasting in user or user plays again.
In enforcement, transcoding cluster carries out transcoding encapsulation generation TS fragments, the TS to program request material to set duration interval
Timestamp is carried in fragment, the timestamp is to identify the setting duration interval adopted when the program request material transcoding is encapsulated
And relative position.
For example, one section when a length of 8 points of program request materials of 56 seconds, user is carried out after program request by client, with progress during 8s
The encapsulation of row transcoding generates a TS fragment, needs transcoding to encapsulate 67 TS fragments, and when normal play was to 40 seconds, user carries out redirecting behaviour
Make, jumping to 4 points of video carries out program request in 0 second, now determine the corresponding TS fragments that are not stored with data buffer storage, trigger transcoding
Cluster starts transcoding module carries out fast transcoding encapsulation generation TS fragments, and the TS fragments that transcoding encapsulation is generated carry timestamp, should
8 seconds durations of the TS fragments correspondence program request material relative position for identifying the generation are included in timestamp, for example, video is jumped to
The timestamp of TS fragments that generates of 4 point of 0 correspondence in identify the generation TS fragments correspondence program request material 4 points 0 second to 4 point 8
8 seconds durations, certainly, jump in the range of 4 points 0 second to 4 point 8 of video, such as user jumps to 4 points 2 seconds, institute's transcoding encapsulation
The TS fragments of generation correspond to 4 points of positions of 0 second to 4 point 8 of program request material.Each is generated by the encapsulation of transcoding cluster transcoding
TS fragments all carry timestamp, and are stored in data buffer storage, it is determined that the corresponding TS of jump location that is stored with data buffer storage
During fragment, it is sent to subscription client and plays out.When user carries out reviewing operation, 4 points of video are carried out again for 0 second
The last operation of program request, it may be determined that the TS fragments of correspondence position have been stored in data buffer storage, i.e. user is by the 4 of program request material
The position of point 0 second to 4 point 8 carries out transcoding and is packaged into TS fragments, and is stored in data buffer storage, you can directly send out the TS fragments
Give subscription client to play out.
And when user carry out program request again or review to 4 points operate before within 0 second when, progress during due to employing setting
Row transcoding is encapsulated, and now only needs to carry out the video material of 4 points of non-transcoding encapsulation before in 0 second transcoding encapsulation generation TS fragments,
For the TS fragments reusable of 4 points of transcoding encapsulation afterwards in 0 second is in this operation program request, therefore, provide in the embodiment of the present invention
Streaming media on demand scheme improve transcoding packaging efficiency, and the TS pieces that transcoding encapsulation is generated repeatedly is multiplexed, reduce
Overhead, it is to avoid the wasting of resources.Wherein, duration interval transcoding encapsulation in preferably 8 seconds generates TS fragments, it is ensured that different TS pieces
Seamless connection between section, certainly, it will be recognized by those skilled in the art that uniquely can choose in the numerical value non-invention embodiment
Numerical value, it can be chosen according to the situation of being embodied as, and for example, can be chosen 5 seconds or 9 seconds etc., therefore, without departing from the present invention
On the premise of design, any possible change or replacement are carried out, belong to protection scope of the present invention.
In enforcement, transcoding cluster can start respective numbers according to the program request material duration and setting duration interval
Transcoding module carry out transcoding encapsulation simultaneously and generate TS fragments.A length of 2 points of video materials of 40 seconds when for example, for one section, if
Select to be spaced transcoding encapsulation generation TS fragments with 6 seconds durations, it is same to the video material that transcoding cluster can start 40 transcoding modules
Shi Jinhang transcodings are encapsulated, to realize transcoding encapsulation rapidly and efficiently, so as to video playback is smooth during user media streaming on demand,
When greatly shortening user's wait, customer experience is improved.Therefore, transcoding cluster can according to the program request material duration and
The transcoding module that the setting duration interval starts respective numbers carries out transcoding encapsulation and generates TS fragments simultaneously, you can be known
In the case that the setting duration of TS fragments transcoding encapsulation is spaced, the video material shorter to duration starts the transcoding of respective numbers
Module such as can allow at the transcoding module of duration respective amount;The video material longer to duration, starts the transcoding of respective numbers
Module, can start the transcoding mould of maximum quantity in respective numbers more than the maximum of transcoding module quantity in transcoding cluster certainly
Block such as can allow at the transcoding module of duration respective amount.
In enforcement, when it is determined that be stored with data buffer storage the TS fragments when, the TS fragments are sent to into client.
In enforcement, before the playing request of the reception client TS fragment, the streaming media on demand request of client is received,
Determine m3u (8) file of the Streaming Media that whether is stored with data cache module, if so, send the m3u (8) file
To client, otherwise, m3u (8) file is generated according to program request material and is sent to client.
Because HLS is realized based on http protocol, its transferring content includes m3u (8) files and TS fragments, and m3u (8) file is
Media file is described with text mode, is made up of a series of labels, wherein the maximum duration comprising each TS fragment with
And the unique sequence number of fixation etc..When user carries out program request by client, needs first make requests on to m3u (8) file, obtain
After m3u (8) file, continue to ask the TS fragments inside m3u (8) file, can just carry out program request broadcasting.Therefore, the present invention is implemented
In example, before the playing request for receiving client TS fragment, when the streaming media on demand for receiving client is asked, first determine that data are delayed
Whether m3u (8) file of Streaming Media, in m3u (8) file of the Streaming Media that is stored with, m3u (8) is literary if being stored with storing module
Part is sent to client, in m3u (8) file of the Streaming Media that is not stored with, generates m3u (8) file according to program request material and sends
To client, wherein, being sent to client according to program request material generation m3u (8) file can be by being calculated program request material
The TS number of fragments for generating and the corresponding TS segment names for acquiring, are filled into m3u (8) document convention after transcoding encapsulation
In file, generate m3u (8) file and be sent to subscription client.
For the ease of the enforcement of the present invention, further illustrated with instantiation below.
User sends streaming media on demand request to demand stream media system by client, after receiving request, first determines
Whether corresponding m3u (8) file is stored in data buffer storage, when it is determined that corresponding m3u (8) file that is stored with, then by this document
It is directly returned to client.When it is determined that corresponding m3u (8) file that is not stored with, encapsulates according to program request material duration and transcoding
The TS number of fragments generated after the setting duration interval calculation transcoding encapsulation for generating TS pieces, and the title of each TS fragments is obtained, press
Generation m3u (8) file in file is filled into according to m3u (8) rule, and the file for generating m3u (8) is returned to into client.
Client is received after m3u (8) file, continues to ask the TS fragments inside m3u (8) file, receives TS fragments
After request, determine and whether have in data buffer storage corresponding TS fragments, when it is determined that be stored with data buffer storage TS fragments when, by TS fragments
It is sent to client;When it is determined that be not stored with data buffer storage the TS fragments when, send transcoding request to transcoding cluster.
Transcoding cluster is received after transcoding request, and one or more transcoding modules are started while entering according to program request material duration
Row transcoding is encapsulated, and each transcoding module carries out transcoding encapsulation generation TS clip files, transcoding to video material to set duration interval
TS clip files after encapsulation carry timestamp, and store in data buffer storage.
In addition, if when user carries out Seek operations, asking the TS fragments specified inside m3u (8) file, finger is received
After determining TS fragment requests, determine and whether have in data buffer storage corresponding specified TS fragments, when it is determined that the finger that is stored with data buffer storage
When determining TS fragments, the TS fragments are sent to into client;When it is determined that be not stored with data buffer storage the specified TS fragments when, send out
Transcoding request is sent to transcoding cluster.
Transcoding cluster is received after transcoding request, and one or more transcoding modules are started while entering according to program request material duration
Row transcoding is encapsulated, and each transcoding module carries out transcoding to set duration interval from the specified corresponding video material position of TS fragments
Encapsulation is generated specifies TS clip files, and the specified TS clip files after transcoding encapsulation carry timestamp, and store to data buffer storage
In.
By inquiring about in real time or regularly, after it is determined that TS fragments or specified TS fragments are stored in data buffer storage, by it
Subscription client is sent to, user's streaming media on demand is completed.
For the ease of the enforcement of the present invention, it is further described with reference to scene is embodied as.
Assume that a length of 100 minutes during program request material, subscription client has been received by m3u (8) file, continue to ask m3u (8)
TS fragments inside file, now, determining when be not stored with data buffer storage TS fragments, send transcoding request to transcoding cluster,
Transcoding cluster is received after transcoding request, and start multiple transcoding modules according to program request material duration carries out transcoding encapsulation simultaneously, respectively
Transcoding module is spaced 8 seconds with setting duration, from 0 second, transcoding encapsulation in 0 second of program request material to 8 seconds is generated into a TS fragment,
Transcoding encapsulation in 8 seconds to 16 seconds generates a TS fragment, and by that analogy, each transcoding module is spaced to program request material with setting duration
Relative position carry out transcoding encapsulation and generate correspondence TS fragments, and be stored in data buffer storage.Due to transcoding cluster enable it is many
Individual transcoding module carries out transcoding encapsulation simultaneously, improves the formation efficiency of TS fragments, greatly shortens the stand-by period of user.
Assume now, user watch to program request material 5 points 21 seconds, and actual transcoding encapsulate completed the 0 of program request material
By 40 minutes, user carried out skip operation, and jump to video 56 points are watched for 12 seconds, it is determined that not storing in data buffer storage
There are TS fragments that program request material 56 point specifies for 12 seconds (56 point 8 of TS fragments correspondence program request material of the generation to be identified in timestamp
TS fragment of the second to 56 points of 8 seconds durations of 16 seconds) when, transcoding request is sent to transcoding cluster.
Transcoding cluster is received after transcoding request, and start multiple transcoding modules according to program request material duration carries out transcoding simultaneously
Encapsulation, each transcoding module is spaced 8 seconds with setting duration, from 56 points of the specified corresponding video material of TS fragments 8 seconds, by point
56 points of 8 seconds to the 56 points 16 seconds transcodings encapsulation for broadcasting material generates a TS fragment, 56 points of 16 seconds to 56 points 24 seconds transcodings encapsulation lifes
Into a TS fragment, by that analogy, each transcoding module carries out transcoding to set duration interval to the relative position of program request material
Encapsulation generates correspondence TS fragments, and is stored in data buffer storage.Also due to transcoding cluster enables multiple transcoding modules simultaneously
Transcoding encapsulation is carried out, the formation efficiency of TS fragments is improved, the stand-by period of user is greatly shortened.
Assume now, user watch to program request material 61 points 33 seconds, and actual transcoding encapsulate completed the 0 of program request material
To 40 minutes and 56 points 8 seconds to 48 seconds 90 minutes, user carries out reviewing operation again, reviews to 48 points of video and is seen for 6 seconds
See, it is determined that the TS fragments that the program request material 48 point that is not stored with data buffer storage is specified for 6 seconds (identify the TS of the generation in timestamp
The TS fragments of 48 points of 8 seconds durations of 0 second to 48 points and 8 seconds of fragment correspondence program request material) when, transcoding request is sent to transcoding cluster.
Transcoding cluster is received after transcoding request, and start multiple transcoding modules according to program request material duration carries out transcoding simultaneously
Encapsulation, each transcoding module is spaced 8 seconds with setting duration, from 48 points of the specified corresponding video material of TS fragments 0 second, by point
48 points of 0 second to the 48 points 8 seconds transcodings encapsulation for broadcasting material generates a TS fragment, and 48 points of 8 seconds to 48 points 16 seconds transcodings encapsulation are generated
One TS fragment, by that analogy, each transcoding module carries out transcoding envelope to set duration interval to the relative position of program request material
Dress generates correspondence TS fragments, when transcoding is encapsulated into 56 points and 8 seconds of program request material, because previous skip operation is to program request material
56 points carry out transcoding encapsulation within 8 seconds to 48 seconds 90 minutes, and be stored in data buffer storage, it is therefore not necessary to repeat transcoding encapsulation,
The TS fragments for having generated can be multiplexed in this operation, it is achieved thereby that the multiplexing to TS fragments, it is to avoid the wave of resource
Take.
Based on same inventive concept, a kind of streaming media on demand device is additionally provided in the embodiment of the present invention, due to solving to ask
The principle of topic is similar to a kind of stream media ordering method, therefore the enforcement of the device may refer to the enforcement of method, repeats part
Repeat no more.
Fig. 2 is the structural representation of streaming media on demand device in the embodiment of the present invention, as shown in Fig. 2 including:
Processing module 201, for receiving the playing request of the TS fragments of client, when it is determined that not being stored with data buffer storage
During the TS fragments, send transcoding request to transcoding cluster, and transcoding cluster obtained from data buffer storage to enter program request material
The TS fragments generated after the encapsulation of row transcoding, by the TS fragments of the generation client is sent to;
Transcoding cluster module 202, for carrying out transcoding encapsulation to program request material TS fragments are generated, and the TS fragments of generation are deposited
In being stored in data buffer storage.
In enforcement, transcoding cluster module can set duration interval and transcoding encapsulation generation TS fragments are carried out to program request material,
Timestamp is carried in the TS fragments, the timestamp is to identify during the setting adopted when the program request material transcoding is encapsulated
Long interval and relative position.
In enforcement, transcoding cluster module can start corresponding according to the program request material duration and setting duration interval
The transcoding module of quantity carries out transcoding encapsulation and generates TS fragments simultaneously..
In enforcement, processing module when it is determined that be stored with data buffer storage the TS fragments when, the TS fragments are sent to
Client.
In enforcement, processing module is further used for, and before the playing request of the reception client TS fragment, receives client
The streaming media on demand request at end, determines m3u (8) file of the Streaming Media that whether is stored with data cache module,
If so, the m3u (8) file is sent to into client,
Otherwise, m3u (8) file is generated according to program request material and is sent to client.
In above-described embodiment, can be implemented using existing function component module.For example, processing module can be adopted
With existing data processing components and parts, at least, just possess on the location-server adopted in existing location technology and realize the function
Components and parts;Then it is components and parts that any one equipment for possessing signal transfer functions all possesses as receiver module;Meanwhile, place
The employings such as A, n parameter that reason module is carried out is calculated, intensity adjustment are all existing technological means, and those skilled in the art pass through
Design and develop accordingly and be capable of achieving.
For convenience of description, each several part of apparatus described above is divided into various modules with function or unit is described respectively.
Certainly, the function of each module or unit can be realized in same or multiple softwares or hardware when the present invention is implemented.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware
Apply the form of example.And, the present invention can be adopted and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program
Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram
The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to
Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or
The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one
The step of function of specifying in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Claims (10)
1. a kind of stream media ordering method, it is characterised in that comprise the following steps:
Receive the playing request of the high-definition movie encapsulation format TS fragments of client;
When it is determined that be not stored with data buffer storage the TS fragments when, send transcoding request to transcoding cluster;
The TS fragments that transcoding cluster carries out being generated after transcoding encapsulation to program request material are obtained from data buffer storage, by the generation
TS fragments are sent to client.
2. the method for claim 1, it is characterised in that the transcoding cluster is entered with setting duration interval to program request material
The encapsulation of row transcoding generates TS fragments, and timestamp is carried in the TS fragments, and the timestamp is to identify the program request material
Setting duration interval and relative position that transcoding is adopted when encapsulating.
3. method as claimed in claim 2, it is characterised in that the transcoding cluster is according to the program request material duration and institute
State setting duration interval and start the transcoding module of respective numbers while carrying out transcoding encapsulation generation TS fragments.
4. the method for claim 1, it is characterised in that when it is determined that be stored with data buffer storage the TS fragments when, will
The TS fragments are sent to client.
5. the method for claim 1, it is characterised in that further include:In broadcasting for the reception client TS fragment
Before putting request, the streaming media on demand request of client is received, determine and whether be stored with data cache module the Streaming Media
M3u (8) file,
If so, the m3u (8) file is sent to into client,
Otherwise, m3u (8) file is generated according to program request material and is sent to client.
6. a kind of streaming media on demand device, it is characterised in that include:
Processing module, for receiving the playing request of the TS fragments of client, when it is determined that the TS that is not stored with data buffer storage
During fragment, send transcoding request to transcoding cluster, and transcoding cluster is obtained from data buffer storage carries out transcoding to program request material
The TS fragments generated after encapsulation, by the TS fragments of the generation client is sent to;
Transcoding cluster module, for carrying out transcoding encapsulation to program request material TS fragments are generated, and the TS fragments of generation are stored in into number
According in caching.
7. device as claimed in claim 6, it is characterised in that the transcoding cluster module is setting duration interval to program request element
Material carries out transcoding encapsulation and generates TS fragments, and timestamp is carried in the TS fragments, and the timestamp is to identify the program request
Setting duration interval and relative position that material transcoding is adopted when encapsulating.
8. device as claimed in claim 7, it is characterised in that the transcoding cluster module according to the program request material duration with
And the transcoding module of the setting duration interval startup respective numbers carries out transcoding encapsulation and generates TS fragments simultaneously.
9. device as claimed in claim 6, it is characterised in that the processing module be stored with described in data buffer storage is determined
During TS fragments, the TS fragments are sent to into client.
10. device as claimed in claim 6, it is characterised in that the processing module is further used for, in the reception client
Before the playing request of end TS fragments, the streaming media on demand request of client is received, determine in data cache module whether be stored with
M3u (8) file of the Streaming Media,
If so, the m3u (8) file is sent to into client,
Otherwise, m3u (8) file is generated according to program request material and is sent to client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611099708.2A CN106604062A (en) | 2016-12-01 | 2016-12-01 | Streaming media on demand method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611099708.2A CN106604062A (en) | 2016-12-01 | 2016-12-01 | Streaming media on demand method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106604062A true CN106604062A (en) | 2017-04-26 |
Family
ID=58596303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611099708.2A Pending CN106604062A (en) | 2016-12-01 | 2016-12-01 | Streaming media on demand method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106604062A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109933483A (en) * | 2017-12-15 | 2019-06-25 | 中国电信股份有限公司 | Streaming media transcoding service monitoring method and device and computer readable storage medium |
WO2020048268A1 (en) * | 2018-09-05 | 2020-03-12 | 北京开广信息技术有限公司 | Real-time transmitting method and real-time receiving method for media stream, server, and client |
CN114630177A (en) * | 2022-03-25 | 2022-06-14 | 阿里巴巴(中国)有限公司 | Video transcoding method and related device thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102802053A (en) * | 2012-07-23 | 2012-11-28 | 深圳市融创天下科技股份有限公司 | Audio and video file transcoding cluster dispatching method and device |
CN104469433A (en) * | 2013-09-13 | 2015-03-25 | 深圳市腾讯计算机系统有限公司 | Live video replay method and device |
CN104702987A (en) * | 2015-03-27 | 2015-06-10 | 南京视海网络科技有限公司 | High-compatibility bandwidth self-adaption streaming media and method for serving multiple different terminals |
CN105357591A (en) * | 2015-11-16 | 2016-02-24 | 北京理工大学 | QoE monitoring and optimization method for adaptive code rate video direct broadcast |
CN105897850A (en) * | 2015-12-22 | 2016-08-24 | 乐视云计算有限公司 | Response processing method and system and scheduling proxy server for CDN platform |
-
2016
- 2016-12-01 CN CN201611099708.2A patent/CN106604062A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102802053A (en) * | 2012-07-23 | 2012-11-28 | 深圳市融创天下科技股份有限公司 | Audio and video file transcoding cluster dispatching method and device |
CN104469433A (en) * | 2013-09-13 | 2015-03-25 | 深圳市腾讯计算机系统有限公司 | Live video replay method and device |
CN104702987A (en) * | 2015-03-27 | 2015-06-10 | 南京视海网络科技有限公司 | High-compatibility bandwidth self-adaption streaming media and method for serving multiple different terminals |
CN105357591A (en) * | 2015-11-16 | 2016-02-24 | 北京理工大学 | QoE monitoring and optimization method for adaptive code rate video direct broadcast |
CN105897850A (en) * | 2015-12-22 | 2016-08-24 | 乐视云计算有限公司 | Response processing method and system and scheduling proxy server for CDN platform |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109933483A (en) * | 2017-12-15 | 2019-06-25 | 中国电信股份有限公司 | Streaming media transcoding service monitoring method and device and computer readable storage medium |
WO2020048268A1 (en) * | 2018-09-05 | 2020-03-12 | 北京开广信息技术有限公司 | Real-time transmitting method and real-time receiving method for media stream, server, and client |
CN114630177A (en) * | 2022-03-25 | 2022-06-14 | 阿里巴巴(中国)有限公司 | Video transcoding method and related device thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10630759B2 (en) | Method and apparatus for generating and reproducing adaptive stream based on file format, and recording medium thereof | |
JP6016778B2 (en) | How to recover content streamed in chunks | |
US9712890B2 (en) | Network video streaming with trick play based on separate trick play files | |
CN102055717B (en) | Quick playing method, terminal and server | |
CN104519372B (en) | The switching method and system of a kind of streaming media playing | |
WO2012096372A1 (en) | Content reproduction device, content reproduction method, delivery system, content reproduction program, recording medium, and data structure | |
US10015222B2 (en) | Systems and methods for selective retrieval of adaptive bitrate streaming media | |
CN103493503A (en) | Receiving apparatus and method, transmission apparatus and method, and program | |
WO2014193996A2 (en) | Network video streaming with trick play based on separate trick play files | |
CN107534793B (en) | Receiving apparatus, transmitting apparatus, and data processing method | |
CN111182322B (en) | Director control method and device, electronic equipment and storage medium | |
CN109792546A (en) | The transmission of viewer's attention degree adaptive bitrate | |
CN106604062A (en) | Streaming media on demand method and device | |
CN103648011A (en) | Audio and video synchronization device and method based on HLS protocol | |
KR102137858B1 (en) | Transmission device, transmission method, reception device, reception method, and program | |
US9332421B2 (en) | Method and apparatus for random access to multimedia content in wireless communication system | |
CN103945260B (en) | A kind of streaming media on demand editing system and order method | |
JP5045715B2 (en) | Broadcast receiver | |
CN107534792B (en) | Receiving apparatus, transmitting apparatus, and data processing method | |
CN103945231B (en) | A kind of Streaming Media reservation editing system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170426 |