Hi please help with my XVID setting i am aiming for high quality setting for 1 CD i tired almost everything on the forum and still cant get it right
this is how is look on AVS script http://prntscr.com/3dl276
this is after encode http://prntscr.com/3dl3mv i guess you cant tell much different but when is playing is bad
My script
My xvid Setting....I think the problem is here with this setting but i am not sureCode:LoadPlugin("C:\Users\Administrator\Documents\megui\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("D:\Downloads\Solla\VIDEO_TS\VTS_01_1.d2v", cpu=4, info=3) LoadPlugin("C:\Users\Administrator\Documents\megui\tools\avisynth_plugin\ColorMatrix.dll") ColorMatrix(hints=true, interlaced=true, threads=0) crop(0, 60, 0, -60) Lanczos4Resize(640,272) FFT3DFilter() LimitedSharpenFaster(strength=20, smode=3)
http://prntscr.com/3dl49t
http://prntscr.com/3dl4dq
Please help me with Xvid Setting for 1CD for clear quality of the movies
+ Reply to Thread
Results 1 to 27 of 27
-
-
a few things that seem strange about your avisynth script:
- you tell ColorMatrix the source is interlaced, but you do not deinterlace
So, either you mess up the color space by providing false information to colormatrix or your really mess up by then simply cropping and resizing without deinterlacing. - assuming you jused messed up the color space a bit, you then use a sharp resizer and introduce ringing&co, then you use some heavy denoising and then you sharpen then whole thing again, this seems wrong.
about the Xvid settings:
- by to you boost the b-frame quantizer ratio?
- disabling trellis might look better
- using a lower vhq mode (in example 2) should speed things up
- why only one consequtive b-frame? (3 is normally a way better choice) - you tell ColorMatrix the source is interlaced, but you do not deinterlace
-
The noise removal could be causing the burring which your screenshots seem to show.
-
how would you do my script if your using it with the color space??
and i dont get this please explain more - by to you boost the b-frame quantizer ratio??
so my script is stuffed up not the xvid config?
thanks for the reply i have tired with Undot() is same and with degrainmedian(limitY=3, limitUV=5,mode=3) -
You don't need to use ColorMatrix. It won't be doing anything. I don't know why it's still enabled by default in MeGUI. It doesn't do anything when converting DVDs.
You've also got the mpeg2 deblocking enabled. It's very mild, but it can blur a bit. Disable it unless you know you need it.
Try leaving these two unchecked:
It's not unusual for the video to be blurred a little after encoding with Xvid. I've compared the uncompressed version to an Xvid encoded version lots of times and even at maximum quality it blurs a little. It's not as good as the x264 encoder at retaining detail. Any reason why you're using Xvid? It's somewhat obsolete.
If you don't mind (very) slow encoding you could try this for denoising. You won't need extra sharpening. http://avisynth.nl/index.php/MCTemporalDenoise
I think you need to go through a process of elimination yourself. Use the default Xvid settings and run a single pass encode with a constant quantizer of 2 (CQ2.0), without any filtering in the script. That's pretty much maximum quality for Xvid. If the video looks better, compare the resulting bitrate to the bitrate you're using. If it's a lot higher (more than about 30% higher) then maybe you're using too low a bitrate.
If the encode looks fine, add back the denoising to see what difference it makes. It's really hard to look at screenshots of different frames and take a guess at what you might be seeing when you watch the video.
When you're encoding with a relatively low bitrate, sharpening can be a bad thing. It can make the video harder to compress which can result in more compression artefacts. It doesn't seem to be what's happening though, looking at your screenshots.
Aiming for a particular file size (ie 1 CD) while aiming for a high quality can be two opposing goals. Sometimes you just can't have both. -
How about posting a 10 second untouched sample from the DVD? One with steady movement.
-
-
By default MCTemporalDenoise tends to sharpen a little. One of the required plugins in order to use it is LimitedSharpenFaster mod.
You can adjust the sharpening like this:
MCTemporalDenoise(strength=100)
100 is the default sharpening.
Both sharpening and denoising can tend to work better if they're put before any resizing, so that way you're not resizing noise, but if you're reducing the resolution, putting the denoising/sharpening after the resizing will be faster because there's not as much video to denoise or sharpen. I think by default MeGUI adds the sharpening after the resizing, probably because it can be a little faster that way.
There's no "rule" though. I try to put denoising/sharpening before resizing, but for very slow de-noising scripts sometimes it's not practical, especially if the source video is high definition. And sometimes I can't see much difference between putting it before or after the resizing anyway. -
can you please check my XVID CONFIG i think is something mite be wrong there and that's why is creating the blocks i think on faces is looks good but on some places is look bad like when there turning and running stuff like that
i am trying the new filter with different source dont know how it will look output
Script
Code:LoadPlugin("C:\Users\Administrator\Documents\megui\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("D:\Downloads\Chok\Produce_0.d2v", info=3) LoadPlugin("C:\Users\Administrator\Documents\megui\tools\avisynth_plugin\ColorMatrix.dll") ColorMatrix(hints=true, interlaced=true, threads=0) Load_Stdcall_Plugin("C:\Users\Administrator\Documents\megui\tools\yadif\yadif.dll") Yadif(order=-1) crop(92, 128, -92, -132) DeGrainMedian(mode=3) LanczosResize(608,256) Spresso(2,25,3) LimitedSharpenFaster(strength=20, smode=4) ConvertToRGB().RGBAdjust(0.9, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1).ConvertToYV12() YLevelsS(8, 1.0, 255, 0, 255).Tweak(hue=2.0, sat=1.2,cont=0.9)
-
Last edited by El Heggunte; 27th Apr 2014 at 01:53. Reason: clarification
-
Your DVD player doesn't support DVDs?
LoadPlugin("C:\Users\Administrator\Documents\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Downloads\Chok\Produce_0. d2v", info=3)
LoadPlugin("C:\Users\Administrator\Documents\megui \tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
Load_Stdcall_Plugin("C:\Users\Administrator\Docume nts\megui\tools\yadif\yadif.dll")
Yadif(order=-1)
crop(92, 128, -92, -132)
DeGrainMedian(mode=3)
LanczosResize(608,256)
Spresso(2,25,3)
LimitedSharpenFaster(strength=20, smode=4)
ConvertToRGB().RGBAdjust(0.9, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1).ConvertToYV12()
YLevelsS(8, 1.0, 255, 0, 255).Tweak(hue=2.0, sat=1.2,cont=0.9) -
I do but i like to load it on my external HDD and view from there
Why are you deinterlacing it? Just how long is this movie? Where's the requested sample? The reason for a sample is to check if you're handling the source correctly. And I'm betting your real problem is you don't know what you're doing.
hes new sample link please have look Sample -
Thank you for the sample. It wasn't what I thought it was, but it's still one of the poorer excuses for a DVD I've seen. It does seem to be progressive, though, so I'm not sure why MeGUI thinks it needs deinterlacing. Just because it was encoded as interlaced? Anyway, this thing is hopeless and I'd delete it from the hard drive as soon as I had a look. And if you still want to encode it for watching on TV, I wouldn't spend too much time trying to get the best out of it because you'll always end up disappointed.
-
ok can you look at this sample please and let me know and can you send screen shot of your Xvid if u dont mind please
http://www.sendspace.com/file/id3m1e -
That clip is progressive frames with soft 3:2:3:2:2 pulldown. If the entire movie is like that you can use DgIndex in Ignore Pulldown mode and:
Code:Mpeg2Source("VTS_01_2.demuxed.d2v", Info=3) # Ignore Pulldown Flags mode AssumeFPS(25) Crop(0,60,-0,-60)
If parts of the movie use hard pulldown you can inverse telecine with:
Code:Mpeg2Source("VTS_01_2.demuxed.d2v", Info=3) # Honor Pulldown Flags mode TFM(d2v="VTS_01_2demuxed.d2v") TDecimate(cycle=6, cycler=1) Crop(0,60,-0,-60)
Encoding that movie at 625 kbps with Xvid isn't going to give you very good quality. You should use twice as much bitrate and make two 700MB files.Last edited by jagabo; 27th Apr 2014 at 07:38.
-
-
Xvid does that. You're probably just using too low a bitrate. I'm no expert on Xvid settings. I've always just used the Home Theatre profile and a high enough bitrate (I never worried about file size and just burned AVIs to DVDs instead of CDS).
For a while I was encoding everything twice. Once with Xvid and once with x264. I didn't care too much what the AVI version looked like, and once everyone in the house could play x264 encoded video, I deleted the AVI versions.
Why did you delete the first sample? I was going to analyse it with MeGUI myself to see if I got the same result. You realise you can attach a sample to a post here? No need to upload it somewhere else.
There's no way MeGUI will analyse the second one and get the de-interlacing correct. I'm not sure if there's any encoder GUIs that would. Oddly enough, that's the second DVD of that type I've come across this week and I live in PAL-land and haven't re-encoded any DVDs for a while. Strange..... the other one I came across like that a few days ago was a BBC series.
Someone who knows better may be able to correct me, but your second sample seems to have started off life as PAL, it was slowed down a tiny bit, resized to NTSC and changed to an NTSC frame rate using pulldown. I'd convert it like this (I probably would enable deblocking for that one):
Here's some sample encodes of your sample. All done using the default Xvid settings and the above script (except for resizing changes). You might be able to compare them to the results you get with your settings.Last edited by hello_hello; 27th Apr 2014 at 08:41.
-
-
-
You can ignore or override the info passed by Mpeg2Source(). I have batch files that build prototype scripts. I didn't bother to remove the Info=3 argument.
-
It's definitely progressive. I don't know why MeGUI thought it was interlaced. When I tried analysing the sample it failed. I'm not sure why. Maybe the fact there's more black than picture is confusing the issue.
But yeah.... the quality ain't great.
Code:LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("D:\Produce_0.demuxed.d2v", cpu=4) crop(92, 134, -92, -134) LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\FluxSmooth.dll") FluxSmoothST(7,7) # Medium Noise Spline36Resize(528,208) # Spline36 (Neutral)
-
sutha25,
Maybe as you're trying to squish movies down to single CD size, you could try a program designed to adjust settings to give you the maximum quality it can for the file size you specify. AutoGK.
If you leave everything on auto, open a DVD and specify an output file size, AutoGK will run a compression test and adjust the resolution, resizer and Xvid settings automatically. It does a pretty good job. -
-
sutha25,
I've replied to your PM. As I said, I used the default Xvid settings. That particular sample encode has a low bitrate because that's all it required as it's easy to compress. I didn't do anything clever. In fact I used exactly the same Xvid settings when I encoded your previous sample but as it was harder to compress, it required a much higher bitrate for the same quality (relative to the original) 256kbps vs 1143kbps. -
Different videos require different bitrates to maintain quality. The more detail, motion, noise, flickering, wavy/splashy water, fire, billowing smoke, drifting fog, and anything else that cause the picture to change from frame to frame, the more bitrate you will need. See the samples in this post:
https://forum.videohelp.com/threads/295672-A-problem-for-video-experts?p=1811057&viewfu...=1#post1811057
The noisy video required 20 times more bitrate than the clean one.