A kind of method of digital broadcast television time shifting broadcasting and device
Technical field
The present invention relates to a kind of digital broadcast television player method, relate in particular to a kind of method and device of digital broadcast television time shifting broadcasting.
Background technology
The transmission means of digital broadcasting-television signal is divided into received terrestrial digital broadcasting, satellite digital broadcasting, and cable digital TV is broadcasted three types.Wherein, Received terrestrial digital broadcasting, satellite digital broadcasting can provide the mobile multi-media broadcasting service of radio, film and television program and information service for the user, and the user adopts the reception of Mobile Digital TV terminal can receive and watch broadcast TV program and information service whenever and wherever possible; And the cable digital TV broadcast system adopts STB to receive the cable digital TV broadcast singal, realizes the reception and the broadcast of DTV.
In existing cable digital TV broadcast system; Adopt interactive set-top box and front end system to carry out interactive application, realize nearly all broadcasting and interactive multimedias application such as digital television broadcasting reception, electronic program guides, TV replay, pay-per-view are watched, on-line software updating, data broadcasting, Email mail.
But reception of Mobile Digital TV is merely able to watch the real time programme of front end system broadcast owing to the restriction of himself when TV reception, can not equally carry out TV replay and time shifting broadcasting as interactive set-top box, brings great inconvenience to the user.
Summary of the invention
In order to solve the deficiency that prior art exists, the present invention provides a kind of method and device of digital broadcast television time shifting broadcasting, realizes the time shifting broadcasting of TV programme through the buffering area of management and control store broadcast data.
To achieve these goals, the method for digital broadcast television time shifting broadcasting provided by the invention said method comprising the steps of:
1) receiving digital broadcast TV signal, and obtain video/audio;
2) with the video/audio of each broadcast cycle as a spot broadcasting data file, be saved in the buffering area of file storage module;
3) memory location with said spot broadcasting data file joins in the index file in order;
4) receive user's input operation, and according to the broadcast of the user's appointment that parses constantly, calculate relative initial broadcast cycle;
5), from index file, inquire the store path of the broadcast data file corresponding, and from broadcast data file, read video/audio and play with these initial broadcast cycle data according to described initial broadcast cycle.
Wherein, Said step 2) in, if the user has limited the size of buffering area, then when buffering area is expired; The broadcast data file deletion that the oldest broadcast cycle is corresponding; The broadcast data file that regeneration is new, article one path of deleting index file simultaneously appends to the last of index file with the path of new file.
Wherein, said step 5) further may further comprise the steps:
A), judge whether there is above-mentioned initial broadcast cycle in the buffering area according to index file;
B) if this initial broadcast cycle is present in the index file, then from index file, inquire the store path of the corresponding broadcast data file of these broadcast cycle data, from broadcast data file, read video/audio and play;
C) if this initial broadcast cycle is not present in the index file, then in the indexed file nearest broadcast cycle of chosen distance designated broadcast cycle as initial broadcast cycle.
Wherein, in the index file of said step 3), comprise the corresponding relation between the store path of broadcast cycle and broadcast data file of video/audio.
To achieve these goals, the device of digital broadcast television time shifting broadcasting provided by the invention comprises Receiver Module, and data processing module is looked the audio decoder module, file storage module, and time shifting broadcasting control module, and input operation module, wherein,
Said Receiver Module is used for the receiving digital broadcast TV signal, and is converted into intermediate-freuqncy signal and sends to said data processing module;
Said data processing module is used for intermediate-freuqncy signal is handled, and obtains the video/audio of digital broadcast television;
The said audio decoder module of looking is used for the broadcast video/audio constantly of user's appointment being decoded the output video/audio signal;
Said file storage module is used for store broadcast data file and index file;
Said time shifting broadcasting control module receives the user instruction information that said input operation module is sent, and according to the broadcast moment of user's appointment, from broadcast data file, reads video/audio and carries out time shifting broadcasting;
Said input operation module is used to receive the instruction input of user's time shifting broadcasting, and it is transmitted to said time shifting broadcasting control module.
Wherein, said time shifting broadcasting control module, it calculates relative initial broadcast cycle according to the broadcast moment of user's appointment, and from index file, inquires the store path of the corresponding broadcast data file of these broadcast cycle data.
Wherein, Said time shifting broadcasting control module generates the progress bar that can drag on the interface, drag in the process of progress bar the user; The progress displaying bar the key frame in the corresponding broadcast data constantly, the user can know the current position that drags more intuitively.
Adopt the method and the device of digital broadcast television time shifting broadcasting of the present invention; The video/audio of the digital broadcast television that receives is stored in the buffering area of local file memory module; When the user carries out time shifting broadcasting; Directly from buffering area, read the corresponding broadcast data file of broadcast cycle data and play, realized better time shifting broadcasting effect.
Other features and advantages of the present invention will be set forth in specification subsequently, and, partly from specification, become obvious, perhaps understand through embodiment of the present invention.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, and with content of the present invention and embodiment, is used to explain the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram according to digital broadcast television time shifting broadcasting of the present invention;
Fig. 2 is a buffering area index file according to the present invention and the corresponding sketch map of broadcast data file
Fig. 3 is the principle of device block diagram according to digital broadcast television time shifting broadcasting of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that embodiment described herein only is used for explanation and explains the present invention, and be not used in qualification the present invention.
In digital television broadcasting system, data are sent in the broadcasting of system cycle property ground, and the user can watch program according to sending order.But under the certain situation, the user hopes the former program of can resetting, and does not hope to lose later program.Time shifting broadcasting allows the user to play required program forward or backward according to time shaft.
All can play immediately when guaranteeing that receiving terminal can at any time insert, the audio, video data in each broadcast cycle all comprises temporal information.Usually have the absolute time of broadcast cycle to stab, and the audio frequency and video unit in the broadcast cycle comprise the relative time stamp.
Fig. 1 is the method flow diagram according to digital broadcast television time shifting broadcasting of the present invention, below with reference to Fig. 1, the method for digital broadcast television time shifting broadcasting of the present invention is described in detail:
At first; In step 101; Through Receiver Module receiving digital broadcast TV signal, this digital broadcasting-television signal can be received terrestrial digital broadcasting TV signal, satellite digital broadcast television signal, perhaps cabled digital broadcast television signal; Preferably, Receiver Module of the present invention is used to receive received terrestrial digital broadcasting TV signal or cabled digital broadcast television signal.
In step 102; The video/audio that receives is saved in the buffering area of file module; This buffering area is made up of an index file and several broadcast data storage files; The video/audio that each broadcast cycle receives is preserved into the broadcast data file an of this locality, and this file storage location is joined in the index file in order, and index file and broadcast data file corresponding relation are as shown in Figure 2.
In storing process, if the user has limited the size of buffering area, then when buffering area is expired; The data file deletion that the oldest broadcast cycle is corresponding; The data file that regeneration is new, article one path of deleting index file simultaneously appends to the last of index file with the path of new file.
In step 103, the input operation module receives the user's time-shift play operation, and sends user's command information to the time shifting broadcasting control module, and this command information includes the broadcast moment of user's appointment.When the user carries out the time shifting broadcasting operation; On the interface, show the progress bar that can drag; Drag in the process of progress bar the user, the key frame in the video/audio in the corresponding moment of decoding and progress displaying bar institute, the user can know the current position that drags more intuitively.
In step 104, the time shifting broadcasting control module is resolved the user instruction information that receives, and according to the broadcast of the user's appointment that parses constantly, calculates relative initial broadcast cycle.
In step 105, the time shifting broadcasting control module judges in the index file in the buffering area whether have above-mentioned initial broadcast cycle according to index file, if this initial broadcast cycle exists, then forwards step 107 to, otherwise, carry out next step.
In step 106, the initial broadcast cycle of adjustment on time shaft.In receiving digital broadcast TV signal process; The data of the broadcast cycle that time of user's appointment is corresponding are not stored in the index file of buffering area owing to signal or other reason; Then the chosen distance designated broadcast cycle nearest, and bigger broadcast cycle is as initial broadcast cycle.
In step 107, the time shifting broadcasting control module inquires the store path of the corresponding broadcast data file of these initial broadcast cycle data from index file, and from broadcast data file, read video/audio and play, and the like.
Fig. 3 is the principle of device block diagram according to digital broadcast television time shifting broadcasting of the present invention; As shown in Figure 3, the device of digital broadcast television time shifting broadcasting of the present invention comprises Receiver Module 301, data processing module 302; Look audio decoder module 303; File storage module 304, time shifting broadcasting control module 305, and input operation module 306.
Receiver Module 301, it accepts the control of time shifting broadcasting control module 305, the receiving digital broadcast TV RF signals, and convert this radiofrequency signal to intermediate-freuqncy signal and send to data processing module 302.RF receiver module 301 of the present invention; Can receive the digital broadcasting-television signal of CMMB, DVB-H, DVB-T, T-DMB standard; Preferably; RF receiver module 301 adopts CMMB receiver modules (China Mobile Multimedia Broadcasting), and CMMB is the industry standard of the received terrestrial digital broadcasting TV of Chinese radio and television general bureau promulgation, and the CMMB terminal of support comprises portable terminals such as mobile phone, PDA, notebook computer, vehicle mounted guidance; Comprise a plurality of channels in the frequency of CMMB, and a channel has comprised several slots.
Data processing module 302 is accepted the control of time shifting broadcasting control module 305, and the intermediate frequency digital broadcasting-television signal that Receiver Module 301 is sent carries out demodulation, demultiplexing is handled, and obtains video/audio.
Look audio decoder module 303, accept the control of time shifting broadcasting control module 305, the broadcast video/audio constantly of user's appointment is decoded the output video/audio signal.
File storage module 304 comprises user-defined filebuf, is used for store broadcast data file and index file.
Time shifting broadcasting control module 305; Receive the user instruction information that input operation module 306 is sent; And this user instruction information resolved, according to the broadcast of the user's appointment that parses constantly, calculate relative initial broadcast cycle; From index file, inquire the store path of the corresponding broadcast data file of these broadcast cycle data, from broadcast data file, read video/audio and play; Be used on the interface generating the progress bar that can drag, drag in the process of progress bar the user, the key frame in the video/audio in the corresponding moment of progress displaying bar institute, the user can know the current position that drags more intuitively.
Input operation module 306 is used to receive the instruction input of user's time shifting broadcasting, and it is transmitted to time shifting broadcasting control module 305.
The method of digital broadcast television time shifting broadcasting of the present invention and device; Can be applied in the portable terminals such as mobile phone, PDA, notebook computer, vehicle mounted guidance; Realize the time shifting broadcasting of TV programme through the management and the buffering area of control store video/audio, this buffering area is made up of an index file and several broadcast data storage files.Each broadcast cycle receives data and preserves into a local file, and this file storage location is joined in the index file in order.When the user carries out time shifting broadcasting, in the broadcast moment according to user's appointment, convert relative broadcast cycle into.From index file, inquire the corresponding storage file path of these broadcast cycle data, from file, read video/audio and pass to the time shifting broadcasting that decoder carries out TV programme.
One of ordinary skill in the art will appreciate that: the above is merely the preferred embodiments of the present invention; Be not limited to the present invention; Although the present invention has been carried out detailed explanation with reference to previous embodiment; For a person skilled in the art, it still can be made amendment to the technical scheme of aforementioned each embodiment record, perhaps part technical characterictic wherein is equal to replacement.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.