CN101146221A - Dynamic adjusting method and system for playing pointer in P2P direct broadcasting - Google Patents

Dynamic adjusting method and system for playing pointer in P2P direct broadcasting Download PDF

Info

Publication number
CN101146221A
CN101146221A CNA2007101760685A CN200710176068A CN101146221A CN 101146221 A CN101146221 A CN 101146221A CN A2007101760685 A CNA2007101760685 A CN A2007101760685A CN 200710176068 A CN200710176068 A CN 200710176068A CN 101146221 A CN101146221 A CN 101146221A
Authority
CN
China
Prior art keywords
client player
live
playing pointer
player
data
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
CNA2007101760685A
Other languages
Chinese (zh)
Other versions
CN101146221B (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.)
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 CN2007101760685A priority Critical patent/CN101146221B/en
Publication of CN101146221A publication Critical patent/CN101146221A/en
Application granted granted Critical
Publication of CN101146221B publication Critical patent/CN101146221B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention relates to a method for dynamic adjustment of a play pointer in P2P live broadcast, which comprises: step 1: a live broadcast source server scans the data stored in a cache memory thereof and produces an I frame index which is adapted to the timed interaction with a player at the client side; and step 2: the player at the client side jumps the play pointer according to the I frame index. The invention can reduce the invalid data request and wait time of the player at the client side and simultaneously keep the play speed of the player at the client side in pace with the refreshing speed of the live broadcast source server.

Description

The method and system that playing pointer was dynamically adjusted during P2P was live
Technical field
The present invention relates to the P2P field, relate in particular to the method and system that the live middle playing pointer of P2P is dynamically adjusted.
Background technology
The great advantage of P2P (Peer to Peer) system is to make the user can effectively utilize the resource in the network, and these resources comprise data resource, bandwidth resources, also comprise computational resource.Almost do not have the bottleneck of original C/S (Client/Server) pattern in the P2P system so this makes, good expandability is arranged.In the P2P model, each node (Peer) has been played the part of two kinds of roles simultaneously, be client be again server, as client can to other querying nodes and the request needed service, can provide service to other nodes as server end.
The stream media system of P2P is divided into live broadcast system and VOD system.Live data source generally is real-time, and such as a live ball match, no matter when the user enters system, and the content that they saw is synchronous (can have difference slightly on the reproduction time) with data source basically.
In the live broadcast system of P2P, front end is cut into some and give each piece one numbering (numbering increases progressively) with media data, as the packet loss phenomenon takes place, then the data of this piece all can be lost.Opened up a buffer memory in the live source server, be used to deposit the data after coding and the slicing treatment,, numbered big data block and number little data block constantly refreshing because the space of buffer memory is certain.And the request of client data piece is driven by player, promptly behind the intact blocks of data of player plays, and the request that will produce a new data block.Owing to reasons such as player plays speed, network transfer speeds and section speed, client player will keep consistent very difficulty with the live source server always, the data that client-requested may occur, the live source server does not have corresponding data, client problems such as pause even broadcast termination can occur playing after operation a period of time.Cause inconsistent reason to mainly contain following 3 points:
1. packet loss has appearred in data block, and client can't read required data;
2. network transfer speeds is slow, and the needed data of client player are not slowly come;
3. the speed of player plays is slow, the speed of being unable to catch up with cutting into slices, then can cause a period of time after, the data that client is asked, server side has refreshed it already.
Summary of the invention
The technical problem that the present invention solves provide P2P live in the method and system dynamically adjusted of playing pointer, the problem that occurs when solving client player played data in the P2P live broadcast system.
The invention provides the method that the live middle playing pointer of P2P is dynamically adjusted, comprising:
Step 1, live source server scan the data in its buffer memory and generate the I frame index, and this I frame index and client player are regularly mutual;
Step 2, client player is carried out the playing pointer redirect according to described I frame index.
Also comprise: wait for that when client player reads less than data the stand-by period of client player is the value of data block size divided by code check.
The stand-by period of client player also waits for that according to client player the time of previous data block adjusts.
Also comprise: when the playing progress rate of client player is unable to catch up with the refresh rate of live source server, if minimal data piece number and the difference of the data block number of the current broadcast of client player are less than predetermined value in the live source server buffer, the difference of playing pointer redirect minimal data forward piece number and the data block number of the current broadcast of client player then.
After the difference of playing pointer redirect minimal data forward piece number and the data block number of the current broadcast of client player, redirect fixed value forward again.
The invention provides the system that the live middle playing pointer of P2P is dynamically adjusted, comprise live source server and client side player,
Described live source server also is used for scanning the data of its buffer memory and generates the I frame index, and this I frame index and client player are regularly mutual;
Described client player also is used for carrying out the playing pointer redirect according to described I frame index.
Described client player also comprises the stand-by period computing module, is used for the data block size is obtained divided by code check the stand-by period of client player.
Described client player also is used for waiting for that according to client player the time of previous data block adjusts the stand-by period of active client player.
Described client player also is used for the playing pointer redirect minimal data forward piece number difference with the data block number of the current broadcast of client player.
Described client player also is used for playing pointer redirect fixed value forward again.
The present invention can reduce invalid request of data of client player and stand-by period, and can make the broadcasting speed of client player can catch up with the refresh rate of live source server.
Description of drawings
Fig. 1 is the live applied environment deployment diagram of P2P;
Fig. 2 is a system block diagram provided by the invention.
Embodiment
The invention provides the method that the live middle playing pointer of P2P is dynamically adjusted, as shown in Figure 2, comprising:
Step 21, live source server scan the data in its buffer memory and generate the I frame index, and this I frame index and client player are regularly mutual;
Step 22, client player is carried out the playing pointer redirect according to described I frame index.
Fig. 1 is the live applied environment deployment diagram of P2P, comprises encoder, section server, live source server and client side.Encoder is accepted the AV signal from video camera, and coding forms the MPEG4 flow data, and the tangential section server provides original MPEG4 data.The MPEG4 stream section that the section server is responsible for own coding device in future forms the piece that P2P uses, and the data after will cutting into slices then mail to the live source server.The live source server receives from the section data in server, and it can be considered whole P2P live content source node.Client is common PC.After the each several part work, client player can playing video data.
For video data and since some data read less than, after player is skipped, do not have the I frame in the data that obtain once more as the back, such data are otiose for player, therefore need can accurate in locating to the I frame data.Scan by live source server data regularly among the present invention in its buffer memory, generate an I frame index, carrying out alternately of this index timing with client player, client player comes the accurate in locating playing pointer will jump to which piece according to the I frame index, thereby has reduced invalid request of data and stand-by period.
When the user reads less than data, need carry out the wait of certain hour, how this time is determined, the present invention proposes a kind of this time method of dynamically determining.The initial value of this time can obtain divided by code check by the size of data block, but this time may be caused adding up of error, thereby need constantly revise, modification method is exactly that the data of back are bide one's time and need dynamically be adjusted according to the stand-by period of earlier data piece waiting, long as the earlier data piece stand-by period, then the stand-by period of the data block of back also will suitably be grown a bit, otherwise, then to lack a bit.For example, establish A 1Be some read less than data block, A 0Be A 1Can read previous of front, A 2┈ A N-1Be A 1The piece that can't read that the back is continuous, A nBe the piece that can read once more, read A 1Time during piece is t 1, A nTime for reading be t n, then the average delay of each piece is (t n-t 1)/n, then A nCertain data block of back read less than after time of waiting for be (t n-t 1)/n.
When the playing progress rate of client player is unable to catch up with the refresh rate of live source server, the present invention proposes a kind of method that pointer is adjusted of carrying out.If the numbering of existing numbering minimal data piece in the live source buffer memory (this numbering is given client by the timed sending of live source server) is oldestCode, and the piece of the current broadcast of client player number is CurPlayingCode, when the difference of these two numberings during less than certain scope (for example the difference of these two numberings is less than 20), then need to carry out the adjustment of playing pointer, be about to playing pointer and adjust certain value forward, middle data all abandon need not.Concrete method of adjustment is: establishing oldestCode (this parameter is given client by the timed sending of live source server) and CurPlayingCode (this parameter is the numbering of the current played data block of client player) difference is diff, then playing pointer is forward after the redirect diff value, fixed value of redirect (it is 15 that this fixed value for example is set) forward again, thus just can make the client player playing progress rate catch up with the speed of live source.
The invention provides the system that the live middle playing pointer of P2P is dynamically adjusted, as shown in Figure 2, comprise live source server 21 and client player 22,
Described live source server 21 also is used for scanning the data of its buffer memory and generates the I frame index, and this I frame index and client player 22 are regularly mutual;
Described client player 22 also is used for carrying out the playing pointer redirect according to described I frame index.
Described client player 22 also comprises stand-by period computing module 23, is used for the data block size is obtained divided by code check the stand-by period of client player 22.
Described client player 22 also is used for the stand-by period according to the time adjustment active client player 22 of the previous data block of client player 22 waits.
Described client player 22 also is used for the playing pointer redirect minimal data forward piece number difference with the data block number of client player 22 current broadcasts.
Described client player 22 also is used for playing pointer redirect fixed value forward again.
Those skilled in the art can also carry out various modifications to above content under the condition that does not break away from the definite the spirit and scope of the present invention of claims.Therefore scope of the present invention is not limited in above explanation, but determine by the scope of claims.

Claims (10)

1.P2P the method that playing pointer is dynamically adjusted in live is characterized in that, comprising:
Step 1, live source server scan the data in its buffer memory and generate the I frame index, and this I frame index and client player are regularly mutual;
Step 2, client player is carried out the playing pointer redirect according to described I frame index.
2. the method that playing pointer was dynamically adjusted during P2P as claimed in claim 1 was live is characterized in that, also comprises: wait for that when client player reads less than data the stand-by period of client player is the value of data block size divided by code check.
3. the method that playing pointer was dynamically adjusted during P2P as claimed in claim 2 was live is characterized in that, the stand-by period of client player also waits for that according to client player the time of previous data block adjusts.
4. as claim 1, the dynamic method of adjusting of the live middle playing pointer of 2 or 3 described P2P, it is characterized in that, also comprise: when the playing progress rate of client player is unable to catch up with the refresh rate of live source server, if minimal data piece number and the difference of the data block number of the current broadcast of client player are less than predetermined value in the live source server buffer, the difference of playing pointer redirect minimal data forward piece number and the data block number of the current broadcast of client player then.
5. the method that playing pointer was dynamically adjusted during P2P as claimed in claim 4 was live is characterized in that, after the difference of playing pointer redirect minimal data forward piece number and the data block number of the current broadcast of client player, and redirect fixed value forward again.
6.P2P the system that playing pointer is dynamically adjusted in live comprises live source server and client side player, it is characterized in that,
Described live source server also is used for scanning the data of its buffer memory and generates the I frame index, and this I frame index and client player are regularly mutual;
Described client player also is used for carrying out the playing pointer redirect according to described I frame index.
7. the system that playing pointer was dynamically adjusted during P2P as claimed in claim 6 was live is characterized in that described client player also comprises the stand-by period computing module, is used for the data block size is obtained divided by code check the stand-by period of client player.
8. the system that playing pointer was dynamically adjusted during P2P as claimed in claim 7 was live is characterized in that, described client player also is used for waiting for that according to client player the time of previous data block adjusts the stand-by period of active client player.
9. the system that playing pointer was dynamically adjusted during P2P as claimed in claim 7 was live is characterized in that, described client player also is used for the playing pointer redirect minimal data forward piece number difference with the data block number of the current broadcast of client player.
10. the system that playing pointer was dynamically adjusted during P2P as claimed in claim 7 was live is characterized in that, described client player also is used for playing pointer redirect fixed value forward again.
CN2007101760685A 2007-10-18 2007-10-18 Dynamic adjusting method and system for playing pointer in P2P direct broadcasting Expired - Fee Related CN101146221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101760685A CN101146221B (en) 2007-10-18 2007-10-18 Dynamic adjusting method and system for playing pointer in P2P direct broadcasting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101760685A CN101146221B (en) 2007-10-18 2007-10-18 Dynamic adjusting method and system for playing pointer in P2P direct broadcasting

Publications (2)

Publication Number Publication Date
CN101146221A true CN101146221A (en) 2008-03-19
CN101146221B CN101146221B (en) 2010-06-02

Family

ID=39208470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101760685A Expired - Fee Related CN101146221B (en) 2007-10-18 2007-10-18 Dynamic adjusting method and system for playing pointer in P2P direct broadcasting

Country Status (1)

Country Link
CN (1) CN101146221B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954866A (en) * 2015-06-19 2015-09-30 杭州施强网络科技有限公司 Dynamic control method for playing point in live broadcast of streaming media data
CN106559684A (en) * 2015-09-30 2017-04-05 中国电信股份有限公司 Reduce method, terminal and the system of live time delay
CN108322767A (en) * 2018-02-09 2018-07-24 烽火通信科技股份有限公司 The live broadcasting method and system of IPTV
CN109951446A (en) * 2019-01-30 2019-06-28 亦非云互联网技术(上海)有限公司 Current stabilization method, system, computer storage medium and the electronic equipment of live stream
CN111083514A (en) * 2019-12-26 2020-04-28 北京达佳互联信息技术有限公司 Live broadcast method and device, electronic equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954866A (en) * 2015-06-19 2015-09-30 杭州施强网络科技有限公司 Dynamic control method for playing point in live broadcast of streaming media data
CN104954866B (en) * 2015-06-19 2018-04-27 杭州施强教育科技有限公司 A kind of live middle broadcast point dynamic control method of stream medium data
CN106559684A (en) * 2015-09-30 2017-04-05 中国电信股份有限公司 Reduce method, terminal and the system of live time delay
CN106559684B (en) * 2015-09-30 2019-12-20 中国电信股份有限公司 Method, terminal and system for reducing live broadcast delay
CN108322767A (en) * 2018-02-09 2018-07-24 烽火通信科技股份有限公司 The live broadcasting method and system of IPTV
CN109951446A (en) * 2019-01-30 2019-06-28 亦非云互联网技术(上海)有限公司 Current stabilization method, system, computer storage medium and the electronic equipment of live stream
CN111083514A (en) * 2019-12-26 2020-04-28 北京达佳互联信息技术有限公司 Live broadcast method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101146221B (en) 2010-06-02

Similar Documents

Publication Publication Date Title
CN109565620B (en) Computing device, method for generating and receiving low-delay video stream
US9979771B2 (en) Adaptive variable fidelity media distribution system and method
JP2024519363A (en) Game data processing method, device, computer device, and computer program
WO2020192152A1 (en) Video transmission method, root node, child node, p2p server, and system
US10880357B2 (en) Reducing requests for media segments in streaming of multimedia content
US8880650B2 (en) System and method for storing streaming media file
US8578042B2 (en) Method, system and device for playing streaming media
CN101917389B (en) Network television direct broadcasting system
CN105916058B (en) A kind of streaming media buffer playback method, device and display equipment
US11863841B2 (en) Video playing control method and system
CN101146221B (en) Dynamic adjusting method and system for playing pointer in P2P direct broadcasting
CN102098571B (en) Method and system for dynamically pushing data
CN106657143A (en) Streaming media transmission method and device, server and terminal
US20100064054A1 (en) Remote fast forward and rewind functionality for client devices
WO2019128800A1 (en) Content service implementation method and device, and content delivery network node
CN113225598A (en) Method, device and equipment for synchronizing audio and video of mobile terminal and storage medium
US9813475B1 (en) Delivering a video stream
CN101098470A (en) P2P technique based stream media program broadcasting/receiving method and apparatus
US8836861B2 (en) Method and apparatus for processing a video signal
CN111556344A (en) Method, device, equipment and system for downloading video stream
US20240155019A1 (en) Synchronizing independent media and data streams using media stream synchronization points
CN106303754A (en) A kind of audio data play method and device
CN101378356B (en) Method for playing real time stream medium
CN113285947A (en) HLS live broadcast and multicast live broadcast connection method and device
CN112203105A (en) New media mobile live broadcasting method and 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
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: 20100602

Termination date: 20161018

CF01 Termination of patent right due to non-payment of annual fee