Parent Directory | Revision Log
don't kill running mplayer (to enable 1@channel and 2@channel recording), support spaces in channel and file names
1 | #!/bin/sh |
2 | |
3 | prog=RTL |
4 | if [ ! -z "$1" ] ; then |
5 | prog=$1 |
6 | fi |
7 | uid=`date +%Y-%m-%d_%H:%M:%S` |
8 | file=/mnt/usb/$uid-$prog |
9 | |
10 | mount | grep -q ' /mnt/usb ' || mount /mnt/usb || exit |
11 | |
12 | #killall mplayer |
13 | |
14 | function info() { |
15 | echo $1 | aosd_cat & |
16 | echo $1 | logger -t INFO |
17 | } |
18 | |
19 | info "Recording started to $file" |
20 | |
21 | ( |
22 | mplayer -ni -quiet "dvb://$prog" -dumpstream -dumpfile "$file.mpg" \ |
23 | | logger -t mplayer-record |
24 | info "Recording of $file stopped "`ls -al "$file"` |
25 | ) & |
26 | |
27 | sleep 1 |
28 | |
29 | mplayer -cache 100 -ni -quiet "$file.mpg" -edl "$file.edl" \ |
30 | | logger -t mplayer |
31 | |
32 | stty sane |
Name | Value |
---|---|
svn:executable |
ViewVC Help | |
Powered by ViewVC 1.1.26 |