[MPlayer-users] Re: [-] TV-recording with mencoder, "video-buffer full"
Rainer Hantsch
office at hantsch.co.at
Thu Mar 3 09:16:28 CET 2005
Hello!
With great interest I read the below. I am also recording TV series since a
longer time (using a Hauppauge PCI express with mono sound :-/).
What I wonder is the bleeding and noisy red. I already reduced saturation, but
red areas appear, when I click pause, as orange and red interlaced stripes.
Some lines are red, then it comes to some orange, then back to red... The
vert. position of the orange lines varies heavily.
This only happens with RED. Other colors (or a dark red) have no noticable
effects.
My question: Is this a software problem, or is this caused by this cheap
hardware?
I attached the whole shell script at the end becase it is actually very
useful. I recorded many TV series with it, use avidemux to remove all
commercials, and finally record all series on DVD-R (as DivX4).
The script is actually started from 'at' with all of its options. Another
script (not attached) allows "programing" my "video-recorder". It asks for the
station name, date, start/endtime, checks validy, and finally makes an at-job.
If someone is interested, I can supply it, too. Works great.
Please, if someone can give me some infos what I should change, do so. I have
an Athlon 2000XP as recorder. This CPU is loaded ~60% so I can record with
below settings without loosing one frame.
What I could not get fixed is:
.) automatically detecting letterbox and cutting it away at recording time
.) maybe a better image quality (getting away this noise).
mfg
Ing. Rainer Hantsch
If someone is interested in my full recording script: Here it goes. It works
together with .xawtv configuration file.
#--------------------------------------------------------------------------
#!/bin/sh
echo "##########################################################################"
echo "## TV-RECORDER ###########################################################"
echo "##########################################################################"
echo
if [ "$1" == "" ] ; then
echo "Richtiger Aufruf: $0 \"Sendername\" \"Aufnahmedauer\" \"Filmname (optionell)\""
exit 0
fi
station=$1
dauer=$2
name=$3
# Out-Filename generieren ...
outfile=""
if [ "$name" != "" ] ; then
outfile="$name"
fi
outfile="zz_`date +%Y-%m-%d_[%a]_%H:%M`-$outfile-$station.avi"
#outfile=`echo $outfile | sed s/:/./g`
workfile=$outfile.recording
# Bildformat auswählen / berechnen von Clipping
# 1/2 PAL = 352 breit
# PAL = 720 breit Es geht aber nur max. 688 px (muß durch 16 teilbar sein)
palw=688
palh=`expr $palw "*" 3 "/" 4`
width=$palw
height=`expr $palh - 8`
# Sender auswählen
# Werte für Video und Audio einstellen
if [ "$station" != "VIDEO" ] ; then
# Einstellungen für TV-Aufzeichnung
v4lctl setstation "$station" # Sender auswählen
v4lctl color "55%" # Farbsättigung einstellen
v4lctl bright "45%" # Helligkeit
vinput=0 # Video-Input = TV
audlevel="30%"
else
# Einstellungen für Aufnehmen von Composite Video
v4lctl color "30%" # Farbsättigung einstellen war 40%
v4lctl bright "50%" # Helligkeit
vinput=1 # Video-Input = Composite Video Eingang
audlevel="25%" # Lautstärke
fi
# Audio einstellen
echo "########## Audio-Volume = $audlevel #############"
amixer -c 0 sset Line,0 $audlevel,$audlevel unmute capture
echo
# Aufnehmen...
mencoder -tv on:input=$vinput:driver=v4l:device=/dev/video0:\
width=$palw:height=$palh:fps=25:forceaudio=1:audiorate=48000:\
amode=0:forcechan=1:adevice=/dev/dsp \
-oac mp3lame -lameopts cbr:br=128 \
-ovc lavc -lavcopts vcodec=mpeg4:vqscale=3:vbitrate=1400:keyint=25 \
-vop crop=$width:$height,denoise3d=8:6:6,pp=md \
-sws 2 -ssf ls=1 \
-endpos $dauer \
-o "$workfile"
# Rename workfile to final name...
mv "$workfile" "$outfile"
#-eof-
#----------------------------------------------------------------------------
More information about the MPlayer-users
mailing list