MonkeyBrains.net/~rudy/example Random examples

Make a DVD

HOW-TO: FreeBSD + tovid

  • use tovid to resize videos... pkg_add -r tovid; install package if you need to rehash; refresh you path so you can type the next command tovid -ffmpeg -noask -in 'SomeVideo.avi' -out 'mpg/SomeVideo' -vbitrate 2000 (You may want to do 3000 for the bitrate -- remember you DVD has about a 4.5GB limit)
  • use tovidgui to create the layout - pick wav file for audio to convert an mpg to a wav file, use this command: ffmpeg -i Desktop/GeorgeBushDoesntCareAboutBlackPeople.mp3 MenuMusic.wav - any image for background (make it pretty!) - select the video clip(s) you made with the tovid command above.
  • Edit the /tmp/FileJustMade.xml from tovidgui and change the output directory in the first <tag>. <dvdauthor dest="/home/rudy/TheBikeRodeo">
  • makedvd /tmp/FileJustMade.xml Note: I got an error, and had to add <button>jump title 1;</button> to the XML file for the 'back' button... so, when I put the DVD in if I hit the back button, I just start the movie (as there is no back!)
  • Most likely, you have an inexpensive DVD burner that comes up as acd0. You need to get it to look like a SCSI device to use the DVD burning command (growisofs). To do that, there is a kernel model that talks to the IDE CD/DVD ROM writer through a pseudo SCSI interface. kldload atapicam tail /var/log/messages (you should see /dev/cd0) chmod g+w /dev/cd0 chmod g+rw /dev/pass0 (oh, and make sure you are in the 'operator' group... edit /etc/group)
  • growisofs -Z /dev/cd0 -dvd-compat -dvd-video -use-the-force-luke=dao /home/rudy/NewDVD you can add 'speed=16' but growisofs will 'auto detect' the max speed (DVD technology is better than cdrom!) -- I get about 12x on box. Note: Don't worry about the 'LUN appears to be stuck' problem. It get's unstuck by itself... 73.91% done, estimate finish Wed May 23 16:51:08 2007 74.23% done, estimate finish Wed May 23 16:51:07 2007 :-? the LUN appears to be stuck writing LBA=118310h, keep retrying in 47ms :-? the LUN appears to be stuck writing LBA=118310h, keep retrying in 47ms 74.55% done, estimate finish Wed May 23 16:51:35 2007
  • Need to host a server? Check out my kickass ISP: MonkeyBrains.Net
    If you want an ASUS barebones machine built out for you and installed with FreeBSD, I'll do it for the cost of the machine plus 100 dollars. 415.974.1313 ask for Rudy.