Tvheadend recording management » History » Version 4
Hein Rigolo, 2010-03-14 20:41
initial basic guidelines
1 | 1 | Hein Rigolo | Tvheadend has a DVR/PVR function. At the moment the recording management is extreemly basis. This page will describe possible options for improving this and the design decisions that need to made to implement these improvements |
---|---|---|---|
2 | 2 | Hein Rigolo | |
3 | == Initial thoughts == |
||
4 | |||
5 | Here are some initial thoughts that we might need to find answer to; |
||
6 | |||
7 | 3 | Hein Rigolo | * should you be able to delete a recording from the OS and how should the DVR handle that |
8 | * how do we keep tvheadend from filling up your hdd |
||
9 | * should you need to specify a certain "savety" disc space |
||
10 | * what if an other process is filling up the hdd .. should that mean we keep deleting recordings ? |
||
11 | * when do we "expire"/delete recordings? when a new recordign starts make enough room to completly record it? |
||
12 | * what is there are 3 or 4 concurent recordings? how do we know we have enought space |
||
13 | * do we keep track of the estimated bit-rates of the various channels to beter figure out the needed space for a recording? (difference between SH and HD etc) |
||
14 | * take the duration of a recording/size of recording and use that as a measure (average over time??) |
||
15 | * estimaed recording lenght * estimated bit-rate to determine how much we need to clear |
||
16 | * do we need to keep track of the amount of free-space during a recording and possible delete more old recordings when needed |
||
17 | * do we need to test the write speed of the filesystem that is used to store recordings? in order to prevent too many concurrent recordings? |
||
18 | * do we want to support multiple storage locations? |
||
19 | * or do we say: if you have a need to record a large number of concurent recordings .. make sure your filesystem is up to it |
||
20 | * do we want to have support linking multiple instances of tvheadend to schedule recordings across multiple backends? |
||
21 | 2 | Hein Rigolo | |
22 | 3 | Hein Rigolo | * how about conflict handling? I have 2 capture cards but I want to record from 3 transportstreams how to manage that ? |
23 | * we also need to "re-arrange" all previous scheduled recordings if a new request comes in |
||
24 | * do we directly link a recording schedule already to a capture card? so that we can keep track and use that when working out possible conflicts? |
||
25 | * what if there are multiple clients making a schedule recording request. Do we keep one "on hold" untill the first one is completed and scheduled? |
||
26 | * who solves the conflict? can everybody make that decision? should that be a "user rights" option? |
||
27 | 1 | Hein Rigolo | * how do we inform the original requested user if his or her recording has been removed in order solve a conflict? |
28 | 4 | Hein Rigolo | |
29 | == basic guidelines == |
||
30 | |||
31 | in order to keep things focused we need to have a set number of basic guidelines for this: |
||
32 | |||
33 | * Tvheadend will only use one location for storing recordings. |
||
34 | * Tvheadend will make as many concurent recordings as requested. If the filesystem can not keep up, you need to fix that on the linux side. |
||
35 | * Tvheadend will clear enough room to store the expected recording size at the start of the recording. It will take into account already running recordings. |
||
36 | * Tvheadend will determine free disc space only on the recording location filesystem. |
||
37 | * Tvheadend will determine expected recording size based on previous recordings (of that service, or total average when no recordings are known) |
||
38 | |||
39 | * Tvheadend will not use a database to store information about recordings. |
||
40 | * Tvheadend recordings should contain enough metadata to show meaningfull information via the webGUI. |
||
41 | * Tvheadend can be used to manually delete recordings via the webGUI |
||
42 | * Tvheadend will remove recordings from the webGUI when delete from the commandline/other tools |
||
43 | * Tvheadend will remove recording when moved away from the recoring location. |