DVD encoding using ffmpeg
Thursday, August 31st, 2006This post is just for me to remember some information on creating DVD video. If you have no idea what ths is talking about, feel free to ignore it.
This works on Windows and Linux. Feel free to do something with it if you want. I found this information on Slashdot. I take no credit for this information. Thanks to those on Slashdot for supplying it.
=================
ffmpeg -i INPUT.avi -target ntsc-dvd 01.mpg
mkdir dvd
dvdauthor -o dvd -t -v 4:3 01.mpg
dvdauthor -o dvd -T
growisofs -Z /dev/dvd -dvd-video dvd
rm -r dvd 01.mpg
=================
=================
fmpeg -i INPUT.avi -target ntsc-dvd 01.mpg
I'd recommend, as a minimum:
ffmpeg -i INPUT.avi -async 1 -hq -b 5000 -ab 224 -target ntsc-dvd -y output.vob
Play with the numbers 5000 and 224 until you have an output file that'll fit on your 4.7gb disc. The formula is (number_of_seconds * total_of_bitrates) / 8 / 1024 / 1024 = megabytes of output. You'll need it to be less than about 4400. Aim for 4200 if you don't want to have to reencode if it runs too high, because ffmpeg is a variable-rate encoder that just aims for the target you specify and often seems to overestimate how much data it can put in.
DVDAuthor's a great way of mastering the DVDs and learning to produce menus with it can be fun. Both of these programs work fine on Windows.
=================
=================
mkisofs -dvd-video -o /DVD_PROJECTS/homedvd.img /DVD_PROJECTS/HOMEDVD/
=================
I am using:
ffmpeg -i myvid.avi -async 1 -target ntsc-dvd -b 4208 -ab 160 -y 01.mpg