Background technology
The PVOD business is a kind of Novel digital television value-added service, it is take push technology as the basis, utilize idle broadcast channel, normally watch under the prerequisite of program not hindering TV user, various expansion service contents are pushed to number television receive terminal (STB automatically, Set Top Box) in the local hard drive that carries, the user can be chosen in arbitrary period and read from the local hard drive of receiving terminal for digital television, the various expansion service contents that provide to enjoy digital-TV operator, above-mentioned expansion service content can be video, also can be other data contents, such as webpage etc.
Fig. 1 is the existing method flow schematic diagram that obtains the PVOD business, the payload segment that sets in advance before this flow process begins in grouping Basic Flow (PES, Packetize Elementary Streams) the packet encapsulation form comprises: fragment is described and file data fragments.Flow process shown in Figure 1 comprises:
Step 101: server end will be treated Deta bearer in the pushing files (PVOD file) in described file data fragments, will be carried on during fragment describes the described descriptor for the treatment of pushing files, be packaged into an above PES packet.
In this step, treat that the descriptor of pushing files comprises file name and file type sign.
Two kinds of server end file includings to be pushed: description document and content file.The content-data that wherein comprises corresponding video and data content in the content file comprises the descriptor that the overview to server end all the elements file is described in the description document.
Step 102: modulation was exported after server end used the PES packet to form transport stream (TS, Transport Stream).
Step 103: receiving terminal for digital television carries out demodulation to the transport stream that receives.
In this step, the data of description in the description document that receiving terminal for digital television elder generation reception server end pushes, the again content-data in the content file of reception server end propelling movement.
Step 104: receiving terminal for digital television utilizes described fragment to describe and parses the data for the treatment of the pushing files from described file data fragments, and the data that parse are saved in local memory device.
Fig. 2 is the reception schematic flow sheet of existing receiving terminal for digital television, and referring to Fig. 2, this flow process comprises:
Step 201: request program contingency table (PAT, Program Association Table) and SDT Service Description Table (SDT, Service Descriptor Table), simultaneously again request program mapping table (PMT, Program Map Table), execution SDT processing in the SDT readjustment in the PAT readjustment.
Step 202: the PVOD that request searches is professional.
Step 203: receive the data of description in the description document, upgrade local memory device according to the analysis result to the data of description in this description document.
In this step, receiving terminal for digital television must receive first the data of description in the description document after beginning the data of reception server end propelling movement at every turn, then just begins to receive the content-data in the content file.File type sign during receiving terminal for digital television is described according to the fragment of the PES packet that receives judges that whether what carry in the current PES packet that receives is data of description in the description document.
There is the pvod_stb catalogue in the receiving terminal for digital television local memory device, the description document name of having preserved under this catalogue is called files.dsc, store path is/pvod_stb/files.dsc, the description document of preserving when this description document is last round of propelling movement of server end, then the normal flow of the PES packet of the current carrying data of description of reception is as follows in this step:
1, files.dsc is renamed as files_old.dsc;
2, the description document title in describing according to the fragment of PES packet is set up store path for the description document of/pvod_stb/files.dsc, and the data of description of carrying in the file data fragments is stored in this description document;
3, contrast files.dsc and files_old.dsc, according to the content file of having preserved in the following redundant rule elimination pvod_stb catalogue:
A) have among the files_old.dsc but the content file that do not have among the files.dsc to describe;
B) among files.dsc and the files_old.dsc description is arranged but size or create the not identical content file of modification time;
4, all the elements file under the traversal pvod_stb catalogue, delete following two kinds of content files:
A) in files.dsc, there is not the content file described, but the content file of file extent .dwn by name and .sta will be processed especially, wherein .dwn is the file extension of not finishing the content file of propelling movement, .sta be the file extension of not finishing the content file institute corresponding states file of propelling movement, should make a.ts such as a.ts.dwn processes, avoid having downloaded the content file deletion of half, and for example a.ts.sta should do the a.ts processing, avoids the status file of having downloaded half has been deleted;
B) though files.dsc has description, but size or establishment modification time are described not identical content file with files.dsc;
5, according to the description of files.dsc, be pre-created description is arranged among the files.dsc, size surpasses predetermined threshold value, but non-existent content file in the receiving terminal for digital television local memory device, specific requirement is as follows:
A) create empty file and the allocated size of the file name possess this content file according to the description among the files.dsc, add extension name .dwn during establishment, create simultaneously corresponding status file, file extent is called .sta, and this document is used for describing the state of propelling movement;
B) empty file creates " zero-time " that modification time is set to describe among the files.dsc.
The purpose that is pre-created empty file in this step is to avoid receiving terminal for digital television when receiving the content file that local memory device do not have, and the establishment of larger file is costed a lot of money the time, thereby affect inbound pacing, even have little time to store this content file;
6, deletion files_old.dsc;
7, the content file number finished of version, the content file total number and pushed of record among the files.dsc (i.e. the 4th step during traversal is described consistent content file number among description and the files.dsc).
If when carrying out above-mentioned the 1st step, find existing file.dsc in the local memory device, files_old.dsc is arranged again, make mistakes (such as outage) before the 5th step in last round pushes then is described, should save as file.dsc this moment with the description document of current reception, goes on foot since the 3rd and carry out; If finding when carrying out above-mentioned the 1st step has files_old.dsc in the local memory device, then direct description document with current reception saves as file.dsc, goes on foot since the 3rd and carries out.
If being divided into several PES packets, the data of description in the description document of current round pushes, and receiving terminal for digital television when receiving certain PES packet wherein, find version number with before the PES packet of reception not identical, then need to delete the PES packet that has received, again begin to receive from the PES packet that comprises new version number, if when carrying out above-mentioned the 3rd step and the 4th step, find that all the elements file of describing in the description document all has been stored in local memory device and has suffered, then follow-uply need not to carry out the step that receives content file, directly process ends.
Step 204: receive content-data and preservation in the content file.
Above-mentioned flow process specifically can be the patent application of " method and system that a kind of pushing video and data content are realized local ordering " referring to denomination of invention, does not repeat them here.
By as seen above-mentioned, the existing method of obtaining PVOD, the description document that receiving terminal for digital television is broadcast according to server end compares with local description document of preserving before, decides the content that receives and upgrade this locality according to both differences relatively.The description document of having preserved in the description document of i.e. more current preservation and the local memory device: exist in the deletion description document of having preserved and describe but do not have the content file of description in the description document of current preservation, and all exist in the deletion description document of having preserved and in the description document of current preservation and describe but describe size or create the inconsistent content file of modification time.
But this method of obtaining the PVOD business is determined download and the renewal of receiving terminal for digital television content by server end, receiving terminal for digital television can only passively receive.The user can not independently select the PVOD file to download by receiving terminal for digital television, so that the user is less to the selectivity of PVOD business tine, causes the professional underaction of PVOD, can not satisfy user's individual demand; Simultaneously, receiving terminal for digital television is by comparing the PVOD file of description document updated stored, so that some PVOD files that the user likes are updated, the user can not carry out storage and management to the PVOD file after downloading, for example, collect the PVOD file oneself liked so that playback.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method of the downloading contents for PVOD (push video on demand) business, improve PVOD (push video on demand) business flexibility, satisfy user's individual demand.
Another object of the present invention is to provide a kind of system of the downloading contents for PVOD (push video on demand) business, improve PVOD (push video on demand) business flexibility, satisfy user's individual demand.
For achieving the above object, the method for a kind of downloading contents for PVOD (push video on demand) business provided by the invention, the method comprises:
Server end will treat that the descriptor of pushing files is carried in the pushing video program request control web page files, to treat that Deta bearer in the pushing files is in described file data fragments, to be carried in the fragment description the described descriptor of pushing files for the treatment of, be packaged into grouping Basic Flow packet more than;
Modulation was exported after server end used grouping Basic Flow packet to form transport stream, and receiving terminal for digital television carries out demodulation to the transport stream that receives;
The type of service that receiving terminal for digital television comprises according to the transport stream of demodulation is defined as pushing video program request control web page files;
If receiving terminal for digital television stores pushing video program request control web page files, the pushing video program request control web page files of definite pushing video program request control web page files that receives and storage is inconsistent, the pushing video program request control web page files of storing received; If receiving terminal for digital television does not store pushing video program request control web page files, the pushing video program request control web page files of storing received;
The pushing video program request control web page files that shows storage;
By pushing video program request control web page files, need to select the pushing video program request file of download;
Receiving terminal for digital television is chosen in the local download file inventory that generates the descriptor that comprises selected download pushing video program request file according to above-mentioned;
The descriptor that receiving terminal for digital television comprises according to the download file inventory, the descriptor of description document in the transport stream that coupling pushes is preserved the content-data of content file in transport stream corresponding to the descriptor of coupling.
The described descriptor of pushing files for the treatment of comprises file name and file type sign;
When treating that pushing files is description document, use described file name when described, in local memory device, set up description document, the data that parse are stored in the description document of this foundation;
When treating that pushing files is content file, use described file name when described, in local memory device, set up content file, the data that parse are stored in the content file of this foundation.
Described by pushing video program request control web page files, selection needs the step of the pushing video program request file of download, also comprises: by pushing video program request control web page files, the step of downloading mode is set.
Described downloading mode comprises manual download, stops download, download is preengage in standby and delete downloading task.
The described step that downloading mode is set further comprises: the pushing video program request file store path that user selection is set.
Describedly show that to the user step of pushing video program request control web page files specifically comprises:
The pushing video program request control web page files of storage is shown to the user; Or,
After receiving the user and sending the instruction browse the control webpage, read the control web page files of storage, show to the user.
Further comprise: receiving terminal for digital television is according to the data that parse, the content file of having stored in the updated stored equipment; The method of described renewal is:
The description document of having stored in the description document of more current storage and the local memory device, exist in the deletion description document of having stored and describe but do not have the content file of description in the description document of current storage, and all exist in the deletion description document of having stored and in the description document of current storage and describe but describe size or create the inconsistent content file of modification time;
The content file of having stored in the traversal memory device, delete the content file that does not have description in the description document of current storage, and exist in the description document of the current storage of deletion and describe but size or create in the description document of modification time and current storage and describe inconsistent content file.
A kind of system of the downloading contents for PVOD (push video on demand) business, this system comprises: server end equipment and receiving terminal for digital television equipment, wherein,
Server end equipment, the descriptor for the treatment of pushing files is carried in the pushing video program request control web page files, to treat that Deta bearer in the pushing files is in described file data fragments, to be carried in the fragment description the described descriptor of pushing files for the treatment of, be packaged into grouping Basic Flow packet more than, use and divide into groups to modulate output after the Basic Flow packet composition transport stream;
Receiving terminal for digital television, receive described transport stream and carry out demodulation, obtain pushing video program request control web page files according to the type of service that the transport stream of demodulation comprises, if stored pushing video program request control web page files, the pushing video program request control web page files of definite pushing video program request control web page files that receives and storage is inconsistent, the pushing video program request control web page files of storing received; If do not store pushing video program request control web page files, the pushing video program request control web page files of storing received; The pushing video program request control web page files that shows storage; By pushing video program request control web page files, need to select the pushing video program request file of download; Be chosen in the local download file inventory that generates the descriptor that comprises selected download pushing video program request file according to above-mentioned; The descriptor that comprises according to the download file inventory, the descriptor of description document in the transport stream that coupling pushes is preserved the content-data of content file in transport stream corresponding to the descriptor of coupling.
Described server end equipment comprises: pushing video program request control web page files processing module, description document processing module, content file processing module and output module, wherein,
Pushing video program request control web page files processing module, the pushing video program request control web page files of traversal all the elements file generated webpage format, the descriptor for the treatment of pushing files is carried in the pushing video program request control web page files, is packaged into grouping Basic Flow packet;
The description document processing module, description document of traversal all the elements file generated, Deta bearer in the described description document in file data fragments, will be carried on the descriptor of described description document in the fragment description, be packaged into grouping Basic Flow packet more than;
The content file processing module in file data fragments, will be carried on the Deta bearer in the described content file to the descriptor of described content file in the fragment description, be packaged into grouping Basic Flow packet more than;
Output module is used for grouping Basic Flow packet with the grouping Basic Flow packet of the grouping Basic Flow packet of pushing video program request control web page files processing module encapsulation, the encapsulation of description document processing module and the encapsulation of content file processing module and forms modulation output after the transport stream.
Described receiving terminal for digital television comprises: receiver module, parsing module, display module, download file inventory generation module and update module, wherein,
Receiver module receives described transport stream and carries out demodulation;
Parsing module, when described when treating that pushing files is pushing video program request control web page files, if the pushing video program request control web page files that the pushing video program request that receives control web page files and memory module have been stored is inconsistent, or not storage, web page files is controlled in the pushing video program request of described reception exported to display module; When described when treating that pushing files is description document, utilize described fragment to describe from described file data fragments and parse data the description document, in memory module, set up description document, the data of the corresponding download file inventory that parses are stored in the description document of this foundation; When described when treating that pushing files is content file, utilize described fragment to describe from described file data fragments and parse data the content file, after the download file inventory coupling that generates with download file inventory generation module, in memory module, set up the content file after mating, the data that parse are stored in the content file of this foundation;
Display module receives pushing video program request control web page files, shows in the webpage mode, obtains the information of the pushing video program request file of user selection, exports download file inventory generation module to;
Download file inventory generation module comprises the download file inventory of descriptor according to the Information generation of display module output;
Update module, the description document of having stored in the description document of more current storage and the memory module, exist in the deletion description document of having stored and describe but do not have the content file of description in the description document of current storage, and all exist in the deletion description document of having stored and in the description document of current storage and describe but describe size or create the inconsistent content file of modification time; The content file of having stored in the traversal memory module, delete the content file that does not have description in the description document of current storage, and exist in the description document of the current storage of deletion and describe but size or create in the description document of modification time and current storage and describe inconsistent content file; Delete the description document of having stored in the memory module after executing described comparison and traversal.
As seen from the above technical solution, the method and system of the downloading contents that is used for PVOD (push video on demand) business of the embodiment of the invention, server end will treat that the descriptor of pushing files is carried in the PVOD control web page files, to treat that Deta bearer in the pushing files is in described file data fragments, to be carried in the fragment description the described descriptor of pushing files for the treatment of, be packaged into grouping Basic Flow packet more than; Modulation was exported after server end used grouping Basic Flow packet to form transport stream; Receiving terminal for digital television carries out demodulation to the transport stream that receives; The type of service that receiving terminal for digital television comprises according to the transport stream of demodulation is defined as PVOD control web page files; If receiving terminal for digital television stores PVOD control web page files, the PVOD control web page files of definite PVOD control web page files that receives and storage is inconsistent, the PVOD control web page files of storing received; If receiving terminal for digital television does not store PVOD control web page files, the PVOD control web page files of storing received; The PVOD control web page files that shows storage to the user; The user checks PVOD control web page files, selects the PVOD file of downloading and downloading mode is set according to the needs of self; Receiving terminal for digital television is according to the local download file inventory that generates the descriptor that comprises selected download PVOD file of being chosen in of user; The descriptor that receiving terminal for digital television comprises according to the download file inventory, the descriptor of description document in the transport stream that coupling pushes is preserved the content-data of content file in transport stream corresponding to the descriptor of coupling.Like this, generate PVOD control web page files by server end, receiving terminal for digital television can be controlled the PVOD file that web page files is selected own required download according to PVOD, strengthened user's usability, improved the flexibility of PVOD (push video on demand) business, realize by webpage, be easy to change and expansion; Further, the user can arrange download when selecting the PVOD file of required download, so that the PVOD file after downloading is collected and the file content management, has satisfied user's individual demand, thereby has improved user's experience.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
The PVOD business is carried out VOD service as target as required to satisfy the user, if the user can't oneself select the PVOD file of download, may will reduce user's experience; And along with digital television business is more and more abundanter, in the situation that value-added service is more and more important, can allow the user in abundant business, carry out the Extraordinary customization, business is become enough flexibly with abundant.The user can customize download to business in use, also can carry out personal management to the business of downloading, the program that selectivity storage user oneself likes and preservation program bookmarking, conveniently carry out playback in the future, so just can be at any time, unfettered ground carries out PVOD (push video on demand) business as required.
In the embodiment of the invention, server end is used for the PVOD control web page files of the description PVOD business of user selection according to PVOD business setting to be broadcast, system uses single frequency point, single packet banner (PID, Packet Identifier) broadcasts, receiving terminal for digital television receives PVOD control web page files, be shown to the user with form web page, it is professional that the user chooses required PVOD from the PVOD control web page files that shows, receiving terminal for digital television selects to generate the download file inventory according to user's personalization, this download file inventory file has comprised the descriptor of download file and the related professional place of different PVOD traffic flow information, then, receiving terminal for digital television carries out the selectivity reception according to the download file inventory that generates to the PVOD business that pushes from server end.Like this, by using the PVOD control page, can strengthen the interactivity with the user, improve user's experience; And control the page and realize by webpage, be easy to change and expansion; Further, the user can check that in the PVOD control page concrete the introduction also selects to download corresponding PVOD file as required in each PVOD business; And after the download, the user can carry out the file content management to download file, and the content that collection is liked is deleted unwanted content.
Fig. 3 is the method flow schematic diagram of the embodiment of the invention downloading contents that is used for PVOD (push video on demand) business.Referring to Fig. 3, this flow process comprises:
Step 301: server end will treat that the descriptor of pushing files is carried in the PVOD control web page files, to treat that Deta bearer in the pushing files is in described file data fragments, to be carried in the fragment description the described descriptor of pushing files for the treatment of, be packaged into an above PES packet.
In this step, treat that the descriptor of pushing files comprises file name and file type sign.
In the practical application, payload segment in the default PES packet encapsulation form comprises: PVOD control web page files, fragment are described and file data fragments, server end will treat that Deta bearer in the pushing files (PVOD file) is in file data fragments, the descriptor for the treatment of pushing files is carried in the fragment description, is packaged into an above PES packet.
Like this, in the embodiment of the invention, server end file to be pushed also comprises PVOD control web page files except comprising aforesaid description document and content file, and PVOD control web page files carries the descriptor for the treatment of pushing files in the mode of webpage.
In the present embodiment, server end will treat that the descriptor in the pushing files generates PVOD control web page files with webpage format.Server end can set in advance PVOD control web page files template, and the form according to the PVOD control web page files template that arranges writes the corresponding descriptor for the treatment of pushing files.
In the practical application, PVOD control web page files template can arrange relevant programs as required, for example, treating pushing files classifies and forms sorted columns and be presented at PVOD control webpage homepage, the concrete descriptor for the treatment of pushing files of correspondence in the sub-column that each sorted columns is corresponding different, sub-column.Generate PVOD control webpage about server end according to the descriptor for the treatment of pushing files, the descriptor that is about to treat pushing files is carried on the flow process in the PVOD control web page files, specifically can referring to the correlation technique document, not repeat them here.
Can carry file type sign and the version information of this PVOD control web page files of sign in the PVOD control web page files.
Step 302: modulation was exported after server end used the PES packet to form transport stream, and receiving terminal for digital television carries out demodulation to the transport stream that receives.
In this step, the descriptor in the PVOD control web page files that receiving terminal for digital television elder generation reception server end pushes receives the data of description in the description document, the content-data in the content file that last reception server end pushes again.
Step 303: the type of service that receiving terminal for digital television comprises according to the transport stream of demodulation is defined as PVOD control web page files.
In this step, the type of service (Service Type) that receiving terminal for digital television comprises according to the transport stream of demodulation determines whether the transport stream that receives is PVOD control web page files.
Step 304: if receiving terminal for digital television stores PVOD control web page files, definite PVOD control web page files that receives and the local PVOD control web page files of storing are inconsistent, the PVOD control web page files of storing received; If receiving terminal for digital television does not store PVOD control web page files, the PVOD control web page files of storing received.
In this step, whether the PVOD control web page files of the PVOD control web page files that judge to receive and storage is consistent can judge according to the version number that comprises and contrast description document, specifically can be referring to the correlation technique document.
Step 305: the PVOD control web page files that shows storage to the user.
Step 306: the user checks PVOD control web page files, selects the PVOD file of downloading and downloading mode is set according to the needs of self.
Step 307: receiving terminal for digital television is according to the local download file inventory that generates the descriptor that comprises selected download PVOD file of being chosen in of user.
Step 308: the descriptor that receiving terminal for digital television comprises according to the download file inventory, the descriptor of description document in the transport stream that coupling pushes is preserved the content-data of content file in transport stream corresponding to the descriptor of coupling.
In the present embodiment, receiving terminal for digital television obtains PVOD control web page files, the user selects the PVOD file of download from PVOD control web page files according to the needs of self, receiving terminal for digital television generates the download file inventory according to user's selection, comprising of pushing parse the corresponding data for the treatment of in the pushing files in the download file inventory the transport stream for the treatment of pushing files from server end, the data that parse are saved in local memory device.
Server end will be treated Deta bearer in the pushing files in described file data fragments, will be carried on during fragment describes the described descriptor for the treatment of pushing files, form modulation output after the transport stream, and its step is specially:
A. the payload segment that sets in advance in the PES packet encapsulation form comprises: fragment is described and file data fragments.
B. server end will be treated Deta bearer in the pushing files (PVOD file) in described file data fragments, will be carried on during fragment describes the described descriptor for the treatment of pushing files, be packaged into an above PES packet.
In this step, treat that the descriptor of pushing files comprises file name and file type sign.
The pushing files for the treatment of of server end comprises two kinds: description document and content file.The content-data that wherein comprises corresponding video and data content in the content file comprises the descriptor that the overview to server end all the elements file is described in the description document.
C. modulation was exported after server end used the PES packet to form transport stream.
Push the transport stream of PVOD control web page files and propelling movement and treat that the transport stream of pushing files uses respectively different type of service (Service Type) to identify.
So far, the method flow of the downloading contents that is used for PVOD (push video on demand) business of the embodiment of the invention finishes.
Fig. 4 is the schematic flow sheet that embodiment of the invention receiving terminal for digital television obtains PVOD control web page files.Referring to Fig. 4, this flow process comprises:
Step 401 starts PVOD professional;
In this step, when the user starts the PVOD business by receiving terminal for digital television, need at least to start PVOD service search process one time.
Entrance frequency point parameters, PVOD type of service and the PVOD Business Name of this PVOD business described in the PVOD business description in the network information table (NIT, Network InformationTable) of dominant frequency point.The PVOD business only has the business information/program specific information (SI/PSI, Service Information/Program Specific Information) of an entrance PVOD business to describe in the EPG system.
Step 402 uses the dominant frequency point frequency locking of channel search to find PVOD business channels information, by PVOD business channels frequency frequency locking search PMT, obtains PID again;
In this step, obtain NIT by search, from NIT, obtain the dominant frequency point of channel search, in the Business Stream of this dominant frequency point, search for PAT, resolve PAT and obtain the PMT of program, thereby obtain the whole PID in this stream.That is to say, receiving terminal for digital television is asked simultaneously PMT again, carries out the SDT processing in the SDT readjustment by asking PAT and SDT in the PAT readjustment, thus search PVOD frequency.
The idiographic flow of this step comprises:
A searches for and obtains NIT;
In this step, general operator can provide a dominant frequency point, sends the NIT that comprises the whole network information at this dominant frequency point, and receiving terminal for digital television obtains NIT by automatic search frequency or the artificial specific frequency of search of specifying.
After obtaining NIT, just can obtain the physical message of all streams of network, for example, the feature of the main frequency point information of each operator, modulation system, symbol rate and network itself etc.
B, inquiry obtains the PVOD business frequency information of requested service type from the NIT that obtains;
C according to the PVOD business frequency that inquiry obtains, searches for PAT in the Business Stream of this dominant frequency point, resolve PAT and obtain the PMT of program and the SDT of PVOD business;
D, the PID of record PVOD business data flow.
Above-mentioned flow process is prior art, and more detailed description can referring to the correlation technique document, not repeat them here.
Step 403, whether PVOD business corresponding to inquiry PID has renewal, if having, search PVOD control web page files starts the PVOD down loading updating, obtains PVOD control webpage.
In this step, whether PVOD business corresponding to inquiry PID has the flow process of renewal, can be that " 200910176202.0 ", denomination of invention are the patent application of " method and system that a kind of pushing video and data content are realized local ordering " referring to application number specifically, not repeat them here.
The flow process of PVOD down loading updating is as follows:
A, the STB frequency locking;
B, request PVOD business datum;
In this step, the PID of request PVOD business data flow.
C downloads PVOD fragment description document;
D downloads PVOD control web page files according to PVOD fragment description document.
In this step, server end generates PVOD control web page files in advance, and pushes to receiving terminal for digital television.
Step 404 is selected the required PVOD file of user according to the PVOD control web page files that obtains.
In this step, after STB downloads PVOD control web page files, start browser and open PVOD control web page files, according to self needs check, selection etc.STB generates corresponding download file inventory according to user's selection.
Fig. 5 is a schematic diagram of the PVOD control web page files of embodiment of the invention demonstration.This PVOD control web page files comprises popular movie theatre, music KTV and three columns of education of science and technology, and wherein, each column comprises: " state " and " in detail " button etc.Certainly, in the practical application, this PVOD control web page files also can divide multipage to show, every page shows respectively different columns.The user operates PVOD control web page files according to the needs of self.
The user is as follows to the flow process that PVOD control web page files operates according to the needs of self:
A, the detailed content of checking each column in each PVOD control web page files, the user clicks " in detail " button, then opens the detailed content of each column, selects part or all of content wherein again;
In this step, for example, the user is by clicking at " in detail " button in the popular movie theatre, and the inquiry film information is chosen the movie and video programs of needs, and receiving terminal for digital television generates the download file inventory automatically according to user's selection.
B arranges downloading mode;
In this step, downloading mode comprises manual download, stop to download, the standby reservation is downloaded and the mode such as deletion downloading task.
After in PVOD control web page files, browsing different content and selecting, receiving terminal for digital television generates a download file tabulation automatically in this locality, this download file list records the descriptor of the PVOD file that will download: frequency point information, traffic flow information and the information which file of control need to be downloaded in downloading process.
The user clicks " state " button, can check the download state of the PVOD file of record in the above-mentioned download file tabulation and the downloading mode of select File.If select the standby reservation to download, then after the user carried out standby operation, receiving terminal for digital television entered downloading process automatically, started and served and download, and downloaded complete rear receiving terminal for digital television and entered true holding state.If the user selects manually to download, then receiving terminal for digital television enters downloading process according to user's setting, starts to serve and download.
The download flow process is as follows:
A1. read the download file inventory list;
B1. frequency locking and request data stream PID;
C1. receive the fragment description document;
D1. the compared pieces description document is carried out preliminary treatment;
In this step, description document is carried out preliminary treatment belong to prior art, do not repeat them here.
E1. download the PVOD file, compared pieces description document and download file inventory list;
F1. judge whether the PVOD file of downloading is the PVOD file of selecting download, if so, execution in step g1, otherwise, return execution in step e1;
G1. download the PVOD file.
C checks download progress;
In this step, if there are a plurality of PVOD files to need to download, then the status bar in the PVOD control web page files shows respectively the progress msg that each PVOD file is downloaded.
D, deletion is downloaded.
In this step, deletion download list, deletion content.
Fig. 6 is the idiographic flow schematic diagram of embodiment of the invention step 304.Referring to Fig. 6, this flow process comprises:
Step 601, the type of service that receiving terminal for digital television comprises according to the transport stream of demodulation are defined as PVOD control web page files;
In this step, PVOD control web page files, description document are used different types of service with content file, what the type of service that receiving terminal for digital television obtains according to parsing can be determined to receive is PVOD control web page files or description document, or content file.
Whether step 602, receiving terminal for digital television inquiry store PVOD control web page files, if having, and execution in step 603, otherwise, execution in step 604;
Step 603, whether the PVOD control web page files of the PVOD control web page files that judgement receives and storage is consistent, if so, process ends, otherwise, execution in step 604;
In the practical application, after the PVOD control web page files of the PVOD control web page files of determining to receive and storage is inconsistent, can be further with in the PVOD control web page files that receives with the PVOD control web page files of storage in inconsistent information extract, and the information of extracting is formed the 2nd PVOD control web page files store and be shown to the user.
Step 604, the PVOD control web page files of storing received;
In this step, if pre-stored have PVOD control web page files or, PVOD control web page files and the 2nd PVOD control web page files, wherein, the 2nd PVOD control web page files be in the step 603 with in the PVOD control web page files that receives with the PVOD control web page files of storage in inconsistent information extract formation, then control web page files with the PVOD control web page files of current reception and current the 2nd PVOD that regenerates and upgrade respectively; Otherwise, the PVOD control web page files that server end pushes is stored.
Step 605 shows PVOD control web page files to the user;
In this step, receiving terminal for digital television behind the PVOD of storing received control web page files, according to the strategy that sets in advance, can with the PVOD control web page files of storage or, the 2nd PVOD controls web page files, shows to the user; Also can be after receiving the user and sending the instruction browse the control webpage, to read the control webpage of storage, to the user show PVOD control webpage or, the 2nd PVOD controls webpage.
Step 606, the user selects the PVOD file of required download according to the PVOD control web page files that shows, and receiving terminal for digital television generates the download file inventory according to user's selection;
In this step, the PVOD control webpage of user's browse displays, PVOD file according to required download, from the column that shows, select PVOD file corresponding in the corresponding sub-column and downloading mode is set, receiving terminal for digital television reads the descriptor of the PVOD file that is included in PVOD control netpage user selection automatically according to PVOD file and the downloading mode sign of user selection, generates the download file inventory.
Further, in order to make things convenient for the user that the PVOD file of selecting to download is carried out personal management, the program that selectivity storage user oneself likes and preservation program bookmarking, conveniently carry out playback in the future, in the embodiment of the invention, can be when the user arranges downloading mode, the PVOD file store path of user selection further is set, like this, receiving terminal for digital television is when receiving the PVOD file that pushes, store the PVOD file that this receives according to the store path of user selection, rather than be stored to default path, make things convenient for the store and manage of user individual.
Step 607, receiving terminal for digital television upgrades the description document of having preserved;
In this step, flow process and the existing step 203 of the description document that the receiving terminal for digital television renewal has been preserved are similar, specifically,
There is the pvod_stb catalogue in the receiving terminal for digital television local memory device, the description document name of having preserved under this catalogue is called files.dsc, store path is/pvod_stb/files.dsc, this description document is the description document that receiving terminal for digital television is preserved according to user selection for last round of time, and the flow process of then upgrading the description document of having preserved in this step is as follows:
1, files.dsc is renamed as files_old.dsc;
2, according to the description document title in the download file inventory, set up store path and be the description document of/pvod_stb/files.dsc, the descriptor data of download file inventory are stored in this description document;
3, contrast files.dsc and files_old.dsc, according to the content file of having preserved in the following redundant rule elimination pvod_stb catalogue:
A) have among the files_old.dsc but the content file that do not have among the files.dsc to describe;
B) among files.dsc and the files_old.dsc description is arranged but size or create the not identical content file of modification time;
4, all the elements file under the traversal pvod_stb catalogue, delete following two kinds of content files:
A) in files.dsc, there is not the content file described, but the content file of file extent .dwn by name and .sta will be processed especially, wherein .dwn is the file extension of not finishing the content file of propelling movement, .sta be the file extension of not finishing the content file institute corresponding states file of propelling movement, should make a.ts such as a.ts.dwn processes, avoid having downloaded the content file deletion of half, and for example a.ts.sta should do the a.ts processing, avoids the status file of having downloaded half has been deleted;
B) though files.dsc has description, but size or establishment modification time are described not identical content file with files.dsc;
5, according to the description of files.dsc, be pre-created description is arranged among the files.dsc, size surpasses predetermined threshold value, but non-existent content file in the receiving terminal for digital television local memory device, specific requirement is as follows:
A) create empty file and the allocated size of the file name possess this content file according to the description among the files.dsc, add extension name .dwn during establishment, create simultaneously corresponding status file, file extent is called .sta, and this document is used for describing the state of propelling movement;
B) empty file creates " zero-time " that modification time is set to describe among the files.dsc.
The purpose that is pre-created empty file in this step is to avoid receiving terminal for digital television when receiving the content file that local memory device do not have, and the establishment of larger file is costed a lot of money the time, thereby affect inbound pacing, even have little time to store this content file;
6, deletion files_old.dsc;
7, the content file number finished of version, the content file total number and pushed of record among the files.dsc (i.e. the 4th step during traversal is described consistent content file number among description and the files.dsc).
If when carrying out above-mentioned the 1st step, find existing file.dsc in the local memory device, files_old.dsc is arranged again, make mistakes (such as outage) before the 5th step in last round pushes then is described, should save as file.dsc this moment with the description document of current reception, goes on foot since the 3rd and carry out; If finding when carrying out above-mentioned the 1st step has files_old.dsc in the local memory device, then direct description document with current reception saves as file.dsc, goes on foot since the 3rd and carries out.
Step 608, receiving terminal for digital television be according to the descriptor that the download file inventory comprises, and the descriptor of description document in the transport stream that relatively receives is preserved the content-data of content file in transport stream corresponding to the descriptor of coupling.
This step specifically obtain flow process as shown in Figure 7, Fig. 7 is the idiographic flow schematic diagram of embodiment of the invention step 608.Comprise:
Step 701 receives the PES packet.
Step 702 is resolved the content file title, path, packet sequence number and the content-data that encapsulate in the PES packet.
Whether identical with this content file title step 703 judge in the local memory device content file, and if it is execution in step 704, otherwise execution in step 708.
Step 704 reads status file that should content file.
Step 705 judges by the record in the status file whether this PES packet was downloaded, if it is process ends, otherwise execution in step 706.
Step 706 stores the content-data in the PES packet in the file into.
Step 707, the content of putting down in writing in the update mode file, and process ends.
In this step, if the full content data digital television receive terminal of certain content file all receives, then delete this status file.Whether the full content data of judging a content file all receive, and need to judge by current bag sequence number and last bag sequence number of carrying in the file data fragments.
Step 708, the status file of content creating file, allocate file space, also establishment correspondence returns execution in step 706.
Step 609 detects the renewal of PAT, PMT and PVOD.
Detection in this step is the known content of this area, repeats no more here.
So far, the method flow of the downloading contents that is used for PVOD (push video on demand) business of the embodiment of the invention finishes.
In the practical business, the user can also control at PVOD the PVOD file of browsing and download in the webpage, opens media file by calling JS (javascript), uses media renderer plays media file (audio frequency and video are the TS file).
Fig. 8 is the system configuration schematic diagram of the alternative downloading contents of user during the program request of embodiment of the invention pushing video is used.Referring to Fig. 8, this system comprises: server end equipment and receiving terminal for digital television equipment, wherein,
Server end equipment, the descriptor for the treatment of pushing files is carried in the PVOD control web page files, to treat that Deta bearer in the pushing files is in described file data fragments, to be carried in the fragment description the described descriptor of pushing files for the treatment of, be packaged into an above PES packet, modulation was exported after use PES packet formed transport stream;
Receiving terminal for digital television, receive transport stream and carry out demodulation, obtain PVOD control web page files according to the type of service that the transport stream of demodulation comprises, if stored PVOD control web page files, the PVOD control web page files of definite PVOD control web page files that receives and storage is inconsistent, the PVOD control web page files of storing received; If do not store PVOD control web page files, the PVOD control web page files of storing received; The PVOD control web page files that shows storage; By PVOD control web page files, need to select the PVOD file of download; Be chosen in the local download file inventory that generates the descriptor that comprises selected download PVOD file according to above-mentioned; The descriptor that comprises according to the download file inventory, the descriptor of description document in the transport stream that coupling pushes is preserved the content-data of content file in transport stream corresponding to the descriptor of coupling.
In the present embodiment, receiving terminal for digital television receives transport stream and carries out demodulation, if describe for fragment, utilize the fragment description to parse from file data fragments and treat data corresponding to download file inventory the pushing files, the data that parse are saved in local memory device.
Server end equipment comprises: PVOD control web page files processing module, description document processing module, content file processing module and output module, wherein,
PVOD control web page files processing module, the PVOD control web page files of traversal all the elements file generated webpage format is carried on the descriptor for the treatment of pushing files in the PVOD control web page files, is packaged into the PES packet;
The description document processing module, description document of traversal all the elements file generated in file data fragments, will be carried on the Deta bearer in the description document to the descriptor of description document in the fragment description, be packaged into an above PES packet;
The content file processing module in file data fragments, will be carried on the Deta bearer in the content file to the descriptor of content file in the fragment description, be packaged into an above PES packet;
Output module is used for the PES packet that PVOD controls the PES packet of PES packet, the encapsulation of description document processing module of web page files processing module encapsulation and the encapsulation of content file processing module is formed modulation output after the transport stream.
Receiving terminal for digital television comprises: receiver module, parsing module, display module, download file inventory generation module, memory module and update module, wherein,
Receiver module receives transport stream and carries out demodulation;
Parsing module, when treating that pushing files is PVOD control web page files, if the PVOD control web page files of the PVOD that receives control web page files and memory module storage is inconsistent, or not storage, export the PVOD control web page files that receives to display module; When treating that pushing files is description document, utilize fragment to describe from file data fragments and parse data the description document, after the download file inventory coupling that generates with download file inventory generation module, in memory module, set up the description document after the coupling, the data of the corresponding download file inventory that parses are stored in the description document of this foundation; When treating that pushing files is content file, utilize fragment to describe from file data fragments and parse data the content file, after the download file inventory coupling that generates with download file inventory generation module, in memory module, set up the content file after mating, the data that parse are stored in the content file of this foundation;
Display module receives PVOD control web page files, shows to the user in the webpage mode, obtains the information of user selection PVOD file, exports download file inventory generation module to;
Download file inventory generation module comprises the download file inventory of descriptor according to the Information generation of display module output;
Update module, the description document of having stored in the description document of more current storage and the memory module, exist in the deletion description document of having stored and describe but do not have the content file of description in the description document of current storage, and all exist in the deletion description document of having stored and in the description document of current storage and describe but describe size or create the inconsistent content file of modification time; The content file of having stored in the traversal memory module, delete the content file that does not have description in the description document of current storage, and exist in the description document of the current storage of deletion and describe but size or create in the description document of modification time and current storage and describe inconsistent content file; Delete the description document of having stored in the memory module after executing described comparison and traversal.
In the practical application, memory module can be the hard disk that is built in the digital television receiver, also can be external hard disk.
The above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.