CN1406070A - In-site program-requesting method based on real-time flow medium - Google Patents

In-site program-requesting method based on real-time flow medium Download PDF

Info

Publication number
CN1406070A
CN1406070A CN02146144A CN02146144A CN1406070A CN 1406070 A CN1406070 A CN 1406070A CN 02146144 A CN02146144 A CN 02146144A CN 02146144 A CN02146144 A CN 02146144A CN 1406070 A CN1406070 A CN 1406070A
Authority
CN
China
Prior art keywords
user
audio
video data
video
unit
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.)
Granted
Application number
CN02146144A
Other languages
Chinese (zh)
Other versions
CN1185872C (en
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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CNB021461449A priority Critical patent/CN1185872C/en
Publication of CN1406070A publication Critical patent/CN1406070A/en
Application granted granted Critical
Publication of CN1185872C publication Critical patent/CN1185872C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The invention includes following procedures. The request information of the order programme from n users is sent to the 1-M units of each user chain table of the requested code stream. The compressed code server sends the n routes of the audio and video data to the 1-L units of the receiving buffers of each audio and video data. The audio and video data in the receiving buffer area are sent to the 1-K units of the audio and video data forwarding buffer area relevant to the code streams. The users in the user chain table of the relevant code stream are read out. The data in the audio and video data forwarding buffer area of different code stream are transmitted to the relevant user who can enjoy the programme of the requested code stream through the player.

Description

A kind of on-the-spot order method based on real time flow medium
Technical field
The invention belongs to technical field of computer multimedia, particularly streaming media playing server design technology.
Background technology
Stream media technology is a kind of online play-back technology of rising in recent years.Online broadcast, as the term suggests be exactly to play while downloading, player also need not wait until that multimedia file all downloads to local hard drive and plays later on again, but plays when downloading.Player hews out a buffering area in the internal memory of client; the space of several Mbytes normally; after being arranged in the player pending buffer district, enough data begin the decoding broadcast; this process needs the time in several seconds usually; saved the stand-by period with playing to compare greatly again after having downloaded, and owing to do not download on the hard disk, but directly store in the internal memory; promptly be played the device deletion after playing, therefore digital publishing rights played a protective role.
Stream media system mainly is made up of four parts as shown in Figure 1: compressed encoding server, Play Server, file server, player.Play Server is in core position in stream media system, the quality of its design will directly determine the quality of stream media system performance.The service that Play Server externally provides mainly contains two kinds of file program request and on-the-spot program requests.The source of file program request is an audio-video document, and the source of on-the-spot program request is an encoder server.Because encoder server will carry out the collection compression of real time programme, taken a large amount of cpu resources, therefore can not support the user of Da Rong to insert, this part work will be transferred on the Play Server, directly provide on-the-spot some multicast function to the user by Play Server.
Current Play Server provides on-the-spot order method based on real time flow medium to the user, comprises as shown in Figure 2; The information of user's program request is delivered in the user chain table by user's receiving element, the required audio, video data of user is delivered to by the compressed encoding server in the audio frequency and video buffering area of audio, video data receiving element, delivers to according to the information of the user's program request audio, video data that the user is required then and carries out online broadcast in the user's players.
Above-mentioned Play Server is at the compressed encoding server design of solid size rate, can only start single channel audio, video data forwarding capability, and the number of users of supporting is few.
Summary of the invention
The objective of the invention is for overcoming the weak point of prior art, a kind of on-the-spot order method based on real time flow medium is proposed, the present invention is provided with simultaneously and receives buffering area and intransit buffering district, makes it have the support large-capacity user, and the advantage of multichannel audio-video frequency data forwarding function can be provided.
A kind of on-the-spot order method based on real time flow medium that the present invention proposes may further comprise the steps:
1) n that receives user's order request information is delivered to respectively in the 1-M unit of each user chain table of the code stream of asking;
2) n road audio, video data is delivered in the 1-L unit of each audio, video data reception buffering area simultaneously by the compressed encoding server;
3) receive in the 1-K unit in audio, video data intransit buffering district that audio, video data in the buffering area sends to corresponding code stream respectively;
4) read user in the user chain table of corresponding code stream, give corresponding user with data forwarding in the audio frequency and video intransit buffering district of different code streams, the user appreciates the program of the code stream of asking by player.
The total n road input of the structural design of this method, the code stream of the code stream of the on-the-spot broadcasting program that each road input is corresponding different or the different code checks of same on-the-spot broadcasting program.
The specific implementation method of above-mentioned step 1 can may further comprise the steps:
(1) waits for that the user inserts;
(2) insert as user's program request,, this user profile is put into the user chain table unit 1 of corresponding code stream in unit M according to on-the-spot broadcasting program that the user asked or the code check of being asked;
(3) return the access of waiting for next user then.
The specific implementation method of above-mentioned steps 3 can may further comprise the steps:
(1) data of stand by tone video reception buffer location 1 in the unit L;
(2) if receiving buffer location 1, audio frequency and video in unit L, data are arranged;
(3) unit 1 in audio frequency and video intransit buffering district that audio, video data is put into corresponding code stream in the unit K after, wait for the arrival of next audio, video data;
(4) if audio frequency and video receive buffer location 1 free of data in the unit L, then wait for the arrival of next audio, video data.
The specific implementation method of step 4 can may further comprise the steps:
(1) data in the stand by tone video intransit buffering district;
(2) in the audio frequency and video intransit buffering district audio, video data is arranged, judge in the user chain table of corresponding code stream whether user accessing information is arranged,, return step 1 then if do not throw away this audio, video data;
(3) if user accessing information is arranged, just travel through user chain table unit 1 to unit M, the audio, video data in the audio frequency and video intransit buffering district is transmitted to each user in the user chain table of corresponding code stream;
(4) return the next audio, video data of wait.
Method characteristics of the present invention:
1. can receive a plurality of real time programmes source, or same real time programme source different coding speed;
2. support a large amount of user's program requests to insert;
3. modularized design is adopted in audio frequency and video input and user's program request;
4. clear in structure;
5. reliability height.
Description of drawings
Fig. 1 is typical stream media system structure chart.
Fig. 2 is existing single channel audio, video data forwarding process figure.
Fig. 3 is the on-the-spot order method overview flow chart based on real time flow medium of the present invention.
Fig. 4 is user's method of reseptance detail flowchart of the present invention.
Fig. 5 is an audio, video data method of reseptance detail flowchart of the present invention.
Fig. 6 is an audio, video data retransmission method detail flowchart of the present invention.
Embodiment
The on-the-spot order method embodiment based on real time flow medium that the present invention proposes is described with reference to the accompanying drawings as follows:
A kind of on-the-spot order method overall procedure based on real time flow medium that the present invention proposes as shown in Figure 3, may further comprise the steps:
1) n that receives user's order request information is delivered to respectively in the 1-M unit of each user chain table of the code stream of asking;
2) the road audio, video data is delivered in the 1-L unit of each audio, video data reception buffering area simultaneously by the compressed encoding server;
3) will receive in the 1-K unit in audio, video data intransit buffering district that audio, video data in the buffering area sends to corresponding code stream respectively;
4) read user in the user chain table of corresponding code stream, give corresponding user with data forwarding in the audio frequency and video intransit buffering district of different code streams, the user appreciates the program of the code stream of asking by player.
The total n road input of the structural design of this method, the code stream of the code stream of the on-the-spot broadcasting program that each road input is corresponding different or the different code checks of same on-the-spot broadcasting program.
The specific implementation method of above-mentioned general steps 1 as shown in Figure 4, may further comprise the steps:
(1) waits for that the user inserts;
(2) insert as user's program request,, this user profile is put into the user chain table unit 1 of corresponding code stream in unit M according to on-the-spot broadcasting program that the user asked or the code check of being asked;
(3) return the access of waiting for next user then.
The specific implementation method of above-mentioned general steps 3 as shown in Figure 5, may further comprise the steps:
(1) data of stand by tone video reception buffer location 1 in the unit L;
(2) if receiving buffer location 1, audio frequency and video in unit L, data are arranged;
(3) unit 1 in audio frequency and video intransit buffering district that audio, video data is put into corresponding code stream in the unit K after, wait for the arrival of next audio, video data;
(4) if audio frequency and video receive buffer location 1 free of data in the unit L, then wait for the arrival of next audio, video data.
The specific implementation method of above-mentioned general steps 4 may further comprise the steps as shown in Figure 6:
(1) data in the stand by tone video intransit buffering district;
(2) in the audio frequency and video intransit buffering district audio, video data is arranged, judge in the user chain table of corresponding code stream whether user accessing information is arranged,, return step 1 then if do not throw away this audio, video data;
(3) if user accessing information is arranged, just travel through user chain table unit 1 to unit M, the audio, video data in the audio frequency and video intransit buffering district is transmitted to each user in the user chain table of corresponding code stream;
(4) return the next audio, video data of wait.
The embodiments of the invention implementation method is described in detail as follows in conjunction with shown in Fig. 3,4,5,6, and present embodiment may further comprise the steps:
1. after user's receiving thread starts, wait for that user's program request inserts;
2. insert as the user, according to the code check of code stream that the user asks, user's receiving thread is put into the user chain table of corresponding code stream with this user profile, returns the next user's of wait access then;
3. the audio frequency and video receiving thread receives buffering area reception audio, video data from the audio frequency and video of corresponding code stream, if audio frequency and video receive in the buffering area data are arranged, audio, video data is forwarded in the audio frequency and video intransit buffering district of corresponding code stream, continues to wait for the arrival of next audio, video data then;
4. audio frequency and video are transmitted the audio, video data in the thread stand by tone video intransit buffering district, if in the audio frequency and video intransit buffering district audio, video data is arranged, judge then in the user chain table of corresponding code stream whether the user is arranged, if number of users is greater than 1, just travel through user chain table, the audio, video data in the audio frequency and video intransit buffering district is transmitted to the user; As not having the user in the corresponding code stream user chain table, the audio, video data of receiving is thrown away, return the next audio, video data data in the stand by tone video intransit buffering district then.
Being configured to of the compressed encoding server that present embodiment adopts:
CPU:Intel?PIII?1GHz
Internal memory: 128M
Operating system: RedHat7.1 Linux Server
Programming language: C++
Program source: the different coding speed of the same program of n=3:
rate1=100kbps
rate2=450kbps
rate3=900kbps
Being set to of parameter in the present embodiment:
Maximum user inserts number: 3000
Audio frequency and video receive buffering area L=50
Audio frequency and video intransit buffering district K=50
User chain table M=3000
Audio frequency and video buffering area and user chain table all adopt single-track link table to realize, audio, video data receives, the user inserts, the forwarding of audio, video data all adopts thread to realize.

Claims (4)

1, a kind of on-the-spot order method based on real time flow medium may further comprise the steps:
1) n the user's order request information that receives is delivered to respectively in the 1-M unit of each user chain table of the code stream of asking;
2) n road audio, video data is delivered in the 1-L unit of each audio, video data reception buffering area simultaneously by the compressed encoding server;
3) will receive in the 1-K unit in audio, video data intransit buffering district that audio, video data in the buffering area sends to corresponding code stream respectively;
4) according to the user in the user chain table of reading corresponding code stream, give corresponding user with data forwarding in the audio frequency and video intransit buffering district of different code streams, the user appreciates the program of the code stream of asking by player.
2, the on-the-spot order method based on real time flow medium as claimed in claim 1 is characterized in that said step 1 specifically may further comprise the steps:
(1) waits for that the user inserts;
(2) insert as user's program request,, this user profile is put into the user chain table unit 1 of corresponding code stream in unit M according to on-the-spot broadcasting program that the user asked or the code check of being asked;
(3) return the access of waiting for next user then.
3, the on-the-spot order method based on real time flow medium as claimed in claim 1 is characterized in that said step 3 specifically may further comprise the steps:
(1) data of stand by tone video reception buffer location 1 in the unit L;
(2) if receiving buffer location 1, audio frequency and video in unit L, data are arranged;
(3) unit 1 in audio frequency and video intransit buffering district that audio, video data is put into corresponding code stream in the unit K after, wait for the arrival of next audio, video data;
(4) if audio frequency and video receive buffer location 1 free of data in the unit L, then wait for the arrival of next audio, video data.
4, the on-the-spot order method based on real time flow medium as claimed in claim 1 is characterized in that said step 4 specifically may further comprise the steps:
(1) data in the stand by tone video intransit buffering district;
(2) in the audio frequency and video intransit buffering district audio, video data is arranged, judge in the user chain table of corresponding code stream whether user accessing information is arranged,, return step 1 then if do not throw away this audio, video data;
(3) if user accessing information is arranged, just travel through user chain table unit 1 to unit M, the audio, video data in the audio frequency and video intransit buffering district is transmitted to each user in the user chain table of corresponding code stream;
(4) return the next audio, video data of wait.
CNB021461449A 2002-11-01 2002-11-01 In-site program-requesting method based on real-time flow medium Expired - Fee Related CN1185872C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021461449A CN1185872C (en) 2002-11-01 2002-11-01 In-site program-requesting method based on real-time flow medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021461449A CN1185872C (en) 2002-11-01 2002-11-01 In-site program-requesting method based on real-time flow medium

Publications (2)

Publication Number Publication Date
CN1406070A true CN1406070A (en) 2003-03-26
CN1185872C CN1185872C (en) 2005-01-19

Family

ID=4751011

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021461449A Expired - Fee Related CN1185872C (en) 2002-11-01 2002-11-01 In-site program-requesting method based on real-time flow medium

Country Status (1)

Country Link
CN (1) CN1185872C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1314250C (en) * 2004-10-29 2007-05-02 清华大学 A robust point to point based stream scheduling method
CN100334919C (en) * 2005-03-25 2007-08-29 北京北方烽火科技有限公司 Managing method for user contex of multi-object positioning in GMLC
CN100456284C (en) * 2003-08-01 2009-01-28 微软公司 Sparse caching for streaming media
CN101867692B (en) * 2009-02-03 2012-08-15 美国博通公司 Communication method and communication system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456284C (en) * 2003-08-01 2009-01-28 微软公司 Sparse caching for streaming media
CN1314250C (en) * 2004-10-29 2007-05-02 清华大学 A robust point to point based stream scheduling method
CN100334919C (en) * 2005-03-25 2007-08-29 北京北方烽火科技有限公司 Managing method for user contex of multi-object positioning in GMLC
CN101867692B (en) * 2009-02-03 2012-08-15 美国博通公司 Communication method and communication system

Also Published As

Publication number Publication date
CN1185872C (en) 2005-01-19

Similar Documents

Publication Publication Date Title
CN101075949A (en) Method for changing fluid-medium file broadcasting speed
CN1798097A (en) Method for buffering data in stream media
CN1826592A (en) Content output device
CN1227902C (en) Data transmitting, processing method and device, data recording and playing back method and device
CN1507731A (en) Real-time control of playback rates in presentations
CN1897658A (en) Webpage requesting multi-medium applied system and realization for one-way network
CN1692353A (en) Sparse caching for streaming media
CN1798383A (en) Apparatus and method for providing in a terminal a pause function for a broadcast stream
CN101068336A (en) Coordinate connection stream media direct broadcasting system and device
CN1662988A (en) Appliance-guided edit-operations in advanced digital video recording systems
CN1217317C (en) Encoding audio signals
CN1805362A (en) Game video recording playback method and apparatus
CN1992889A (en) Mobile terminal adapting method of streaming media
CN1185872C (en) In-site program-requesting method based on real-time flow medium
CN101047846A (en) Method for using bookmark on flow media system
CN1419380A (en) Digital video recorder and video recording method
CN1477537A (en) Information processing device for recording stream data to memory device
CN1812567A (en) Method for video source material long-distance examining and seeing method
CN1852424A (en) Flow-medium performace performance ordering method
CN1360256A (en) Method for dynamic upgrade of set top box software
CN101047813A (en) Method of controlling data broadcast application and broadcast receiver receiving the same
CN1992937A (en) Mobile terminal equipment with streaming media terminal adapting function
CN1717030A (en) Be used to store and search for the method and apparatus of broadcasting stream
CN1474276A (en) Data file high efficiency storage received by non-sequence mode
CN1848939A (en) Information management system, information management apparatus and information management method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050119

Termination date: 20141101

EXPY Termination of patent right or utility model