/[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 1 - (show annotations)
Sun Jan 4 14:41:11 2009 UTC (10 years, 5 months ago) by dpavlin
File MIME type: application/x-sh
File size: 536 byte(s)
import ~/.mplayer files needed to produce easy
to use TV from EeePC for my mother

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