I am going to talk about DVD player playable DVD videos.

Not about DVD menus that reference byte offsets on the video and
creating still images with background music that you
would have seen in movie DVDs.

I have attempted this long ago but gave it up. It worked partly but I
was more interested in creating a video stream that directly
plays the video on the DVD player connected to television.

Here goes.

$ mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
  -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \
  -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 \
  -o movie.mpg movie.avi

This command takes a movie.avi or even an mpg file or any mplayer
recognizable video file and creates an MPEG2 video output
 movie.mpg.

Now you create a DVD directory structure with this command.

$ cat dvd.xml
<dvdauthor dest="dvd">
<vmgm/>
<titleset>
     <titles>
         <pgc>
                <vob file="video1.mpg"
chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00" />
                <vob file="video2.mpg"
chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00" />
         </pgc>
    </titles>
</titleset>
</dvdauthor>


Hey, this is not python. The indentation is only for better understanding.

Now you have to run this command:

$ dvdauthor -o dvd -x dvd.xml

It will chug away and create a DVD structure with AUDIO_TS and
VIDEO_TS directories under dvd/ directory.

Now test it with xine or mplayer.

$ mplayer -dvd-device dvd/ dvd://1

Please try it. Only then you will benefit by this tip.

-Girish
-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to