CN1972441A - Method of stream media storage and service - Google Patents

Method of stream media storage and service Download PDF

Info

Publication number
CN1972441A
CN1972441A CNA2006101657232A CN200610165723A CN1972441A CN 1972441 A CN1972441 A CN 1972441A CN A2006101657232 A CNA2006101657232 A CN A2006101657232A CN 200610165723 A CN200610165723 A CN 200610165723A CN 1972441 A CN1972441 A CN 1972441A
Authority
CN
China
Prior art keywords
streaming media
client
media server
streaming
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2006101657232A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2006101657232A priority Critical patent/CN1972441A/en
Publication of CN1972441A publication Critical patent/CN1972441A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

This invention discloses one method to realize flow media memory and service, which comprises the following steps: a, flow media front end informs media servo for memory and receives flow media servo answer message and sends flow media servo; b, flow media servo stores the flow media; c, customer end sends play requires to flow media servo and establishes flow media connection channel; d, flow media servo plays flow media to customer end according to customer end.

Description

Method for storing and serving streaming media
Technical Field
The present invention relates to multimedia communication technology, and more particularly, to a method for storing and serving streaming media.
Background
At present, streaming media technology is increasingly applied to mobile phone terminals, and is called "wireless streaming media" or "mobile streaming media" as opposed to wired streaming media, and is one of the key services of 3G, and is also a type of service between session service and interactive service. It has lower requirements on real-time than conversational services, and at the same time it differs from MMS (mobile multimedia messaging), and it is not based on asynchronous delivery of multimedia content to users in a messaging fashion, but rather on download-while-play, so it must be possible to maintain the temporal correlation between the information in the stream and the entities.
With the rapid development of broadband services of IP networks in recent years, packet-based multimedia entertainment is more and more popularized, streaming media technology is more widely applied, streaming media is characterized by bidirectional control interaction and unidirectional media transmission, more distinctive services can be provided for users, and meanwhile, the storage and service problems of streaming media are more and more urgent. The equipment used for the streaming media service at present comprises a streaming media front end, a streaming media server and a client, wherein the streaming media front end is used for sending streaming media to the streaming media server, the streaming media server has a sending function, and the client can be used for receiving the streaming media. And there is no currently disclosed solution to the problem of streaming media storage.
Disclosure of Invention
In view of the defects and shortcomings in the prior art, the present invention provides a method for implementing streaming media storage and service.
In order to achieve the purpose, the invention adopts the following technical scheme:
the method for storing and serving the streaming media comprises the following steps:
(1) the streaming media front end informs the streaming media server of storing the streaming media, and after receiving a response message of the streaming media server, sends the streaming media to the streaming media server;
(2) the streaming media server stores the received streaming media;
(3) the client sends a request for playing the streaming media of the live channel to the streaming media server, and establishes a streaming media connection channel after receiving a response message of the streaming media server;
(4) and the streaming media server plays the streaming media to the client according to the requirement of the client through the established connection channel.
Wherein the step (1) is specifically as follows:
(11) the method comprises the steps that a streaming media front end sends a real-time streaming protocol connection request to a streaming media server, requires to establish a live channel on the streaming media server, and carries a session description protocol extension field to inform the streaming media server of streaming media storage;
(12) after the streaming media server sends a response message for agreeing to store the streaming media to the streaming media front end, the streaming media front end sends the streaming media to the streaming media server.
Wherein, the content of the session description protocol extension field comprises: the live channel is a storage channel and a file name of a program stored in the live channel.
Wherein the step (2) specifically comprises: after receiving the streaming media, the streaming media server adds a session description protocol extension field into a real-time streaming protocol, records the absolute time point of the current streaming media, and stores the streaming media according to the file name of a live channel storage program in the session description protocol extension field.
Wherein the step (3) is specifically as follows:
(31) the client sends a request for playing the streaming media of the live channel to a streaming media server through a real-time streaming protocol;
(32) the streaming media server sends a response message to the client;
(33) after receiving the response message of the streaming media server, the client sends a request for establishing the connection of the streaming media connection channel to the streaming media server;
(34) the stream media server sends a request response for establishing the stream media connection channel to the client, and the client establishes the stream media connection channel after the establishment of the stream media connection channel is agreed.
Wherein, the requirements of the client comprise: playing the streaming media, or pausing playing the streaming media, or fast-rewinding the streaming media, or fast-forwarding the streaming media.
The method for transmitting the streaming media to the client by the streaming media server according to the requirement of the client specifically comprises the following steps:
if the client selects to pause playing the streaming media, the streaming media server records the absolute time of pause, and after the client selects to play, the streaming media is played from the recorded absolute time;
if the client selects fast-backward streaming media, the streaming media server starts playing the stored streaming media file to the client according to the time of the client backward from the current time;
and after the client selects to fast forward the streaming media, the streaming media server starts playing the stored streaming media file to the client according to the time fast forwarded by the client from the current time.
The method of the invention stores the media file in the streaming media server through the SDP (session description protocol) extension field transmitted in the RTSP (real time streaming protocol) protocol, realizes the storage of the streaming media; meanwhile, the client can request to play the stored streaming media on the streaming media server according to the requirement, and further, the functions of time-shifted television and conference television storage can be realized. The switching process is transparent to the user, and the user does not need to know any stored information, so that the user can watch the program at will.
Drawings
FIG. 1 is a schematic diagram of a network topology of a device used in the method for streaming media storage and service according to the present invention;
FIG. 2 is a flow chart of the streaming media front-end storing media to the streaming media server according to the present invention;
FIG. 3 is a flow chart of the present invention for the streaming media server to perform media service to the client;
fig. 4 is a format of an RTP (real time transport protocol) extension field in the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific embodiments.
Fig. 1 is a network topology diagram of a device used in the method for streaming media storage and service according to the present invention. The system comprises a streaming media front end, a streaming media server and a streaming media client. The streaming media front end can be an encoder or a conference television front end with a collecting and encoding function; the streaming media server has the functions of storing and transmitting streaming media programs; the client is any device capable of receiving streaming media, such as a set-top box, a player, a mobile phone terminal, and the like.
The following describes methods for implementing streaming media storage and providing services for clients, respectively, with reference to the accompanying drawings.
The method for storing the streaming media comprises the following steps:
(1) the streaming media front end sends an RTSP connection request to the streaming media server, requires to create a live channel on the streaming media server, and carries an extension field to inform the streaming media server of program storage.
(2) And the streaming media server sends a response to the front end of the encoder and agrees to store the program.
(3) And the streaming media front end sends RTSP connection process.
(4) The streaming server starts streaming storage, which may be indexed by the absolute time of storage.
Fig. 2 is a flow chart of the streaming media front end storing streaming media to the streaming media server according to the present invention. The method comprises the following specific steps:
(1) the streaming media front end sends an RTSP connection request to the streaming media server, and the RTSP connection request carries the extension field to inform the streaming media server that the program is required to be stored.
The method comprises the following steps that a streaming media front end sends ANNOUNCE rtsp:// server ip/dir/test.sdp to a streaming media server, which indicates that a live channel needs to be created on the streaming media server, and an extension field is carried in a message SDP, wherein the format of the extension field is as follows:
a ═ identifies that the channel is a stored channel >, such as: a-x-ZMSSSCCsaveChannel
a ═ file name > identifying the channel store, for example: x-ZMSCCfilename:/dir/testcord. mp4
This extension field indicates two aspects of information: (a) the present channel is a storage channel; (b) this channel stores the file names of the programs. For example:
a=x-ZMSSCCSaveChannel
a=x-ZMSSCCfilename:/dir/testrecord.mp4
wherein,
the x-zmsscccsavechannel indicates that the channel is a storage channel.
and a ═ x-zmsscfilename:/dir/testexpected. mp4 indicates that the filename of the media file storage is/dir/testexpected. mp4 under the default path.
(2) The streaming server responds to the 200 OK (200 is the success status code of the RTSP protocol) to grant the media request of the streaming front-end.
(3) The stream media front end sends a SETUP connection to the stream media server, informs the stream media server of a port sent by the stream media front end, and establishes a stream media channel.
(4) And the streaming media server responds to the 200 OK, informs the streaming media front end of a port for receiving the streaming media, and agrees to the request for establishing the media channel of the streaming media front end.
(5) If there are two paths of streaming media (video and audio), the streaming media front end also sends a SETUP connection to the streaming media server, informs the streaming media server of the port sent by the streaming media front end, and establishes a media channel of another stream.
(6) And the streaming media server responds to the 200 OK, informs the streaming media front end of a port for receiving the streaming media, and agrees to the request for establishing the media channel of the streaming media front end.
(7) And the streaming media front end sends a RECORD message to the streaming media server to inform the streaming media server to store media.
(8) The streaming media server sends a 200 OK response to the streaming media front end.
(9) And the streaming media front end sends the streaming media to the streaming media server.
(10) After receiving the stream media, the stream media server adds an extension field into the RTP stream media and records the absolute time point of the current stream media.
Wherein, the RTP extension field format, as shown in fig. 4:
the extension position X of the RTP is set to be 1, and the extension of the RTP header is identified. The first 16 bits of the extension header are identified as "ZM" and the last 16 bits are the length of the following extension message in units of 32-bit length. ZM and length themselves are not included in length, so length can be 0. The latter message structure is:
id (8 bit) len (8 position) The contents of the fields.
Wherein, the format defined by the 8-bit id is as follows:
1-64 bits have symbol sequence number, the initial value is 1, if the channel is not closed, the field is continuously accumulated all the time;
2-64 bit absolute time, code stream storage time, (time from 1 month 1 morning 1970);
others-pending;
definition of 8 bits len is: 8 bytes long, not including id and len itself.
(11) And performing streaming media storage, wherein the stored file name is the file name notified by the streaming media front-end ANNOUNCE message.
The method for streaming media service of the invention comprises the following contents:
(1) the client sends a request for playing the streaming media of the live channel to a streaming media server storing the streaming media through an RTSP (real time streaming protocol), and establishes a streaming media connection channel after receiving a response message of the streaming media server; the streaming media server sends streaming media to the client.
If the client selects pause, the streaming media server records the current pause time point of the user. And after the client selects to play, the streaming media server starts to send streaming media to the client from the stored media file from the recorded current pause time point of the user and enters a time-shifting state. The user can enter a time shifting state through fast backward in a live broadcasting state.
The client can select fast forward and fast backward in the time shifting state. If the client selects fast-backward streaming media, the streaming media server starts playing the stored streaming media file to the client according to the time point of fast backward of the client;
when the client selects fast forward streaming media, the streaming media server starts playing the streaming media to the client according to the time point of the fast forward of the client, if the client fast forwards to the end of the stored file, the server automatically turns into a live broadcast state and sends a live broadcast stream to the client, and at the moment, the client is not allowed to fast forward.
Fig. 3 is a flow chart of a streaming media server performing media service to a client. As shown in fig. 3, the specific steps are as follows:
(A) the client sends a request for playing the streaming media to a streaming media server storing the streaming media through a real-time streaming protocol: the client sends DESCRIBE rtsp:// server ip/dir/test.sdp to the streaming media server, which indicates that the program of the live channel is requested.
(B) The streaming server responds to the 200 OK and approves the media request of the client.
(C) The client sends a SETUP connection to the streaming media server, informs a receiving port of the client of the streaming media server, and establishes a streaming media channel.
(D) And the streaming media server responds to the 200 OK, informs the client of a port for sending the streaming media to the streaming media server, and agrees to the request for establishing the media channel of the client.
(E) If there are two paths of streaming media (video and audio), the client also sends a SETUP connection to the streaming media server to notify the receiving port of the streaming media server client and establish a media channel of another stream.
(F) And the streaming media server responds to the 200 OK, informs the client of a port for receiving the streaming media and agrees to the media channel establishment request of the client.
(G) And the streaming media server sends a connection request response to the client and sends streaming media to the client according to the requirement of the client.
When the client sends PLAY information to the streaming media server, the streaming media server is informed to send media, and the streaming media server sends 200 OK response to the client and transmits the streaming media to the client.
When the client selects to PAUSE playing the streaming media, a PAUSE message is sent to the streaming media server, and the streaming media server records the absolute time of PAUSE of the client (user) and returns a 200 OK response to the client.
The client selects to start playing and sends PLAY message to the streaming media server. The streaming media server searches a corresponding storage file in the SDP of the live channel, such as/dir/testored. mp4 under a default media path, then reads data from an absolute time point, stored by the streaming media server, at which the client is paused, and the streaming media server sends streaming media to the client.
If the client selects fast backward under live broadcasting, the streaming media server obtains streaming media data from the stored media file according to the time point of fast backward of the client and sends the streaming media data to the client.
In summary, the present invention provides a method for storing programs and providing services to client users by using the extended fields in the SDP protocol (RFC2327) through the standard RTSP protocol (RFC 2326). The invention solves the problem of stream media storage, thereby leading the application of the stream media to be wider and supporting stream media services such as conference television storage, time-shifting television and the like. The streaming media is stored in the RTSP without being modified, and only the SDP file is expanded, so that the compatibility is good, and particularly, the switching access between live broadcasting and stored data can be supported without modifying an RTSP client.

Claims (7)

1. The method for storing and serving the streaming media is characterized by comprising the following steps:
(1) the streaming media front end informs the streaming media server of storing the streaming media, and after receiving a response message of the streaming media server, sends the streaming media to the streaming media server;
(2) the streaming media server stores the received streaming media;
(3) the client sends a request for playing the streaming media to the streaming media server, and establishes a streaming media connection channel after receiving a response message of the streaming media server;
(4) and the streaming media server transmits streaming media to the client according to the requirement of the client through the established connection channel.
2. The method of streaming media storage and service of claim 1, wherein: the step (1) is specifically as follows:
(11) the method comprises the steps that a streaming media front end sends a real-time streaming protocol connection request to a streaming media server, requires to establish a live channel on the streaming media server, and carries a session description protocol extension field to inform the streaming media server of streaming media storage;
(12) after the streaming media server sends a response message for agreeing to store the streaming media to the streaming media front end, the streaming media front end sends the streaming media to the streaming media server.
3. The method of streaming media storage and service of claim 2, wherein: the contents of the session description protocol extension field comprise: the live channel is a storage channel and a file name of a program stored in the live channel.
4. A method of streaming media storage and service according to claim 2 or 3, characterised in that: the step (2) is specifically as follows: after receiving the streaming media, the streaming media server adds a session description protocol extension field into a real-time streaming protocol, records the absolute time point of the current streaming media, and stores the streaming media according to the file name of a live channel storage program in the session description protocol extension field.
5. The method of streaming media storage and service of claim 1, wherein: the step (3) is specifically as follows:
(31) the client sends a request for playing the streaming media of the live channel to a streaming media server through a real-time streaming protocol;
(32) the streaming media server sends a response message to the client;
(33) after receiving the response message of the streaming media server, the client sends a request for establishing the connection of the streaming media connection channel to the streaming media server;
(34) the stream media server sends a request response for establishing the stream media connection channel to the client, and the client establishes the stream media connection channel after the establishment of the stream media connection channel is agreed.
6. The method for streaming media storage and service according to claim 1, wherein the requirements of the client in the step (4) comprise: playing the streaming media, or pausing playing the streaming media, or fast-rewinding the streaming media, or fast-forwarding the streaming media.
7. The method of streaming media storage and service of claim 6, wherein: the step of transmitting the streaming media to the client by the streaming media server according to the requirement of the client specifically comprises the following steps:
if the client selects to pause playing the streaming media, the streaming media server records the absolute time of pause, and after the client selects to play, the streaming media is played from the recorded absolute time;
if the client selects fast-backward streaming media, the streaming media server starts playing the stored streaming media file to the client according to the time of the client backward from the current time;
and after the client selects to fast forward the streaming media, the streaming media server starts playing the stored streaming media file to the client according to the time fast forwarded by the client from the current time.
CNA2006101657232A 2006-12-14 2006-12-14 Method of stream media storage and service Pending CN1972441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101657232A CN1972441A (en) 2006-12-14 2006-12-14 Method of stream media storage and service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101657232A CN1972441A (en) 2006-12-14 2006-12-14 Method of stream media storage and service

Publications (1)

Publication Number Publication Date
CN1972441A true CN1972441A (en) 2007-05-30

Family

ID=38112983

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101657232A Pending CN1972441A (en) 2006-12-14 2006-12-14 Method of stream media storage and service

Country Status (1)

Country Link
CN (1) CN1972441A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009006814A1 (en) * 2007-07-04 2009-01-15 Huawei Technologies Co., Ltd. Time shift tv service establishment method and time shift tv media function entity
WO2009049478A1 (en) * 2007-09-25 2009-04-23 Xunlei Networking Technologies, Ltd. A method, system and device for playing stream media
WO2009055988A1 (en) * 2007-10-30 2009-05-07 Zte Corporation A method of time-shifting for an iptv system over next generation networks
WO2009117917A1 (en) * 2008-03-28 2009-10-01 华为技术有限公司 A stream media service switching method, system and device
CN101459824B (en) * 2007-07-04 2011-03-30 华为技术有限公司 Time shifted television service establishing method and time shifted television media functional entity
CN101188622B (en) * 2007-12-29 2011-04-20 腾讯科技(深圳)有限公司 A method and device for downloading file by using P2P living broadcast channel
CN101414999B (en) * 2007-10-19 2011-08-31 华为技术有限公司 Method for obtaining relation of channel and medium, channel information sending method and related apparatus
CN109218257A (en) * 2017-06-30 2019-01-15 中国电信股份有限公司 Flow media playing method, system, server and the device for streaming media playing
CN111193895A (en) * 2019-12-20 2020-05-22 视联动力信息技术股份有限公司 Recording and broadcasting method, recording and broadcasting system, client, electronic equipment and storage medium
CN113485972A (en) * 2021-08-02 2021-10-08 安徽文香科技有限公司 Multimedia sharing method, device, mobile terminal and storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340557B (en) * 2007-07-04 2010-08-11 华为技术有限公司 Time shifted television establishing method and time shifted television media functional entity
CN101459824B (en) * 2007-07-04 2011-03-30 华为技术有限公司 Time shifted television service establishing method and time shifted television media functional entity
WO2009006814A1 (en) * 2007-07-04 2009-01-15 Huawei Technologies Co., Ltd. Time shift tv service establishment method and time shift tv media function entity
WO2009049478A1 (en) * 2007-09-25 2009-04-23 Xunlei Networking Technologies, Ltd. A method, system and device for playing stream media
US8578042B2 (en) 2007-09-25 2013-11-05 Xunlei Networking Technologies, Ltd. Method, system and device for playing streaming media
CN101414999B (en) * 2007-10-19 2011-08-31 华为技术有限公司 Method for obtaining relation of channel and medium, channel information sending method and related apparatus
WO2009055988A1 (en) * 2007-10-30 2009-05-07 Zte Corporation A method of time-shifting for an iptv system over next generation networks
CN101426124B (en) * 2007-10-30 2011-06-22 中兴通讯股份有限公司 Time shifting method for interactive network television system in next generation communication network
CN101188622B (en) * 2007-12-29 2011-04-20 腾讯科技(深圳)有限公司 A method and device for downloading file by using P2P living broadcast channel
WO2009117917A1 (en) * 2008-03-28 2009-10-01 华为技术有限公司 A stream media service switching method, system and device
CN109218257A (en) * 2017-06-30 2019-01-15 中国电信股份有限公司 Flow media playing method, system, server and the device for streaming media playing
CN111193895A (en) * 2019-12-20 2020-05-22 视联动力信息技术股份有限公司 Recording and broadcasting method, recording and broadcasting system, client, electronic equipment and storage medium
CN111193895B (en) * 2019-12-20 2022-09-27 视联动力信息技术股份有限公司 Recording and broadcasting method, recording and broadcasting system, client, electronic equipment and storage medium
CN113485972A (en) * 2021-08-02 2021-10-08 安徽文香科技有限公司 Multimedia sharing method, device, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN1972441A (en) Method of stream media storage and service
CN105338425B (en) A kind of system and method for realizing video seamless switching between multi-screen
CN101160966B (en) Method, device and system of implementing time-shifting TV
US9615119B2 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
CN105354002B (en) A kind of system and method for realizing video seamless switching between multi-screen
US20090106288A1 (en) Method and system for supporting media data of various coding formats
CN101465996B (en) Method, equipment and system for displaying network television time
CN112399190B (en) Audio and video data acquisition method and device
CN101588469A (en) Channel information generation, access control, delivery method, IPTV system and device
CN101582731A (en) Method and system for processing bookmark service and triggering, supplying, processing and control devices
KR100739172B1 (en) Method for transmitting moving picture in mobile terminal using pseudo streaming technology
KR101497170B1 (en) Alternate link on-demand instant replay supported via an internet protocol multimedia subsystem
CN101877719B (en) Method, system and B2BUA for realizing television interaction at mobile terminal
WO2004081799A1 (en) Receiver apparatus and information browsing method
WO2009052650A1 (en) Method and terminal for forwarding an iptv program to an sip terminal
US8908853B2 (en) Method and device for displaying information
CN101360114A (en) Multimedia system providing real-time scene and implementing method thereof
CN103684992B (en) Home gateway, terminal and data sharing method
JP5332303B2 (en) Service providing method, streaming server, streaming transmission method, and program
KR100802088B1 (en) Method and device for providing real-time VOD service
WO2008141542A1 (en) A method, video device and system for displaying information at the time of switching channels
CN101572796A (en) Method, device and system for broadcast control
CN101466017A (en) Interactive device and method for network television
KR100759807B1 (en) Method of time-shifting service in multicast based IPTV
US8671422B2 (en) Systems and methods for handling advertisements in conjunction with network-based bookmarking

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

Open date: 20070530