The content of the invention
In view of this, it is necessary to the problem of cannot being played during for above-mentioned recording programme replay time shift, there is provided a kind of programPlayback process method and system.
A kind of recording program reproduction process method provided by the invention, includes the following steps:
S10:Original audio, video data and ECM data are recorded when recording program;
S20:When to recording programme replay, thread is created, dissection process is carried out to the ECM data recorded, obtains instituteSome CW, and by CW correspond to it is respective descrambling the time preserved;
S30:When enabling time-shifting function, according to current reproduction time, by search and call in the CW that has preserved with shouldThe corresponding CW of reproduction time descrambles audio, video data, realizes and plays.
A kind of recording program reproduction process system provided by the invention, including:
Recording elements, record original audio, video data and ECM data when recording program;
Playback process unit, when to recording programme replay, creates thread, the ECM data recorded is carried out at parsingReason, obtains all CW, and CW corresponded to the respective descrambling time and is preserved;
Time shift processing unit, when enabling time-shifting function, according to current reproduction time, by being searched simultaneously in the CW that has preservedCall CW corresponding with the reproduction time to descramble audio, video data, realize and play.
The present invention records program reproduction process method and system, together records ECM data when recording program, works as playbackShi Shouxian carries out ECM data processing parsing and obtains all CW and preservation, when user enables time-shifting function, according to currentReproduction time, which is directly searched, calls corresponding CW to carry out descrambling broadcasting, without going parsing to obtain CW again in time shifting broadcasting,So as to which the time be greatly saved, the problem of audio and video playing does not come out is avoided so that user can watch, and ensure the body of userTest and use, bring great advantage to the user.User is also allowd to be returned on the audio-video terminal that other are authorized at the same timePut, enhance the flexibility that user uses.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is rightThe present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, notFor limiting the present invention.
Fig. 1 is the flow chart of the recording program reproduction process method in one embodiment, as shown in Figure 1, this method includesFollowing steps:
S10:Original audio, video data and ECM data are recorded when recording program.
It is to regard original audio, video data together with to the original sound when being recorded to recording program in the embodimentFrequency is together recorded according to the ECM descrambled, and is stored to the designated position of either internally or externally memory.By being recordedWhat the original audio, video data of system inherently scrambled, so it is also safety in memory to record storage.During playback, notIt must necessarily be played back on the audio-video terminal for completing to record, as long as the corresponding smart card of audio-video terminal has awarding for this programPower, it is possible to play back, so both protected program copyright and operator's interests, while also allow what user authorized at otherPlayed back on audio-video terminal, enhance the flexibility that user uses.
S20:When to recording programme replay, thread is created, dissection process is carried out to the ECM data recorded, obtains instituteSome CW, and by CW correspond to it is respective descrambling the time preserved.
When being played back after completion of recording to recording program, due to ECM data together being recorded when recording.ECM data are transferred into smart card, smart card parsing ECM data can obtain corresponding CW.In the embodiment, to recording programDuring playback, a thread is created first, which transfers to smart card to be parsed the ECM data recorded, obtain allCW data.Descramble time corresponding audio, video data since each CW can only descramble with it (the descrambling time corresponds to audio and video numberAccording to reproduction time), therefore by CW correspond to it is respective descrambling the time preserved.All CW are obtained first in playback, withoutBe playback or when move on to some reproduction time when, then go to ECM carry out parsing obtain CW, avoid reproduction time parsing obtainThe problem of taking CW to cause to play.
The recording program is played back to determine whether current audio-video terminal has permission, step S20 is further included:InspectionSurvey current playback record program audio-video terminal whether to record program have authorize, played back if having, otherwise not intoRow playback.
The PES data packets of original audio and video in being flowed due to TS, are that odd-even alternation scrambles, alt time 10s.It is correspondingECM be also alternately receive, its alt time is also for 10s.10s receives an ECM, by the interaction with smart card, obtainsObtain CW.One CW is made of ODDkey (strange key) and EVENkey (even key), corresponding original audio and video PES data packetsOdd-even alternation scrambling mode.And the ODDkey and EVENkey of two neighboring CW always has identical, a such as CW2The EVENkey of EVENkey and CW1 is identical, and the ODDkey of the ODDkey and CW2 of CW3 are identical.So can be by being spacedTwo CW extrapolate centre CW, save parsing obtain CW time.Therefore in further embodiment, step S20Specially:Carry out dissection process to the ECM data breaks recorded, obtains the CW at interval, is calculated by two CW at intervalGo out the CW among two CW, obtain all CW and by CW correspond to it is respective descrambling the time preserved.So need not be to allECM data are handled, it is only necessary to are transferred to smart card to carry out dissection process to two ECM for being separated by an ECM and obtained CW, thenAll CW can be obtained in middle CW by being extrapolated again by two CW at interval, greatly save the time.
S30:When enabling time-shifting function, according to current reproduction time, by search and call in the CW that has preserved with shouldThe corresponding CW of reproduction time descrambles audio, video data, realizes and plays.
After obtaining all CW and the corresponding descrambling time preserved, when user starts time-shifting function, in real time according to whenThe current reproduction time of shifting function, searches in saved CW and is used to descramble current play time audio, video dataCW, and audio, video data is realized and played using the CW that finds.Since CW is obtained and stored before, playingDuring current audio, video data, directly go to search and call, it is not necessary to it is current to go parsing to obtain CW again, so as to avoid that cannot broadcastThe problem of putting, has great convenience for the user.
This method, ECM data are together recorded, carry out processing solution to ECM data first upon playback when recording programAnalysis obtains all CW and preservation, when user enables time-shifting function, calling is directly searched according to current reproduction time and is corresponded toCW carry out descrambling broadcasting, without gone again in time shifting broadcasting parsing obtain CW, so that the time be greatly saved, avoidThe problem of audio and video playing does not come out so that user can watch, and ensure the experience and use of user, be brought greatly just to userProfit.Also allow user to be played back on the audio-video terminal that other are authorized at the same time, enhance the flexibility that user uses.
In addition, the present invention also provides one kind to record program reproduction process system.As shown in Fig. 2, at the recording programme replayReason system includes:Recording elements 100, playback process unit 200 and time shift processing unit 300.
Recording elements 100, record original audio, video data and ECM data when recording program.
In the embodiment, recording elements 100 are together with right by original audio, video data when being recorded to recording programThe ECM that the original audio, video data is descrambled together is recorded, and stores the specific bit to either internally or externally memoryPut.Inherently scrambled by the original audio, video data recorded, so it is also safety in memory to record storage.During playback, it is not necessarily required to play back on the audio-video terminal for completing to record, as long as the corresponding smart card of audio-video terminal hasThe mandate of this program, it is possible to play back, so both protected program copyright and operator's interests, while also so that user can be withPlayed back on the audio-video terminal of other mandates, enhance the flexibility that user uses.
Playback process unit 200, when to recording programme replay, creates thread, the ECM data recorded is parsedProcessing, obtains all CW, and CW corresponded to the respective descrambling time and is preserved.
When being played back after completion of recording to recording program, due to ECM data together being recorded when recording.ECM data are transferred to smart card by playback process unit 200, and smart card parsing ECM data can obtain corresponding CW.The embodimentIn, playback process unit 200 creates a thread, the ECM data which will record first when to recording programme replayTransfer to smart card to be parsed (reproduction time that the descrambling time corresponds to audio, video data), obtain all CW data.Due toEach CW can only descramble descrambles time corresponding audio, video data with it, therefore CW is corresponded to respective solution by playback process unit 200Disturbing the time is preserved.All CW are obtained first in playback, rather than playback or when move on to some reproduction time when,Go to carry out ECM parsing acquisition CW again, avoid the problem that parsing acquisition CW in reproduction time causes to play.
The recording program is played back to determine whether current audio-video terminal has permission, playback process unit 200 is examinedSurvey current playback record program audio-video terminal whether to record program have authorize, played back if having, otherwise not intoRow playback.
The PES data packets of original audio and video in being flowed due to TS, are that odd-even alternation scrambles, alt time 10s.It is correspondingECM be also alternately receive, its alt time is also for 10s.10s receives an ECM, by the interaction with smart card, obtainsObtain CW.One CW is made of ODDkey (strange key) and EVENkey (even key), corresponding original audio and video PES data packetsOdd-even alternation scrambling mode.And the ODDkey and EVENkey of two neighboring CW always has identical, a such as CW2The EVENkey of EVENkey and CW1 is identical, and the ODDkey of the ODDkey and CW2 of CW3 are identical.So can be by being spacedTwo CW extrapolate centre CW, save parsing obtain CW time.Therefore in further embodiment, playback process listThe carry out dissection process of first 200 pairs of ECM data breaks recorded, obtains the CW at interval, is extrapolated by two CW at intervalCW among two CW, obtain all CW and by CW correspond to it is respective descrambling the time preserved.So need not be to all ECMData are handled, it is only necessary to are transferred to smart card to carry out dissection process to two ECM for being separated by an ECM and obtained CW, Ran HouzaiAll CW can be obtained in middle CW by being extrapolated by two CW at interval, greatly save the time.
Time shift processing unit 300, when enabling time-shifting function, according to current reproduction time, by being looked into the CW that has preservedLook for and call CW corresponding with the reproduction time to descramble audio, video data, realize and play.
After obtaining all CW and the corresponding descrambling time preserved, when user starts time-shifting function, time shift processing is singleMember 300 according to the current reproduction time of time-shifting function, is searched in saved CW and is used for current play time sound in real timeThe CW that video data is descrambled, and audio, video data is realized and played using the CW found.Since CW being obtained beforeTake and store, when playing current audio, video data, directly go to search and call, it is not necessary to it is current to go parsing to obtain CW again,The problem of so as to avoid that cannot play, have great convenience for the user.
The system, ECM data are together recorded, carry out processing solution to ECM data first upon playback when recording programAnalysis obtains all CW and preservation, when user enables time-shifting function, calling is directly searched according to current reproduction time and is corresponded toCW carry out descrambling broadcasting, without gone again in time shifting broadcasting parsing obtain CW, so that the time be greatly saved, avoidThe problem of audio and video playing does not come out so that user can watch, and ensure the experience and use of user, be brought greatly just to userProfit.Also allow user to be played back on the audio-video terminal that other are authorized at the same time, enhance the flexibility that user uses.
The present invention records program reproduction process method and system, together records ECM data when recording program, works as playbackShi Shouxian carries out ECM data processing parsing and obtains all CW and preservation, when user enables time-shifting function, according to currentReproduction time, which is directly searched, calls corresponding CW to carry out descrambling broadcasting, without going parsing to obtain CW again in time shifting broadcasting,So as to which the time be greatly saved, the problem of audio and video playing does not come out is avoided so that user can watch, and ensure the body of userTest and use, bring great advantage to the user.User is also allowd to be returned on the audio-video terminal that other are authorized at the same timePut, enhance the flexibility that user uses.
The foregoing is merely a prefered embodiment of the invention, is not intended to limit the invention, it is all the present invention spirit andAll any modification, equivalent and improvement made within principle etc., should all be included in the protection scope of the present invention.