summaryrefslogtreecommitdiff
path: root/vdr-auto
blob: d2946a33dd6fb487d2aff3bccd0cc08d7ad7e1e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Shell script to handle VDR post-recording actions, like noad, H264 conversions
# Based on VDR example
#------------------------------------------------------------------------------
# Revision History
#
# Removed --asd as it was moving the cut marks to the wrong places
# Removd -C (scene change detection) which seems to mess up marks unecessarily
#------------------------------------------------------------------------------
#
# $Log: vdr-auto,v $
# Revision 1.1  2016/09/01 12:35:23  richard
# Initial import
#
#------------------------------------------------------------------------------

case "$1" in
     before)
            echo "Before recording $2"
            ;;
     started)
            echo "Started recording $2"
			/usr/local/bin/noad -s /etc/vdr/noadstat.csv -o -c $1 $2
            ;;
     after)
            echo "After recording $2"
            #vdr forks this script, noad forks itself, vdr-convert doesn't
            /usr/local/bin/noad -s /etc/vdr/noadstat.csv -o -c  $1 $2
            /usr/local/bin/vdr-convert -k -d -i $2 &
            ;;
     edited)
            echo "Edited recording $2"
            ;;
     deleted)
            echo "Deleted recording $2"
            ;;
     *)
            echo "ERROR: unknown state: $1"
            ;;
esac

# --------- $Id: vdr-auto,v 1.1 2016/09/01 12:35:23 richard Exp $ ---------- END