Log in

View Full Version : low quality cartoon DVD-compliant encoding...


jdratlif
5th March 2008, 00:41
I am getting rid of all my VHS tapes, but I want to keep all the TV shows I have recorded over the years.

I would like to make a 6-hour DVD. I am not overly concerned by quality. I want them to look basically as good as the VHS tapes look now.

I have the first 10 seasons of the simpsons on DVD (the only ones fox has released up to this point), but they come as 3 or 4 discs per season. This is only around 2 hours per disc. Granted the quality is nice, but I'd like to compile more onto a single DVD. I don't want to have to change discs all the time.

I am trying to use mencoder for the encoding, but I am having some problems. First, here are my settings.

lavcopts=

vcodec=mpeg2video
vrc_buf_size=1835
vrc_max_rate=9800
vbitrate=1470
vstrict=0
keyint=15
mbd=2
trell

acodec=ac3
abitrate=192

I am also using the KVCD Notch inter/intra matrices. For my video filters, I have

pullup
softskip
hqdn3d
scale=352:240
harddup

The DVDs seem to be an odd mix of FILM and NTSC, so I am using pullup to convert it all to FILM.

So, an example mencoder line would be

mencoder -dvd-device /home/jdratlif/dvd/simpsons_s7d3.iso dvd://5 -aid 128 -ovc lavc -oac lavc -of mpeg -mpegopts format=dvd:tsaf -ofps 24000/1001 \
-vf pullup,softskip,hqdn3d,scale=352:240,harddup -af volume=15 -lavcopts \
acodec=ac3:abitrate=192:vcodec=mpeg2video:vstrict=0:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=1470:keyint=15:aspect=4/3:mbd=2:trell:vpass=1:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79:inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44 \
-o /dev/null

When I check out the result, the audio and video seems fine, but on my player, it will desync at times. This seems to happen after a scene change. I notice the player will often skip (hiccup, stutter, whatever you want to call it) during these scene changes. I think this is the cause of the desync, but I don't know what to do about it. If I rewind for a second and then press play, the audio and video are in sync again.

Could the video bitrate be lower than the player can handle during these scene changes? libavcodec warns against setting vrc_min_rate > 0 != vrc_max_rate, but maybe I should set it to 300?

There is an option on QuEnc for scene change detection. Is there something comparable on mencoder?

Any suggestions?

Thanks.