/[mplayer-eee-tv]/record.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /record.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (show annotations)
Tue Oct 27 00:08:44 2009 UTC (14 years, 5 months ago) by dpavlin
File MIME type: application/x-sh
File size: 547 byte(s)
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

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26