Postby ObsessiveMathsFreak » Sun Jul 31, 2005 10:43 pm
It was a two pass encode. I could go for a third, but there's little point. It's small enough and looks near perfect. The sound is obviously a glaring size issue, but I'm not actually too worried about size to begin with.
Matroska really is a godsend. No more Optical character recognition madness with the subs. I can just use the actual ones. The only problem with it might be lack of support, but all of my software players support it, so I'm OK.
Here's the script. For episode #02.
[code:1]#! /bin/bash
echo `date` : Begin Encoding > encode.log
#extract audio, NO COMPRESSION
mplayer dvd://4 -alang ja -vo null -dumpaudio -dumpfile audio.ac3
echo `date` : Audio Extracted >> encode.log
#first pass + extract subs
mencoder dvd://4 -o /dev/null \
-nosound \
-ovc xvid -xvidencopts :bitrate=1024:cartoon:pass=1 \
-of avi \
-vf crop=704:560:10:10,pp=fd,hqdn3d=7:7:7 \
-slang en -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid en
echo `date` : First Pass Complete, Subtitles Extracted >> encode.log
#second pass
mencoder dvd://4 -o video.avi \
-nosound \
-ovc xvid -xvidencopts :bitrate=1024:cartoon:pass=2 \
-of avi \
-vf crop=704:560:10:10,pp=fd,hqdn3d=7:7:7 \
-slang en -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid en
echo `date` : Second Pass Complete >> encode.log
#muxing
mkvmerge -o eps02.mkv video.avi audio.ac3 subtitles.idx
echo `date` : Muxing Complete >> encode.log
#Fin
echo `date` : Encoding Complete >> encode.log
echo Encoding Complete. Was fate kind?[/code:1]
The denoiser setting "hqdn3d=7:7:7" might be considered somewhat high, but I found it worked wonders.
To the possible dismay of some, the xvid "cartoon" option was used!
[Became an administrator on or before October 4th, 2007.]
May The Maths Be With You.