onsdag 22 juli 2009

Create DVD from avi on FreeBSD

Create DVD from avi
A simple step thru list for converting an avi file to a playable DVD.

Fmpeg video converter to set aspect ratio, pal dvd television standard etc:

ffmpeg -i in.avi -y -target pal-dvd -sameq -aspect 16:9 out.mpg


Create the dvd:

dvdauthor --title -o dvd -f out.mpg


Creates the table of contents file instead of a titleset:

dvdauthor -o dvd -T


Create iso:

mkisofs -dvd-video -o dvd.iso dvd/


Burn the dvd:

growisofs -dvd-video -Z /dev/cd0=imagefile.iso

DVD burning in FreeBSD

Enable atapicam:
If you bought a cheap IDE DVD recorder you need to enable atapicam before you can burn DVD with FreeBSD, so it can be accessed through the SCSI subsystem. You could either compile a new kernel to support or simply add the following line to your loader.config.
Add:
atapicam_load="YES"

to: /boot/load.config

Compile makeisofs:
cd /usr/ports/sysutils/cdrtools/
make install clean


Compile growisofs:
cd /usr/ports/sysutils/dvd+rw-tools/
make install clean


Burn the DVD:
cd growisofs -dvd-compat -Z /dev/cd0=dvd.iso