pantz.org banner
Puting video onto a DVD in linux
Posted on 06-01-2006 02:34:00 UTC | Updated on 06-01-2006 02:34:00 UTC
Section: /software/mencoder/ | Permanent Link

For this you will need the programs mencoder,mplayer,dvdauthor, and growisofs. On Debian based systems you can just apt-get these packages except for mplayer and mencoder. You can get those for Debian from here. Make sure you go to the mplayer website and download and install the full codecs packs. On debian theses should go in /usr/lib/win32/.

The lines below work like this: mencoder converts the video you have to a NTSC scaled DVD MPEG format. With Dvdauthor you will make a file called dvdauthor.xml and put the XML code below in it. Then edit it according to your file name and times in mins you want your chapters at. This is given to dvdauthor as a config file. The directory "DVD" is created with your new DVD files in it. You will then test this with mplayer by pointing it to your DVD directory. If it plays then it was created correctly. Growisofs is then used to burn the blank DVD in your drive in a DVD format. You will have to change the path to the DVD drive below to your DVD buring device. After it is burned you should be able to pop it in a DVD drive and it will just start playing the video. The following are an example of the commands in order.

Encode the file to DVD compliant format. Change anything you need below like aspect ratio or audio or video bitrate.

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=6000:keyint=18:aspect=4/3:acodec=ac3:abitrate=384 -ofps 30000/1001 -o converted_video.mpg video_to_convert.avi

Use this as a template for your dvdauthor XML file. Create a file called dvdauthor.xml. Put in the code below. Chapters are in minutes. If you want to put another video in then put another "vob file=..." line below the first one. Change it according to your needs.

<dvdauthor>
  <vmgm />
    <titleset>

      <titles>
        <pgc>
          <vob file="converted_video.mpg" chapters="0,5:00,10:00,15:00,20:00" />
        </pgc>
      </titles>
    </titleset>

</dvdauthor>

Run DVD author program to create the dvd.

dvdauthor -o DVD -x dvdauthor.xml

Test that the DVD works.

mplayer dvd:// -dvd-device ./DVD

Burn the DVD to a blank DVD. Change /dev/hdb below to your DVD drive.

growisofs -dvd-compat -Z /dev/hdb -dvd-video ./DVD/

Del.icio.us! | Digg Me! | Reddit!

Related stories


RSS Feed RSS feed logo
About


3com
3ware
alsa
alsactl
alsamixer
amd
apache
areca
arm
ati
auditd
awk
badblocks
bind
bios
bonnie
cable
carp
cat5
cdrom
centos
chart
cifs
cisco
comcast
commands
comodo
compiz-fusion
corsair
cpufreq
cpufrequtils
cpuspeed
cron
crontab
crossover
cu
cups
cvs
database
dbus
dd
dd_rescue
ddclient
debian
decimal
dhclient
dhcp
diagnostic
diskexplorer
disks
dns
dos
dovecot
dsniff
dvdauthor
e-mail
editor
emerald
ethernet
ext3
fat32
fedora
fetchmail
fiber
filesystems
firefox
firewall
flexlm
floppy
flowtools
fonts
format
ftp
gdm
gnome
greylisting
growisofs
grub
harddrive
hba
hex
hfsc
html
http
idl
ie
intel
ios
ipmi
iptables
irix
javascript
kde
kernel
kmail
kprinter
krecord
kubuntu
ldap
linux
logfile
maradns
matlab
memory
mencoder
mhdd
mkinitrd
mkisofs
moinmoin
motherboard
mouse
movemail
mplayer
multitail
mutt
myodbc
mysql
mythtv
nagios
nameserver
netflow
nic
ntfs
ntp
nvidia
odbc
openbsd
openntpd
openoffice
openssh
openssl
opteron
parted
partimage
patch
perl
pf
pfflowd
pfsync
photorec
php
pop3
pop3s
ports
postfix
power
procmail
proftpd
proxy
putty
pxe
python
qemu
r-studio
raid
recovery
router
rpc
rsync
samba
schedule
scsi
seagate
seatools
sed
sendmail
sgi
shell
siw
smtp
snort
solaris
soundcard
spam
spamd
sql
sqlite
squid
ssh
ssh.com
ssl
subnet
subversion
sun
supermicro
switches
symbols
syslinux
systemrescuecd
t1
tcpip
tcpwrappers
telnet
terminal
testdisk
tftp
thttpd
thunderbird
timezone
tools
tr
trac
tuning
tunnel
vi
wget
wiki
windows
windowsxp
wireless
wpa_supplicant
x
xauth
xfree86
xfs
xinearama
xmms
zdump
zic
zlib