Mailing List archive

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

[vdr] Re: Suggestion: new SVDRP command to cut a recording



hm@seneca.muc.de wrote:

Helmut Auer <vdr@helmutauer.de> wrote:

I would like to implement a new SVDRP command to have a remote machine start a cutting thread. Reason:
My 2 machines share a common NFS with all the recordings on it. Cutting
should always take place on the fast server that hosts the NFS. The much
slower living room machine should not be bothered with cutting, having to
read and write everything over the WLAN. It would be easy to implement a
reccmds entry, invoking a cutting thread on the server if we had a SVDRP
command, like

RCUT <dirname>

I double that suggestion. And even better would it be to be able to choose the destination directory !

That's hard to implement I guess, mainly because it would require far
more communication between client and server. The default behaviour
(same directory, % prepended) is just okay with me. But you're welcome to
add this feature :-))
Klaus, what do you think?
It's very easy toDo - not within vdr but you can do it within a skript.
If you patch vdr with the diff below you can use the record script for adding such a feature.
The record script will be called with the name of the new directory.
Just create a link with that name and you can record an any drive you want to.
Maybe Klaus will add this little extension sometimes ...
--
Helmut Auer, helmut@helmutauer.de



diff -ru vdr-1.3.12/cutter.c vdr-patch/cutter.c
--- vdr-1.3.12/cutter.c    2004-06-13 18:04:08.000000000 +0200
+++ vdr-patch/cutter.c    2004-07-23 10:11:47.000000000 +0200
@@ -206,6 +206,7 @@
        editedVersionName = strdup(evn);
        Recording.WriteSummary();
        Recordings.AddByName(editedVersionName);
+        cRecordingUserCommand::InvokeCommand(RUC_BEFORECUTRECORDING, editedVersionName);
        cuttingThread = new cCuttingThread(FileName, editedVersionName);
        return true;
        }
diff -ru vdr-1.3.12/recording.h vdr-patch/recording.h
--- vdr-1.3.12/recording.h    2004-07-17 13:09:49.000000000 +0200
+++ vdr-patch/recording.h    2004-07-23 10:07:07.000000000 +0200
@@ -111,6 +111,7 @@
#define RUC_BEFORERECORDING "before"
#define RUC_AFTERRECORDING  "after"
#define RUC_EDITEDRECORDING "edited"
+#define RUC_BEFORECUTRECORDING "cut"

class cRecordingUserCommand {
private:




Home | Main Index | Thread Index