A method of utilizing recorded broadcast equipment recorded broadcast TV programmeTechnical field
The invention belongs to the recorded broadcast fields of TV programme, in particular to a kind of to utilize recorded broadcast equipment recorded broadcast TV Festival destination partyMethod.
Background technique
With the development of science and technology, multimedia terminal product has gradually stepped into huge numbers of families, at indispensable in for people's livesFew part, such as IP set-top box are a kind of typical multimedia terminal equipments, and program source abundant, easily operates mould togetherFormula, powerful multimedia service functions have good development in many places, and many set-top boxes at present, such as song ChinaWired equal set-top box used all has the function of buffered television program, but due to the limited storage space of set-top box, can onlyCaching partial channel and the TV programme only played within one week;Also there is recording function there are also some set-top boxes, will recordProgram be stored in set-top box, convenient for viewing later, but the memory space of set-top box is limited, can not be without limitationRecording user think viewing TV programme;In addition, the prior art also discloses some other recording arrangement and method, for example,The method of television program record disclosed in CN10353338A, this method, which can not need opening television set, can realize recordFunction processed, saves making full use of for Internet resources, but this method the problem is that, when a recording terminal goes wrongWhen, the video that may cause recording is imperfect, influences the fluency that user's later period watches.
Summary of the invention
In order to solve the problems in the existing technology, recorded broadcast equipment recorded broadcast TV programme are utilized the present invention provides a kind ofMethod, this method can guarantee record TV programme integrality, for subsequent user watch complete TV programme are provided.
Specific technical solution of the present invention is as follows:
The present invention provides a kind of method using recorded broadcast equipment recorded broadcast TV programme, recorded broadcast equipment include processor and with instituteProcessor connected the first recording terminal and the second recording terminal are stated, this method comprises the following steps:
S1: processor receives the video data that the first recording terminal is recorded, and handles video data, when detectingWhen in the presence of the video frame for recording failure, the instruction recorded is sent to the second recording terminal;
After S2: the second recording terminal receives record command, start recorded video data, and be transferred at processorReason;
S3: peer protocol will be executed between the first recording terminal and the second recording terminal.
Further to improve, the peer protocol is P2P agreement, and first recording terminal and the second recording terminal pass throughWireless network is communicated.
Further to improve, step S1 includes:
S11: the first video frame for receiving the video data that the first recording terminal of composition is recorded from processor is begun stepping through, and is examinedIt surveys with the presence or absence of failure situation is recorded, when detecting recording failure, carries out step S12;
S12: detecting whether the video frame is complete video frame, if so, carrying out step S13;
S13: record command is sent to the second recording terminal.
It is further to improve, step S1 further include:
S14: when step S12 detection is not, processor and set-top box are established into wireless communication.
It is further to improve, step S1 further include:
S15: record is not the corresponding playing duration T1 of complete video frame, carries out step S16;
S16: playback request, initial time T2, the T2=sending including playback request in playback request are sent to set-top boxWhen m- playing duration T1- △ T1, the △ T1 of playback request is preset time, then carries out step S13.
It is further to improve, this method further include:
S4: when detecting that the first recording terminal restores to record, recording stop instruction is sent to the second recording terminal.
Further to improve, step S4 includes:
S41: when detecting that the first recording terminal restores to record, play mode is normal play or returns at this time for judgementIt sees, if it is normal play, records first recording terminal and start the time T3 recorded, carry out step S42;
S42: when judging time T3, whether last video frame that the second recording terminal is recorded is complete video frame, such asFruit is to carry out step S43;
S43: the instruction for stopping recording is sent to the second recording terminal.
It is further to improve, step S4 further include:
S44: when step S42 judgement is not complete video frame, last video frame of detection the second recording terminal recordingCorresponding playing duration T4;
S45: and in T5, carry out step S43, T5=T3+T4.
It is further to improve, step S4 further include:
S46: when step S41, which is judged as, to be reviewed, fast-forward play request is sent to set-top box, and after △ T2, walkedRapid S43, while the instruction for starting to record is sent to the first recording terminal, △ T2 is to review mode to catch up with used in normal play modeTime.
Further to improve, the multiple a=1.05+0.2*b, b of F.F. in step S46 are the speed of normal play.
It is further to improve, following steps are first carried out before carrying out step S3:
S2 ': the video data recorded according to the playing sequence of TV programme, respectively the first recording terminal and second is recordedEach video frame addition play time label in the video data that terminal is recorded, in the video data of the second recording terminal recordingVideo frame with identical play time label in the video data recorded with the first recording terminal is judged, if two recordsVideo frame with identical play time label in terminal processed is all complete video frame, then by the view in the second recording terminalFrequency frame deletion, if there is one be not complete video frame, then by not being complete in the first recording terminal or the second recording terminalThe corresponding data of video frame are deleted.
Beneficial effects of the present invention are as follows:
A kind of method using recorded broadcast equipment recorded broadcast TV programme provided by the invention, recorded broadcast method provided by the invention areIt is realized by the recorded broadcast equipment of peripheral hardware, which includes processor and the first recording terminal for being connected with the processorWith the second recording terminal, wherein the first recording terminal and the second recording terminal can carry out the camera shooting of data interaction with processorMachine or other recording terminals, the specific recording process of the present invention are as follows: the first recording terminal starts TV programme, by the TV of recordingProgram is sent to processor and handles after processor receives the video data that the first recording terminal is recorded video data, examinesWhen measuring recording failure caused by recording interruption or other reasons, the instruction for starting recording is sent to second terminal, at this point, electricRecording task depending on program is switched to the second recording terminal, and processor will be built between the first recording terminal and the second recording terminal againVertical peer protocol, the video data recorded between such first recording terminal and the second recording terminal can be shared, two recordingsTerminal can watch complete TV programme, and the TV programme can store for a long time, watch at any time convenient for user,Resource is not only saved, and can ensure the integrality and fluency of program viewing.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method using recorded broadcast equipment recorded broadcast TV programme of embodiment 1;
Fig. 2 is the flow chart of 2 step S1 of embodiment;
Fig. 3 is the flow chart of 3 step S4 of embodiment;
Fig. 4 is a kind of flow chart of the method using recorded broadcast equipment recorded broadcast TV programme of embodiment 4.
Specific embodiment
Invention is further described in detail with following embodiment with reference to the accompanying drawing.
Embodiment 1
The embodiment of the present invention 1 provides a kind of method using recorded broadcast equipment recorded broadcast TV programme, as shown in Figure 1, this methodInclude the following steps:
S1: processor receives the video data that the first recording terminal is recorded, and handles video data, when detectingWhen in the presence of the video frame for recording failure, the instruction recorded is sent to the second recording terminal;
After S2: the second recording terminal receives record command, start recorded video data, and be transferred at processorReason;
S3: peer protocol will be executed between the first recording terminal and the second recording terminal.
It should be pointed out that the case where recording failure, specifically includes the first recording terminal and can not be recorded or be recordedSituations such as video frame of system can not be shown;It does not include recording ropy situation;The present invention further can be ropy to recordingSituation does further judgement.
A kind of method using recorded broadcast equipment recorded broadcast TV programme provided by the invention, recorded broadcast method provided by the invention areIt is realized by the recorded broadcast equipment of peripheral hardware, which includes processor and the first recording terminal for being connected with the processorWith the second recording terminal, wherein the first recording terminal and the second recording terminal can carry out the camera shooting of data interaction with processorMachine or other recording terminals, the specific recording process of the present invention are as follows: the first recording terminal starts TV programme, by the TV of recordingProgram is sent to processor and handles after processor receives the video data that the first recording terminal is recorded video data, examinesWhen measuring recording failure caused by recording interruption or other reasons, the instruction for starting recording is sent to second terminal, at this point, electricRecording task depending on program is switched to the second recording terminal, and processor will be built between the first recording terminal and the second recording terminal againVertical peer protocol, the video data recorded between such first recording terminal and the second recording terminal can be shared, two recordingsTerminal can watch complete TV programme, and the TV programme can store for a long time, watch at any time convenient for user,Resource is not only saved, and can ensure the integrality and fluency of program viewing.
Embodiment 2
The embodiment of the present invention 2 provides a kind of method using recorded broadcast equipment recorded broadcast TV programme, this method and embodiment 1It is essentially identical, unlike, as shown in Fig. 2, step S1 includes:
S11: the first video frame for receiving the video data that the first recording terminal of composition is recorded from processor is begun stepping through, and is examinedIt surveys with the presence or absence of failure situation is recorded, when detecting recording failure, carries out step S12;
S12: detecting whether the video frame is complete video frame, if so, carrying out step S13;
S13: record command is sent to the second recording terminal;
S14: when step S12 detection is not, processor and set-top box are established into wireless communication;
S15: recording this not is the corresponding playing duration T1 of complete video frame, carries out step S16;
S16: playback request, initial time T2, the T2=sending including playback request in playback request are sent to set-top boxWhen m- playing duration T1- △ T1, the △ T1 of playback request is preset time, then carries out step S13.
The present invention is further defined step S1, detailed process are as follows: the present invention is receiving the record of the first recording terminalAfter the video data of system, whether the Pianli since the first video frame of composition video data, each video frame for retrieving recording is depositedThe recorded videos such as packet loss the case where, once detect recording failure situation, when judging recorded video, the video frame recordedWhether record completely, if recording is complete, has directly thought that the second recording terminal sends the instruction for starting to record, if not completeProcessor and set-top box are established wireless communication by whole video frame, and recording is not the corresponding playing duration of complete video frame, soPlayback request is sent to set-top box afterwards, and provides the initial time of playback, then starts to record to the transmission of the second recording terminal againInstruction, at this point, the second recording terminal record be the TV programme reviewed, in this way can be by the first recording terminal recorded videoVideo frame record again on one side, improve the integrality of TV programme entirely recorded, improve user's viewing experience.
Embodiment 3
The embodiment of the present invention 3 provides a kind of method using recorded broadcast equipment recorded broadcast TV programme, this method and embodiment 1It is essentially identical, unlike, this method further include:
S4: when detecting that the first recording terminal restores to record, recording stop instruction is sent to the second recording terminal.WhenThe recording of one recording terminal is unsuccessfully that the present invention still will be monitored the recording terminal of the first recording terminal, when it restores recordWhen function processed, the instruction for stopping recording is issued to the second recording terminal.
As shown in figure 3, step S4 includes:
S41: when detecting that the first recording terminal restores to record, play mode is normal play or returns at this time for judgementIt sees, if it is normal play, records first recording terminal and start the time T3 recorded, carry out step S42;
S42: when judging time T3, whether last video frame that the second recording terminal is recorded is complete video frame, such asFruit is to carry out step S43;
S43: the instruction for stopping recording is sent to the second recording terminal;
S44: when step S42 judgement is not complete video frame, last video frame of detection the second recording terminal recordingCorresponding playing duration T4;
S45: and in T5, carry out step S43, T5=T3+T4;
S46: when step S41, which is judged as, to be reviewed, fast-forward play request is sent to set-top box, and after △ T2, walkedRapid S43, while the instruction for starting to record is sent to the first recording terminal, △ T2 is to review mode to catch up with used in normal play modeTime, wherein the multiple a=1.05+0.2*b of F.F. in step S46, b are the speed of normal play.
The present invention is further defined step S4, detailed process are as follows: when detect the first recording terminal restore recordWhen, judge that watching mode at this time is normal play or playback, if it is normal play, then the first recording terminal is just allowed to be openedBegin to record, and record the time for starting to record, whether last video frame for judging that the second recording terminal is recorded at this time is complete, such asFruit is complete, direct recording stop instruction, if imperfect, after last video frame is recorded completely, then stops the second recording endThe record command at end;It can guarantee that each video frame recorded all is complete video frame in this way;When the broadcasting mould of TV programmeFormula is to send fast-forward play request when reviewing to set-top box, when the progress reviewed catches up with normal play progress, record to secondTerminal sends the instruction for stopping recording, and the instruction for starting to record is sent to the first recording terminal, can make the first record in this wayThe video data that terminal processed is recorded is recorded when being all normal play mode, ensure that the quality that the first recording terminal is recorded.
Embodiment 4
The embodiment of the present invention 4 provides a kind of method using recorded broadcast equipment recorded broadcast TV programme, this method and embodiment 3It is essentially identical, unlike, as shown in figure 4, first carrying out following steps before carrying out step S3:
S2 ': the video data recorded according to the playing sequence of TV programme, respectively the first recording terminal and second is recordedEach video frame addition play time label in the video data that terminal is recorded, in the video data of the second recording terminal recordingVideo frame with identical play time label in the video data recorded with the first recording terminal is judged, if two recordsVideo frame with identical play time label in terminal processed is all complete video frame, then by the view in the second recording terminalFrequency frame deletion, if there is one be not complete video frame, then by not being complete in the first recording terminal or the second recording terminalThe corresponding data of video frame are deleted.
The video data that the present invention further records the first recording terminal and the second recording terminal is handled, and works as the twoWhen recorded identical video frame, judge whether video frame complete, if be all it is complete, will be identical in the second recording terminalVideo frame deletion, if there is one it is imperfect, by incomplete video frame deletion;Guarantee the fluency and complete of user's viewing in this wayWhole property, there is no redundancy and the video frames of influence viewing sequence, improve user experience.
The present invention is not limited to above-mentioned preferred forms, anyone can show that other are various under the inspiration of the present inventionThe product of form, however, make any variation in its shape or structure, it is all that there is skill identical or similar to the present applicationArt scheme, is within the scope of the present invention.