Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: running out of space during cutting



At Sunday, 17 August 2003, you wrote:

>
>Here's how I'd like to do this:
>
>--- cutter.c    2003/05/24 11:59:33     1.4
>+++ cutter.c    2003/08/17 09:04:04
>@@ -86,7 +86,7 @@
>
>            // Make sure there is enough disk space:
>
>-           AssertFreeDiskSpace();
>+           AssertFreeDiskSpace(-1);
>
>            // Read one frame:
>
>--- recording.c 2003/05/30 13:23:54     1.80
>+++ recording.c 2003/08/17 09:07:51
>@@ -95,7 +95,8 @@
>   // a file, or mark a file for removal ("delete" it), so that
>   // it will get removed during the next call.
>   static time_t LastFreeDiskCheck = 0;
>-  if (time(NULL) - LastFreeDiskCheck > DISKCHECKDELTA) {
>+  int Factor = (Priority == -1) ? 10 : 1;
>+  if (time(NULL) - LastFreeDiskCheck > DISKCHECKDELTA / Factor) {
>      if (!VideoFileSpaceAvailable(MINDISKSPACE)) {
>         // Make sure only one instance of VDR does this:
>         cLockFile LockFile(VideoDirectory);
>@@ -113,7 +114,7 @@
>                  r = Recordings.Next(r);
>                  }
>            if (r0 && r0->Remove()) {
>-              LastFreeDiskCheck += REMOVELATENCY;
>+              LastFreeDiskCheck += REMOVELATENCY / Factor;
>               return;
>               }
>            }
>
>Maybe you can run a test with this, so we don't break things when 
putting
>this into VDR 1.2.3.
>
>Klaus
>

This patch works OK for the cutting process. I have not tested it 
for a normal recording, but I don't see anything what is against 
it.

But I found another thing what could lead to a problem. VDR always 
decides to delete the oldest recording if you have all other parameters 
at the same value (lifetime...). But if you try to cut your oldest 
recording the new directory will get the same name only with a "%" 
in front of the toplevel directory for this new structure. This means 
that VDR will find this one as the next one which has to be deleted.
And it does. You can imagine the problem?

Here is a part of my message file:

Aug 17 13:58:56 stereo vdr[8896]: playing '/video/%1/2003-01-15.23.
25.50.14.rec/003.vdr'
Aug 17 13:59:00 stereo /USR/SBIN/CRON[8956]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.
hourly)
Aug 17 13:59:41 stereo vdr[8896]: low disk space while recording,
trying to remove a deleted recording...
Aug 17 13:59:41 stereo vdr[8896]: ...no deleted recording found, 
trying to delete an old recording...
Aug 17 13:59:44 stereo vdr[8896]: deleting recording /video/%%1/2003-
01-15.23.25.50.14.rec
Aug 17 13:59:44 stereo vdr[8896]: low disk space while recording,
trying to remove a deleted recording...
Aug 17 13:59:44 stereo vdr[8896]: removing recording /video/%%1/2003-
01-15.23.25.50.14.del
Aug 17 13:59:44 stereo vdr[8896]: removing /video/%%1/2003-01-15.
23.25.50.14.del/summary.vdr
Aug 17 13:59:44 stereo vdr[8896]: removing /video/%%1/2003-01-15.
23.25.50.14.del/001.vdr
Aug 17 13:59:44 stereo vdr[8896]: removing /video/%%1/2003-01-15.
23.25.50.14.del/index.vdr
Aug 17 13:59:44 stereo vdr[8896]: removing /video/%%1/2003-01-15.
23.25.50.14.del/marks.vdr
Aug 17 13:59:44 stereo vdr[8896]: removing /video/%%1/2003-01-15.
23.25.50.14.del/002.vdr
Aug 17 13:59:44 stereo vdr[8896]: removing /video/%%1/2003-01-15.
23.25.50.14.del/003.vdr
Aug 17 13:59:44 stereo vdr[8896]: removing /video/%%1/2003-01-15.
23.25.50.14.del
Aug 17 13:59:54 stereo vdr[8896]: ERROR: /video/%%1/2003-01-15.23.
25.50.14.rec//marks.vdr.$$$: No such file or directory
Aug 17 13:59:54 stereo vdr[8896]: recording to '/video/%%1/2003-01-
15.23.25.50.14.rec/004.vdr'
Aug 17 13:59:54 stereo vdr[8896]: ERROR: /video/%%1/2003-01-15.23.
25.50.14.rec/004.vdr: No such file or directory
Aug 17 13:59:54 stereo vdr[8896]: end video cutting thread
Aug 17 13:59:55 stereo vdr[8869]: ERROR: 'toFile 2' during editing 
process
Aug 17 13:59:55 stereo vdr[8869]: ERROR: Schnitt gescheitert!


Kind regards
Manfred 


--
-------                   Manfred Schmidt-Voigt                  -------
-----                  Günzweg 10, 22393 Hamburg                   -----
-----                                                              -----
-------          mailto:manfred.schmidt-voigt@mannitec.de        -------






===================================================================
EASY and FREE access to your email anywhere: http://Mailreader.com/
===================================================================




-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index