Thursday, August 13, 2009

Suspend Windows XP from the command line

rundll32 powrprof.dll,SetSuspendState

Rip DVD and convert to XVID with mencoder

Play dvd directly from .ISO file

mplayer dvd://2 -dvd-device Grandizer.iso

Detect crop area in video (for 20 - 30 seconds)

mplayer dvd://2 -dvd-device Grandizer.iso -vf cropdetect

Take the detected crop area and place in the crop=xxx:xxx:xx:xx parameter below. Scale 704:304 is for widescreen.

mencoder dvd://2 -dvd-device Grandizer.iso -vf crop=704:464:10:10,scale=704:304 -ovc xvid -xvidencopts bvhq=1:chroma_opt:quant_type=mpeg:bitrate=1355:pass=1 -oac copy -o /dev/null ; mencoder dvd://2 -dvd-device Grandizer.iso -vf crop=704:464:10:10,scale=704:304 -ovc xvid -xvidencopts bvhq=1:chroma_opt:quant_type=mpeg:bitrate=1355:pass=2 -alang en -oac mp3lame -lameopts br=128:cbr -o grandizer_convert.avi