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/

Reddit!

Related stories


RSS Feed RSS feed logo

About


3com

3ware

alsa

alsactl

alsamixer

amd

android

apache

areca

arm

ati

auditd

awk

badblocks

bash

bind

bios

bonnie

cable

carp

cat5

cdrom

cellphone

centos

chart

chrome

chromebook

cifs

cisco

cloudera

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

dkim

dns

dos

dovecot

drac

dsniff

dvdauthor

e-mail

echo

editor

emerald

ethernet

expect

ext3

ext4

fat32

fedora

fetchmail

fiber

filesystems

firefox

firewall

flac

flexlm

floppy

flowtools

fonts

format

freebsd

ftp

gdm

gmail

gnome

google

greasemonkey

greylisting

growisofs

grub

hacking

hadoop

harddrive

hba

hex

hfsc

html

html5

http

https

hulu

idl

ie

ilo

intel

ios

iperf

ipmi

iptables

ipv6

irix

javascript

kde

kernel

kickstart

kmail

kprinter

krecord

kubuntu

kvm

lame

ldap

linux

logfile

lp

lpq

lpr

maradns

matlab

memory

mencoder

mhdd

mkinitrd

mkisofs

moinmoin

motherboard

mouse

movemail

mplayer

multitail

mutt

myodbc

mysql

mythtv

nagios

nameserver

netflix

netflow

nginx

nic

ntfs

ntp

nvidia

odbc

openbsd

openntpd

openoffice

openssh

openssl

openvpn

opteron

parted

partimage

patch

perl

pf

pfflowd

pfsync

photorec

php

pop3

pop3s

ports

postfix

power

procmail

proftpd

proxy

pulseaudio

putty

pxe

python

qemu

r-studio

raid

recovery

redhat

router

rpc

rsync

ruby

saltstack

samba

schedule

screen

scsi

seagate

seatools

sed

sendmail

sgi

shell

siw

smtp

snort

solaris

soundcard

sox

spam

spamd

spf

spotify

sql

sqlite

squid

srs

ssh

ssh.com

ssl

su

subnet

subversion

sudo

sun

supermicro

switches

symbols

syslinux

syslog

systemd

systemrescuecd

t1

tcpip

tcpwrappers

telnet

terminal

testdisk

tftp

thttpd

thunderbird

timezone

ting

tls

tools

tr

trac

tuning

tunnel

ubuntu

unbound

vi

vpn

wget

wiki

windows

windowsxp

wireless

wpa_supplicant

x

xauth

xfree86

xfs

xinearama

xmms

youtube

zdump

zeromq

zic

zlib