CN101646044B - PVR set-top box and method and system for virtual partition management of time-shifting files of PVR set-top box - Google Patents
PVR set-top box and method and system for virtual partition management of time-shifting files of PVR set-top box Download PDFInfo
- Publication number
- CN101646044B CN101646044B CN 200810142284 CN200810142284A CN101646044B CN 101646044 B CN101646044 B CN 101646044B CN 200810142284 CN200810142284 CN 200810142284 CN 200810142284 A CN200810142284 A CN 200810142284A CN 101646044 B CN101646044 B CN 101646044B
- Authority
- CN
- China
- Prior art keywords
- time
- virtual partition
- shifting files
- shifting
- files
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a PVR set-top box, and a method and a system for virtual partition management of time-shifting files of PVR set-top box. The method comprises the following steps of: setting a virtual partition special for the files in a physical partition; when controlling a common record film to carry out data writing operation, allowing the common record film to only occupy the area beyond the virtual partition on the physical partition; and when controlling the time-shifting file to carry out data writing operation, allowing the time-shifting file to only occupy the virtual partition. The system comprises a virtual partition module and a write operation management module. The virtual partition module is used for setting the virtual partition of the time-shifting file in the physical partition and the write operation management module is used for controlling the time-shifting file to carry out the data writing operation only in the virtual partition and controlling the common record film to carry out data writing operation only in the area beyond the virtual partition in the physical partition. The method and the system of the invention allow the time-shifting file to carry out the data writing operation only in the virtual partition and allow the common record film to carry out data writing operation only in the other area, thereby facilitating the management of the time-shifting file.
Description
Technical field
The invention belongs to digital TV field, relate in particular to a kind of PVR set-top box and time-shifting files virtual partition management method and system.
Background technology
Along with the day by day propelling of global broadcast television digitization, Digital TV Receiving card, digital TV set-top box and the digital TV integrated machine on the computer all becomes the different approaches of promoting Digital Television.Along with television broadcasting manufacturer provides increasing such as services such as browsing page, video request program, subscription and video recording, game on line or interactive TVs, top box of digital machine also will be from the transitional product of existing collocation simulated television, becomes from now on important digital product in the average family.In order to bring better service to the consumer, increasing set-top box begins to install additional hard disk, to substitute traditional video tape recorder, the recording function of digital television program is provided, the user can be by sending an instruction, as press " recording key ", with in progress television program record to hard disk; Can be in needs, the program under having recorded is appreciated in playback.
This set-top box also provides the function of " time shift ", this function is when the user watches certain real time programme, on the backstage with this performance recording to hard disk, the program data of the current program that record on this backstage of at any time playback of user, just look like backward " traveling time ", can enjoy the programme content of having play.
On hard disk, usually need to be for time-shifting files keep one section space, this section space can not be occupied by common recorded file.And time-shifting files usually and the common record film fdisk that coexists, and like this when time-shifting files need to being transferred to common recorded file, need to carry out file and rename and get final product.
Common record film is generally linear file, namely can increase always.And time-shifting files circular file normally arranges a peaked size of file, when file rises to this peaked the time, is not just increasing, and new data begin to write from top of file.
Prior art comprises following two kinds of technical schemes:
1. in order to keep one section space to time-shifting files, preserve time-shifting files in a minute district separately at hard disk.Like this, although the space of this section time shift subregion can not taken by ordinary recording, when need to transfer time-shifting files to common record film, need to carry out copy function.When time-shifting files was larger, copy function was very consuming time.
2. time-shifting files and common record film are placed on same subregion, when can transfer time-shifting files to common record film fast like this, but owing to the space is not managed, cause and to keep required space for time-shifting files.
As: certain physics subregion 120G on the hard disk, set the file usefulness that time shift is done in the space that needs reservation 10G.Through work (as having recorded some programs) after a while, dispose time-shifting files (time-shifting files exists temporarily, changes platform at every turn and all can be eliminated, and then restarts to record new program data) after, this Physical Extents residue 12G space.At this moment, ordinary recording and time shift are recorded simultaneously and are started, and it is suitable to suppose that both produce data speed, and then time shift can only be used 6G space wherein, can't use 10G.In the correct situation, ordinary recording can only be recorded the 2G data at most again, and time-shifting files can reach the size of 10G.
Summary of the invention
Technical problem to be solved by this invention is: a kind of time-shifting files virtual partition management method of PVR set-top box is provided, and it can conveniently manage time-shifting files.
For solving technical problem of the present invention, the present invention discloses a kind of time-shifting files virtual partition management method of PVR set-top box, comprises step:
The virtual partition of time-shifting files special use is set at Physical Extents;
The control common record film is when carrying out data writing operation, make common record film only take on the Physical Extents virtual partition it
Outer zone; When the control time-shifting files carries out data writing operation, make time-shifting files only take virtual partition.
When described control common record film was carried out data writing operation, the method that makes common record film only take the zone outside the virtual partition on the Physical Extents comprised step:
A1, obtain on the current Physical Extents remaining space size;
The free space of A2, calculating common record film;
Whether the common record film size that A3, judgement need write exceeds the free space size, if do not exceed, then writes common record film, if exceed, then writes the common record film failure.
Described steps A 2 specifically comprises step:
A21, obtain the time-shifting files size that has existed on this Physical Extents;
The free space of time-shifting files on A22, the calculating virtual partition deducts the time-shifting files size that has existed for virtual partition;
A23, calculate the free space of common record film, deduct the free space of time-shifting files for remaining space.
Also comprise step after the described steps A 1:
Whether the common record film size that A4, judgement need write exceeds the remaining space size, if do not exceed, then enters steps A 2, if exceed, then writes the common record film failure.
During described control time-shifting files write operation, the method that makes time-shifting files only take virtual partition comprises step:
B1, obtain on the current Physical Extents remaining space size;
The free space of time-shifting files on B2, the calculating virtual partition;
Whether the common record film size that B3, judgement need write exceeds the available empty sound size of time-shifting files, if do not exceed, then writes time-shifting files, upgrades time-shifting files size on this Physical Extents, if exceed, then writes the time-shifting files failure.
Described step B2 specifically comprises step:
B21, obtain the time-shifting files size that has existed on this Physical Extents;
The free space of time-shifting files on B22, the calculating virtual partition deducts the time-shifting files size that has existed for virtual partition.
Also comprise step after the described step B1:
Whether the time-shifting files size that B4, judgement need write exceeds the remaining space size, if do not exceed, then enters step B2, if exceed, then writes the time-shifting files failure.
Another technical problem to be solved by this invention is: a kind of time-shifting files virtual partition management system of PVR set-top box is provided, and it can conveniently manage time-shifting files.
For solving technical problem of the present invention, the present invention discloses a kind of time-shifting files virtual partition management system of PVR set-top box, it is characterized in that: comprise the virtual partition module, be used for arranging at Physical Extents the virtual partition of time-shifting files; With the write operation administration module, be used for the control time-shifting files and only carry out data writing operation at virtual partition, the control common record film only zone outside virtual partition on the Physical Extents is carried out data writing operation.
Described virtual partition module arranges the size of virtual partition according to the largest amount of time-shifting files, and records title and the magnitude relationship of virtual partition.
Described write operation administration module comprises common record film administration module and time-shifting files administration module, described common record film administration module is used for judging whether the remaining space in the zone outside the virtual partition on the Physical Extents satisfies the write operation requirement of common record film, is then to call the file system data writing; Described time-shifting files administration module is used for judging whether the remaining space on the virtual partition satisfies the write operation requirement of time-shifting files, is then to call the file system data writing.
Another technical problem to be solved by this invention is: a kind of PVR set-top box is provided, and it can conveniently manage time-shifting files.
For solving technical problem of the present invention, the present invention discloses a kind of PVR set-top box, comprises hard disk, PVR document recording module, file system module and time-shifting files virtual partition management system, and described hard disk is used for storage common record film and time-shifting files; The data that described PVR document recording module is recorded for generation of needs, and decision is carried out, and common record film is recorded or time-shifting files is recorded; Described file system module provides common record film and time-shifting files data writing operation according to calling of virtual partition management system; Described time-shifting files virtual partition management system comprises the virtual partition module, is used for arranging at Physical Extents the virtual partition of time-shifting files; With the write operation administration module, be used for the control time-shifting files and only carry out data writing operation at virtual partition, the control common record film only zone outside virtual partition on the Physical Extents is carried out data writing operation.
Compared with prior art, the present invention has following beneficial effect: the present invention marks the virtual partition of a time-shifting files special use at a certain Physical Extents of the hard disk of PVR set-top box, other residue subregions are for common record film, when making time-shifting files carry out data writing operation, only carry out at this virtual partition, when common record film is carried out data writing operation, only carry out at the residue subregion, thus convenient management time-shifting files; And because time-shifting files and common record film on the Same Physical subregion, in the time of need to transferring time-shifting files to common record film, can be carried out fast rename operation, thereby can transfer time-shifting files to common record film fast.
Description of drawings
Fig. 1 is system construction drawing provided by the invention;
Fig. 2 is common record film write operation flow chart provided by the invention;
Fig. 3 is time-shifting files write operation flow chart provided by the invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
The PVR set-top box comprises hard disk, PVR document recording module, time-shifting files virtual partition management system and file system module in the present embodiment, and wherein, hard disk is used for storage common record film and time-shifting files; The data that PVR document recording module is recorded for generation of needs, and decision is carried out, and common record film is recorded or time-shifting files is recorded; Time-shifting files virtual partition management system is used for receiving the data writing operation request of PVR document recording module, and carry out virtual partition management to writing data, the size of control time-shifting files and common record film, data writing operation is carried out validity judgement, if can write, then call file system module and realize data writing operation; File system module provides the operations such as file read-write.
As shown in Figure 1, the time-shifting files virtual partition management system that present embodiment provides comprises the virtual partition module, is used for arranging at Physical Extents the virtual partition of time-shifting files; With the write operation administration module, be used for the control time-shifting files and only carry out data writing operation at virtual partition, the control common record film only zone outside virtual partition on the Physical Extents is carried out data writing operation.
Wherein, the virtual partition module arranges the size of virtual partition according to the largest amount of time-shifting files, and records title and the magnitude relationship of empty minute subregion.
The write operation administration module comprises common record film administration module and time-shifting files administration module, described common record film administration module is used for judging whether the remaining space in the zone outside the virtual partition on the Physical Extents satisfies the write operation requirement of common record film, is then to call the file system data writing; Described time-shifting files administration module is used for judging whether the remaining space on the virtual partition satisfies the write operation requirement of time-shifting files, is then to call the file system data writing.
Present embodiment also provides a kind of time-shifting files virtual partition management method of PVR set-top box, comprises step:
The virtual partition of time-shifting files special use is set at Physical Extents;
The control common record film is when carrying out data writing operation, make common record film only take on the Physical Extents virtual partition it
Outer zone; When the control time-shifting files carries out data writing operation, make time-shifting files only take virtual partition.
Wherein, the control common record film step of carrying out data writing operation specifically comprises:
The size of data of as shown in Figure 2, establishing the common record film that need write is A.
S100, obtain on the current Physical Extents remanence disk space size, be B;
The free space of S102, calculating common record film is F;
Step S102 specifically comprises step:
S1020, obtain the time-shifting files size C that has existed on this Physical Extents;
S1022, obtain the big or small D of virtual partition on this Physical Extents;
The free space E of time-shifting files on S1024, the calculating virtual partition deducts time-shifting files size C, the i.e. E=D-C that has existed for virtual partition D;
S1026, calculate the free space F of common record film, for remaining space B deducts the free space E of time-shifting files, i.e. F=B-E.
Whether the common record film size A that S104, judgement need write exceeds free space size F, if do not exceed, then writes common record film, if exceed, then writes the common record film failure.
In addition, also comprise step after the step S100:
Whether the common record film size A that S101, judgement need write exceeds remaining space size B, if do not exceed, then enters step S102, if exceed, then writes the common record film failure.
Wherein, the step of control time-shifting files write operation specifically comprises:
As shown in Figure 3, establishing the time-shifting files size of data that need write is A '
S200, obtain on the current Physical Extents remanence disk space size B ';
The free space E ' of time-shifting files on S202, the calculating virtual partition;
Step S202 specifically comprises step:
S2020, obtain the time-shifting files size C ' that has existed on this Physical Extents;
S2022, obtain the big or small D ' of virtual partition on this Physical Extents;
The free space E ' of time-shifting files on S2024, the calculating virtual partition is for virtual partition D ' deducts the time-shifting files size C ' that has existed, i.e. E '=D '-C '.
Whether the time-shifting files size A ' that S204, judgement need write exceeds the free space size E ' of time-shifting files, if do not exceed, then writes time-shifting files, upgrades time-shifting files size C '=C '+A on this Physical Extents, if exceed, then writes the time-shifting files failure.
In addition, also comprise step after the step S200:
Whether the time-shifting files size that S201, judgement need write exceeds the remaining space size, if do not exceed, then enters step S202, if exceed, then writes the time-shifting files failure.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. the time-shifting files virtual partition management method of a PVR set-top box is characterized in that: comprise step:
The virtual partition of time-shifting files special use is set at Physical Extents;
When the control common record film is carried out data writing operation, make common record film only take the zone outside the virtual partition on the Physical Extents; When the control time-shifting files carries out data writing operation, make time-shifting files only take virtual partition.
2. the time-shifting files virtual partition management method of PVR set-top box as claimed in claim 1, it is characterized in that: when described control common record film was carried out data writing operation, the method that makes common record film only take the zone outside the virtual partition on the Physical Extents comprised step:
A1, obtain on the current Physical Extents remaining space size;
The free space of A2, calculating common record film;
Whether the common record film size that A3, judgement need write exceeds the free space size, if do not exceed, then writes common record film, if exceed, then writes the common record film failure.
3. the time-shifting files virtual partition management method of PVR set-top box as claimed in claim 2, it is characterized in that: described steps A 2 specifically comprises step:
A21, obtain the time-shifting files size that has existed on this Physical Extents;
The free space of time-shifting files on A22, the calculating virtual partition deducts the time-shifting files size that has existed for virtual partition;
A23, calculate the free space of common record film, deduct the free space of time-shifting files for remaining space.
4. the time-shifting files virtual partition management method of PVR set-top box as claimed in claim 2 is characterized in that: also comprise step after the described steps A 1:
Whether the common record film size that A4, judgement need write exceeds the remaining space size, if do not exceed, then enters steps A 2, if exceed, then writes the common record film failure.
5. the time-shifting files virtual partition management method of PVR set-top box as claimed in claim 1, it is characterized in that: during described control time-shifting files write operation, the method that makes time-shifting files only take virtual partition comprises step:
B1, obtain on the current Physical Extents remaining space size;
The free space of time-shifting files on B2, the calculating virtual partition;
Whether the time-shifting files size that B3, judgement need write exceeds the free space size of time-shifting files, if do not exceed, then writes time-shifting files, upgrades time-shifting files size on this Physical Extents, if exceed, then writes the time-shifting files failure.
6. the time-shifting files virtual partition management method of PVR set-top box as claimed in claim 5, it is characterized in that: described step B2 specifically comprises step:
B21, obtain the time-shifting files size that has existed on this Physical Extents;
The free space of time-shifting files on B22, the calculating virtual partition deducts the time-shifting files size that has existed for virtual partition.
7. the time-shifting files virtual partition management system of a PVR set-top box is characterized in that: comprise the virtual partition module, be used for arranging at Physical Extents the virtual partition of time-shifting files; With the write operation administration module, be used for the control time-shifting files and only carry out data writing operation at virtual partition, the control common record film only zone outside virtual partition on the Physical Extents is carried out data writing operation.
8. the time-shifting files virtual partition management system of PVR set-top box as claimed in claim 7 is characterized in that: described virtual partition module arranges the size of virtual partition and title and the magnitude relationship of record virtual partition according to the largest amount of time-shifting files.
9. the time-shifting files virtual partition management system of PVR set-top box as claimed in claim 7, it is characterized in that: described write operation administration module comprises common record film administration module and time-shifting files administration module, described common record film administration module is used for judging whether the remaining space in the zone outside the virtual partition on the Physical Extents satisfies the write operation requirement of common record film, is then to call the file system data writing; Described time-shifting files administration module is used for judging whether the remaining space on the virtual partition satisfies the write operation requirement of time-shifting files, is then to call the file system data writing.
10. a PVR set-top box comprises hard disk, PVR document recording module, file system module, it is characterized in that: also comprise time-shifting files virtual partition management system, described hard disk is used for storage common record film and time-shifting files; The data that described PVR document recording module is recorded for generation of needs, and decision is carried out, and common record film is recorded or time-shifting files is recorded; Described file system module provides common record film and time-shifting files data writing operation according to calling of virtual partition management system; Described time-shifting files virtual partition management system comprises the virtual partition module, is used for arranging at Physical Extents the virtual partition of time-shifting files; With the write operation administration module, be used for the control time-shifting files and only carry out data writing operation at virtual partition, the control common record film only zone outside virtual partition on the Physical Extents is carried out data writing operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810142284 CN101646044B (en) | 2008-08-05 | 2008-08-05 | PVR set-top box and method and system for virtual partition management of time-shifting files of PVR set-top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810142284 CN101646044B (en) | 2008-08-05 | 2008-08-05 | PVR set-top box and method and system for virtual partition management of time-shifting files of PVR set-top box |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101646044A CN101646044A (en) | 2010-02-10 |
CN101646044B true CN101646044B (en) | 2013-02-13 |
Family
ID=41657733
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810142284 Expired - Fee Related CN101646044B (en) | 2008-08-05 | 2008-08-05 | PVR set-top box and method and system for virtual partition management of time-shifting files of PVR set-top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101646044B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357462B (en) * | 2015-12-24 | 2019-04-12 | 深圳市九洲电器有限公司 | A kind of PVR subregion method for recording and system |
CN106202350A (en) * | 2016-07-05 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | A kind of distributed file system simplifies the method and system of configuration automatically |
CN107613321A (en) * | 2016-07-12 | 2018-01-19 | 北京数码视讯科技股份有限公司 | A kind of method of program recording and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6286087B1 (en) * | 1998-04-16 | 2001-09-04 | Fujitsu Limited | Method, apparatus, medium for storing and controlling accessibility to a removable medium |
CN1429451A (en) * | 2000-05-12 | 2003-07-09 | 提维股份有限公司 | Method for improving bandwidth efficiency |
CN1643895A (en) * | 2002-02-12 | 2005-07-20 | 汤姆森特许公司 | Allocation of recording space per user and application |
CN1867068A (en) * | 1998-07-14 | 2006-11-22 | 联合视频制品公司 | Client-server based interactive television program guide system with remote server recording |
CN101189865A (en) * | 2005-03-30 | 2008-05-28 | 诺基亚西门子通信有限责任两合公司 | Method and arrangement for storing and playing back TV programmes |
-
2008
- 2008-08-05 CN CN 200810142284 patent/CN101646044B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6286087B1 (en) * | 1998-04-16 | 2001-09-04 | Fujitsu Limited | Method, apparatus, medium for storing and controlling accessibility to a removable medium |
CN1867068A (en) * | 1998-07-14 | 2006-11-22 | 联合视频制品公司 | Client-server based interactive television program guide system with remote server recording |
CN1429451A (en) * | 2000-05-12 | 2003-07-09 | 提维股份有限公司 | Method for improving bandwidth efficiency |
CN1643895A (en) * | 2002-02-12 | 2005-07-20 | 汤姆森特许公司 | Allocation of recording space per user and application |
CN101189865A (en) * | 2005-03-30 | 2008-05-28 | 诺基亚西门子通信有限责任两合公司 | Method and arrangement for storing and playing back TV programmes |
Also Published As
Publication number | Publication date |
---|---|
CN101646044A (en) | 2010-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101420603B (en) | Method for implementing media distribution, positioning by segmented memory and stream media system thereof | |
US7522817B2 (en) | Method and apparatus for storing content | |
US7680993B2 (en) | Local digital asset storage management technique | |
US6636953B2 (en) | Receiving apparatus that receives and accumulates broadcast contents and makes contents available according to user requests | |
CN102415095B (en) | Record and present the digital video recorder of the program formed by the section of splicing | |
US20120141095A1 (en) | Video preview based browsing user interface | |
CN1235473A (en) | Digital multimedia recorder with enhanced EPG-related functions | |
CN102547193A (en) | Information processing apparatus, information processing method, and program | |
CN100558157C (en) | A kind of wheel at Web TV broadcast the method and system that break for commercialsy in the program | |
US20090245756A1 (en) | Managing synchronization of media programs to portable devices | |
CN104394457A (en) | Implementation method of television program scheduled recording and automatic downloading service system | |
CN101646044B (en) | PVR set-top box and method and system for virtual partition management of time-shifting files of PVR set-top box | |
CN101383936A (en) | Content recorder/player | |
CN104219544A (en) | Method and system for dynamically scheduling IPTV service resources | |
US7542655B2 (en) | Saving presented clips of a program | |
JP2013517715A (en) | Method and apparatus for recording multimedia broadcast program | |
US20100131982A1 (en) | Method for generating and accessing scheduled program list and multimedia device for the same | |
CN101848366A (en) | Filing and program transmitting method and equipment of time shift slicing files in IPTV (Internet Protocol Television) system | |
WO2016129221A1 (en) | Content reproduction system, video recording apparatus, terminal apparatus, and content reproduction method | |
CN102194504A (en) | Media file play method, player and server for playing medial file | |
US20130054739A1 (en) | Data transmission system and data transmission method | |
CN101212622B (en) | Tshift transcription method, system, and digital TV receiver | |
CN102369575A (en) | Drive device, content recording/playback device, synchronization method, program, and recording medium | |
CN101312060A (en) | Video frequency file conversion device capable of programming and scheduling | |
CN102369576A (en) | Drive device, content recording/playing device, data writing method, program, and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1142464 Country of ref document: HK |
|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130213 Termination date: 20150805 |
|
EXPY | Termination of patent right or utility model | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1142464 Country of ref document: HK |