Xvid producing strange motion blur like effect?

Discussion in 'DivX / XviD' started by Blighter, Feb 20, 2006.

  1. Blighter

    Blighter Regular member

    Joined:
    May 18, 2004
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    26
    Hi guys, another problem!

    I encode my videos by doing the following : The DVDs that i want to backup have PAL interlaced video so I rip with DVD Decrypter, save to D2V with DGIndex. I load an avisynth script into VirtualDubMod, and fast recompress (2 pass) it with Xvid (H.263 quant :p), Interlaced encoding (I mention this because i think it's possibly the problem)

    Anyways, the problem is that in the finished AVI, whenever something in the picture moves (eg a person in the video walking), it has this weird motion blur thing. It's not motion blur, i just don't know how else to describe it - it's also very difficult on the eyes! It happens anytime the camera pans or moves too. I tried reencoding with Global Motion Compensation on, but that didn't help it.

    I'm thinking it has something to do with the Interlaced image. I'm not using any deinterlacers - I just read a guide saying that if my source is interlaced, i can just check "interlaced encoding" in the xvid options and it'll be ok. I've googled "interlaced encoding" in XVid but didn't come up with much, but there's quite a bit on deinterlacing so i'm thinking i'm gonna have to do that instead. Does anybody else think that this could be the problem?

    I might try encoding my videos implementing the smoothdeinterlacer filter into my avisynth script to deinterlace the source for Virtualdubmod. Does anybody think this could work?

    Thanks loads guys,

    Blighter
     
  2. Blighter

    Blighter Regular member

    Joined:
    May 18, 2004
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    26
    Does anyone have any suggestions? I can't really think how to describe the problem...would anyone have any objections if i post a link to a video that shows what my problem is?

    Cheers, Blighter
     
  3. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    For a progressive display like a PC monitor, you need to deinterlace. Since you encoded interlaced, you would need to do it when decoding.

    This is what you are seeing right?
    [​IMG]
     
  4. The_OGS

    The_OGS Active member

    Joined:
    Feb 18, 2004
    Messages:
    1,461
    Likes Received:
    0
    Trophy Points:
    66
    Yes - deinterlace filter.
    It would be better during encoding; impractical during decoding.
     
  5. Blighter

    Blighter Regular member

    Joined:
    May 18, 2004
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    26
    I used smoothdeinterlacer in an Avisynth script on my D2V file before i put it through Xvid, and it worked! Thanks guys!

    Another question : Someone mentioned to me about denoising...i downloaded a denoise filter for avisynth, but imo it hasn't changed the video quality whatsoever...is a denoiser really necessary?

    Cheers, Blighter
     
  6. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    Well no noticable change is the idea really if the source wasn't badly noisy. The idea is that it increases compression. Encode a section at a fixed quant with and without denoising. The filtered one should be smaller. If the source is very noising then you would need a different denoiser or stronger setting.
     
  7. Blighter

    Blighter Regular member

    Joined:
    May 18, 2004
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    26
    Ok another problem! Using the smoothdeinterlacer fixed the problem, but i'm encoding a different video now and i've got a similar problem but it's not the same :

    [​IMG]

    and :

    [​IMG]

    My avisynth script at the moment is :

    "LoadPlugin("C:\Program Files\DVD Rebuilder\AviSynth\plugins\DGDecode.dll")
    LoadPlugin("C:\Program Files\DVD Rebuilder\AviSynth\plugins\SmoothDeinterlacer.dll")
    Mpeg2Source("The Host.d2v", cpu=6)
    crop(10,0,-8,0)
    LancZosResize(640,464)
    ConvertToYUY2(interlaced=true)# Smoothdeinterlacer requires YUY2
    SmoothDeinterlace(tff=true) # Output is Progressive"

    I'm thinking it has something to do with the fact that i'm deinterlacing with the "tff=true" parameter? What do you guys reckon? Should i try "SmoothDeinterlace()" or "Smoothdeinterlace(tff=false)" or something else?

    Cheers guys,

    Blighter
     
    Last edited: Feb 23, 2006
  8. Blighter

    Blighter Regular member

    Joined:
    May 18, 2004
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    26
    Ok, well i tried it with SmoothDeinterlace() which i thought would determine the polarity automatically, but it still hasn't made a difference. Got another example :

    [​IMG]

    I still think it's an interlacing problem for some reason...can't really prove it though. Any ideas?

    Cheers,
    Blighter
     
  9. Blighter

    Blighter Regular member

    Joined:
    May 18, 2004
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    26
    Well i've found the solution, although i don't really understand why it worked, if someone could explain? All i did, was download the Decomb plugin and changed my avisynth script from :

    "LoadPlugin("C:\Program Files\DVD Rebuilder\AviSynth\plugins\DGDecode.dll")
    LoadPlugin("C:\Program Files\DVD Rebuilder\AviSynth\plugins\SmoothDeinterlacer.dll")
    Mpeg2Source("The Host.d2v")
    crop(10,0,-8,0)
    LancZosResize(640,464)
    ConvertToRGB32(interlaced=true)# Smoothdeinterlacer requires YUY2 or RGB32
    SmoothDeinterlace() # Output is Progressive"

    to
    "LoadPlugin("C:\Program Files\DVD Rebuilder\AviSynth\plugins\DGDecode.dll")
    LoadPlugin("C:\Program Files\DVD Rebuilder\AviSynth\plugins\Decomb.dll")
    Mpeg2Source("Test.d2v")
    crop(10,0,-8,0)
    FieldDeinterlace()
    LancZosResize(640,464)"

    I read in the Decomb guide that you should do fielddeinterlace before resizing vertically, so i put it before LancZosResize. That script seems to work, anyway, and it's a hell of a lot quicker than Smoothdeinterlace (actually plays in real time in mpc). Is Fielddeinterlacing different to what smoothdeinterlacer does then? I'm afraid i don't understand all this interlacing stuff - it would probably help if i did.

    Also, could someone please explain to me when you would use the "interlaced encoding" option in Xvid. I can't understand when you'd use it, because the description says that it "improves performance with interlaced sources" but whenever i try encoding interlaced video, i always have problems and everyone says i should deinterlace. So when wouldn't you want to deinterlace and keep the interlaced source?

    Grrrr another addition...I've just upgraded to Xvid 1.2 Koepi, and all of a sudden, Vdubmod won't process frames unless the priority of the encode is Normal or Higher. Anything else and it stops processing frames (doesn't crash). Any ideas about that too?

    I think that's enough questions for one day :p

    Cheers guys,

    Blighter
     
    Last edited: Feb 23, 2006
  10. Blighter

    Blighter Regular member

    Joined:
    May 18, 2004
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    26
    Awesome. Done loads of research on interlacing and finally fixed everything. Was having a terrible day yesterday but all my problems have gone away...

    My new avisynth script is now :

    "LoadPlugin("C:\Program Files\DVD Rebuilder\AviSynth\plugins\DGDecode.dll")
    Mpeg2Source("Test.d2v")
    crop(10,0,-8,0)
    FieldDeinterlace(blend=false)
    LancZosResize(640,464)"

    and i now have no stripes or ghost effects anywhere. Also i realised that koepi's xvid 1.2 version was unstable so i've gone back to 1.1 and it's all fine now...

    Over and Out,

    Blighter
     
  11. shiroh

    shiroh Guest

    you deinterlace/IVTC first.
    there's a difference with interlace and telecined.
    check yours which is which.
     
  12. Rikoshay

    Rikoshay Regular member

    Joined:
    Apr 13, 2004
    Messages:
    302
    Likes Received:
    0
    Trophy Points:
    26
    From personal experience, SmoothDeinterlacer never worked, but FieldDeinterlace worked right away. Also, When you had DGIndex open, if it didn't fully say NTSC off to the side, and had Interlaced underneath it, then it's Not Interlaced! For a full Progressive, you need it to say FILM and the item below it (don't remember the name) needs to be 95% or higher, in which case you would need to change the pulldown rate to Full FILM or whatever it says. For IVTC, that number needs to be around 50%, and would need several steps to be run .

    Can somebody tell me the difference between normal resizing and the LancZosResize filter? Also, you guys mentioned that a denoiser filter could create better compression, can someone give suggestions on good filters to use for that?
     
  13. shezzy999

    shezzy999 Guest

    hi,, can somebody please help me, im a bit of of a new user, i downlaoded a few movies from the net and they are in AVI format, how can i convert the movies to one blank dvd disk and make it work on my home dvd player? and if possible i would like to convert the avi files to dvd format quickly. also i would like to add chapters and menu and titles screens and also subtitles to the movies, if anybody knows then please help me, i would be greatful.
    also please can you tell me he best program for downloadin music and videos.

    thank you very much, like i said im a new user and i would really like your help, thanks
     
  14. The_OGS

    The_OGS Active member

    Joined:
    Feb 18, 2004
    Messages:
    1,461
    Likes Received:
    0
    Trophy Points:
    66
  15. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    @shezzy999 - no more multiposting, instead read the Forum Rules in my signature
     

Share This Page