Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change 
notification.

The following page has been changed by 202.45.107.1:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo

------------------------------------------------------------------------------
@@ -194,6 +194,63 @@
 }}}
 
 
+-----
+
+thanks to whoever created this entry, it helped a lot!
+
+i've found that the recording server doesn't kill the mencoder process 
+when you cancel a currently recording show when run
+in this way.  
+
+the recording server sends a kill -15 to the parent shell script, which kills it off, 
+but mencoder lives on now owned by pid '1'
+
+the trap in the following script helps with this:
+
+{{{
+#!/usr/bin/ksh
+
+handler() {
+    kill -15 `ps -eaf | grep mencoder | grep -v grep | awk '{print $2}'`
+}
+
+trap handler TERM
+
+NAME=$1
+TIME=$2
+
+WIDTH=512
+HEIGHT=384
+
+MENCODER=/usr/bin/mencoder
+AUMIX=/usr/bin/amixer
+
+AUDIO_OPTIONS="alsa:adevice=hw.0,0:audiorate=44100:forceaudio"
+VIDEO_OPTIONS="driver=v4l:input=0:norm=pal:freq=0.000:width=$WIDTH:height=$HEIGHT:device=/dev/video0"
+
+TV="$VIDEO_OPTIONS:$AUDIO_OPTIONS"
+
+AUDIO="-oac mp3lame -lameopts br=128:cbr"
+VIDEO="-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1400:keyint=30 -vf lavcdeint"
+
+$AUMIX -q set Line mute
+$AUMIX -q set Line 87%
+$AUMix -Q CSet numid=12 0     # select input
+$AUMIX -q cset numid=14 87%   # capture volume
+$AUMIX -q cset numid=13 1     # turn on capture
+
+$MENCODER tv:// -tv $TV $VIDEO $AUDIO -endpos $TIME -ffourcc divx -o $NAME &
+wait
+
+$AUMIX -q cset numid=13 0
+$AUMIX -q set Line 0%
+$AUMIX -q set Line unmute
+}}}
+
+andy at thecablelounge.com
+-----
+
+
 = IVTV setup =
 
 In order to use the ivtv recording plugin have the following in your local_conf.py:


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog

Reply via email to