elfs: (Default)
[personal profile] elfs
I have figured out how to burn anime DVDs, with a decent menu, under Linux. Those have always been my two bugaboos-- I could create working VOBs, and I could create menus, but the two programs that did these things didn't agree with one another.

Then I found the undocumented feature. So here's the trick.

First, have the traditional suite of video processing tools: mplayer, toolame, transcode, ffmpeg, sox. You'll want the encoder portion of mplayer, mencoder, and transcode must install mplex. You'll also need dvd rw tools and cdrecord for mkisofs.

Okay, are we ready? Good. Here are two more things you'll need: avitovob, and mkdvd. Mkdvd runs in pike, so you might need that too.

By the way, this process takes about twenty gigabytes of free disk space. Check ahead.

First, download between six to eight episodes of your favorite anime and have them ready. Also, find a nice wallpaper for your anime. You'll want it for the background for your video. It's best if the wallpaper has the name of the series on it somewhere.

Make backups of your episodes. Don't use the originals. Nothing happens to them during the processing, but I accidentally deleted four episodes of Stellvia one night because I was tired. Rename them so they read "Episode 01.avi" or "Chapter 01.avi". Something useful like that. Remember, the wallpaper should be informative.

Now, the simple part is this:

avitovob Episode*.avi

This takes about five to six hours on my 2.4GhZ athlon. Once it's done, you'll be ready for the next part: generating the menu and the DVD master. This was where I got hung up. I was trying to use mkdvd to do this, but mkdvd tried to reprocess the MPEGs again, not what I wanted. The secret is this: the generated .mpg files need to be renamed to .vob. That's it. Then mkdvd leaves them alone. I have a script that does that, taking any perl regular expression and renaming files according to it:

rn 's/\.mpg/\.vob/' Episode*.mpg

Then run mkdvd:

mkdvd --aspect=4:3 --nomenutitle -i wallpaper.png --ntsc Episode_*.vob 2> /dev/null

Note the --nomenutitle entry. That's why the wallpaper's so important. This (and fiddling with the ypos, fontsize, and fontname arguments) can lead to having very pretty and very functional wallpapers. Also note the 2> /dev/null suffix. Transcode's not very smart, and the aspect ratio flag it embeds in your produced mpegs confuses the heck out of mkdvd, throwing warnings all over the place. You want to send those warning somewhere other than your console; that'll just slow things down.

Finally, prep and burn the mastered DVD (obviously, substitute the correct device for the -Z target). If you want, you can do the mkisofs and growisofs arguments together, as documented in the man pages, but I have found that that sometimes gives me coasters. This is more reliable.

cd dvd
chown -R root:root AUDIO_TS VIDEO_TS
chmod 500 AUDIO_TS VIDEO_TS
chmod 400 VIDEO_TS/*
cd ..
mkisofs -dvd-video -o dvd.iso dvd/
growisofs -dvd-compat -Z /dev/hdg=dvd.iso


The secret to all of this was, sadly, the renaming of the episode files.

Date: 2004-09-11 11:00 pm (UTC)
From: [identity profile] elfs.livejournal.com
Two additional comments: first, you can hack mkdvd (that's why it shows up as mkdvd2 up above) for additional tricks. If you find wallpaper that has the design mostly on the right hand side of the image, feel free to hack in a new xpos around line 3461 or so (mkdvd 2.13) and move your menu a bit to the left. It can look really, really nice.

Secondly, make sure you check that you have all the requirements of both mkdvd and avitovob. I just realized that one very important requirement is missing from my list: dvdauthor (http://dvdauthor.sourceforge.net).

Also, test your DVD image with xine (http://xinehq.de/index.php/releases) before you burn.

Date: 2004-09-12 12:08 am (UTC)
From: [identity profile] poetpaladin.livejournal.com
You are such a geek. :)

Date: 2004-09-12 07:10 am (UTC)
ext_3294: Tux (Default)
From: [identity profile] technoshaman.livejournal.com
This is bad how? I'm so putting this in my Memories, because I'm building a video box, and I'm going to have to have this...

Date: 2004-09-12 09:23 am (UTC)
From: [identity profile] poetpaladin.livejournal.com
I spoke admiringly. You dork! :)

Date: 2004-09-12 10:07 am (UTC)
ext_3294: Tux (Default)
From: [identity profile] technoshaman.livejournal.com
Oh, *there's* the smiley.

Date: 2004-09-12 09:40 am (UTC)
From: [identity profile] elfs.livejournal.com
But of course!

Wait until my next geek project. I found a tumbling coffee micro-roaster at a second-hand store. It'll do about 2.5 oz of beans at a time. I can't wait to find some green coffee beans and try it out...

Date: 2004-09-12 10:11 am (UTC)
From: [identity profile] poetpaladin.livejournal.com
Now that's just amusing. :)

Date: 2004-09-12 02:26 pm (UTC)
fallenpegasus: amazon (Default)
From: [personal profile] fallenpegasus
I am given to understand that a hot air popcorn popper works just fine for roasting green coffee beans.

At least, that's what I'm told that folks in Hawaii that pick the beans off of semi-feral bushes in their own backyards do.

[OT] Nudes Defending a Staircase

Date: 2004-09-12 03:29 pm (UTC)
From: (Anonymous)
Sorry to be off-topic but, what happened to Nudes Defending a Staircase? Wasn't it scheduled to go up this past Friday?

Utility for making DVDs

Date: 2004-09-12 09:32 pm (UTC)
From: [identity profile] cuzndragon.livejournal.com
Just so you know there is utility that helps in making dvds at least from mpegs. dvdauthor http://dvdauthor.sourceforge.net

Re: Utility for making DVDs

Date: 2004-09-12 10:06 pm (UTC)
From: [identity profile] elfs.livejournal.com
dvdauthor is a requirement of mkdvd. I mentioned it further up the comment tree. It's essential for this project. But mkdvd doesn't generate menus automatically, nor does it automatically prepare the videos for DVD format, nor does it tune the PAL videos so the subtitles fit on the screen. I wanted something that does that more or less trivially. AviToVob beats almost any .avi file into a DVD format, fitting for subtitles and all that, and MkDVD generates the dvdauthor XML file, the menu background, and the menu buttons, and slams them all together automatically.

That's what I wanted. I wanted to be able to copy my animes to a directory and hit "Go," and come home to find a DVD ready to pop into the player. dvdauthor is a great program, but it needs automation. My recipe is part of the steps to getting there.

Profile

elfs: (Default)
Elf Sternberg

December 2025

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 24th, 2025 08:32 pm
Powered by Dreamwidth Studios