PDA

View Full Version : How to get better quality with XviD?




SnapCount
6 Dec 2006, 04:57 PM
Hi guys, im just wondering how to get better quality from rendering mpeg2 (DVD) files.

I've been converting TV shows here in Australia for a while using Gordian Knot and XviD, but now i have just bought a DVD player that can play DviX and have been enjoying watching the stuff I have made.

But the thing is, I'm starting to see like a graining effect with the files I've made, and I dont have a clue on how to remove the effect im getting. I got a feeling that it might be the matrix, Ive increased the file size for a 42min episode to 360mb. For a 22 Episode season 11 would fit on a single sided DVD. And ive been seeing that other people who encode with XviD only do around 340-50mb for the same episode.

With the screen shot below, if you zoom in, you'll see the problem. Its not that bad, but if there is a way to increase the quality without increasing the file size, it would be greatly appreciated :toast:

http://img225.imageshack.us/img225/585/pdvd000br0.png

photo_angel2004
6 Dec 2006, 05:23 PM
Hello,
You may find some help here:

http://forum.digital-digest.com/showthread.php?t=66362

anonymez
6 Dec 2006, 05:32 PM
a few things you could do:

-don't resize to such a low res (i'm assuming they're SD DVB captures, 544x304 is quite a step down from ABC's 576i). some standalones support AR signalling, in which case you might like to try your hand at anamorphic encoding and not resize at all

-search the forum or google, plenty of explantions of various xvid settings, there are presets/megui profiles available too. setting 2-3 bframes, max motion search & VHQ should be fine in most cases. up the bitrate if possible. you might like to post settings you're currently using.

-abc's SD content isn't great to begin with; artefacts are noticeable on larger displays. experiment with avisynth filtering for blocky sources, try something like deblock_qed

SnapCount
6 Dec 2006, 06:19 PM
Ok these are the settings that im currently using:

http://img92.imageshack.us/my.php?image=1cw5.jpghttp://img237.imageshack.us/img237/6258/2ac8.jpg

http://img92.imageshack.us/img92/6237/3za1.jpg

http://img237.imageshack.us/img237/2708/4rs7.jpg

http://img92.imageshack.us/img92/9125/5um8.jpg

http://img237.imageshack.us/img237/4931/6bv5.jpg

SnapCount
6 Dec 2006, 06:27 PM
I've been converting Jericho from Network 10 as well, changing between 576 and 544, and haven't really noticed any difference:smashead:

anonymez
6 Dec 2006, 06:35 PM
settings look good enough, but can be improved a little:

-increase VHQ mode

-set max keyframe interval to 250

-enable turbo for faster encoding, but very small quality drop

-as mentioned in my previous post, res is set too low

-use a better deinterlacer, tdeint for example. IIRC GK does allow you to edit your avisynth script but the option needs to be enabled under one of the tabs. if you're willing to try something new, take a look at MeGUI instead, GK is no longer being developed

SnapCount
6 Dec 2006, 07:15 PM
Ok thx anonymez, Ill have a look at MeGUI.

Ill miss using gordian... you've been a good friend! :cry::cry:

BTW I still very much suck at avisynth:fan2::deadhorse:newbie:

I got a feeling that I'll be coming back for help soon!! lol

SnapCount
7 Dec 2006, 10:28 AM
Well, just tried MeGUI and i must say the quality is an improvement. Weird thing was that It didn't want me to de-interlace the file... Anyway I haven't tried it on the TV yet because i got an issue with muxing the video and audio together. When i mux them the video is gone but i can hear the audio going..... its driving me mad trying to get it to work..:smashead::badpc::minigun:

Anyway here's a shot of Jericho.... Much better quality than with Gordian Knot

GK
http://img141.imageshack.us/img141/6581/pdvd003lo5.png

MeGUI
http://img90.imageshack.us/img90/1971/pdvd001nn9.png
http://img90.imageshack.us/my.php?image=pdvd001nn9.png

anonymez
7 Dec 2006, 11:07 AM
Weird thing was that It didn't want me to de-interlace the file

i don't watch jericho, but i'm quite sure it's progressive. deinterlacing progressive content may result in some nasty artefacts and usually slower encoding.

Anyway I haven't tried it on the TV yet because i got an issue with muxing the video and audio together

ensure you're muxing to avi and your audio is mp3.

btw for the watermark you could either capture ten HD (but this will increse encoding times) or remove it with an avisynth logo removal filter. i can post the required bitmap and script if you're interested.

SnapCount
7 Dec 2006, 11:15 AM
ensure you're muxing to avi and your audio is mp3.

btw for the watermark you could either capture ten HD (but this will increse encoding times) or remove it with an avisynth logo removal filter. i can post the required bitmap and script if you're interested.

Yep Im sure its muxing to avi and the audio is mp3. Im selecting Adaptive Muxer as it said in the wiki.
Did a test with the 10 promo and it did the same thing, when muxing audio but no video and the size of the muxed file drop from 6mb to 5mb... its suppose to get higher not lower..... this is freaking me out lol

btw with that logo removal filter.... will the removal be obvious when you playback the vid? Im not really fussed by it, but ill give it a go.

anonymez
7 Dec 2006, 11:21 AM
try muxing manually with avi-mux GUI, ensure xvid settings used & resolution are supported by your standalone player

will the removal be obvious when you playback the vid?

fairly clean removal.

anonymez
7 Dec 2006, 11:30 AM
http://img90.imageshack.us/img90/2636/1withlogoig2.jpg

http://img90.imageshack.us/img90/8247/1withoutlogoka0.jpg

keep in mind nobody can get "perfect" results with all sources, but it can be tweaked to near perfection http://img146.imageshack.us/img146/3706/wink7wo.png

SnapCount
7 Dec 2006, 11:37 AM
Holy buckets!!! you can hardly tell!! Im very interested now!!

SnapCount
7 Dec 2006, 11:40 AM
try muxing manually with avi-mux GUI, ensure xvid settings used & resolution are supported by your standalone player.

Oh btw, manually using avi-muxGUI as you said did the trick :):thumbs_up

anonymez
7 Dec 2006, 12:07 PM
there are basically 2 ways you can go about doing this. since networks fade their watermarks in and out after and before commercial breaks, there is a second or two when the watermark will show as a dark imprint as opposed to a bright one. you can compensate for that by using a ReplaceFramesSimple which will apply the filter only to frames within the ranges you specify.

you will need: the avisynth x-logo filter, avisynth remapframes plugin and the custom bitmap (attached).

if you don't mind having the watermark on screen for a few seconds before & after commercials, edit your script like:

mpeg2source("whatever.d2v")
Xlogo("C:\path\to\ten704_x_X_y_Y_0.bmp",524,456,255,b1=0,b2=0,b3=0,feather=2,white=255)
crop(x,x,x,x)
lanczosresize(x,x)

if you do mind (in the example the logo filter will be applied from frames 200-400 and 650-700):

mpeg2source("whatever.d2v")
ReplaceFramesSimple(Xlogo("C:\path\to\ten704_x_X_y_Y_0.bmp",524,456,255,b1=0,b2=0,b3=0,feather=4,white=255), mappings="[200 400], [650 700]")
crop(x,x,x,x)
lanczosresize(x,x)

there is documentation for x-logo floating around, but to tweak it to the source/your liking, you'll usually want to edit the numbers in red. IIRC alpha (transparency) and white level