Can't get Pre- / Post-processor commands work [solved]
Added by Martin Klahr almost 7 years ago
Hi all,
I'm running TvH 4.2.3-20, LibreELEC Tvh-addon v8.2.112 on a Raspberry Pi 3.
My goal is to have the recorded files on my NAS at the end.
A folder of the NAS is mounted as /storage/NASrecordings for that.
I would like to record to a local harddisk attached to the USB port first and then, after the recording is finished, move the file to the NAS.
I would like to use the Post-processor command for this.
I was thinking a post-processor command like this would do the job:
mv "%f" /storage/NASrecordings
Unfortunately it seems that neither the pre- nor the post-processor command seems to be executed.
When a recording stops, nothing seems to happen and I can't see anything in the tvh log.
I tried some simple suff like mkdir as pre- / post-processor command to see if it's a problem with my command string, but this also doesn't have any effect at all.
Could anybody help please?
Thanks! :-)
_______
Note:
Recording directy to the NAS works ok unless there's not too much traffic (since the Pi has a 100 MBit Ethernet only).
Especially because streams come from a SAT>IP server so they have to pass the Ethernet interface twice, recording two or more HD streams fails because of the traffic on the network. To solve this problem, I want to record to a local disk first and then move it to the NAS.
TvH-Recording Post-Cmd.jpg (183 KB) TvH-Recording Post-Cmd.jpg | Parameters set for "Recording" (tested cp instead of mv here) |
Replies (2)
RE: Can't get Pre- / Post-processor commands work - Added by Dave Pickles almost 7 years ago
I'm not certain but I suspect that the full path to the command to be executed has to be given - the examples in the online help are written that way, and I've done the same when using these commands. Try putting "/usr/bin/mv" instead of just "mv".
RE: Can't get Pre- / Post-processor commands work [solved] - Added by Martin Klahr almost 7 years ago
Thanks, that's what was missing!