+ Reply to Thread
Results 1 to 13 of 13

Thread: Banding

Thread
  1. Member
    Join Date: Oct 2009
    Location: Poland
    Hello, I have problem with debanding BD anime. I tried to repair this but results was bad. I wanna ask for yours help. That's what I tried:

    My options in DGAVCIndex: Video / YUV -> RGB -> PC Scale

    First:
    AVCSource("D:\K-On vol.1\vol.1\BDMV\STREAM\00000.dga")
    Fielddeinterlace()
    LanczosResize(1280,720)
    Trim(1600,2000)
    Sample
    After that I tried to remove banding:
    AVCSource("D:\K-On vol.1\vol.1\BDMV\STREAM\00000.dga")
    Fielddeinterlace()
    gradfun2db(3)
    LanczosResize(1280,720)
    Trim(1600,2000)
    Sample
    Megui profile:
    program --profile high --pass 2 --bitrate 1777 --stats ".stats" --ref 12 --no-fast-pskip --b-adapt 2 --b-pyramid --direct auto --deblock 1:1 --subme 5 --trellis 2 --partitions all --me umh --merange 32 --thread-input --aq-strength 0.5 --no-dct-decimate --output "output" "input"

    It's look bad so I used ColorMatrix(). Result that same. I'm not professional encoder, I'm really desperate right now.
    Quote Quote  

  2. Member
    Join Date: Sep 2007
    Location: Canada
    Have you tried a higher bitrate?

    Can you upload a corresponding sample of the source?
    Quote Quote  

  3. Member
    Join Date: Oct 2009
    Location: Poland
    I even true at constans quality=1 but it look exacly that same.
    Orginal Source
    Quote Quote  

  4. Member
    Join Date: Dec 2005
    Location: none
    What do you mean by "banding"? I didn't see much in the way of posterization.
    Quote Quote  

  5. Member
    Join Date: Sep 2007
    Location: Canada
    And why fielddeinterlace() ? Source you uploaded is progressive
    Quote Quote  

  6. Member
    Join Date: Oct 2009
    Location: Poland
    Ok, I removed Fielddeinterlace() from script. jagabo, I though that it's banding, so what it is?
    Quote Quote  

  7. Member
    Join Date: Sep 2007
    Location: Canada
    Describe what you mean by "it" or "banding"

    The main problem I see is edge artifacts, and is a side effect of psy-rd. I would disable psy-rd on most types of anime, and lower AQ strength (I usually disable it).

    Also this sequence has a lot of scene changes, and I-frames. So you may need more bitrate for a cleaner encode/less artifacts



    Quote Quote  

  8. Member
    Join Date: Oct 2009
    Location: Poland
    I mean that by banding:



    Psy-RD=disable
    AQ=disable
    Higher bitrate=doesn't work
    Quote Quote  

  9. Member
    Join Date: Sep 2007
    Location: Canada
    This type of situation is tough to deal with in anime, and it's not specfic to x264. It happens with all 8-bit compression,and you will see it happen with other h.264 encoders, xvid, mpeg2 etc...

    You can increase the dithering and grain in the filter, but it will begin to look noisy. You can limit the damage to scenes where banding occurs (it normally occurs in darker areas with gradients), by using Trim(). This has to be done in the script manually, but I strongly suggest applying to sections. If you want to get more precise you could use separate masks. It's difficult to find the exact values or threshold to use where you minimize grain and prevent banding. It takes some trial and error. For example I used GradFun2DBMod(thr=1.0,str=3,strc=3) , but you might be able to get away with something lower or perhaps you want to specify something higher to your personal preferences. You're definitely going to have to make some tradeoff's in your decision

    Code:
    avcsource("Orginal.dga")
    LanczosResize(1280,720)
    Trim(24,0)
    a=last
    
    b=a.Trim(0,10)
    c=a.Trim(11,46).GradFun2DBMod(thr=1.0,str=3,strc=3)
    d=a.Trim(47,0)
    
    b++c++d


    gradfun2dbmod.mkv
    Quote Quote  

  10. Video Restorer lordsmurf's Avatar
    Join Date: Jun 2003
    Location: Want my advice? PM me.
    This is referred to as "posterization" or "posterizing", a compression of the color palette. Indeed, an issue with 8-bit colorspace encoding. However, more often, it's just a crappy encoding job -- inadequate bitrate.
    Quote Quote  

  11. Member
    Join Date: Dec 2005
    Location: none
    Ah, I was in a very brightly lit room on an unfamiliar computer earlier and couldn't see the posterization and macroblocking.
    Quote Quote  

  12. Member
    Join Date: Oct 2009
    Location: Poland
    After that I should to try remove noise?
    Quote Quote  

  13. Member
    Join Date: Sep 2007
    Location: Canada
    Originally Posted by Benus
    After that I should to try remove noise?
    Nope.

    Dithering and noise are techniques to "tricks" prevent banding. If you remove the noise, you will get banding again. Pick one or the other. Trade offs. Note this will increase the required bitrate for the same quality, because of the added "noise," that's why you may want to limit filters to small sections predisposed to banding instead of the whole thing
    Quote Quote  




Similar Threads

  1. Banding in DV image
    By brassplyer in forum Editing
    Replies: 0
    Last Post: 17th Aug 2009, 02:01
  2. How do you avoid banding?
    By zanos in forum Media
    Replies: 3
    Last Post: 13th Mar 2008, 23:57
  3. WMV horizontal banding
    By suttonbaymedia in forum DVD Ripping
    Replies: 1
    Last Post: 28th Mar 2007, 21:44
  4. Venetian-Blinding, Banding
    By fhaber in forum Newbie / General discussions
    Replies: 7
    Last Post: 28th Oct 2006, 15:46
  5. color banding - help!
    By sharktacos in forum Newbie / General discussions
    Replies: 18
    Last Post: 16th Dec 2004, 20:18
About   Advertise   Forum   RSS Feeds   Statistics   Tools