CN101720005B - Method and system of channel time-shifting fragment recording - Google Patents

Method and system of channel time-shifting fragment recording Download PDF

Info

Publication number
CN101720005B
CN101720005B CN2009102593373A CN200910259337A CN101720005B CN 101720005 B CN101720005 B CN 101720005B CN 2009102593373 A CN2009102593373 A CN 2009102593373A CN 200910259337 A CN200910259337 A CN 200910259337A CN 101720005 B CN101720005 B CN 101720005B
Authority
CN
China
Prior art keywords
channel
recording
time
fragment
shifting
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.)
Expired - Fee Related
Application number
CN2009102593373A
Other languages
Chinese (zh)
Other versions
CN101720005A (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 CN2009102593373A priority Critical patent/CN101720005B/en
Publication of CN101720005A publication Critical patent/CN101720005A/en
Application granted granted Critical
Publication of CN101720005B publication Critical patent/CN101720005B/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)

Abstract

The invention discloses method and system of channel time-shifting fragment recording. The method comprises the following steps of: respectively acquiring corresponding recording delay time of each channel; and carrying out the fragment recording when the fragment recording of the channel is carried out and after the corresponding recording delay time of the channel is delayed by fragment recording dividing point time, wherein the corresponding recording delay time of the channel is also delayed by recording finishing time. In the invention, the instant data processing capacity of the system when the fragment recording is carried out is reduced by carrying out different fragment recording delays to different channels, the hazards of high load and easy crash of a server when the time-shifting fragment recordings of time-shifting channels are switched simultaneously can be avoided, and random dispatch and seamless splicing of the fragments of corresponding time intervals of the same channel on any stream media server node can be also ensured.

Description

A kind of method and system of channel time-shifting fragment recording
Technical field
The present invention relates to the multi-media communication technical field, particularly relate to a kind of method and system of channel time-shifting fragment recording.
Background technology
Time shift is IPTV (Interactive Personality TV; Personalized interactive TV) a characteristic service; Be to realize through medium code stream recording and storing with this node television channel; When the user got into the time shift service, what it was watched no longer was live medium code stream, but the medium code stream after the media file fluidisation of from the memory of this node, reading.
The IPTV system is made up of a plurality of streaming media server nodes usually, and each node all need carry out recording of time shift program.In the network that adopts the hierarchical structure networking, the service ability of each node is different.Near user's fringe node, its memory space configuration is more little, and is big more the closer to the node storage space at center.But for the ease of sharing the service ability and the robustness of time shift media file, optimization the whole network storage efficiency, raising system between multinode, time-shifting files takes the mode of storage and uniform, fragment recording that time-shifting files is recorded usually.
So-called fragment recording storage and uniform scheme just is meant that time-shifting files with channel according to setting principle, records into continuous slicing files.These slicing files that belong to a channel can be dispatched freely, use between each node in the IPTV system.Modal division stripping strategy is to be used as fragment recording end, a next burst with the unified time point to begin recorded label; Such as burst half an hour a slice, the time point that so just can use the least bit is as accomplishing a fragment recording and beginning a new fragment recording point.
With channel CH001 and CH002 is example, and traditional to record step following:
1, during channel CH001 and channel CH002 time-shifting fragment n record;
2, to beginning with integral point, the burst duration is the moment of separation, carries out recording of a new time-shifting fragment n+1, and finishes recording of time-shifting fragment n;
Like this, there are two bursts to finish simultaneously to record, and begin recording of new burst simultaneously.
Because with the method for recording of unified time point as the tie point between the time-shifting files burst, advantages such as the slicing files name is regular, the slicing files versatility is good are arranged, industry generally adopts this method at present.But there is following shortcoming in this method: in the IPTV system, for the ease of realizing the versatility of time-shifting fragment, the burst duration is a general value usually, and just all time shift channels all carry out fragment recording according to same principle.Will appear at the time point that burst switches like this, all time shift channels all have the operation of accomplishing old fragment recording, the new fragment recording of beginning, and this operation generally all is accompanied by a series of processing procedure of file system.Time shift channel on a media server more for a long time, this concurrent operation can cause that the instantaneous change of server load is big, the service that server is being provided exerts an influence, and when serious, even can cause the server machine of delaying.
Summary of the invention
The technical problem that the present invention will solve provides a kind of method and system of channel time-shifting fragment recording, and load instantaneous becomes big problem when carrying out time-shifting fragment recording in order to solve in the prior art.
For solving the problems of the technologies described above; On the one hand; The present invention provides a kind of method of channel time-shifting fragment recording, with under the situation of unified time point as the tie point between the time-shifting files burst, said method comprising the steps of when being applied to the fragment recording storage and uniform:
Obtain each channel corresponding recording delay time respectively;
When channel carries out fragment recording, after its this channel corresponding recording delay time of fragment recording separation time retardation, carry out fragment recording, and finish recording time and also postpone this channel corresponding recording delay time.
Further, each channel to record the branch leaf length identical, and the channel identity mark code CID of same channel is identical.
Further, according to the CID of each channel, obtain each channel corresponding recording delay time respectively.
Further, obtain each channel corresponding recording delay time, specifically may further comprise the steps:
With the corresponding A Sike sign indicating number addition of each character among the CID of channel, gained and value are divided by the streaming media server performance parameter, and the gained remainder is this channel corresponding recording delay time.
Further, the streaming media server performance parameter is that the streaming media server maximum is recorded the burst number simultaneously.
On the other hand; The present invention also provides a kind of system of channel time-shifting fragment recording; With under the situation of unified time point as the tie point between the time-shifting files burst, comprise positioning server of medium and streaming media server when being applied to the fragment recording storage and uniform, said streaming media server comprises:
The recording delay time acquiring unit is used for obtaining respectively each channel corresponding recording delay time;
The fragment recording unit is used for when channel carries out fragment recording, after its this channel corresponding recording delay time of fragment recording separation time retardation, carries out fragment recording, and finishes recording time and also postpone this channel corresponding recording delay time.
Further, each channel to record the branch leaf length identical, and the channel identity mark code CID of same channel is identical.
Further, according to the CID of each channel, obtain each channel corresponding recording delay time respectively.
Further, with the corresponding A Sike sign indicating number addition of each character among the CID of channel, gained and value are divided by the streaming media server performance parameter, and the gained remainder is this channel corresponding recording delay time.
Further, the streaming media server performance parameter is that the streaming media server maximum is recorded the burst number simultaneously.
Beneficial effect of the present invention is following:
The present invention is through carrying out different fragment recording time-delays to different frequency channels; And then when having reduced system and having carried out fragment recording; The data processing amount of moment in the time of can avoiding the time shift channel to switch time-shifting fragment recording simultaneously, causes server load high; Delay the easily danger of machine can guarantee that again the burst of the corresponding time period of the same channel on any streaming media server node can arbitrarily be dispatched, it is seamless spliced to realize.
Description of drawings
Fig. 1 is the flow chart of 1 one kinds of channel time-shifting fragment recording methods of the embodiment of the invention;
Fig. 2 is the time-shifting fragment recording sequential sketch map of 1 one kinds of channel time-shifting fragment recording methods of the embodiment of the invention;
Fig. 3 is the structural representation of 2 one kinds of channel time-shifting fragment recording systems of the embodiment of the invention;
Fig. 4 is the structural representation of 2 one kinds of streaming media servers of the embodiment of the invention.
Embodiment
Load instantaneous becomes big problem when carrying out time-shifting fragment recording in order to solve in the prior art, the invention provides a kind of method and system of channel time-shifting fragment recording, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, does not limit the present invention.
As shown in Figure 1, the embodiment of the invention 1 relates to a kind of method of channel time-shifting fragment recording, said method comprising the steps of:
Step S101 obtains each channel corresponding recording delay time respectively.
Because the time shift channel is all accomplished recording of old burst in the same moment, begins the operation of new fragment recording, and this operation generally all is accompanied by a series of processing procedure of file system.Therefore, can cause that the instantaneous change of server load is big, the service that server is being provided exerts an influence, and when serious, even can cause the server machine of delaying.Take place for fear of this situation, should avoid each channel to carry out time shift operation (accomplishing recording and beginning new fragment recording of old burst), the time shift operation time of each channel that just staggers simultaneously.Therefore, need obtain and each channel corresponding recording delay time.
At first, carry out the parameter setting, be provided with same channel in the system to record branch leaf length (being the burst duration) all identical; All channels are set in the system adopt, and same channel CID (Channel IDentity, channel identity mark code) is identical in the system with a kind of serial method for recording.Like this, in the system, the CID that different frequency channels is corresponding different, CID that just can be different according to each channel obtains each channel corresponding recording delay time.In addition, in the system, be in the same channel of various flows media server, have identical CID, guaranteed that again same channel corresponding recording delay time is identical, can guarantee that same channel burst can freely be dispatched between the server, and seamless spliced.
Then, according to the CID of each channel, calculate each channel corresponding recording delay time.The computing formula of recording delay time T is:
T=X(CID)/B,
Wherein, X is the function of channel CID, that is, X is the numerical value that the CID according to channel calculates; B is the performance parameter of streaming media server; T be numerical value X (CID) divided by performance parameter B after, get remainder, unit is second.
Because the main purpose of this step is to calculate the channel corresponding recording delay time, and system does not have too much requirement to recording delay time, therefore, can calculate X through different setting rules according to the CID of channel.For example; The ASCII of each character among the channel CID (American Standard Code forInformation Interchange; ASCII, transliteration are A Sike) the sign indicating number addition, obtain one and the unique value corresponding X of this channel (CID).Also can obtain one and the unique value corresponding X of this channel (CID), perhaps, directly channel CID addition obtained one and the unique value corresponding X of this channel (CID) according to the ASCII character addition of part character among the channel CID.For example, the CID of channel CH001 is 1234567, then can search 1,2,3,4,5,6,7 corresponding ASCII characters respectively, then with these yards addition, obtains and is worth X (CID); Also can only search 1,2,3,4 or 4,5,6,7 corresponding ASCII characters,, obtain and be worth X (CID) then with these yards addition; Can also be directly with 1,2,3,4,5,6,7 additions, obtain and be worth X (CID).B normally streaming media server maximum records the burst number simultaneously, also can record the burst number simultaneously and the streaming media server maximum is recorded choosing value between the burst number simultaneously in the streaming media server minimum.
Step at aforementioned calculation recording delay time T; All streaming media server nodes all use identical formula T=X (CID) %B to calculate the corresponding recording delay time of channel in the system; Be that channels all in the system all adopts identical setting rule, obtain and be worth X (CID).
Step S102; When channel carries out fragment recording, after its this channel corresponding recording delay time of fragment recording separation time retardation, carry out fragment recording; And finish recording time and also postpone this channel corresponding recording delay time, promptly recording duration still is a burst duration.
Begin to be recorded as example with integral point, if do not delay time, all channels all begin to finish recording of a last burst from integral point, and begin recording of next burst with channel.And when delaying time, then begin from integral point, channel 1, finishes recording of a last burst, and begins recording of next burst after the time from integral point time-delay T1; Channel 2, finishes recording of a last burst, and begins recording of next burst after the time from integral point time-delay T2; ..., channel n (n is a channel number, and n is more than or equal to 1), finishes recording of a last burst, and begins recording of next burst after the time from integral point time-delay Tn.Sign in the media data packet of two adjacent bursts is different,, when sign changes, representes that previous fragment recording finishes that is, and a back fragment recording begins.
Like this, the time of just having staggered fragment recording, when avoiding the time shift channel to switch time-shifting fragment recording simultaneously, cause server load high, the danger of the machine of delaying easily; The burst that can guarantee the corresponding time period of the same channel on any streaming media server node again can arbitrarily be dispatched, realize seamless spliced.
As shown in Figure 2, be example with channel CH001 and channel CH002, the step of recording time-delay in a certain period is described:
1, during channel CH001 and channel CH002 time-shifting fragment n record;
2, to beginning with integral point, the separation that time shift is recorded be a (00:00), b (00:30) ....The burst duration is the moment of separation, supposes X1 (CID)=82, X2 (CID)=84, and B=10 then utilizes formula T=X (CID) %B, calculates the recording delay time T1=2s of channel CH001, the recording delay time T2=4s of channel CH002;
Then again behind T1 retardation time (2S) second, that is, begin constantly, carry out recording of a new time-shifting fragment n+1 of channel CH001, and finish recording of time-shifting fragment n, and the end recording time of time-shifting fragment n+1 was also postponed T1 (2S) second from A at separation a; , again behind T1 retardation time (2S) second that is, begin constantly at separation b from B; Carry out recording of a new time-shifting fragment n+2 of channel CH001; And finish recording of time-shifting fragment n+1, and the end recording time of time-shifting fragment n+2 also postponed T1 (2S) second ...; And the like, accomplish recording of each time-shifting fragment.
, again behind T2 retardation time (4S) second that is, begin constantly at separation a, carry out recording of a new time-shifting fragment n+1 of channel CH002, and finish recording of time-shifting fragment n, and the end recording time of time-shifting fragment n+1 was also postponed T2 (4S) second from C; , again behind the elapsed time T2 (4S) second that is, begin constantly at separation b from D; Carry out recording of a new time-shifting fragment n+2 of channel CH002; And finish recording of time-shifting fragment n+1, and the end recording time of time-shifting fragment n+2 also postponed T2 (4S) second ...; And the like, accomplish recording of each time-shifting fragment.
Can find out by above-mentioned steps, after channel CH001 fragment recording begins, elapsed time T2-T1 again; Carry out recording of a new time-shifting fragment n+1 of channel CH002; And finish recording of time-shifting fragment n, like this, just avoided channel CH001 and channel CH002 to carry out the operation of fragment recording simultaneously.
Channel CH001 and channel CH002 fragment recording separation is separately postponed T1 and T2 after the time, begin new fragment recording and the old fragment recording of end.Because each streaming media server adopts with a kind of calculating channel recording delay time, therefore, can guarantee that same channel burst can freely be dispatched between the server, and seamless spliced.
When recording time shift slicing files, unified naming method is adopted in suggestion, naming method not in the invention scope of this patent, but should guarantee between node the downloading slicing file time, be easy to Search and Orientation.
As shown in Figure 3, the embodiment of the invention 2 relates to a kind of system of channel time-shifting fragment recording, comprises positioning server of medium 301 and streaming media server.Wherein, streaming media server comprises center streaming media server 302 and marginal flow media server 303 again.
The duration that positioning server of medium 301 is responsible for the whole system mid band is recorded time-shifting fragment carries out unified management, the residing node location of time shift slicing files is positioned, dispatches, and the time shift slicing files that the storage duration exceeds the time limit is unified deletion.
Wherein streaming media server be responsible for to the medium code stream encapsulation, record, store and distribute.The difference of center streaming media server 302 and marginal flow media server 303 is: the time of the channel recording time-shifting fragment of the time ratio marginal flow media server 303 of the channel recording time-shifting fragment on the center streaming media server 302 is long.When marginal flow media server 303 needs certain time-shifting fragment of certain channel; It obtains the information of center streaming media server 302 through positioning server of medium 301; Time-shifting fragment corresponding on the center streaming media server 302 is downloaded to this locality, accomplish scheduling certain time-shifting fragment of certain channel.
As shown in Figure 4, each streaming media server comprises recording delay time acquiring unit 401 and fragment recording unit 402 again, and wherein, recording delay time acquiring unit 401 is used for obtaining respectively each channel corresponding recording delay time; Fragment recording unit 402 is used for when channel carries out fragment recording, after its this channel corresponding recording delay time of fragment recording separation time retardation, carries out fragment recording, and finishes recording time and also postpone this channel corresponding recording delay time.
The related method of the method that channel time-shifting fragment recording system in the present embodiment carries out fragment recording and embodiment 1 is identical, therefore, in the present embodiment, no longer details.
Can find out by the foregoing description; The present invention is through carrying out the time-delay of different fragment recording to different frequency channels, and then when having reduced system and carrying out fragment recording, the data processing amount of moment; In the time of can avoiding the time shift channel to switch time-shifting fragment recording simultaneously; Cause server load high, the danger of the machine of delaying easily can guarantee that again the burst of the corresponding time period of the same channel on any streaming media server node can arbitrarily be dispatched, it is seamless spliced to realize.
Although be the example purpose, the preferred embodiments of the present invention are disclosed, it also is possible those skilled in the art will recognize various improvement, increase and replacement, therefore, scope of the present invention should be not limited to the foregoing description.

Claims (10)

1. the method for a channel time-shifting fragment recording with under the situation of unified time point as the tie point between the time-shifting files burst, is characterized in that when being applied to the fragment recording storage and uniform, said method comprising the steps of:
Obtain each channel corresponding recording delay time respectively;
When channel carries out fragment recording, after its this channel corresponding recording delay time of fragment recording separation time retardation, carry out fragment recording, and finish recording time and also postpone this channel corresponding recording delay time.
2. the method for channel time-shifting fragment recording as claimed in claim 1 is characterized in that, each channel to record the branch leaf length identical, and the channel identity mark code CID of same channel is identical.
3. the method for channel time-shifting fragment recording as claimed in claim 2 is characterized in that, according to the CID of each channel, obtains each channel corresponding recording delay time respectively.
4. the method for channel time-shifting fragment recording as claimed in claim 3 is characterized in that, obtains each channel corresponding recording delay time, specifically may further comprise the steps:
With the corresponding A Sike sign indicating number addition of each character among the CID of channel, gained and value are divided by the streaming media server performance parameter, and the gained remainder is this channel corresponding recording delay time.
5. the method for channel time-shifting fragment recording as claimed in claim 4 is characterized in that, the streaming media server performance parameter is that the streaming media server maximum is recorded the burst number simultaneously.
6. the system of a channel time-shifting fragment recording; When being applied to the fragment recording storage and uniform with under the situation of unified time point as the tie point between the time-shifting files burst; Comprise positioning server of medium and streaming media server, it is characterized in that said streaming media server comprises:
The recording delay time acquiring unit is used for obtaining respectively each channel corresponding recording delay time;
The fragment recording unit is used for when channel carries out fragment recording, after its this channel corresponding recording delay time of fragment recording separation time retardation, carries out fragment recording, and finishes recording time and also postpone this channel corresponding recording delay time.
7. the system of channel time-shifting fragment recording as claimed in claim 6 is characterized in that, each channel to record the branch leaf length identical, and the channel identity mark code CID of same channel is identical.
8. the system of channel time-shifting fragment recording as claimed in claim 7 is characterized in that, according to the CID of each channel, obtains each channel corresponding recording delay time respectively.
9. the system of channel time-shifting fragment recording as claimed in claim 8; It is characterized in that; With the corresponding A Sike sign indicating number addition of each character among the CID of channel, gained and value are divided by the streaming media server performance parameter, and the gained remainder is this channel corresponding recording delay time.
10. the system of channel time-shifting fragment recording as claimed in claim 9 is characterized in that, the streaming media server performance parameter is that the streaming media server maximum is recorded the burst number simultaneously.
CN2009102593373A 2009-12-18 2009-12-18 Method and system of channel time-shifting fragment recording Expired - Fee Related CN101720005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102593373A CN101720005B (en) 2009-12-18 2009-12-18 Method and system of channel time-shifting fragment recording

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102593373A CN101720005B (en) 2009-12-18 2009-12-18 Method and system of channel time-shifting fragment recording

Publications (2)

Publication Number Publication Date
CN101720005A CN101720005A (en) 2010-06-02
CN101720005B true CN101720005B (en) 2012-02-08

Family

ID=42434511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102593373A Expired - Fee Related CN101720005B (en) 2009-12-18 2009-12-18 Method and system of channel time-shifting fragment recording

Country Status (1)

Country Link
CN (1) CN101720005B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434386A (en) * 2003-01-25 2003-08-06 华中科技大学 Division distributed storage method of program source based on cluster video server
CN101150506A (en) * 2007-08-24 2008-03-26 华为技术有限公司 Content acquisition method, device and content transmission system
CN101198016A (en) * 2007-12-05 2008-06-11 中兴通讯股份有限公司 Contents issuance and storage method for interactive individual television media paying system
CN101420603A (en) * 2008-09-05 2009-04-29 中兴通讯股份有限公司 Method for implementing media distribution, positioning by segmented memory and stream media system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434386A (en) * 2003-01-25 2003-08-06 华中科技大学 Division distributed storage method of program source based on cluster video server
CN101150506A (en) * 2007-08-24 2008-03-26 华为技术有限公司 Content acquisition method, device and content transmission system
CN101198016A (en) * 2007-12-05 2008-06-11 中兴通讯股份有限公司 Contents issuance and storage method for interactive individual television media paying system
CN101420603A (en) * 2008-09-05 2009-04-29 中兴通讯股份有限公司 Method for implementing media distribution, positioning by segmented memory and stream media system thereof

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109739929B (en) Data synchronization method, device and system
US9781486B2 (en) RS-DVR systems and methods for unavailable bitrate signaling and edge recording
CN102004760B (en) Multimedia file storing and applying method, related device and system
CN101668194B (en) Method and device for inserting and playing advertisement based on content fragmentation
CN104394380A (en) Video monitoring management system and playback method of video monitoring record
CN101677325B (en) Method, device and system for publishing media description information and acquiring media
CN107491979B (en) Distribution method and device of advertisement inventory
CN110581973B (en) Data playback method and device, terminal equipment and storage medium
CN101141627A (en) Storage system and method of stream media file
CN101018323A (en) A method and stream media server for fast-forward and fast back of the video data
CN104113735A (en) Distributed video monitoring storing system and method thereof
CN102710966A (en) Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol)
CN101137027A (en) Media slicing memory method
CN107277594A (en) A kind of video and audio and barrage synchronous method and device
CN100531387C (en) Content and service scheduling method for time-shifted television system
CN105359449A (en) Transmission method, reception method, transmission device, and reception device
CN103198851A (en) Multi-terminal synchronous broadcast method based on timestamp messages
CN110648178A (en) Method for increasing kafka consumption capacity
CN101477575A (en) Multimedia information storing and playing method and apparatus
CN103369351A (en) Streaming media fast-forward and fast-backward processing method, video server and system
CN105592318A (en) System, device and method for realizing HLS channel replaying service
CN102625140A (en) Method for frame-granularity real-time downloading and play of streaming media server
CN102204266B (en) Linear hint video streaming
CN102752665B (en) Method and device for obtaining stream media data and stream media playing terminal
CN110089120B (en) System and method for synchronized playback of media items on multiple remote devices

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120208

Termination date: 20171218