Verwijderd schreef op 19 augustus 2004 @ 08:54:
Ik gebruik het volgende met een PCTV pro op Mandrake:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| echo -n "#### Starting recording session #### " >> $log
date >> $log
TVOPTIONS="channel=$2:driver=v4l:width=768:height=576:outfmt=I420:amode=0:forcechan=2"
LAVCOPTS="vcodec=mpeg4:vbitrate=5000:vhq:keyint=0"
VCODEC="lavc -lavcopts $LAVCOPTS"
LAMEOPTS="mode=3:abr:br=96"
ACODEC="mp3lame -lameopts $LAMEOPTS"
FILTERS="scale=352:288,pp=md,crop=756:566:6:8"
mencoder tv:// -tv $TVOPTIONS -vop $FILTERS -oac pcm -ovc "rawyuv" -o "$3.tmp.tmp" -endpos $1 >/dev/null 2>&1 &&
mencoder -oac copy -ovc $VCODEC "$3.tmp.tmp" -o "$3.tmp" >/dev/null 2>&1 &&
rm -f "$3.tmp.tmp"
mencoder -oac $ACODEC -ovc copy "$3.tmp" -o "$3" >/dev/null 2>&1 &&
rm -f "$3.tmp"
echo -n "#### End of recording session ####" >> $log |
Ik krijg de volgende foutmeldingen:
./test3: line 1: $log: ambiguous redirect
./test3: line 2: $log: ambiguous redirect
MEncoder 1.0pre5-RPM-3.2.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster 2794 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading /home/jbru/.mplayer/codecs.conf: 73 audio & 180 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/jbru/.mplayer/mencoder
Error: option 'tv' must have a parameter!
Exiting... (error parsing cmdline)
./test3: line 15: $log: ambiguous redirect
Enig idee waar dat aan ligt ?