Summary of the invention
In view of this, the purpose of this invention is to provide a kind of digital television receiving system automatic closing method and device, can know by monitoring I frame repetition frequency whether the user stops to pay close attention to TV, can be when the user watch Digital Television, automatically close the digital TV receiving system that comprises digital television, thereby prolonged the useful life of digital TV receiving systems such as television set, saved electric energy, offer convenience for user's life, strengthened user's product use experience, be of great practical significance.
For this reason, the invention provides a kind of digital television receiving system automatic closing method, comprise step:
A: after carrying out the Digital Television broadcast, occur the quantity of I frame in each scheduled time of continuous monitoring in the mpeg video stream of digital television broadcasting DVB transmission;
B: the I number of frames that obtains when monitoring is done an invalid record during less than predetermined frame number;
C: judge whether to do invalid record continuously and invalid record reaches predetermined number, if, operating procedure D, otherwise, operating procedure E;
D: send the power-off signal to digital TV receiving system, close the digital TV receiving system power supply;
E: original I frame number value zero clearing of measuring acquisition, return operating procedure A.
Preferably, described step D is specially:
Trigger the shutdown prompting, prompting user TV can soon be closed within 1 minute;
If the user does not cancel shutoff operation in this time of 1 minute, send the power-off signal to digital TV receiving system, close the digital TV receiving system power supply
Preferably, when mpeg video stream was the MEPG-2 video flowing, the scheduled time in the described steps A was 5 minutes.
Preferably, the predetermined frame number among the described step B is 600.
Preferably, the predetermined number of described invalid record is 5.
In addition, the invention provides a kind of digital television receiving system automatic closing device, include:
Monitoring means is used for after carrying out the Digital Television broadcast, occurs the quantity of I frame in each scheduled time of continuous monitoring in the mpeg video stream of digital television broadcasting DVB transmission;
Statistic unit is used for doing an invalid record when the I number of frames of acquisition that monitoring means is monitored during less than predetermined frame number;
Judging unit is used to judge whether statistic unit does invalid record continuously and invalid record reaches predetermined number;
Control unit, being used for when judgment unit judges draws statistic unit is when doing invalid record and invalid record continuously and reaching predetermined number, sends the power-off signal to digital TV receiving system, the digital TV receiving system powered-down.
Preferably, described control unit comprises:
The prompting subelement, being used for when judgment unit judges draws statistic unit is when doing invalid record and invalid record continuously and reaching predetermined number, triggers the shutdown prompting, points out the number TV receiving system soon to close within 1 minute;
Close the triggering subelement, be used in this time of 1 minute, not cancelling shutoff operation, send the power-off signal, close the digital TV receiving system power supply to digital TV receiving system as the user.
Preferably, when mpeg video stream was the MEPG-2 video flowing, the described scheduled time was 5 minutes.
Preferably, described predetermined frame number is 600.
Preferably, the predetermined number of described invalid record is 5.
By above technical scheme provided by the invention as seen, the invention provides a kind of digital television receiving system automatic closing method and device, can know by monitoring I frame repetition frequency whether the user stops to pay close attention to TV (promptly watching TV), when knowing that the user no longer pays close attention to Digital Television, the shutdown of control figure TV receiving system, thereby automatically close the digital TV receiving system that comprises digital television, thereby prolonged the useful life of digital TV receiving systems such as digital television, saved electric energy, offer convenience for user's life, strengthened user's product use experience, be of great practical significance.
Embodiment
In order to make those skilled in the art person understand the present invention program better, the present invention is described in further detail below in conjunction with drawings and embodiments.
In order to allow people understand technical scheme of the present invention, below theoretical foundation of the present invention is described:
Current, the video in digital television broadcasting (DVB) transmission code stream compresses with mpeg encoded, is the MPEG-2 coding in view of what mainly adopt in digital television system, so be that example illustrates with the MPEG-2 video flowing hereinafter.
Referring to Fig. 1, for the ease of error code processing, random search and editor, MPEG-2 bitstream layers structure as shown in Figure 1, the MPEG-2 video flowing mainly is divided into image sequence layer (VSL-Video SequenceLayer), image sets layer (GOPL-Group of Pictures Layer), image layer (PL-Picture Layer), and every layer all has definite function corresponding with it.
For under the condition of efficient compressed encoding, obtaining can random-access high compression ratio, high quality graphic, MPEG definition picture group (Group of Pictures, GOP) comprise I, P, three kinds of picture formats of B in, abbreviate as respectively: figure (Intra Picture), prognostic chart (Predicted Picture) and bi-directional predicted figure (Bidirectional Picture) in the frame, be I frame, P frame and B frame, be used to represent the frame sequence picture in the 1/30s time interval.
If satisfy random-access requirement, only utilize I figure self-information to carry out intraframe coding and get final product; And in order to satisfy the requirement of high compression ratio and high quality graphic, not only to lean on I figure intraframe coding, also to add the interframe encode that participates in by P figure and B figure, and the block matching motion compensation prediction, promptly with the causal forecasting of former frame image prediction present image with predict the interpolation prediction of present image with back one two field picture.So just require intraframe coding and interframe encode balance, the balance between causal forecasting and interpolation prediction.The result of balance is the unification of random-access high compression ratio, high quality graphic.
As seen from Figure 1, a picture group GOP is that initial a string I, B, P frame formed by I, and the length of picture group GOP is that previous I frame arrives next I frame interval before, and in Fig. 1, I1 is the length of GOP to B9.GOP is long more, and the I frame repetition frequency is more little, and the similitude of video sequence is big more.That is to say that the degree of video variation and the length of GOP are inversely proportional to.
In view of no matter being after TV station stops broadcast program or other input equipments (as DVD etc.) projection and finishes, all will export for a long time near static picture (for example ball figure, blue screen, fixedly picture or the like), these are invalid video near static picture, the maximum characteristics of invalid video are exactly to be consistent in long-time, thereby cause the degree of correlation between each frame significantly to increase, the length of a GOP will be far longer than normal value this moment, that is to say that the I frame repetition frequency is very low.
Need to prove that the I frame is the reference frame of mpeg encoded, and notable attribute is arranged, any decoder (chip) all must rely on the I frame and decode, so it is monitored easy realization.And has the characteristic of striding hardware platform
Therefore, by above as can be known, if the I frame repetition frequency is low, what the long-time broadcast of television set was described so is invalid video, can think that the user has stopped the concern to TV, it is meaningless that continue broadcast this moment, therefore can know by monitoring I frame repetition frequency whether the user stops to pay close attention to TV (promptly watching TV), when knowing that the user no longer pays close attention to TV, the shutdown of control figure TV receiving system, thereby can prolong machine useful life, saves energy realizes shutdown automatically.
Based on the principle of setting forth above, the invention provides a kind of digital television receiving system automatic closing method, referring to Fig. 2, Fig. 2 is the flow chart of a kind of digital television receiving system automatic closing method provided by the invention.
The invention provides a kind of digital television receiving system automatic closing method, comprise step:
Step S201: after carrying out Digital Television broadcast (promptly opening digital TV receiving system), occur the quantity of figure (being the I frame) in the frame in each scheduled time of continuous monitoring in the mpeg video stream of digital television broadcasting (DVB) transmission;
The needs of the described scheduled time according to the user preestablish, and in the present invention, when mpeg video stream was the MEPG-2 video flowing, the scheduled time was preferably: 5 minutes.
Step S202: the I number of frames that obtains when monitoring is done an invalid record during less than predetermined frame number;
In the present invention, described predetermined frame number equals for 120 * scheduled time, and when preselected time was 5 minutes, predetermined frame number was 600, and this value is at standard MPEG2 coding, has corresponding adjustment for different signal bit streams.
Step S203: judge whether to do invalid record continuously and invalid record reaches predetermined number, if, operating procedure S204, otherwise, operating procedure S205;
The predetermined number of described invalid record is 5.
Step S204: when doing invalid record and invalid record continuously and reach predetermined number, send the power-off signal, close the digital TV receiving system power supply to digital TV receiving system.
Described digital TV receiving system includes, but are not limited to digital television and digital TV set-top box.
Step S205: when not doing invalid record or invalid record continuously and do not reach predetermined number, originally measure the I frame number value zero clearing that obtains, return step S201.
Need to prove that the several needs according to the user of described predetermined frame preestablish, when Digital Television adopted MPEG-2 to encode, GOP was long more, and the MPEG-2 coding is effective more.With modal MPEG4:2:2 is example, general, is made up of 12 frames at most.The structure of GOP changes with code check and different, and during greater than 40Mbps, GOP is the shortest as code check, and 10~25 I frames appear in per second, and it is the fiercest that the video that means broadcast changes, as camera lenses such as exploding, fight; When code check was 15-40Mbps, the frame repetitive mode was IB, and 5~10 I frames appear in the shorter per second of GOP, as TV programme; Code check is during less than 15Mbps, and the frame repetitive mode is IBP or IBBP, and GOP is longer, and 2~5 I frames appear in per second, means to play the very little video of intensity of variation,, can not continue for a long time usually reporting news etc. as the announcer.The back finds that the situation of per second less than 2 I frames can not appear in normal video substantially after tested.Therefore, in the present invention, when Digital Television adopted MPEG-2 to encode, if the time of monitoring is 5 minutes, so described predetermined frame number was 2 * 60 * 5=600.
If the I number of frames that occurs in 5 minutes time period is less than 2 * 60 * 5=600, then write down an invalid record,, mean that continuous 25 minutes television images do not have significant change if occur invalid record continuously 5 times, the user is not paying close attention to TV, therefore can the closing television machine.
On the specific implementation, this step S204 comprises two sub-steps:
When the record of doing continuously reaches predetermined number, trigger the shutdown prompting, prompting number TV receiving system can soon be closed within 1 minute;
If the user does not cancel shutoff operation in this time of 1 minute, send the power-off signal to digital TV receiving system, close the digital TV receiving system power supply.
Based on a kind of digital television receiving system automatic closing method that the invention described above provides, referring to Fig. 3, the present invention also provides a kind of digital television receiving system automatic closing device, includes:
Monitoring means 301 is used for after carrying out the Digital Television broadcast, occurs the quantity of figure (being the I frame) in the frame in each scheduled time of continuous monitoring in the mpeg video stream of digital television broadcasting (DVB) transmission;
The needs of the described scheduled time according to the user preestablish, and in invention, when mpeg video stream was the MEPG-2 video flowing, the scheduled time was preferably: 5 minutes.
Statistic unit 302 is connected with monitoring means 301, is used for doing an invalid record when monitoring means 301 is monitored the I number of frames that obtains less than predetermined frame number;
In the present invention, described predetermined frame number equals for 120 * scheduled time, and when preselected time was 5 minutes, predetermined frame number was 600, and this value is at standard MPEG2 coding, has corresponding adjustment for different signal bit streams.
Judging unit 303 is connected with statistic unit 302, is used to judge whether statistic unit 302 does invalid record continuously and invalid record reaches predetermined number;
Control unit 304, be connected with judging unit 303, be used for judging that when judging unit 303 drawing statistic unit 302 is when doing invalid record and invalid record continuously and reaching predetermined number, send the power-off signal, close the digital TV receiving system power supply to digital TV receiving system.
Described digital TV receiving system includes, but are not limited to digital television and digital TV set-top box.
In the present invention, this invalid record predetermined number that need reach is 5.
Need to prove that the several needs according to the user of described predetermined frame preestablish, when Digital Television adopted MPEG-2 to encode, GOP was long more, and the MPEG-2 coding is effective more.With modal MPEG4:2:2 is example, general, is made up of 12 frames at most.The structure of GOP changes with code check and different, and during greater than 40Mbps, GOP is the shortest as code check, and 10~25 I frames appear in per second, and it is the fiercest that the video that means broadcast changes, as camera lenses such as exploding, fight; When code check was 15-40Mbps, the frame repetitive mode was IB, and 5~10 I frames appear in the shorter per second of GOP, as TV programme; Code check is during less than 15Mbps, and the frame repetitive mode is IBP or IBBP, and GOP is longer, and 2~5 I frames appear in per second, means to play the very little video of intensity of variation,, can not continue for a long time usually reporting news etc. as the announcer.The back finds that the situation of per second less than 2 I frames can not appear in normal video substantially after tested.
Therefore, in the present invention, when Digital Television adopts MPEG-2 to encode, if the I number of frames that occurs in 5 minutes time period is less than 2 * 60 * 5=600, then write down an invalid record,, mean that continuous 25 minutes television images do not have significant change if occur invalid record continuously 5 times, the user is not paying close attention to TV, therefore can the closing television machine.
In the present invention, described control unit 304 comprises:
Prompting subelement 3041 is used for judging that when judging unit 303 drawing statistic unit 302 is when doing invalid record and invalid record continuously and reaching predetermined number, triggers the shutdown prompting, points out the number TV receiving system soon to close within 1 minute;
Close and trigger subelement 3042, be used in this time of 1 minute, not cancelling shutoff operation, send the power-off signal, close the digital TV receiving system power supply to digital TV receiving system as the user.
In sum, a kind of digital television receiving system automatic closing method provided by the invention and device, can be when the user watch Digital Television, automatically close digital TV receiving system, thereby prolonged the useful life of television set, saved electric energy, offered convenience for user's life, strengthened user's product use experience, be of great practical significance.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.