CN102883187B - Time-shift program service method, equipment and system - Google Patents

Time-shift program service method, equipment and system Download PDF

Info

Publication number
CN102883187B
CN102883187B CN201210345578.1A CN201210345578A CN102883187B CN 102883187 B CN102883187 B CN 102883187B CN 201210345578 A CN201210345578 A CN 201210345578A CN 102883187 B CN102883187 B CN 102883187B
Authority
CN
China
Prior art keywords
shift program
slicing files
time shift
time
request service
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.)
Active
Application number
CN201210345578.1A
Other languages
Chinese (zh)
Other versions
CN102883187A (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.)
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 CN201210345578.1A priority Critical patent/CN102883187B/en
Publication of CN102883187A publication Critical patent/CN102883187A/en
Application granted granted Critical
Publication of CN102883187B publication Critical patent/CN102883187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a time-shift program service method, time-shift program service equipment and a time-shift program service system, and belongs to the field of communication. The method comprises the following steps of: receiving a time-shift service request of a terminal user, wherein the time-shift service request comprises a time-shift program identifier and a request playing range; judging whether a fragmentation file corresponding to the request playing range is locally cached, and when the fragmentation file is cached, directly reading the cached fragmentation file corresponding to the request playing range; when the fragmentation file is not locally cached, acquiring a top-level index corresponding to the time-shift program identifier from a superior node according to the time-shift program identifier, wherein the top-level index comprises a time-shift program content playing range corresponding to the time-shift program identifier and fragmentation information; and acquiring the fragmentation file corresponding to the request playing range from the superior node according to the request playing range, the time-shift program content playing range and the fragmentation information. On the premise that a content distribution network (CDN) is not changed, the problems of waste of storage resources and network jam which are caused by different heats of contents on demand are solved.

Description

A kind of time-shift program service, equipment and system
Technical field
The present invention relates to communication field, particularly a kind of time-shift program service, equipment and system.
Background technology
IPTV(Internet Protocol Television, IPTV) be product after network technology and medium technique develop into certain phase, compared with traditional One-to-All Broadcast TV, the restriction of IPTV when watching TV programme not by reproduction time, achieves the interaction between media provider and consumer.
TSTV(Time-Shift TV is comprised, instant time-moving television in the business that IPTV provides) and TVOD(TV On Demand, menu time-moving television).Wherein, TSTV supports that user reviews the program play within the regular hour, and can support to suspend programme televised live, rewind, F.F. (being fast-forward to live state from shifting state time instant), location, switching, state display, the operation such as time showing.TVOD, also referred to as TV recorded broadcast, refer to that IPTV system is recorded direct broadcast band in real time, and recorded content is stored, distribute and shows, so that user watches the programme televised live finished, and user also can perform the operations such as time-out, rewind, F.F. and location in the process of viewing TVOD program.
IPTV system disposes CDN(ContentDeliveryNetwork, media distributing network) time, take the mode of distributed networking to dispose, comprise Centroid, Area Node, fringe node; When end-user request TSTV or TVOD serves CDN can select from the substantial node that user is nearest be end users with services;
The method of service of current TSTV and TVOD content has following several:
One is that all fringe nodes start TSTV and TVOD recording, directly uses local recorded file during end-user access; Another kind is, part edge node or Area Node start TSTV and TVOD and record, and during end-user access, CDN selects substantial node to be end users with services.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
First kind of way, records because all fringe nodes all start TSTV and TVOD, when the content of fringe node only have a small amount of or do not have user to access time, so the memory space utilance that takies of recorded content is just very low, and resource exists waste; And the second way, if provide the node of service distant from terminal use, when user accesses, occupy a large amount of backbone network resource, especially will impact backbone network when visit capacity is very large, cause network congestion.
Summary of the invention
In order under the constant prerequisite of CDN networking, the problem solving the storage resources waste because on-demand content temperature difference causes or cause network congestion, embodiments provides a kind of time-shift program service, equipment and system.Described technical scheme is as follows:
First aspect, embodiments provides a kind of time-shift program service, and described method comprises:
The time-shifted service request of receiving terminal user, described time-shifted service request comprises time shift program mark and request service scope;
Judge that whether the slicing files corresponding with described request service range be at local cache, when described slicing files buffer memory time, directly read slicing files corresponding to the described request service range of buffer memory;
When described slicing files is not at local cache, identify according to described time shift program, obtain top index corresponding to described time shift program mark from superior node, the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information;
Play scope and described burst information according to described request service range, described time shift program content, obtain slicing files corresponding to described request service range from described superior node.
In the first possible implementation of first aspect, after the described slicing files corresponding from described superior node acquisition described request service range, also comprise:
Add up the service times of the described slicing files got;
When the service times of described slicing files reaches cache threshold, then slicing files described in buffer memory;
When the temperature ratio of the described slicing files of buffer memory reaches recording threshold value, then record successive fragment file corresponding to described time shift program mark voluntarily and preserve, directly calling from this locality when having so that follow-up end-user request to serve described time shift program; Described temperature ratio is the ratio of total duration of the slicing files that the duration of the described slicing files of buffer memory is corresponding with described file identification.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, when the described service times when described slicing files reaches cache threshold, then slicing files described in buffer memory, also comprises:
When the service times of described slicing files is lower than described cache threshold, then delete the described slicing files of buffer memory;
Correspondingly, when the described described slicing files when buffer memory reaches and records threshold value, then record the successive fragment file that described time shift program mark is corresponding voluntarily, also comprise:
When the temperature ratio of the described slicing files of buffer memory is lower than described recording threshold value, then stop recording successive fragment file corresponding to described time shift program mark.
In the third possible implementation of first aspect, described according to described request service range, described time shift program content broadcasting scope and described burst information, obtain the slicing files that described request service range is corresponding, comprising:
Play scope and described request service range according to described time shift program content, determine that described request service range is within the scope of the broadcasting of described time shift program content;
According to the burst time started in described request service range and described burst information and burst end time, determine the segmental identification of the slicing files that described request service range is corresponding;
According to described segmental identification, obtain burst index corresponding to described segmental identification from superior node, described burst index comprises the byte offset parameter in slicing files;
According to the byte offset parameter in described burst index and described request service range, determine the byte offset parameter that described request service range is corresponding;
According to described segmental identification and byte offset parameter corresponding to described request service range, obtain slicing files data corresponding to described request service range from described superior node.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described according to the byte offset parameter in described burst index and described request service range, determine to comprise the byte offset parameter that described request service range is corresponding:
The burst time started corresponding with described segmental identification when the request service time started in described request service range is time different, the byte offset parameter corresponding in described burst index according to described request service start times, determines the byte offset parameter of described request service start times;
The burst end time corresponding with described segmental identification when the request service end time in described request service range is different, the byte offset parameter corresponding in described burst index according to described request service ending time, determines the byte offset parameter of described request service ending time.
In the 5th kind of possible implementation of first aspect, described according to described request service range, described time shift program content broadcasting scope and described burst information, obtain slicing files corresponding to described request service range from described superior node, also comprise:
Play scope according to described time shift program content, determine that described request service range is within the scope of the broadcasting of described time shift program content;
According to described request service range and described time shift program mark, directly described from superior node obtain in chronological order described time shift program mark corresponding and slicing files in described request service range.
In conjunction with the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation of first aspect, described according to described request service range and described time shift program mark, directly described from superior node obtain in chronological order described time shift program mark corresponding and slicing files in described request service range, comprising:
From described superior node obtain in chronological order described time shift program mark corresponding and slicing files in described request service range, according to the partition strategy preset, described slicing files is divided into the slicing files of multiple scheduled duration;
Or,
From described superior node directly obtain in chronological order described time shift program mark corresponding and slicing files in described request service range, directly use the described slicing files that described superior node has divided.
In the 7th kind of possible implementation of first aspect, before the time-shifted service request of described receiving terminal user, comprising:
Described superior node records content corresponding to described time shift program mark by natural time, and the content of recording is generated in chronological order the slicing files of multiple preset duration;
Described superior node is that each described slicing files generates unique described segmental identification and described burst index, and described burst index comprises the byte offset parameter of each frame of video in described slicing files;
Described superior node is that the content of described time shift program mark correspondence generates described top index, and the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information; Described burst information comprises segmental identification, burst time started and burst end time.
In conjunction with in above-mentioned possible implementation, described time shift program comprises instant time shift program and menu time shift program, and described instant time shift program and described menu time shift program use same segmental identification and slicing files corresponding to same segmental identification.
Second aspect, the embodiment of the present invention additionally provides a kind of time shift program service equipment, and described equipment comprises:
Receiver module, for the time-shifted service request of receiving terminal user, described time-shifted service request comprises time shift program mark and request service scope;
Judge module, for judging that whether the slicing files corresponding with described request service range be at local cache, when described slicing files buffer memory time, directly read slicing files corresponding to the described request service range of buffer memory;
First acquisition module, for when described slicing files is not at local cache, identify according to described time shift program, obtain top index corresponding to described time shift program mark from superior node, the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information;
Second acquisition module, for playing scope and described burst information according to described request service range, described time shift program content, obtains slicing files corresponding to described request service range from described superior node.
In the first possible implementation of second aspect, described equipment also comprises: cache module, after obtaining slicing files corresponding to described request service range from described superior node, adds up the service times of the described slicing files got; When the service times of described slicing files reaches cache threshold, then slicing files described in buffer memory; When the temperature ratio of the described slicing files of buffer memory reaches recording threshold value, then record successive fragment file corresponding to described time shift program mark voluntarily and preserve, having so that follow-up during time shift program described in End-user services and directly call from this locality;
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described cache module, also for when the service times of described slicing files is lower than described cache threshold, then deletes the described slicing files of buffer memory; When the temperature ratio of the described slicing files of buffer memory is lower than described recording threshold value, then stop recording successive fragment file corresponding to described time shift program mark.
In the third possible implementation of second aspect, described second acquisition module, comprising:
First processing unit, for playing scope and described request service range according to described time shift program content, determines that described request service range is within the scope of the broadcasting of described time shift program content;
Second processing unit, for according to the burst time started in described request service range and described burst information and burst end time, determines the segmental identification of the slicing files that described request service range is corresponding;
3rd processing unit, for according to described segmental identification, obtain burst index corresponding to described segmental identification from superior node, described burst index comprises the byte offset parameter in slicing files;
Fourth processing unit, for according to the byte offset parameter in described burst index and described request service range, determines the byte offset parameter that described request service range is corresponding;
5th processing unit, for according to described segmental identification and byte offset parameter corresponding to described request service range, obtains slicing files corresponding to described request service range from described superior node.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described fourth processing unit, time also different for the burst time started corresponding with described segmental identification when the request service time started in described request service range, the byte offset parameter corresponding in described burst index according to described request service start times, determines the byte offset parameter of described request service start times;
The burst end time corresponding with described segmental identification when the request service end time in described request service range is different, the byte offset parameter corresponding in described burst index according to described request service ending time, determines the byte offset parameter of described request service ending time.
In the 5th kind of possible implementation of second aspect, described second acquisition module, also comprises:
6th processing unit, for playing scope according to described time shift program content, determines that described request service range is within the scope of the broadcasting of described time shift program content;
7th processing unit, for according to described request service range and described time shift program mark, directly described from superior node obtain in chronological order described time shift program mark corresponding and slicing files in described request service range.
In conjunction with the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, described 7th processing unit, for obtain in chronological order from described superior node described time shift program mark corresponding and slicing files in described request service range, according to the partition strategy preset, described slicing files is divided into the slicing files of multiple scheduled duration; Or from described superior node directly obtain in chronological order described time shift program mark corresponding and slicing files in described request service range, directly use the described slicing files that described superior node has divided.
The third aspect, the embodiment of the present invention additionally provides a kind of time shift program service equipment, and described equipment comprises: memory, for the service data of memory function module;
Processor, for being coupled with described memory, described processor be configured to for perform as arbitrary in claim 1 to 9 as described in time-shift program service;
Transceiver, for being coupled with described processor, receives and dispatches the various data of described processor process.
Fourth aspect, the embodiment of the present invention additionally provides a kind of time shift program service system, and described system comprises: fringe node and superior node,
Described fringe node, for the time-shifted service request of receiving terminal user, described time-shifted service request comprises time shift program mark and request service scope; Judge that whether the slicing files corresponding with described request scope be at local cache, when described slicing files buffer memory time, directly read slicing files corresponding to the described request service range of buffer memory; When described slicing files is not at local cache, identify according to described time shift program, obtain top index corresponding to described time shift program mark from superior node, the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information; Play scope and described burst information according to described request service range, described time shift program content, obtain slicing files corresponding to described request service range from described superior node.
Described superior node, for recording content corresponding to described time shift program mark by natural time, and generates the slicing files of multiple preset duration in chronological order by the content of recording; For each described slicing files generates unique described segmental identification and described burst index, described burst index comprises the byte offset parameter of each frame of video in described slicing files; The content corresponding for described time shift program mark generates described top index, and the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information; Described burst information comprises segmental identification, burst time started and burst end time; Return described top index to described fringe node and return described slicing files to described fringe node.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
The scheme that the embodiment of the present invention provides, first judges that whether slicing files corresponding to time shift program mark be at local cache, when slicing files buffer memory time directly read slicing files; When slicing files is not at local cache, then according to the request service scope of user and from the content broadcasting scope the top index that superior node obtains and burst information, corresponding slicing files is obtained from superior node, when efficiently solving the problem of the storage resources waste that on-demand content temperature difference causes and have a large number of users to access, backbone bandwidth is taken many, cause the problem of network congestion.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of time-shift program service that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of a kind of time-shift program service that the embodiment of the present invention two provides;
Fig. 3 is the flow chart of a kind of time-shift program service that the embodiment of the present invention three provides;
Fig. 4 is the flow chart of a kind of time-shift program service that the embodiment of the present invention four provides;
Fig. 5 is the flow chart of a kind of time-shift program service that the embodiment of the present invention five provides;
Fig. 6 is the structural representation of a kind of time shift program service equipment that the embodiment of the present invention six provides;
Fig. 7 is the structural representation of a kind of time shift program service equipment that the embodiment of the present invention seven provides;
Fig. 8 is the structural representation of a kind of time shift program service equipment that the embodiment of the present invention eight provides;
Fig. 9 is the structural representation of a kind of time shift program service equipment that the embodiment of the present invention nine provides;
Figure 10 is the structural representation of a kind of time shift program service equipment that the embodiment of the present invention ten provides;
Figure 11 is the structural representation of a kind of time shift program service system that the embodiment of the present invention 11 provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 is the flow chart of the time-shift program service that the embodiment of the present invention one provides, and see Fig. 1, the method comprises:
101, the time-shifted service request of receiving terminal user, time-shifted service request comprises time shift program mark and request service scope;
Particularly, terminal use sends time-shifted service request to IPTV system, and the time-shifted service request scheduling of terminal use is served to fringe node by IPTV.
Wherein, the time shift program in the embodiment of the present invention comprises instant time shift program and menu time shift program, and instant time shift program and menu time shift program use same segmental identification and slicing files corresponding to same segmental identification.
102, judge that whether the slicing files corresponding with request service scope be at local cache, when slicing files buffer memory time, the slicing files that directly the request service scope of reading buffer memory is corresponding;
Particularly, after the time-shifted service request of receiving terminal user, first to judge in this locality whether buffer memory according to the time shift program mark in time-shifted service request or record the time shift program file of correspondence, if this locality stores time shift program file, then again according to request service scope, as time shift time range, judge whether the slicing files within the scope of this request service stores in this locality, in this way, obtains the slicing files corresponding with this time shift time range, otherwise, continue to perform step 103.
103, when slicing files is not at local cache, according to time shift program mark, obtain top index corresponding to time shift program mark from superior node, top index comprises and identifies corresponding time shift program content with time shift program and play scope and burst information;
Particularly, the superior node in the embodiment of the present invention can centered by node or Area Node, fringe node identifies according to time shift program, and superior node sends top index request, this top index request comprise time shift program mark; After superior node receives this top index request, top index corresponding for time shift program mark is returned to fringe node.Top index comprises the burst information identified with time shift program within the scope of corresponding time shift program content broadcasting, also comprise time shift program content essential information in top index, wherein burst information comprises: segmental identification, each burst time started and end time.
Here it should be noted that, if obtained the top index of this time shift program from superior node before fringe node, then the top index obtained before directly using, now without the need to performing this step, directly performed step 104.
104, play scope and burst information according to request service scope, time shift program content, obtain slicing files corresponding to request service scope from superior node.
Particularly, fringe node, according to request service scope and time shift program context, determines that this request service scope is in time shift program context;
Then, the slicing files of this request service scope is obtained for user's service according to request service scope and burst information from superior node.
The time-shift program service that the embodiment of the present invention provides, first judges that whether slicing files corresponding to request service scope be at local cache, when slicing files buffer memory time directly read slicing files; When slicing files is not at local cache, then according to the request service scope of user and from the content broadcasting scope the top index that superior node obtains and burst information, obtain corresponding slicing files from superior node, when efficiently solving the problem of the storage resources waste that on-demand content temperature difference causes and have a large number of users to access, the network bandwidth takies many problems.
Fig. 2 is the flow chart of the time-shift program service that the embodiment of the present invention two provides, and see Fig. 2, on the basis of the method shown in Fig. 1, the method can also comprise:
105, after step 104 obtains slicing files, the service times of the slicing files got is added up; When the service times of slicing files reaches cache threshold, then buffer memory slicing files; When the temperature ratio of the slicing files of buffer memory reaches recording threshold value, then the successive fragment file recording time shift program mark voluntarily corresponding is also preserved, and directly calls from this locality when having end-user request to serve time shift program so that follow-up;
Wherein, cache threshold can be arranged flexibly, and the contrast embodiment of the present invention does not limit; Temperature ratio is the duration of the slicing files of buffer memory identifies total duration of corresponding all slicing files ratio with time shift program.Record threshold value can arrange flexibly, when such as temperature ratio reaches 0.5, start to start and record successive fragment file corresponding to time shift program mark, then this recording threshold value is 0.5.
Wherein, when the video-on-demand times of slicing files is lower than cache threshold, then the slicing files of buffer memory is deleted;
When the temperature ratio of the slicing files of buffer memory is lower than recording threshold value, then stop recording successive fragment file corresponding to time shift program mark.
Fig. 3 is the flow chart of the time-shift program service that the embodiment of the present invention three provides, and see Fig. 3, on the basis of the method shown in above-mentioned Fig. 1, step 104 comprises:
104a, play scope and request service scope according to time shift program content, determine that request service scope moves within the scope of programme content broadcasting at this time;
104b, according to the burst time started in request service scope and burst information and burst end time, determine the segmental identification of the slicing files that request service scope is corresponding;
104c, according to segmental identification, obtain burst index corresponding to segmental identification from superior node, burst index comprises the byte offset parameter in slicing files;
104d, according to the byte offset parameter in burst index and request service scope, determine the byte offset parameter that request service scope is corresponding;
104e, according to segmental identification and byte offset parameter corresponding to request service scope, obtain slicing files data corresponding to request service scope from superior node.
Wherein, 104d specifically comprises:
The burst time started corresponding with segmental identification when the request service time started in request service scope, time different, according to the byte offset parameter that the request service time started is corresponding in burst index, determines the byte offset parameter of request service time started;
The burst end time corresponding with segmental identification when the request service end time in request service scope is different, according to the byte offset parameter that the request service end time is corresponding in burst index, determines the byte offset parameter of request service end time.
Fig. 4 is the flow chart of the time-shift program service that the embodiment of the present invention four provides, and see Fig. 4, on the basis of the method shown in above-mentioned Fig. 1, step 104 also comprises:
104a ', according to time shift program content play scope, determine that request service scope is within the scope of content broadcasting;
104b ', according to request service scope and time shift program mark, directly from superior node obtain in chronological order time shift program mark corresponding and slicing files in request service time range.
Wherein, 104b ' specifically comprises:
Fringe node from superior node obtain in chronological order time shift program mark corresponding and slicing files within the scope of request service, according to the partition strategy preset, slicing files is divided into the slicing files of multiple scheduled duration;
Or,
Fringe node from superior node directly obtain in chronological order time shift program mark corresponding and slicing files within the scope of request service, directly use the slicing files that superior node has divided.
Fig. 5 is the flow chart of the time-shift program service that the embodiment of the present invention five provides, and see Fig. 5, on the basis of the method shown in above-mentioned Fig. 1, before step 101, also comprises:
100, superior node is pressed natural time and is recorded content corresponding to time shift program mark, and the content of recording is generated in chronological order the slicing files of multiple preset duration, for each slicing files generates unique segmental identification and burst index, the content corresponding for time shift program mark generates top index;
Particularly, the superior node in the embodiment of the present invention can centered by node or Area Node; Superior node records the direct-broadcasting code stream of time shift program mark (such as party live 1) according to natural time, and generates the slicing files of multiple preset duration by natural time, and such as duration is the slicing files of 5 minutes.
Wherein, superior node is the unique segmental identification of each file generated, and this unique segmental identification can be file name or be ID value, such as burst 1; Superior node is that each slicing files generates corresponding burst index, and burst index comprises the byte offset parameter of each frame of video in slicing files, namely records I frame data deviation post in slicing files.
Superior node is that the content of time shift program mark correspondence generates top index, and the time shift program content that this top index comprises time shift program mark corresponding plays scope and burst information; Burst information comprises segmental identification, burst time started and burst end time, superior node is that instant time shift program or menu time shift program generate corresponding top index respectively, and the instant time shift program that same direct broadcast band is corresponding and menu time shift program use same segmental identification and slicing files corresponding to same segmental identification.
The scheme that the embodiment of the present invention provides, first judges that whether slicing files corresponding to time shift program mark be at local cache, when slicing files buffer memory time directly read slicing files; When slicing files is not at local cache, then according to the request service scope of user and from the content broadcasting scope the top index that superior node obtains and burst information, obtain corresponding slicing files from superior node, when efficiently solving the problem of the storage resources waste that on-demand content temperature difference causes and have a large number of users to access, the network bandwidth takies many problems.
Fig. 6 is the structure chart of the time shift program service equipment that the embodiment of the present invention six provides, and see Fig. 6, this equipment comprises:
Receiver module 601, for the time-shifted service request of receiving terminal user, time-shifted service request comprises time shift program mark and request service scope;
Judge module 602, for judging that whether the slicing files corresponding with within the scope of request service be at local cache, when slicing files buffer memory time, directly read slicing files corresponding to the request service scope of buffer memory;
First acquisition module 603, for when slicing files is not at local cache, according to time shift program mark, obtain top index corresponding to time shift program mark from superior node, the time shift program content that top index comprises time shift program mark corresponding plays scope and burst information;
Second acquisition module 604, for playing scope and burst information according to request service scope, time shift program content, obtains slicing files corresponding to request service scope from superior node.
It should be noted that, the receiver module 601 of the structure chart of the time shift program service equipment that the embodiment of the present invention six provides, the specific works step of judge module 602, first acquisition module 603, second acquisition module 604 are with reference to the step 101,102,103,104 in the embodiment of the present invention one.
Fig. 7 is the structure chart of the time shift program service equipment that the embodiment of the present invention seven provides, and see Fig. 7, this equipment also comprises:
Cache module 605, after obtaining slicing files corresponding to request service scope at the second acquisition module 604 from superior node, adds up the video-on-demand times of the slicing files got; When the video-on-demand times of slicing files reaches cache threshold, then buffer memory slicing files; When the temperature ratio of the slicing files of buffer memory reaches recording threshold value, then the successive fragment file recording time shift program mark voluntarily corresponding is also preserved, directly to call from this locality during the follow-up terminal use's of having program request time shift program; Temperature ratio is the duration of the slicing files of buffer memory identifies total duration of corresponding all slicing files ratio with time shift program.
Wherein, cache module 605, also for when the video-on-demand times of slicing files is lower than cache threshold, then deletes the slicing files of buffer memory; When the temperature ratio of the slicing files of buffer memory is lower than recording threshold value, then stop recording successive fragment file corresponding to time shift program mark.
Fig. 8 is the structure chart of the time shift program service equipment that the embodiment of the present invention eight provides, and see Fig. 8, the second acquisition module 604, comprising:
First processing unit 604a, for playing scope and request service scope according to time shift program content, determines that request service scope is within the scope of the broadcasting of time shift program content;
Second processing unit 604b, for according to the burst time started in request service scope and burst information and burst end time, determines the segmental identification of the slicing files that request service scope is corresponding;
3rd processing unit 604c, for according to segmental identification, obtain burst index corresponding to segmental identification from superior node, burst index comprises the byte offset parameter in slicing files;
Fourth processing unit 604d, for according to the byte offset parameter in burst index and request service scope, determines the byte offset parameter that request service scope is corresponding;
5th processing unit 604e, for according to segmental identification and byte offset parameter corresponding to request service scope, obtains slicing files corresponding to request service scope from superior node.
Wherein, fourth processing unit 604d, time also different for the burst time started corresponding with segmental identification when the program request time started in request service scope, according to the byte offset parameter that the program request time started is corresponding in burst index, determine the byte offset parameter of program request time started;
The burst end time corresponding with segmental identification when the program request end time in request service scope is different, according to the byte offset parameter that the program request end time is corresponding in burst index, determines the byte offset parameter of program request end time.
Fig. 9 is the structure chart of the time shift program service equipment that the embodiment of the present invention nine provides, and see Fig. 9, the second acquisition module 604, also comprises:
6th processing unit 604f, for playing scope according to time shift program content, determines that request service scope is within the scope of the broadcasting of time shift program content;
7th processing unit 604g, for according to request service scope and time shift program mark, directly from superior node obtain in chronological order time shift program mark corresponding and slicing files within the scope of request service.
Wherein, the 7th processing unit 604g, for obtain in chronological order from superior node time shift program mark corresponding and slicing files within the scope of request service, according to the partition strategy preset, slicing files is divided into the slicing files of multiple scheduled duration; Or from superior node directly obtain in chronological order time shift program mark corresponding and slicing files within the scope of request service, directly use the slicing files that superior node has divided.
Figure 10 is the structure chart of the time shift program service equipment that the embodiment of the present invention ten provides, and see Figure 10, this equipment comprises:
Memory 1001, for the service data of memory function module;
Processor 1002, for being coupled with memory, processor is configured to for performing time-shift program service as arbitrary in claim 1 to 9;
Transceiver 1003, for being coupled with processor, the various data of transmitting-receiving processor process.
Figure 11 is the structure chart of the time shift program service system that the embodiment of the present invention 11 provides, and see Figure 11, this equipment comprises:
Fringe node and superior node,
Fringe node 1101, for the time-shifted service request of receiving terminal user, time-shifted service request comprises time shift program mark and request service scope; Judge that whether slicing files corresponding to request service scope be at local cache, when slicing files buffer memory time, directly read the slicing files that the request service scope of buffer memory is corresponding; When slicing files is not at local cache, according to time shift program mark, obtain top index corresponding to time shift program mark from superior node 1102, the time shift program content that top index comprises time shift program mark corresponding plays scope and burst information; Play scope and burst information according to request service scope, time shift program content, obtain slicing files corresponding to request service scope from superior node 1102.
Superior node 1102, records content corresponding to time shift program mark for pressing natural time, and the content of recording is generated in chronological order the slicing files of multiple preset duration; For each slicing files generates unique segmental identification and burst index, burst index comprises the byte offset parameter of each frame of video in slicing files; The content corresponding for time shift program mark generates top index, and the time shift program content that top index comprises time shift program mark corresponding plays scope and burst information; Burst information comprises segmental identification, burst time started and burst end time; Return top index to fringe node 1101 and return slicing files to fringe node 1101.
It should be noted that: the equipment that above-described embodiment provides is when time shift program is served, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the equipment that above-described embodiment provides, system and time-shift program service embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (16)

1. a time-shift program service, is characterized in that, is applied in fringe node, and described method comprises:
The time-shifted service request of receiving terminal user, described time-shifted service request comprises time shift program mark and request service scope;
Judge that whether the slicing files corresponding with described request service range be at local cache, when described slicing files buffer memory time, directly read slicing files corresponding to the described request service range of buffer memory;
When described slicing files is not at local cache, identify according to described time shift program, obtain top index corresponding to described time shift program mark from superior node, the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information;
Play scope and described burst information according to described request service range, described time shift program content, obtain slicing files corresponding to described request service range from described superior node;
Wherein, after the described slicing files corresponding from described superior node acquisition described request service range, also comprise:
Add up the service times of the described slicing files got;
When the service times of described slicing files reaches cache threshold, then slicing files described in buffer memory;
When the temperature ratio of the described slicing files of buffer memory reaches recording threshold value, then record successive fragment file corresponding to described time shift program mark voluntarily and preserve, directly calling from this locality when having so that follow-up end-user request to serve described time shift program; Described temperature ratio is the ratio of total duration of the slicing files that the duration of the described slicing files of buffer memory is corresponding with described file identification.
2. method according to claim 1, is characterized in that, when the described service times when described slicing files reaches cache threshold, then slicing files described in buffer memory, also comprises:
When the service times of described slicing files is lower than described cache threshold, then delete the described slicing files of buffer memory;
Correspondingly, when the described described slicing files when buffer memory reaches and records threshold value, then record the successive fragment file that described time shift program mark is corresponding voluntarily, also comprise:
When the temperature ratio of the described slicing files of buffer memory is lower than described recording threshold value, then stop recording successive fragment file corresponding to described time shift program mark.
3. method according to claim 1, is characterized in that, described according to described request service range, described time shift program content broadcasting scope and described burst information, obtains the slicing files that described request service range is corresponding, comprising:
Play scope and described request service range according to described time shift program content, determine that described request service range is within the scope of the broadcasting of described time shift program content;
According to the burst time started in described request service range and described burst information and burst end time, determine the segmental identification of the slicing files that described request service range is corresponding;
According to described segmental identification, obtain burst index corresponding to described segmental identification from superior node, described burst index comprises the byte offset parameter in slicing files;
According to the byte offset parameter in described burst index and described request service range, determine the byte offset parameter that described request service range is corresponding;
According to described segmental identification and byte offset parameter corresponding to described request service range, obtain slicing files data corresponding to described request service range from described superior node.
4. method according to claim 3, is characterized in that, described according to the byte offset parameter in described burst index and described request service range, determines to comprise the byte offset parameter that described request service range is corresponding:
The burst time started corresponding with described segmental identification when the request service time started in described request service range is time different, the byte offset parameter corresponding in described burst index according to described request service start times, determines the byte offset parameter of described request service start times;
The burst end time corresponding with described segmental identification when the request service end time in described request service range is different, the byte offset parameter corresponding in described burst index according to described request service ending time, determines the byte offset parameter of described request service ending time.
5. method according to claim 1, is characterized in that, described according to described request service range, described time shift program content broadcasting scope and described burst information, obtains slicing files corresponding to described request service range, also comprise from described superior node:
Play scope according to described time shift program content, determine that described request service range is within the scope of the broadcasting of described time shift program content;
According to described request service range and described time shift program mark, directly described from superior node obtain in chronological order described time shift program mark corresponding and slicing files in described request service range.
6. method according to claim 5, it is characterized in that, described according to described request service range and described time shift program mark, directly described from superior node obtain in chronological order described time shift program mark corresponding and slicing files in described request service range, comprising:
From described superior node obtain in chronological order described time shift program mark corresponding and slicing files in described request service range, according to the partition strategy preset, described slicing files is divided into the slicing files of multiple scheduled duration;
Or,
From described superior node directly obtain in chronological order described time shift program mark corresponding and slicing files in described request service range, and directly use the described slicing files that described superior node has divided.
7. method according to claim 1, is characterized in that, before the time-shifted service request of described receiving terminal user, comprising:
Described superior node records content corresponding to described time shift program mark by natural time, and the content of recording is generated in chronological order the slicing files of multiple preset duration;
Described superior node is that each described slicing files generates unique described segmental identification and described burst index, and described burst index comprises the byte offset parameter of each frame of video in described slicing files;
Described superior node is that the content of described time shift program mark correspondence generates described top index, and the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information; Described burst information comprises segmental identification, burst time started and burst end time.
8. the method according to the arbitrary right of claim 1 to 7, it is characterized in that, described time shift program comprises instant time shift program and menu time shift program, and described instant time shift program and described menu time shift program use same segmental identification and slicing files corresponding to same segmental identification.
9. a time shift program service equipment, is characterized in that, described time shift program service equipment is fringe node, and described equipment comprises:
Receiver module, for the time-shifted service request of receiving terminal user, described time-shifted service request comprises time shift program mark and request service scope;
Judge module, for judging that whether the slicing files corresponding with described request service range be at local cache, when described slicing files buffer memory time, directly read slicing files corresponding to the described request service range of buffer memory;
First acquisition module, for when described slicing files is not at local cache, identify according to described time shift program, obtain top index corresponding to described time shift program mark from superior node, the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information;
Second acquisition module, for playing scope and described burst information according to described request service range, described time shift program content, obtains slicing files corresponding to described request service range from described superior node;
Wherein, described equipment also comprises: cache module, after obtaining slicing files corresponding to described request service range from described superior node, adds up the service times of the described slicing files got; When the service times of described slicing files reaches cache threshold, then slicing files described in buffer memory; When the temperature ratio of the described slicing files of buffer memory reaches recording threshold value, then record successive fragment file corresponding to described time shift program mark voluntarily and preserve, directly calling from this locality when having so that follow-up end-user request to serve described time shift program; Described temperature ratio is the ratio of total duration of the slicing files that the duration of the described slicing files of buffer memory is corresponding with described file identification.
10. equipment according to claim 9, is characterized in that, described cache module, also for when the service times of described slicing files is lower than described cache threshold, then deletes the described slicing files of buffer memory; When the temperature ratio of the described slicing files of buffer memory is lower than described recording threshold value, then stop recording successive fragment file corresponding to described time shift program mark.
11. equipment according to claim 9, is characterized in that, described second acquisition module, comprising:
First processing unit, for playing scope and described request service range according to described time shift program content, determines that described request service range is within the scope of the broadcasting of described time shift program content;
Second processing unit, for according to the burst time started in described request service range and described burst information and burst end time, determines the segmental identification of the slicing files that described request service range is corresponding;
3rd processing unit, for according to described segmental identification, obtain burst index corresponding to described segmental identification from superior node, described burst index comprises the byte offset parameter in slicing files;
Fourth processing unit, for according to the byte offset parameter in described burst index and described request service range, determines the byte offset parameter that described request service range is corresponding;
5th processing unit, for according to described segmental identification and byte offset parameter corresponding to described request service range, obtains slicing files data corresponding to described request service range from described superior node.
12. equipment according to claim 11, it is characterized in that, described fourth processing unit, time also different for the burst time started corresponding with described segmental identification when the request service time started in described request service range, the byte offset parameter corresponding in described burst index according to described request service start times, determines the byte offset parameter of described request service start times;
The burst end time corresponding with described segmental identification when the request service end time in described request service range is different, the byte offset parameter corresponding in described burst index according to described request service ending time, determines the byte offset parameter of described request service ending time.
13. equipment according to claim 9, is characterized in that, described second acquisition module, also comprises:
6th processing unit, for playing scope according to described time shift program content, determines that described request service range is within the scope of the broadcasting of described time shift program content;
7th processing unit, for according to described request service range and described time shift program mark, directly described from superior node obtain in chronological order described time shift program mark corresponding and slicing files in described request service range.
14. equipment according to claim 13, it is characterized in that, described 7th processing unit, for obtain in chronological order from described superior node described time shift program mark corresponding and slicing files in described request service range, according to the partition strategy preset, described slicing files is divided into the slicing files of multiple scheduled duration; Or from described superior node directly obtain in chronological order described time shift program mark corresponding and slicing files in described request service range, directly use the described slicing files that described superior node has divided.
15. 1 kinds of time shift program service equipments, is characterized in that, described equipment comprises: memory, for the service data of memory function module;
Processor, for being coupled with described memory, described processor be configured to for perform as arbitrary in claim 1 to 8 as described in time-shift program service;
Transceiver, for being coupled with described processor, receives and dispatches the various data of described processor process.
16. 1 kinds of time shift program service systems, is characterized in that, described system comprises: fringe node and superior node,
Described fringe node, for the time-shifted service request of receiving terminal user, described time-shifted service request comprises time shift program mark and request service scope; Judge that whether the slicing files corresponding with described request scope be at local cache, when described slicing files buffer memory time, directly read slicing files corresponding to the described request service range of buffer memory; When described slicing files is not at local cache, identify according to described time shift program, obtain top index corresponding to described time shift program mark from superior node, the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information; Play scope and described burst information according to described request service range, described time shift program content, obtain slicing files corresponding to described request service range from described superior node; Add up the service times of the described slicing files got; When the service times of described slicing files reaches cache threshold, then slicing files described in buffer memory; When the temperature ratio of the described slicing files of buffer memory reaches recording threshold value, then record successive fragment file corresponding to described time shift program mark voluntarily and preserve, directly calling from this locality when having so that follow-up end-user request to serve described time shift program; Described temperature ratio is the ratio of total duration of the slicing files that the duration of the described slicing files of buffer memory is corresponding with described file identification;
Described superior node, for recording content corresponding to described time shift program mark by natural time, and generates the slicing files of multiple preset duration in chronological order by the content of recording; For each described slicing files generates unique described segmental identification and described burst index, described burst index comprises the byte offset parameter of each frame of video in described slicing files; The content corresponding for described time shift program mark generates described top index, and the time shift program content that described top index comprises described time shift program mark corresponding plays scope and burst information; Described burst information comprises segmental identification, burst time started and burst end time; Return described top index to described fringe node and return described slicing files to described fringe node.
CN201210345578.1A 2012-09-17 2012-09-17 Time-shift program service method, equipment and system Active CN102883187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210345578.1A CN102883187B (en) 2012-09-17 2012-09-17 Time-shift program service method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210345578.1A CN102883187B (en) 2012-09-17 2012-09-17 Time-shift program service method, equipment and system

Publications (2)

Publication Number Publication Date
CN102883187A CN102883187A (en) 2013-01-16
CN102883187B true CN102883187B (en) 2015-07-08

Family

ID=47484298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210345578.1A Active CN102883187B (en) 2012-09-17 2012-09-17 Time-shift program service method, equipment and system

Country Status (1)

Country Link
CN (1) CN102883187B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220587B (en) * 2013-03-22 2016-12-28 深圳市同洲电子股份有限公司 A kind of method and device obtaining time-shifted contents
CN103353874A (en) * 2013-06-08 2013-10-16 深圳市华傲数据技术有限公司 Data processing method and system
CN105812831B (en) * 2014-12-31 2020-06-09 中兴通讯股份有限公司 Network program recording method, device and system and playing method and device
CN105162720A (en) * 2015-10-22 2015-12-16 上海新储集成电路有限公司 Data transmission reducing communication network and method
CN105959362A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 CDN server and method of CDN server of caching data
CN106303585B (en) * 2016-07-26 2020-03-10 华为技术有限公司 Program review method, media server, set top box and program review system
CN107809678B (en) * 2016-09-09 2020-09-08 阿里巴巴集团控股有限公司 Multimedia file processing method, device and equipment
CN106385588A (en) * 2016-09-23 2017-02-08 北京赢点科技有限公司 On-demand playing popularity-based resource scheduling method and device
CN107483546A (en) * 2017-07-21 2017-12-15 北京供销科技有限公司 A kind of file memory method and file storage device
CN109309643B (en) * 2017-07-26 2021-03-30 中国电信股份有限公司 Live broadcast time shifting processing method and system and source station
CN108055594B (en) * 2017-11-14 2020-09-29 北京百度网讯科技有限公司 Edge slicing implementation method and device, computer equipment and storage medium
CN108234638A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of data processing method and device based on content distributing network CDN
CN108419136A (en) * 2018-03-09 2018-08-17 青岛海信电器股份有限公司 A kind of the seek implementation methods and device of network direct broadcasting stream
CN110300339B (en) * 2018-03-22 2022-03-29 贵州白山云科技股份有限公司 Live multimedia playback method, device and system
CN111193942B (en) * 2018-03-22 2022-08-02 贵州白山云科技股份有限公司 Streaming media playback method and device
CN111147888B (en) * 2018-11-06 2022-06-03 中兴通讯股份有限公司 Streaming media video data processing method and device, computer equipment and storage medium
CN109167845A (en) * 2018-11-27 2019-01-08 云之端网络(江苏)股份有限公司 A kind of fragment cache memory and recombination method towards big file distributing scene
CN110035306A (en) * 2019-04-23 2019-07-19 深圳市网心科技有限公司 Dispositions method and device, the dispatching method and device of file
CN110784737A (en) * 2019-10-21 2020-02-11 北京东方广视科技股份有限公司 HLS protocol-based time-shifted television playing method, terminal and server
CN113760980A (en) * 2020-11-30 2021-12-07 北京京东乾石科技有限公司 Data caching method, data providing end and data using end

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227602A (en) * 2007-01-18 2008-07-23 中兴通讯股份有限公司 File storing method and file playing method
CN101345638A (en) * 2007-07-12 2009-01-14 中兴通讯股份有限公司 Equity system supporting time shift business
CN101489103A (en) * 2009-01-16 2009-07-22 中兴通讯股份有限公司 Recording method and profiling method for play-on-demand program
CN101540885A (en) * 2009-04-30 2009-09-23 中兴通讯股份有限公司 IPTV on-demand system and method
CN101771673A (en) * 2008-12-26 2010-07-07 华为技术有限公司 Method and device for processing media data
CN102143150A (en) * 2010-12-10 2011-08-03 华为技术有限公司 Method, device and system for obtaining media contents
CN102231860A (en) * 2011-06-03 2011-11-02 南京远古科技有限公司 Live time shift data storage method
CN102625140A (en) * 2012-03-19 2012-08-01 烽火通信科技股份有限公司 Method for frame-granularity real-time downloading and play of streaming media server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075792B (en) * 2010-12-23 2013-01-02 华为技术有限公司 Video file playing method and system, user equipment and server equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227602A (en) * 2007-01-18 2008-07-23 中兴通讯股份有限公司 File storing method and file playing method
CN101345638A (en) * 2007-07-12 2009-01-14 中兴通讯股份有限公司 Equity system supporting time shift business
CN101771673A (en) * 2008-12-26 2010-07-07 华为技术有限公司 Method and device for processing media data
CN101489103A (en) * 2009-01-16 2009-07-22 中兴通讯股份有限公司 Recording method and profiling method for play-on-demand program
CN101540885A (en) * 2009-04-30 2009-09-23 中兴通讯股份有限公司 IPTV on-demand system and method
CN102143150A (en) * 2010-12-10 2011-08-03 华为技术有限公司 Method, device and system for obtaining media contents
CN102231860A (en) * 2011-06-03 2011-11-02 南京远古科技有限公司 Live time shift data storage method
CN102625140A (en) * 2012-03-19 2012-08-01 烽火通信科技股份有限公司 Method for frame-granularity real-time downloading and play of streaming media server

Also Published As

Publication number Publication date
CN102883187A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
CN102883187B (en) Time-shift program service method, equipment and system
CN102572555B (en) Method and system for realizing live video playback at HTTP live streaming (HLS) client
CN102088620B (en) Method for downloading media file in content distribution network and client
CN113965811B (en) Play control method and device, storage medium and electronic device
CN103856607B (en) Video on mobile phone terminal is rendered to the method and system that video playback apparatus is play
CN101707635B (en) Internet-based resource supplying system
CN103428574B (en) A kind of method and system for commenting on TV programme by intelligent terminal
CN101631229B (en) Network individual recording method, device and system
CN105120299A (en) Video pushing method and video pushing device
CN102036058A (en) Method, server, terminal and system for switching videos in video monitoring system
CN101662658B (en) Program push method, set-top box and electronic program guide
CN101742240B (en) IPTV (internet protocol television) system capable of flexibly switching multi-media nodes and implementation method thereof
CN101170719B (en) Multi-file content processing method and system
CN102984558B (en) The method of broadcasting pictures in Set Top Box and channel switch procedure thereof
CN101789950A (en) Internet protocol television-based implementing method in three-screen fusion and system
CN101877719B (en) Method, system and B2BUA for realizing television interaction at mobile terminal
CN105554162B (en) By the method for mobile terminal video/data remote synchronization to smart television home court scape
CN102291629A (en) P2P (peer-to-peer) proxy on-demand system and implementation method applied to IPTV (Internet protocol television)
CN103475930B (en) Method for acquiring information, equipment and system
CN106358060B (en) Time shifting operation method and device for live video
CN101815205A (en) Method, system and terminal for recording web TV broadcast program
CN105933798A (en) Method and device for playing live program based on Internet protocol television
CN102905171A (en) Method and device for processing breakpoint playing
CN103974117A (en) Sharing recording method, sharing recording device, sharing recording server and set-top boxes
CN103369379A (en) Method for playing recommended content, mobile terminal, server and system for playing recommended content

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