Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Standalone cutting, again
Hi,
I had a look at vdrcutter2 and noad and thought this is nice to build
a _simple_ (read: Unix-like small building block) shell script wrapper
around it. While experimenting with vdrcutter2, I noticed that with
"-s", files are cut in a "strange" way, like:
linvdr:/video/Drama # l Im_Schatten_der_Macht/2003-10-23.20\:43.50.50.rec/
total 1683972
drwxr-xr-x 2 root root 130 Jan 4 04:15 ./
drwxr-xr-x 4 root root 72 Jan 4 16:44 ../
-rw-r--r-- 1 root root 734017819 Oct 23 21:26 001.vdr
-rw-r--r-- 1 root root 734073385 Oct 23 22:10 002.vdr
-rw-r--r-- 1 root root 255047766 Oct 23 22:25 003.vdr
-rw-r--r-- 1 root root 1004 Jan 4 04:04 cur.logo
-rw-r--r-- 1 root root 1223624 Oct 23 22:24 index.vdr
-rw-r--r-- 1 root root 44 Jan 4 04:15 marks.vdr
-rw-r--r-- 1 root root 4 Jan 4 13:11 resume.vdr
-rw-r--r-- 1 root root 302 Oct 23 20:43 summary.vdr
linvdr:/video/Drama # l %Im_Schatten_der_Macht/2003-10-23.20\:43.50.50.rec/
total 1564888
drwxr-xr-x 2 root root 66 Jan 4 19:09 ./
drwxr-xr-x 3 root root 39 Jan 4 19:02 ../
-rw-r--r-- 1 root root 1456742227 Jan 4 19:08 001.vdr
-rw-r--r-- 1 root root 144539845 Jan 4 19:09 002.vdr
-rw-r--r-- 1 root root 1148352 Jan 4 19:09 index.vdr
-rw-r--r-- 1 root root 44 Jan 4 19:09 marks.vdr
As you see, the created file 001.vdr is 1.4 GB large, which may not
be what you want. Sven, is there any way to stick to the settings in
setup.conf? And summary.vdr isn't copied along. I also noticed the
target directory must be created first - vdrcutter2 doesn't do that.
I will now write a script that is able to find all new directories
(containing cur.logo - I am running noad from "vdr -r") and cut them
from cron at night, or when being manually invoked from the OSD. This
script will also check for available disk space before doing anything.
vdrcutter2 should return a usable exit code when (not) successful -
I can't see how it does that at the moment. Only then can we safely
remove the source directory (or even rename it to ".del"). Sven?
--
Uncle Ed's Rule of Thumb:
Never use your thumb for a rule. You'll either hit it with a
hammer or get a splinter in it.
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index