Tuesday, October 30, 2007

convert avi to mpeg

to convert avi files to mpeg2 - do the following

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,harddup \
-srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=2500:keyint=15:\
acodec=ac3:abitrate=192 -ofps 25 -o your_video.mpg your_video.avi

ORIGINAL:
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,harddup \
-srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=2500:keyint=15:aspect=16/9:\
acodec=ac3:abitrate=192 -ofps 25 -o your_video.mpg your_video.avi

Saturday, October 06, 2007

Joystick settings in Linux

1. Get the jscal tool from portage (equery joystick then emerge package)
2. In KDE control panel, go to Joystick and calibrate.
3. run jscal -p /dev/input/js0 >> /etc/conf.d/local.start