How to minimize posterization?

Discussion in 'DivX / XviD' started by flyvholm, Nov 15, 2006.

  1. flyvholm

    flyvholm Member

    Joined:
    Sep 10, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    11
    Posterization is a compression artifact due to a reduced color space. Gradual color transitions turn into steps. My time lapses are quite vulnerable to this effect - here is an example:

    http://www.gfy.ku.dk/~flyvholm/download/posterization.avi

    It's compressed with Xvid, using VirtualDub. Is there any way to reduce the posterization significantly? I've tried deblocking/smoothing filters, but it doesn't seem to be of any use. They work before the compression which is where the damage happens, right? The obvious thing to try is less compression, but even at the highest bitrate the result doesn't look much better. So I'm hoping that perhaps there is some setting I can adjust or a filter that works post-compression?

    Thanks for any advice!
     
  2. flyvholm

    flyvholm Member

    Joined:
    Sep 10, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    11
    Another lesson learned. The posterization in that video is not nearly as bad as I thought and is indeed minimized by increasing the bitrate. The problem was that it was being pushed to a reduced color space during decoding. Seems to be happening with nVidia graphics cards, but fortunately Xvid has an option in the decoder settings that can force the output color space. Setting it to RGB32 did the trick. Phew. I was just about to get upset with nVidia...
     
  3. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    You would be better off using ffdshow and enabling high quality RGB conversion. Xvid uses nearest-neighbour upsampling which looks pretty bad, esp. for reds.
     

Share This Page