Saturday, September 1, 2007

Mplayer/Mencoder

I like movies and music a lot. Mplayer is my tool of choice here. It's open source, supports many video formats, and has an endless array of options for playback. It's pretty easy to install too. I don't remember if it was automatic the last time I did it, or if I had to resolve dependencies, etc. That's one reason why I started this blog, so I don't HAVE to remember.

Oh yeah, I used yum to get mplayer and mencoder. I think it went to the freshpms repository:
yum -install mplayer
I had to do mplayer and mencoder separately. I don't know if they are supposed to come bundled together, but they didn't this time.

Anyways, I'm using 'mencoder' to copy DVD with video in VOB format, whatever the hell that is. I started here and branched out. I have 4 files of about 1.08 GB each. I ran the following:

mencoder -oac pcm -ovc x264 VTS_01_1.VOB -o VTS_01_1.mpg
-o: output file name
-ovc: output video
-oac: output audio
I think it identifies the output time by the extension you give it.

1 comment:

bk said...

I later tried to burn something else to DVD:

mencoder -oac pcm -ovc x264 dec30_subtitles.wmv -o dec30_subtitles.mpg

This seemed to work to convert to mpg. Burning this to DVD with:
growisofs -dvd-compat -Z /dev/dvdrw dec30_subtitles.mpg
produced a readable DVD, but not by a standalone DVD player.

Ehen I ran dvdauthor on anything, I got the error:
WARN: Skipping sector, waiting for first VOBU...
and then a seg fault. I went: here which prompted me to download ffmpeg to make the VOB file that those stand-alones apparently need. To make the VOB, I ran:
ffmpeg -i dec30_subtitles.mpg -target ntsc-dvd dec30_subtitles.VOB
Then used dvdauthor:
dvdauthor -o ~/movies/wedding/make_dvd/ -x dvd.xml
and this gave me a bunch errors like this:
WARN: unknown mpeg2 aspect ratio 1
but all else looked fine. Then I burned it to DVD:
growisofs -dvd-compat -Z /dev/dvdrw -dvd-video make_dvd/
where 'make_dvd' is the source directory containing ONLY AUDIO_TS and VIDEO_TS.

This all looked fine on the computer, but when I plugged into the stand alone, there was a lack of synchronization between sound and video. Even the DVD looked fine on the computer.

I found this to be useful when sorting out the last problem, but I never bothered to go that far. I'm sure it's not difficult to solve. It might be happening at the write-to-DVD step, or maybe there's some assumed standard the stand-alone prefers. I'm guessing it will be a trial-and-error process, costing me a few DVDs.