[MPlayer-users] mencoder & cron

Szabo Akos fonya at mail.fatav.hu
Mon Apr 28 12:35:31 CEST 2003


On Mon, 28 Apr 2003, Szabo Akos wrote:

> Try it from command line, I think it will not work.

Sorry, I misinform You, my hand too fast :(
So, I use crontab/mencoder this way:
crontab -l output:

03 18 * * 1-5 /home/fonya/bin/menctv 23 3600 /opt/VCR/STV

cat menctv:
#!/bin/bash
#
# Usage: Channel_number time_in_sec filename_with_path

#Audio settings for recording
/usr/bin/aumix  -l R
/usr/bin/aumix  -l 62

/usr/bin/X11/v4lctl volume 65500

/usr/local/bin/mencoder \
tv://$1 \
-tv 
driver=v4l:norm=PAL:chanlist=europe-west:width=384:height=288:volume=60535:device=/dev/video0:adevice=/dev/dsp 
\
-vop pp=lb,pp=de/tn:1:2:3 \
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 \
-oac mp3lame -lameopts abr:br=96:mode=0  \
-endpos $2 \
-o $3_`/bin/date +%m%d.avi`

#Audio settings for xawtv, and noise
/usr/bin/X11/v4lctl volume 55000
/usr/bin/X11/v4lctl volume mute on
/usr/bin/aumix  -m R


-- 
Ciao:
	Fonya

     Amióta NT-t installáltam a porszívómra, semmi szívás nincs vele.
                PGP key ID F86614E5, GPG key ID 83AD9365



More information about the MPlayer-users mailing list