[go: up one dir, main page]

CN102131106A - Method, device and system for playing streaming media content - Google Patents

Method, device and system for playing streaming media content Download PDF

Info

Publication number
CN102131106A
CN102131106A CN 201010600696 CN201010600696A CN102131106A CN 102131106 A CN102131106 A CN 102131106A CN 201010600696 CN201010600696 CN 201010600696 CN 201010600696 A CN201010600696 A CN 201010600696A CN 102131106 A CN102131106 A CN 102131106A
Authority
CN
China
Prior art keywords
streaming media
new
data
content
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201010600696
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 201010600696 priority Critical patent/CN102131106A/en
Publication of CN102131106A publication Critical patent/CN102131106A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method for playing streaming media contents. A streaming media player receives streaming media data corresponding to the streaming media contents to be played, wherein the streaming media data is the streaming media data in a new streaming media format. The data in the new streaming media format structurally comprises a head, an index and one or more new streaming media packets sequentially, wherein the head is used for describing the media information of a file; the index is used for storing an index table of the position of video key frames; elements in the index are stored from a smaller time stamp to a larger time stamp; the new streaming media packets are used for storing a video frame or one or more audio frames respectively; the new streaming media packets are stored from the smaller time stamp to the larger time stamp; the streaming media data in the new streaming media format is buffered and analyzed; and when the total traffic of the received streaming media data is equal to a buffer threshold of the streaming media data, the streaming media contents corresponding to the streaming media data are played.

Description

The player method of streaming medium content, Apparatus and system
Technical field
The present invention relates to the communications field, relate in particular to a kind of player method, Apparatus and system of streaming medium content.
Background technology
Streaming Media is a kind of media formats that adopts the mode of stream transmission in transmission over networks.The method of prior art playing stream media content is: provide Data Source by content source; Content preparation module is carried out content fragment and generator data according to the content input and the relevant environment information of Data Source, and content fragment and metadata are published to streaming media server; DST PLAYER get access to metadata web page address (Uniform/Universal Resource Locator, URL), and to streaming media server acquisition request metadata, wherein, metadata is used to describe burst information; Streaming media server sends to DST PLAYER with metadata; DST PLAYER is resolved the metadata that obtains, and obtains content fragment information, and arrives streaming media server request content burst according to content fragment information; Streaming media server sends to DST PLAYER with content fragment; DST PLAYER play content burst.
In realizing process of the present invention, the inventor finds that there are the following problems at least for prior art: adopt and divide sheet mode playing stream media content, needing increases content preparation module, is used for the generation of metadata and burst, realizes that cost is higher; Because different bandwidth, various flows media player differ to the content fragment size requirement, cause more difficult control content burst size, increased the complexity of the Play System realization of streaming medium content; The generation of content fragment has increased the management difficulty of the Play System of streaming medium content, and under the more situation of program source, can produce a lot of content fragments, causes the reduction of performance of the Play System of streaming medium content easily.
Summary of the invention
Embodiments of the invention provide a kind of player method, Apparatus and system of streaming medium content, and the mode that can use terminal to strengthen realizes the broadcast of streaming medium content.
On the one hand, a kind of player method of streaming medium content is provided, comprise: DST PLAYER receives the stream medium data of streaming medium content correspondence to be played, wherein, described stream medium data is the stream medium data of new stream media format, the data structure of described new stream media format comprises successively: message header Head, index Index, and one or more new Streaming Media bags, wherein Head is used for the media information of description document, Index is used to deposit the concordance list of key frame of video position, and the element among the described Index is deposited according to timestamp order from small to large; Described new Streaming Media bag is used to deposit a frame of video or one or more audio frame, and described new Streaming Media bag is deposited according to timestamp order from small to large; Buffer memory is also resolved the stream medium data of described new stream media format, when the stream medium data total flow that receives reaches the streaming media data cache thresholding, plays the streaming medium content of described stream medium data correspondence.On the other hand, provide a kind of DST PLAYER, having comprised:
Receiver module, be used to receive the stream medium data of streaming medium content correspondence to be played, wherein, described stream medium data is the stream medium data of new stream media format, and the data structure of described new stream media format comprises successively: message header Head, index Index, and one or more new Streaming Media bags, wherein Head is used for the media information of description document, and Index is used to deposit the concordance list of key frame of video position, and the element among the described Index is deposited according to timestamp order from small to large; Described new Streaming Media bag is used to deposit a frame of video or one or more audio frame, and described new Streaming Media bag is deposited according to timestamp order from small to large;
The content play module is used for buffer memory and resolves the stream medium data of described new stream media format, when the stream medium data total flow that receives reaches the streaming media data cache thresholding, plays the streaming medium content of described stream medium data correspondence.
Another aspect provides a kind of new stream media format conversion module device, comprises
Format converting module, be used for the stream medium data of streaming medium content correspondence to be played is converted to the stream medium data of new stream media format, the data structure of described new stream media format comprises successively: message header Head, index Index, and one or more new Streaming Media bags, wherein Head is used for the media information of description document, and Index is used to deposit the concordance list of key frame of video position, and the element among the described Index is deposited according to timestamp order from small to large; Described new Streaming Media bag is used to deposit a frame of video or one or more audio frame, and described new Streaming Media bag is deposited according to timestamp order from small to large;
The data flow sending module is used to send the stream medium data of described new stream media format.
Another aspect, a kind of system that comprises above-mentioned new stream media format conversion module device also is provided, further comprise streaming media server and encoder, wherein said new stream media format conversion module device can independently be provided with, and also can be arranged on described streaming media server or the described encoder.
The player method of the streaming medium content that the embodiment of the invention provides, Apparatus and system, DST PLAYER receiving stream media server, can not made mistakes in the time of can guaranteeing the playing stream media content according to the stream medium data of the playing sequence transmission of streaming medium content; When DST PLAYER buffer stream media data total flow reaches the streaming media data cache thresholding, DST PLAYER can be realized the normal play of streaming medium content, do not need stream medium data is carried out content fragment, the complexity that the realization cost of playing stream media content is reduced, the Play System of streaming medium content is realized reduces and reduces management difficulty and can improve the performance of the Play System of streaming medium content.The embodiment of the invention has solved in the prior art, divides sheet mode playing stream media content, the high problem of complexity that the Play System of the streaming medium content that causes is realized owing to adopt.
Description of drawings
The organizational structure schematic diagram of the Play System of the streaming medium content that Figure 1A provides for an embodiment;
The data structure schematic diagram of the new stream media format that Figure 1B provides for an embodiment;
The schematic flow sheet of the player method of the streaming medium content that Fig. 2 provides for an embodiment;
The schematic flow sheet of the player method of the program request streaming medium content that Fig. 3 provides for another embodiment;
The schematic flow sheet of the player method of the live broadcasting flow-medium content that Fig. 4 provides for another embodiment;
The DST PLAYER structural representation that Fig. 5 provides for an embodiment;
The DST PLAYER structural representation that Fig. 6 provides for another embodiment;
Receiver module structural representation in the DST PLAYER that Fig. 7 provides for the embodiment of the invention shown in Figure 5;
The structural representation of the new stream media format reforming unit that Fig. 8 provides for an embodiment;
Fig. 9 is a new stream media format reforming unit shown in Figure 8, and the operation principle schematic diagram of system shown in Figure 1;
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is carried out clear, complete description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making other embodiment that obtained under the creative work prerequisite.
In order to solve prior art owing to adopt content fragment mode playing stream media content, the high problem of complexity that the Play System of the streaming medium content that causes is realized, the embodiment of the invention provides a kind of player method, Apparatus and system of streaming medium content.
With reference to Figure 1A, the schematic diagram of a system group network, comprising:
1. encoder: issue streaming media server after being used for the Streaming Media source file encoded.In the present embodiment, can send to new stream media format conversion equipment earlier, send to streaming media server through after the respective handling.Difference according to the type of the source file of playing, encoder can be divided into off-line encoder and online encoder, and wherein: the off-line encoder is used for the source file of program request is encoded, and data are arranged assembling, and give streaming media server synchronously according to time sequencing.Online encoder is used for input sequence (be time order) according to live data source and data are packed and sends to streaming media server in real time.
Above-mentioned encoder can be a hardware, and the perhaps combination of software and hardware can be made up of a common computer, high definition video collecting card and Streaming Media encoding software.
2. new stream media format conversion equipment is used for converting traditional live broadcast stream media data and some broadcasting flow-medium data to new stream media format, can be provided with separately, also can be integrated in the central realization of streaming media server or encoder.Concrete, a kind of new stream media format that above-mentioned new stream media format provides for present embodiment for convenience of description, abbreviates the HPEM form as, High Power Engine Media, and its data structure is as follows, with reference to Figure 1B:
(1) data structure of this new stream media format has comprised three parts successively:
● message header Head: the media information that is used for description document.
● index Index: the concordance list that is used to deposit the key frame of video position.
● new Streaming Media bag, i.e. HPEM bag: be used to deposit actual video/audio frame.
(2) deposited the positional information of all key frames during Index shows.
(3) element in the Index table is deposited according to timestamp order from small to large.
(4) each new Streaming Media bag is deposited a frame video or multiframe audio frequency.(concrete, as to deposit) for the mode that audio frame can be taked to merge.
(5) each new Streaming Media bag is deposited according to timestamp order from small to large.
Need to prove that new stream media format can further expand, and comprises that all satisfy the more specifically media formats of its basic demand.This new stream media format conversion equipment can be a hardware, and perhaps the combination of software and hardware for example satisfies the combination of the encoding software and the computer of this new stream media format.
3. streaming media server: be used for the stream medium data behind the received code device coding, send stream medium data to DST PLAYER according to the request of DST PLAYER.In the present embodiment, the stream medium data that streaming media server receives is the stream medium data of above-mentioned new stream media format conversion equipment new stream media format after treatment, and carries out respective handling according to the request of DST PLAYER.
This streaming media server can be supported the bearing protocol of various streaming media playing, http protocol for example, and perhaps Real-time Transport Protocol promptly can transmit and receive data with HTTP or RTP mode.With the http protocol is example, and for on-demand content, streaming media server can return Content-Length information in the http agreement, show the actual size of program request file to DST PLAYER.For live content, streaming media server can return Content-Length information at http, indicate a self-defining value, usually can be for: largest natural number value or by DST PLAYER and value of streaming media server agreement, stream media terminal can be ignored this value after receiving, neither influence the realization of http protocol, can also guarantee the terseness that DST PLAYER is realized.
In the reality, streaming media server can be made up of server section and a hardware server of Streaming Media software systems, is in charge of, stores, distributes encoder and catch next flow-medium performance.
4. DST PLAYER: can be that to operate in Streaming Media client in the mobile device also can be portable terminal independently, possess business and browse and the streaming media playing ability.The DST PLAYER that present embodiment provides, can obtain the stream medium data of new stream media format according to multiple bearing modes such as HTTP downloading mode or RTP from streaming media server, buffer memory is also resolved the stream medium data of this new stream media format, when the stream medium data total flow that receives reaches the streaming media data cache thresholding, play the streaming medium content of described stream medium data correspondence.
More specifically, for live, DST PLAYER can be further used for ignoring the Content-Length information that streaming media server returns, and continues to obtain data from streaming media server and decodes to play and stop up to the user.
Similarly, for program request, DST PLAYER can be further used for realizing the SEEK function.Concrete, the user carries out the Seek operation, for example click F.F., rewind down or drag operating keys such as playing progress rate, the DST PLAYER DST PLAYER can receive user's Seek operation requests, document location according to the positional information calculation needs location of carrying in the Seek operation requests, and carrying the aforementioned document position in the Range field of the http that resends to streaming media server request, streaming media server returns stream medium data according to the Range field from corresponding document location.
Wherein, Seek operation is time-out, broadcast, F.F., rewind down, the slow-motion at streaming media playing, moves back slowly, and perhaps forward/backward drags the operational order that playing progress rate etc. changes the streaming media playing position.
Terminal player in the reality also can be decoder, can be made up of the playout software and the computer of stream media system, can be used for playing the video frequency program on the streaming media server that the user wants to watch.
Shown in Figure 1B, the player method of the streaming medium content that embodiment of the invention provides can comprise:
Step 101, DST PLAYER receives the stream medium data of streaming medium content correspondence to be played.Wherein, stream medium data meets previously described new stream medium data structure, in the time of can making the playing stream media content, original playing sequence according to streaming medium content is play on terminal, playback error can not appear, and this form is simpler than content fragment form of the prior art, is easy to realize the simplification of Play System and the realization of various functions.
Step 102, the DST PLAYER buffer memory is also resolved the stream medium data of described new stream media format, if the stream medium data total flow that receives reaches the streaming media data cache thresholding, the streaming medium content of this DST PLAYER play stream media data correspondence.
Concrete, the streaming media data cache thresholding can be when the streaming media playing request or in the playing process, the value that terminal processing capacity and/or network throughput are provided with.For example, this value refers to that the amount that the HPEM of the stream medium data of new stream media format wraps reaches natural number M.That is to say, when the data of the new stream media format that receives comprise Header, Index, and when comprising M HPEM bag, promptly think to have reached buffer threshold.Wherein, when terminal processing capacity is low more, when perhaps network throughput was good more, what M can be provided with was smaller; When terminal processing capacity is high more, when perhaps network throughput was poor more, what M can be provided with was higher; Also terminal processing capacity and network throughput can be taken all factors into consideration, determine one on the one hand terminal can smoothly handle the M value that is not subjected to the network throughput restriction on the other hand.
More specifically, the DST PLAYER length according to streaming medium content that can improve further limits, and that is to say that aforementioned M should be less than the length of streaming medium content to be played.In the process of program request, this length is the physical length of streaming medium content, and in live process, this length can be the length of agreement, but DST PLAYER also can be ignored the length of this streaming medium content.
In another scheme that can replace, the streaming media data cache thresholding can be the instruction that receives user or system in advance, is provided with according to described instruction.This instruction can for example be unit with time to make things convenient for user or Systems Operator's mode, for example 5 seconds, and 10 seconds, perhaps other suitable value.Stream media terminal can be converted into the buffer threshold that should be unit with time the number M of the HPEM bag in the aforementioned new stream media format, and perhaps can also directly judge whether to reach this with the timestamp information in the HPEM bag is the buffer threshold of unit with time.
Generally speaking, under this new stream media format, the buffer threshold of stream medium data will be more simpler than the buffer threshold under the content fragment form, both be convenient to simply carry and also be convenient to simple parsing, thereby save the communication resource of stream media play system on the whole.
The player method of the streaming medium content that present embodiment provides can adopt http protocol or Real-time Transport Protocol.Actual reception and transmission data can have multiple mode, do not give unnecessary details one by one at this.
The player method of the streaming medium content that present embodiment provides, the receiving stream media server, can not made mistakes in the time of can guaranteeing the playing stream media content according to the stream medium data of the playing sequence transmission of streaming medium content; When buffer stream media data total flow reaches the streaming media data cache thresholding, can realize the normal play of streaming medium content, do not need stream medium data is carried out content fragment, the complexity that the realization cost of playing stream media content is reduced, the Play System of streaming medium content is realized reduces and reduces management difficulty and can improve the performance of the Play System of streaming medium content.The embodiment of the invention has solved in the prior art, divides sheet mode playing stream media content, the high problem of complexity that the Play System of the streaming medium content that causes is realized owing to adopt.
The player method of aforesaid streaming medium content, can also comprise: by network system, for example above-mentioned new stream media format conversion equipment, the system that streaming media server and encoder constitute, the stream medium data of general format to be played is converted into the stream medium data of described new stream media format and sends to described DST PLAYER, promptly according to the playing sequence of streaming medium content to be played, send the stream medium data of streaming medium content correspondence to DST PLAYER, so that DST PLAYER is when the stream medium data total flow that receives reaches the streaming media data cache thresholding, the streaming medium content of play stream media data correspondence.
With reference to figure 3, be that http protocol is an example with the bearing protocol, the streaming media playing flow process under the program request situation specifically comprises:
301. the new stream media format conversion equipment of program request encoder (being the off-line encoder) request converts conventional form to new stream media format media file.
302. after new stream media format conversion equipment converts conventional form to new stream media format media file, send to the program request encoder.
303. the program request encoder is given streaming media server synchronously with new stream media format.
Need to prove: above step 301-303 also can be new stream media format transcoding device with stream medium data directly synchronously to modes such as streaming media servers.Can be arranged on the entity device for wantonly one or two or three in above-mentioned program request encoder, new stream media format conversion equipment and the streaming media server, above-mentioned steps 301-303 possibility is provided with difference and difference because of entity device, as long as realize streaming medium content to be played on the streaming media server new stream media format storage with preamble.
304. DST PLAYER obtains the broadcast address of program request program source.
305. DST PLAYER sends the HTTP playing request to streaming media server.
306. streaming media server returns to DST PLAYER and plays response, for example, HTTP 200OK wherein can return the actual file size of the streaming medium content of program request in the Content-Length field.
307. streaming media server returns actual content-data, promptly sends to DST PLAYER with new stream media format.
308. DST PLAYER is resolved the data of the new stream media format that gets access to, after need determining the data (promptly determining buffer threshold) of buffering and cushioning corresponding data, and the broadcast of decoding.
As mentioned before, DST PLAYER can be according to the fileinfo of the current stream medium data that gets access to, reference terminal ability information or capability information, interim definite buffer threshold, buffer threshold can be for comprising message header Head at least, index Index, and the new Streaming Media bag of natural number M, described M is less than the length information of described streaming medium content to be played.
Also may be the buffer threshold instruction that receives user or system in advance, for example user or system can the Instructions Cache thresholding be 5 seconds, and 10 seconds or any time period can be to meet the suitable empirical value that people watch.
309. the user initiates Seek operation (for example suspend, broadcast, F.F., rewind down, slow-motion, move back or drag operation such as playing progress rate slowly).
310. DST PLAYER according to carry in the Seek operation the corresponding document location of positional information calculation.
311. DST PLAYER is initiated the Http request again, and wherein the Range field is carried the document location that this Seek operation is pointed to.In the reality, this document position also can be a relative point in time.
312. streaming media server navigates to corresponding document location according to the Range field, and issues media data from described document location.
313. after DST PLAYER is finished broadcast, can close connection.
Above-mentioned embodiment shown in Figure 3 is example with the http protocol, it will be appreciated by those skilled in the art that, other agreement for example can be carried out adaptive adjustment according to the difference of agreement in the RTSP/RTP agreement, for example operate for the SEEK in the RTSP/RTP agreement, can finish by order Pause+Play, the document location (for example time point) that when DST PLAYER sends the Play order Seek operation is pointed to is notified to streaming media server.
Owing to taked aforementioned described new stream media format, seek operation document location pointed can simply simply identify with time point or a N new Streaming Media bag, thereby realizes the various Play Control functions in the streaming media playing process easily.And, be difficult to the position of simple explanation streaming medium content like this at the files in stream media of prior art with the form storage of content fragment, because the streaming medium content of this position may exist in respectively on a plurality of content fragments (being little media file).
With reference to figure 4, in another embodiment, with the http protocol example also, the streaming media playing flow process under the live situation comprises:
401. DST PLAYER obtains the broadcast address in programme televised live source.
402. DST PLAYER sends the HTTP playing request to streaming media server.
403. streaming media server returns response to DST PLAYER, HTTP 200 OK for example, wherein can content length C ontent-Length field, its value can be the largest natural number value that allows of a system or with the about definite value of DST PLAYER through consulting.
404. streaming media server sends the medium request to direct broadcast coder (being online encoder).
405. direct broadcast coder sends the format conversion request to new stream media format conversion equipment after receiving aforementioned medium request.
406. the new stream media format stream after new stream media format conversion equipment will be changed sends to direct broadcast coder.
407. direct broadcast coder sends to streaming media server with the stream medium data of new stream media format.
Need to prove, above step 401-407 also can be new stream media format transcoding device with stream medium data directly synchronously to modes such as streaming media servers.Can be arranged on the entity device for wantonly one or two or three in above-mentioned direct broadcast coder, new stream media format conversion equipment and the streaming media server, above-mentioned steps 401-407 possibility is provided with difference and difference because of entity device, as long as realize that streaming medium content to be played on the streaming media server is with aforesaid new stream media format storage.
408. streaming media server returns actual stream medium data to DST PLAYER, this stream medium data is the data of this new stream media format.
409. DST PLAYER is ignored the Content-Length field in aforementioned 403, and resolve the data get access to, determine the data volume of needs buffering according to terminal capability or network capabilities or according to set point in advance, and behind the buffering corresponding data, the broadcast of decoding.
410. after DST PLAYER is finished broadcast, can close connection.
From above-mentioned embodiment shown in Figure 4 as can be seen, in live process, the demand that needs are adjusted play position can not appear in DST PLAYER.This embodiment illustrates that clearly the new stream media format that provides in the embodiment of the invention can carry with different agreements such as http protocol or RTSP/RTP easily, and does not need to change any signaling in the aforementioned protocols.Concrete, stream media terminal can arrange to utilize or do not utilize the value in some signaling in the aforementioned protocols (for example value of the files in stream media size in the Content-Length field) under the different situations of live and program request, the simple process that realizes broadcast.
The player method of the streaming medium content that present embodiment provides, DST PLAYER receiving stream media server, can not made mistakes in the time of can guaranteeing the playing stream media content according to the stream medium data of the playing sequence transmission of streaming medium content; When DST PLAYER buffer stream media data total flow reaches the streaming media data cache thresholding, DST PLAYER can be realized the normal play of streaming medium content, do not need stream medium data is carried out content fragment, the complexity that the realization cost of playing stream media content is reduced, the Play System of streaming medium content is realized reduces and reduces management difficulty and can improve the performance of the Play System of streaming medium content.The embodiment of the invention has solved in the prior art, divides sheet mode playing stream media content owing to adopt, the big and low problem of systematic function of complexity height that the Play System of the streaming medium content that causes is realized and management difficulty.New stream media format in the execution mode is simple, requires lowly, and new Streaming Media modular converter can be supported the file format that tradition is popular very easily, as 3gp etc.And new Streaming Media modular converter is realized simple; This new stream media format pay(useful) load height is convenient to the transmission of data in the low-bandwidth network.
The structural representation of the DST PLAYER that another embodiment as shown in Figure 5 provides, this DST PLAYER comprises:
Receiver module 501, be used to receive the stream medium data of streaming medium content correspondence to be played, wherein, described stream medium data is the stream medium data of new stream media format, and the data structure of described new stream media format comprises successively: message header Head, index Index, and one or more new Streaming Media bags, wherein Head is used for the media information of description document, and Index is used to deposit the concordance list of key frame of video position, and the element among the described Index is deposited according to timestamp order from small to large; Described new Streaming Media bag is used to deposit a frame of video or one or more audio frame, and described new Streaming Media bag is deposited according to timestamp order from small to large;
Content play module 502 is used for buffer memory and resolves the stream medium data of described new stream media format, when the stream medium data total flow that receives reaches the streaming media data cache thresholding, plays the streaming medium content of described stream medium data correspondence.
In the present embodiment, content play module 502 can not need streaming medium content is carried out content fragment, thereby simply realizes the broadcast of streaming medium content.
Further, further, as shown in Figure 6, DST PLAYER can also comprise:
First is provided with submodule 5031, be used for described streaming media data cache thresholding being set according to terminal processing capacity and/or network throughput, described streaming media data cache thresholding is for comprising message header Head at least, index Index, and natural number M new Streaming Media bag.
Particularly, first is provided with submodule 5031, can be used for further obtaining the length information of described streaming medium content to be played, further the length information according to described streaming medium content is provided with described streaming media data cache thresholding, and described M is less than the length information of described streaming medium content to be played.The length information of the streaming medium content that this is to be played can be an actual file size of being returned the streaming medium content of program request by streaming media server in the Content-Length of response message field, the about definite value through consulting of the largest natural number value that the system of perhaps live Streaming Media allows or streaming media server and DST PLAYER.
Perhaps, as shown in Figure 6, DST PLAYER can also comprise:
Second is provided with submodule 5032, is used for receiving in advance the instruction of user or system, according to the instruction of described user or system described streaming media data cache thresholding is set.Its specific implementation can be referring to preceding method.
In the present embodiment, when program source is the programme televised live source, receiver module 501 can be ignored the length information of the streaming medium content of streaming media server in the response message that DST PLAYER sends, and directly the receiving stream media server is to the stream medium data of DST PLAYER transmission.
Further, in order to realize the play position operation of streaming medium content when the program request that realizes streaming medium content is play, promptly seek operates, and receiver module 501 as shown in Figure 7, can also comprise:
Seek obtains submodule 5011, is used to receive Client-initiated reproduction time Seek operation, and the described Seek of positional information calculation that carries according to described Seek operation operates the document location that points to.
Seek sends submodule 5012, be used for sending playing request to streaming media server, and (for example Play of the Range field of http protocol or RTSP/RTP agreement order) carries the document location that described Seek operation is pointed in described playing request;
Data flow receives submodule 5013 and is used to receive described streaming media server issues the media data transmission from described document location stream medium data.
A kind of new stream media format conversion module device that another embodiment of the present invention provides, as shown in figure 10, comprise format converting module 801, be used for the stream medium data of streaming medium content correspondence to be played is converted to the stream medium data of new stream media format, the data structure of described new stream media format comprises successively: message header Head, index Index, and one or more new Streaming Media bags, wherein Head is used for the media information of description document, Index is used to deposit the concordance list of key frame of video position, and the element among the described Index is deposited according to timestamp order from small to large; Described new Streaming Media bag is used to deposit a frame of video or one or more audio frame, and described new Streaming Media bag is deposited according to timestamp order from small to large;
Data flow sending module 802 is used to send the stream medium data of described new stream media format.
Wherein above-mentioned new stream media format conversion module device can independently be provided with, and also can be arranged on described streaming media server or the described encoder.Specifically operation principle can be with reference to preamble Fig. 2, Fig. 3, method shown in Figure 4.
In another execution mode, provide a kind of network system, equally with reference to figure 1, Fig. 9 can comprise aforesaid new stream media format conversion equipment shown in Figure 8; And streaming media server is used for sending stream medium data to described DST PLAYER; Encoder is used for the Streaming Media source file encoded and issues streaming media server; Wherein said new stream media format conversion module device can independently be provided with, and also can be arranged on described streaming media server or the described encoder.
The specific implementation principle of aforementioned network system and system configuration are in earlier figures 2, Fig. 3, clearly introduce among each embodiment shown in Figure 4, can be according to function and the structure of its operation principle with each device of explanation, the detail of especially various execution can make up under the prerequisite of technology barrier not having, and does not give unnecessary details at this.
It will be appreciated by persons skilled in the art that above-mentioned each device can be with hardware, perhaps the mode of software combined with hardware realizes.Can be according to functional relationship between each device integrated or disperse to be provided with, relevant method can be arranged on the computer-readable medium, so that the control relevant device is finished aforesaid scheme when computer reads.A kind of new data structure that provides in the aforementioned embodiments, promptly new stream medium data structure, also can be separately or with its carrier as one of the specific embodiment of the present invention.
The flow media playing method that the embodiment of the invention provides, Apparatus and system are not only supported the file format that tradition is popular, also support self-defining file format, can be widely used in the Streaming Media schemes such as IPTV, DTV, WEBTV.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.

Claims (13)

1.一种流媒体内容的播放方法,其特征在于,包括:1. A playing method for streaming media content, comprising: 流媒体播放器接收待播放的流媒体内容对应的流媒体数据,其中,所述流媒体数据是新流媒体格式的流媒体数据,所述新流媒体格式的数据结构依次包括:消息头Head,索引Index,以及一个或多个新流媒体包,其中Head用于描述文件的媒体信息,Index用于存放视频关键帧位置的索引表,所述Index中的元素按照时间戳从小到大的顺序存放;所述新流媒体包用于存放一个视频帧或者一个或多个音频帧,所述新流媒体包按照时间戳从小到大的顺序存放;The streaming media player receives the streaming media data corresponding to the streaming media content to be played, wherein the streaming media data is streaming media data in a new streaming media format, and the data structure of the new streaming media format includes in turn: a message header Head, Index Index, and one or more new streaming media packages, where Head is used to describe the media information of the file, and Index is used to store the index table of video key frame positions, and the elements in the Index are stored in order of timestamp from small to large ; The new streaming media package is used to store a video frame or one or more audio frames, and the new streaming media package is stored in ascending order of timestamps; 缓存并解析所述新流媒体格式的流媒体数据,当接收到的流媒体数据总流量达到流媒体数据缓存门限,播放所述流媒体数据对应的流媒体内容。Buffering and parsing the streaming media data in the new streaming media format, and playing the streaming media content corresponding to the streaming media data when the total flow of the received streaming media data reaches the streaming media data caching threshold. 2.根据权利要求1所述的流媒体内容的播放方法,其特征在于,还包括:2. The playing method of streaming media content according to claim 1, is characterized in that, also comprises: 将待播放的一般格式的流媒体数据转化为所述新流媒体格式的流媒体数据并发送给所述流媒体播放器。Convert the streaming media data in the general format to be played into the streaming media data in the new streaming media format and send it to the streaming media player. 3.根据权利要求2所述的流媒体内容的播放方法,其特征在于,所述方法包括:3. the playing method of streaming media content according to claim 2, is characterized in that, described method comprises: 根据终端处理能力和/或网络处理能力设置所述流媒体数据缓存门限,所述流媒体数据缓存门限为新流媒体包的数量达到自然数M个。The streaming media data buffering threshold is set according to the terminal processing capability and/or network processing capability, and the streaming media data buffering threshold is such that the number of new streaming media packets reaches a natural number M. 4.根据权利要求3所述的流媒体内容的播放方法,其特征在于,所述方法包括:4. the playing method of streaming media content according to claim 3, is characterized in that, described method comprises: 进一步获取所述待播放的流媒体内容的长度信息,进一步根据所述流媒体内容的长度信息设置所述流媒体数据缓存门限,所述M小于所述待播放的流媒体内容的长度。Further acquire the length information of the streaming media content to be played, further set the streaming media data cache threshold according to the length information of the streaming media content, and the M is less than the length of the streaming media content to be played. 5.根据权利要求2所述的流媒体内容的播放方法,其特征在于,所述方法包括:5. The playing method of streaming media content according to claim 2, is characterized in that, described method comprises: 预先接收用户或者系统的指令,根据所述指令设置所述流媒体数据缓存门限。An instruction from a user or a system is received in advance, and the streaming media data cache threshold is set according to the instruction. 6.根据权利要求1所述的流媒体内容的播放方法,其特征在于,当所述流媒体内容是点播内容时,包括:6. The playing method of streaming media content according to claim 1, characterized in that, when the streaming media content is an on-demand content, comprising: 所述流媒体播放器接收用户发起的播放时间Seek操作;The streaming media player receives the Seek operation of playing time initiated by the user; 根据所述Seek操作携带的位置信息计算所述Seek操作指向的文件位置;Calculate the file location pointed to by the Seek operation according to the location information carried by the Seek operation; 发送播放请求,并在所述播放请求中中携带所述Seek操作指向的文件位置,以便于流媒体服务器从所述文件位置起下发流媒体数据;Send a play request, and carry the file location pointed to by the Seek operation in the play request, so that the streaming media server sends streaming media data from the file location; 接收所述流媒体服务器从所述文件位置起发送的流媒体数据。The streaming media data sent by the streaming media server from the file position is received. 7.一种流媒体播放器,其特征在于,包括:7. A streaming media player, characterized in that, comprising: 接收模块,用于接收待播放的流媒体内容对应的流媒体数据,其中,所述流媒体数据是新流媒体格式的流媒体数据,所述新流媒体格式的数据结构依次包括:消息头Head,索引Index,以及一个或多个新流媒体包,其中Head用于描述文件的媒体信息,Index用于存放视频关键帧位置的索引表,所述Index中的元素按照时间戳从小到大的顺序存放;所述新流媒体包用于存放一个视频帧或者一个或多个音频帧,所述新流媒体包按照时间戳从小到大的顺序存放;The receiving module is used to receive the streaming media data corresponding to the streaming media content to be played, wherein the streaming media data is streaming media data in a new streaming media format, and the data structure of the new streaming media format includes in turn: a message header Head , index Index, and one or more new streaming media packages, where Head is used to describe the media information of the file, and Index is used to store the index table of video key frame positions, and the elements in the Index are in ascending order of timestamp Store; the new streaming media package is used to store a video frame or one or more audio frames, and the new streaming media package is stored in ascending order of timestamp; 内容播放模块,用于缓存并解析所述新流媒体格式的流媒体数据,当接收到的流媒体数据总流量达到流媒体数据缓存门限,播放所述流媒体数据对应的流媒体内容。The content playing module is used for caching and parsing the streaming media data in the new streaming media format, and playing the streaming media content corresponding to the streaming media data when the total traffic of the received streaming media data reaches the streaming media data caching threshold. 8.根据权利要求7所述的流媒体播放器,其特征在于,包括:8. streaming media player according to claim 7, is characterized in that, comprises: 第一设置子模块,用于根据终端处理能力和/或网络处理能力设置所述流媒体数据缓存门限,所述流媒体数据缓存门限为至少包括消息头Head,索引Index,以及自然数M个新流媒体包。The first setting submodule is used to set the streaming media data buffer threshold according to the terminal processing capability and/or network processing capability, and the streaming media data buffer threshold includes at least the header Head, the index Index, and a natural number of M new streams media kit. 9.根据权利要求8所述的流媒体播放器,其特征在于,包括:9. The streaming media player according to claim 8, comprising: 第一设置子模块,进一步用于获取所述待播放的流媒体内容的长度信息,进一步根据所述流媒体内容的长度信息设置所述流媒体数据缓存门限,所述M小于所述待播放的流媒体内容的长度信息。The first setting submodule is further used to obtain the length information of the streaming media content to be played, and further set the streaming media data cache threshold according to the length information of the streaming media content, and the M is smaller than the length information of the streaming media content to be played Length information of the streaming media content. 10.根据权利要求7所述的流媒体播放器,其特征在于,包括:10. The streaming media player according to claim 7, comprising: 第二设置子模块,用于预先接收用户或者系统的指令,根据所述用户或者系统的指令设置所述流媒体数据缓存门限。The second setting sub-module is configured to receive an instruction from a user or a system in advance, and set the streaming media data buffer threshold according to the instruction from a user or a system. 11.根据权利要求7所述的流媒体播放器,其特征在于,当所述流媒体内容是点播内容时,所述接收模块,包括:11. The streaming media player according to claim 7, wherein when the streaming media content is an on-demand content, the receiving module includes: seek获取子模块,用于接收用户发起的播放时间Seek操作,根据所述Seek操作携带的位置信息计算所述Seek操作指向的文件位置;The seek acquisition submodule is used to receive the Seek operation of the playback time initiated by the user, and calculate the file position pointed to by the Seek operation according to the position information carried by the Seek operation; seek发送子模块,用于向流媒体服务器发送播放请求,在所述播放请求中携带所述Seek操作指向的文件位置;The seek sending submodule is used to send a playback request to the streaming media server, and the playback request carries the file location pointed to by the Seek operation; 数据流接收子模块,用于接收所述流媒体服务器从所述文件位置起下发媒体数据起发送的流媒体数据。The data stream receiving sub-module is used to receive the streaming media data sent by the streaming media server since the media data is delivered from the file position. 12.一种新流媒体格式转换模块装置,其特征在于,包括12. A new streaming media format conversion module device, characterized in that, comprising 格式转换模块,用于将待播放的流媒体内容对应的流媒体数据转换成新流媒体格式的流媒体数据,所述新流媒体格式的数据结构依次包括:消息头Head,索引Index,以及一个或多个新流媒体包,其中Head用于描述文件的媒体信息,Index用于存放视频关键帧位置的索引表,所述Index中的元素按照时间戳从小到大的顺序存放;所述新流媒体包用于存放一个视频帧或者一个或多个音频帧,所述新流媒体包按照时间戳从小到大的顺序存放;The format conversion module is used to convert the streaming media data corresponding to the streaming media content to be played into streaming media data in a new streaming media format, and the data structure of the new streaming media format includes in turn: a message header Head, an index Index, and a or a plurality of new streaming media packages, wherein Head is used to describe the media information of the file, and Index is used to store the index table of video key frame positions, and the elements in the Index are stored in ascending order according to the timestamp; the new stream The media package is used to store a video frame or one or more audio frames, and the new streaming media package is stored in ascending order of time stamp; 数据流发送模块,用于发送所述新流媒体格式的流媒体数据。A data stream sending module, configured to send streaming media data in the new streaming media format. 13.一种流媒体内容的播放系统,包括流媒体服务器,用于向所述流媒体播放器发送流媒体数据;编码器,用于将流媒体源文件进行编码发给流媒体服务器;其特征在于,进一步包括:13. A playback system of streaming media content, comprising a streaming media server, used to send streaming media data to the streaming media player; Encoder, used to encode the streaming media source file and send it to the streaming media server; its feature is, further includes: 权利要求12所述的新流媒体格式转换模块装置;The new streaming media format conversion module device described in claim 12; 其中所述新流媒体格式转换模块装置可以独立设置,也可以设置在所述流媒体服务器或者所述编码器上。Wherein, the new streaming media format conversion module device can be set independently, or can be set on the streaming media server or the encoder.
CN 201010600696 2010-12-22 2010-12-22 Method, device and system for playing streaming media content Pending CN102131106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010600696 CN102131106A (en) 2010-12-22 2010-12-22 Method, device and system for playing streaming media content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010600696 CN102131106A (en) 2010-12-22 2010-12-22 Method, device and system for playing streaming media content

Publications (1)

Publication Number Publication Date
CN102131106A true CN102131106A (en) 2011-07-20

Family

ID=44268974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010600696 Pending CN102131106A (en) 2010-12-22 2010-12-22 Method, device and system for playing streaming media content

Country Status (1)

Country Link
CN (1) CN102131106A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510519A (en) * 2011-10-11 2012-06-20 成都市华为赛门铁克科技有限公司 Streaming media data processing method, playing method and device
CN102611690A (en) * 2011-12-22 2012-07-25 南京邮电大学 Container format conversion method on basis of hypertext transfer protocol (HTTP) streaming
CN102752643A (en) * 2012-06-11 2012-10-24 苏州阔地网络科技有限公司 Method and system for stream media live broadcast
CN102857834A (en) * 2012-09-17 2013-01-02 四川长虹电器股份有限公司 Video progress reading method
WO2013086810A1 (en) * 2011-12-16 2013-06-20 中兴通讯股份有限公司 Streaming media marking method, device, and system
CN104135688A (en) * 2014-07-24 2014-11-05 广州金山网络科技有限公司 Method, user equipment and system for video playing
CN104394476A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Time shifting playing method and media player
CN104661113A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Streaming media live-broadcasting method, server, terminal and communication system
CN104661086A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Encoding method and device of media stream
CN104837063A (en) * 2014-07-15 2015-08-12 腾讯科技(北京)有限公司 Request processing method, device and electronic equipment
CN104918108A (en) * 2015-06-09 2015-09-16 烽火通信科技股份有限公司 Video accurate positioning device and method based on HLS (HTTP Live Streaming) protocol
CN105338411A (en) * 2014-07-31 2016-02-17 宇龙计算机通信科技(深圳)有限公司 Video play processing method and system
CN105451100A (en) * 2015-12-07 2016-03-30 贵阳朗玛信息技术股份有限公司 Method and device for playing video streams
CN105556979A (en) * 2013-09-17 2016-05-04 谷歌公司 Streaming Media
WO2017080427A1 (en) * 2015-11-10 2017-05-18 中兴通讯股份有限公司 Media playing method, terminal, system and computer storage medium
CN108259987A (en) * 2017-12-19 2018-07-06 湖北鸿云科技股份有限公司 Mobile terminal low delay DST PLAYER and playback method
CN109982107A (en) * 2017-12-27 2019-07-05 上海文广互动电视有限公司 The file content injected system and method for tv telecasting control platform
CN109981607A (en) * 2019-03-07 2019-07-05 深圳市商汤科技有限公司 Media stream processing method and device, electronic equipment and storage medium
CN112491937A (en) * 2019-09-11 2021-03-12 北京陌陌信息技术有限公司 Data transmission method, device, equipment and storage medium
CN116208820A (en) * 2022-12-16 2023-06-02 杭州当虹科技股份有限公司 Method for improving seek effect of network media file

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516184A (en) * 2003-01-10 2004-07-28 华为技术有限公司 A kind of processing method of multimedia data
CN1852229A (en) * 2005-10-20 2006-10-25 华为技术有限公司 Real-time flow-medium transmission method and system
CN1949876A (en) * 2006-11-21 2007-04-18 华为技术有限公司 Method and system for supporting media data of multi-coding formats
CN1980390A (en) * 2005-12-07 2007-06-13 联合信源数字音视频技术(北京)有限公司 Audio-video frequency media data organization realizing method of supporting precision positioning
CN101325681A (en) * 2008-07-25 2008-12-17 北京声迅电子有限公司 Method for storing AVS encoding file format for video recorder and video server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516184A (en) * 2003-01-10 2004-07-28 华为技术有限公司 A kind of processing method of multimedia data
CN1852229A (en) * 2005-10-20 2006-10-25 华为技术有限公司 Real-time flow-medium transmission method and system
CN1980390A (en) * 2005-12-07 2007-06-13 联合信源数字音视频技术(北京)有限公司 Audio-video frequency media data organization realizing method of supporting precision positioning
CN1949876A (en) * 2006-11-21 2007-04-18 华为技术有限公司 Method and system for supporting media data of multi-coding formats
CN101325681A (en) * 2008-07-25 2008-12-17 北京声迅电子有限公司 Method for storing AVS encoding file format for video recorder and video server

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510519A (en) * 2011-10-11 2012-06-20 成都市华为赛门铁克科技有限公司 Streaming media data processing method, playing method and device
WO2013086810A1 (en) * 2011-12-16 2013-06-20 中兴通讯股份有限公司 Streaming media marking method, device, and system
CN102611690A (en) * 2011-12-22 2012-07-25 南京邮电大学 Container format conversion method on basis of hypertext transfer protocol (HTTP) streaming
CN102752643A (en) * 2012-06-11 2012-10-24 苏州阔地网络科技有限公司 Method and system for stream media live broadcast
CN102857834A (en) * 2012-09-17 2013-01-02 四川长虹电器股份有限公司 Video progress reading method
CN102857834B (en) * 2012-09-17 2016-06-15 四川长虹电器股份有限公司 Read the method for video progress
CN105556979B (en) * 2013-09-17 2019-02-22 谷歌有限责任公司 Stream media
CN105556979A (en) * 2013-09-17 2016-05-04 谷歌公司 Streaming Media
CN104661113A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Streaming media live-broadcasting method, server, terminal and communication system
CN104661086A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Encoding method and device of media stream
CN104837063A (en) * 2014-07-15 2015-08-12 腾讯科技(北京)有限公司 Request processing method, device and electronic equipment
CN104837063B (en) * 2014-07-15 2018-10-09 腾讯科技(北京)有限公司 Request processing method, device and electronic equipment
CN104135688A (en) * 2014-07-24 2014-11-05 广州金山网络科技有限公司 Method, user equipment and system for video playing
CN105338411A (en) * 2014-07-31 2016-02-17 宇龙计算机通信科技(深圳)有限公司 Video play processing method and system
CN104394476A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Time shifting playing method and media player
CN104918108A (en) * 2015-06-09 2015-09-16 烽火通信科技股份有限公司 Video accurate positioning device and method based on HLS (HTTP Live Streaming) protocol
WO2017080427A1 (en) * 2015-11-10 2017-05-18 中兴通讯股份有限公司 Media playing method, terminal, system and computer storage medium
CN105451100A (en) * 2015-12-07 2016-03-30 贵阳朗玛信息技术股份有限公司 Method and device for playing video streams
CN108259987A (en) * 2017-12-19 2018-07-06 湖北鸿云科技股份有限公司 Mobile terminal low delay DST PLAYER and playback method
CN109982107A (en) * 2017-12-27 2019-07-05 上海文广互动电视有限公司 The file content injected system and method for tv telecasting control platform
CN109981607A (en) * 2019-03-07 2019-07-05 深圳市商汤科技有限公司 Media stream processing method and device, electronic equipment and storage medium
CN112491937A (en) * 2019-09-11 2021-03-12 北京陌陌信息技术有限公司 Data transmission method, device, equipment and storage medium
CN116208820A (en) * 2022-12-16 2023-06-02 杭州当虹科技股份有限公司 Method for improving seek effect of network media file
CN116208820B (en) * 2022-12-16 2025-03-07 杭州当虹科技股份有限公司 Methods for improving seek effect of network media files

Similar Documents

Publication Publication Date Title
CN102131106A (en) Method, device and system for playing streaming media content
JP6698553B2 (en) Request for multiple chunks to a network node based on one request message
JP6513402B2 (en) Device for acquiring content by selecting transport protocol according to available bandwidth
CN100456678C (en) Method and IPTV service system for providing IPTV services for different types of terminals
US9894421B2 (en) Systems and methods for data representation and transportation
CN101237340B (en) System and method for realizing multicast channel in multimedia service
CN101583018B (en) Method and system for unified management of channel service and services on demand of streaming media
CN103843301A (en) Switching between representations during network streaming of coded multimedia data
CN103210642B (en) Occur during expression switching, to transmit the method for the scalable HTTP streams for reproducing naturally during HTTP streamings
US10499094B2 (en) Transmission apparatus, transmitting method, reception apparatus, and receiving method
Walker et al. ROUTE/DASH IP streaming-based system for delivery of broadcast, broadband, and hybrid services
CN1949876A (en) Method and system for supporting media data of multi-coding formats
CN103036889A (en) Self-adapting streaming media displaying method and self-adapting streaming media displaying system
KR101764317B1 (en) Streaming server, streaming system and streaming method
CN102143385A (en) Media play processing method, digital media server and system
CN103702139A (en) Video-on-demand system based on scalable coding under mobile environment
CN103957428A (en) Streaming media server with multi-code-rate transcoding function based on many-core processor
CN101009824A (en) A network transmission method of audio/video data
JPWO2011004886A1 (en) Distribution system and method, gateway device and program
CN106790005B (en) Realize the system and method for low delay HLS live streaming
CN104427400A (en) Streaming media transmission method and system, and streaming media server
CN115943631A (en) Streaming media data comprising addressable resource index tracks with switching sets
CN103873948A (en) Streaming media self-adaption matching transmission method, system and server
CN1538696A (en) A multi-channel real-time video gateway supporting large-capacity users and its application method
CN105430510A (en) Video on demand method, gateway, smart terminal and video on demand system

Legal Events

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

Application publication date: 20110720