VideoHelp Forum




+ Reply to Thread
Results 1 to 27 of 27
  1. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    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
    Code:
    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)
    My xvid Setting....I think the problem is here with this setting but i am not sure
    http://prntscr.com/3dl49t
    http://prntscr.com/3dl4dq

    Please help me with Xvid Setting for 1CD for clear quality of the movies
    Quote Quote  
  2. 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)
    Quote Quote  
  3. The noise removal could be causing the burring which your screenshots seem to show.
    Quote Quote  
  4. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by Selur View Post
    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)
    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?


    Originally Posted by hello_hello View Post
    The noise removal could be causing the burring which your screenshots seem to show.
    thanks for the reply i have tired with Undot() is same and with degrainmedian(limitY=3, limitUV=5,mode=3)
    Quote Quote  
  5. 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:

    Click image for larger version

Name:	megui.gif
Views:	556
Size:	10.4 KB
ID:	24808

    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.
    Quote Quote  
  6. How about posting a 10 second untouched sample from the DVD? One with steady movement.
    Quote Quote  
  7. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by hello_hello View Post
    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
    MY dvd player only support Xvid i have to buy new one that supports X264 but not now so thats why iam stick to old xvid since every 1 eles moved forward i went backward

    if i use MCTemporalDenoise() i dont need any sharpener? i can use just Lanczos4Resize??
    Quote Quote  
  8. 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.
    Quote Quote  
  9. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by hello_hello View Post
    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)
    Quote Quote  
  10. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by sutha25 View Post
    Please help me with Xvid Setting for 1CD for clear quality of the movies
    Short answer: not possible, unless your pocket dictionary presents an unusual definition for «clear quality».

    A DECENT DivX or Xvid reencode of a 2-hour movie may require 2 gigabytes or more (without audio).
    Last edited by El Heggunte; 27th Apr 2014 at 01:53. Reason: clarification
    Quote Quote  
  11. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by El Heggunte View Post

    Short answer: not possible, unless your pocket dictionary presents an unusual definition for «clear quality».
    what is pocket dictionary presents???
    Quote Quote  
  12. Originally Posted by sutha25 View Post
    MY dvd player only support Xvid i have to buy new one that supports X264 but not now so thats why iam stick to old xvid since every 1 eles moved forward i went backward
    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)
    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.
    Quote Quote  
  13. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by manono View Post
    Your DVD player doesn't support DVDs?
    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.
    Yadif(order=-1)- when i used MEGUI analyse it picked it up automatically so i left it with that
    hes new sample link please have look Sample
    Quote Quote  
  14. 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.
    Quote Quote  
  15. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by manono View Post
    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
    Quote Quote  
  16. Originally Posted by sutha25 View Post
    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)
    Mpeg2Source() doesn't really understand the frame rate (it thinks it's 29.97) so you need to add the AsssumeFPS(25), or maybe AssumeFPS(24.975).

    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)
    That leaves you with 24.975 fps so there might be a missing frame every ~1000 frames.

    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.
    Quote Quote  
  17. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by jagabo View Post

    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)
    Mpeg2Source() doesn't really understand the frame rate (it thinks it's 29.97) so you need to add the AsssumeFPS(25), or maybe AssumeFPS(24.975).

    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)
    That leaves you with 24.975 fps so there might be a missing frame every ~1000 frames.

    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.
    How do you work Pulldown on other dvd's?? and this is 25FPS so i just leave it like that?? and please can you at least check my XVID setting i am getting small dots in the movies after encode that make the rip bad quality how to avoid that?
    Quote Quote  
  18. Originally Posted by sutha25 View Post
    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
    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):

    LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")
    DGDecode_mpeg2source("D:\VTS_01_2.demuxed.d2v", cpu=4)

    LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\TIVTC.dll")
    tfm(order=1).tdecimate(cycle=6, cycler=1)

    crop(0, 60, 0, -60)

    Spline36Resize(720,304)
    You'll end up with a frame rate of 24.975fps instead of the original frame rate of 25fps (before it was converted to NTSC). I don't think that'd matter. You could speed it up to 25fps but that'd mean re-encoding the audio. I wouldn't bother.

    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.
    Quote Quote  
  19. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by hello_hello View Post
    Originally Posted by sutha25 View Post
    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
    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):

    LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")
    DGDecode_mpeg2source("D:\VTS_01_2.demuxed.d2v", cpu=4)

    LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\TIVTC.dll")
    tfm(order=1).tdecimate(cycle=6, cycler=1)

    crop(0, 60, 0, -60)

    Spline36Resize(720,304)
    You'll end up with a frame rate of 24.975fps instead of the original frame rate of 25fps (before it was converted to NTSC). I don't think that'd matter. You could speed it up to 25fps but that'd mean re-encoding the audio. I wouldn't bother.

    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.
    thanks for the help you said you deleted the file it wasn't good so I removed ohh well here is the same file

    thanks for letting me know that I can add here I didn't know
    Image Attached Files
    Quote Quote  
  20. Looks like jagabo beat me to it, except:

    Originally Posted by jagabo View Post
    Code:
    Mpeg2Source("VTS_01_2.demuxed.d2v", Info=3) # Ignore Pulldown Flags mode
    Code:
    Mpeg2Source("VTS_01_2.demuxed.d2v", Info=3) # Honor Pulldown Flags mode
    I guess "info=3" can't be right both times?
    Quote Quote  
  21. 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.
    Quote Quote  
  22. Originally Posted by sutha25 View Post
    thanks for the help you said you deleted the file it wasn't good so I removed ohh well here is the same file
    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)
    Image Attached Files
    Quote Quote  
  23. 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.
    Quote Quote  
  24. Using AutoGK: keep in mind you'll be trading off resolution to reduce macroblocking.
    Quote Quote  
  25. Member
    Join Date
    Jan 2014
    Location
    India
    Search PM
    Originally Posted by hello_hello View Post
    Originally Posted by sutha25 View Post
    thanks for the help you said you deleted the file it wasn't good so I removed ohh well here is the same file
    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)
    see thats way better then my quality 260Kbps can you pass me your XVid Setting please where i had at 512 and was getting bad quality on 608x256

    please post me your xvid Screen shot if possible or PM me
    Quote Quote  
  26. 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.
    Quote Quote  
  27. 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.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!