[MEncoder-users] Record tv so that Mac OS X DVD player can play it.

Alex Polite notmyprivateemail at gmail.com
Thu Feb 3 12:58:05 CET 2005


Hi.

I use mencoder to record tv shows and play them in mplayer.

Now I want to change my recording script so that it will produce
output that can be played in the DVD player app of Mac OS X.



Here's what my script looks like now:


#!/bin/bash

CHAN=$1
TIME=$(($2 + 300))
NAME=$3

BITRATE=1500

#good tradeoff between quality/speed.
WIDTH=640
HEIGHT=480

MENCODER=/usr/bin/mencoder
CHRT="sudo chrt -f 95"
AUDIO="-oac mp3lame"
VIDEO="-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE -vf
pp=lb,crop=636:480:2:0"


DSP="audiorate=44100:adevice=/dev/dsp1"
TV="-tv driver=v4l2:device=/dev/video0:input=0:chanlist=europe-west:$DSP:width=$WIDTH:height=$HEIGHT:outfmt=yuy2"

cd /mnt/opt2/spare
alsactl restore -f /etc/recordmixersettings 1
$CHRT $MENCODER $TV $VIDEO $AUDIO -endpos $TIME -o "$NAME"  tv://$CHAN
$MENCODER -saveidx "$NAME_index.idx" "$NAME"


-- 
Alex Polite
http://polite.se




More information about the MEncoder-users mailing list