Page 1 of 2

Blockiness, aliasing on edges - Red colors only (1.0.5 Bug)

Posted: 30 Mar 2010 12:19
by napx
Hi,
I recently noticed that red colors in a Big Bang Theory episode are all blocky and very annoying in VLC 1.0.5. The same problems do not appear in WMP12. I do not know if this is a known issue (I tried searching). I made a zip file with 2 screenshots.

bbt_wmp12.png vs. bbt_vlc105.png (see my post below)

It is not the exact same frame but the problem is easily visible. I also apologize for using rapidshare (10 downloads limit) but image sharing sites would recompress the image making the problem undetectable. I would be grateful if someone can reshare them if they have access to a good image hosting site.

Here's the setup I tested this on:

Dell Inspiron 1520.
Windows 7 Ultimate 64-Bit, fully updated.
Nvidia 8400M GS, driver 195.62 / 197.16.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 30 Mar 2010 16:59
by VLC_help
Please, share images via image servicers like imgur. Rapidshare is horrible nowadays.

Do other video output modules work any better?
http://wiki.videolan.org/WindowsFAQ-1.0 ... _output.3F

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 30 Mar 2010 17:17
by napx
OK here's photobucket. I tried directx3d, opengl and gdi output modes with no change.


WMP:

Image


VLC:

Image


+ Another example :

Image

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 31 Mar 2010 17:33
by VLC_help
Is there some short sample video you could share to us?

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 31 Mar 2010 18:18
by napx
I paid attention while watching other videos. And they all reproduce this problem, only in red colors. The distortion is in all shades of red, but the brighter/fuller the red, the worse it gets. It's not some samples that this is happening, but all videos, therefore there's no point to sharing a sample. There is nothing special about the video file that does this it seems.
I tried turning off post-processing, no change.
Any ideas except try and see what happens with the upcoming VLC 1.1 ?

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 01 Apr 2010 17:31
by VLC_help
It seems this bothers VLC 1.1.0 also. Thanks for noticing this. I opened trac ticket for this
http://trac.videolan.org/vlc/ticket/3487

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 02 Apr 2010 03:29
by napx
Glad to help. VLC belongs to all of us and all should contribute as they can. Is it universal and not my config?

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 02 Apr 2010 15:52
by VLC_help
I can replicate the issues with those images if I open them with my VLC so it is at least Win32 level issue.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 03 Apr 2010 11:43
by napx
I found mention of the same problem here:

http://www.cccp-project.net/forums/inde ... pic=3442.0

(Vista, CCCP codec, AMD graphics)

Maybe the problem is not in VLC at all but files with low bitrate encoding. Then I wonder what the WMP codec does to mask the problem..

Here is an explanation from that forum:

"The samples are taken from overlapped pixels and/or a smaller number of samples spread across those pixels and/or samples recorded in a macro block pattern not directly representing each pixel but representing a pattern within the macro block. This unfortunately makes the macro blocks within solid colours and vivid colours very noticeable depending on which encoder is used, the encoder's bit rate, quantisation settings and also any chroma optimisations that are selected at the time of encoding. This macro block encoding also creates the well known halo effect around high contrast content within the scene like logos and sharp edges. When the bit rate falls below a certain threshold it becomes very noticeable."

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 04 Apr 2010 14:22
by VLC_help
It isn't bitrate related, since the image files itself can be used to replicate the issue.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 09 Apr 2010 12:20
by napx
True. I didn't think of loading the static image into VLC before.
I tried loading various .jpg's into VLC, and it exhibits the same issue. I also noticed that pictures loaded into VLC have slightly more washed-out, less vibrant colors than when I view them with Windows Photo Viewer. Could this be considered a problem too?

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 09 Apr 2010 16:18
by VLC_help
JPEG files can have additional color correction info but AFAIK VLC doesn't support those. It might explain some color issues.

Also if you have NVIDIA display adapter, then try
viewtopic.php?f=14&t=72889&p=240603&hilit=YUV#p240603

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 09 Apr 2010 18:58
by napx
The fix on viewtopic.php?f=14&t=72889&p=240603&hilit=YUV#p240603 solved the slight color issue! thanks.
Does disabling hardware YUV>RGB conversion come with a performance penalty though?

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 10 Apr 2010 16:31
by VLC_help
Yep, but very minor one.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 20 May 2010 00:30
by napx
I see on trac that the issue is still not resolved. I have a tidbit of new information for you. I notice similar pixelation with red colors in flash videos on sites like The Onion too. The problem is not as bad as in VLC with the Onion vidoes, but I assume it's because the videos are way more compressed overall so overall quality is lower.

Check out this video : http://www.theonion.com/video/new-googl ... dir,17470/

0:08 the reporter's red tie
0:57 red rectangle on the very right hand of the screen
1:08 red phone icon on the handheld device

can you see the pixelation?

This is very odd. It must be something to do with either Nvidia drivers, or Windows 7 x64 ? Since we know the problem is not there in WMP, what could VLC and Adobe Flash player have in common?

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 20 May 2010 17:16
by VLC_help
could VLC and Adobe Flash player have in common?
Overlay or YUV>RGB conversion done via display adapter.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 21 May 2010 16:39
by napx
I have "Use hardware YUV>RGB conversions" disabled in VLC, the problem persists. Is this expected?

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 21 May 2010 18:26
by Jean-Baptiste Kempf
Deactivate Overlay too.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 21 May 2010 20:06
by napx
Tried that already (and again now). Does not solve it.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 22 May 2010 16:40
by VLC_help
Then it might be some sort of DirectX or Direct3D driver bug.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 20 Jun 2010 15:14
by napx
Update:
Nvidia drivers 257.21 x64 Windows 7

Problem remains with Output modes "Default", "Windows GDI", "OpenGL", "DirectX3D".

Output mode "DirectX" does not have the problem! However this disables Windows Aero.

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 22 Jun 2010 23:56
by napx
Problem is no longer there in VLC 1.1 :)
Except when I take a snapshot in VLC.. "Print Screen" screenshot does not show problem either..

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 23 Jun 2010 13:29
by Jean-Baptiste Kempf
jpg snapshot?

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 23 Jun 2010 13:47
by napx
VLC 1.1 default settings (cleared pref's and cache).


Printscreen pasted into photoshop and saved as png (This is how I see it during playback):
Image


Snapshot using VLC's snapshot tool:
Image

Re: Blockiness, aliasing on edges - Red colors only (1.0.5 B

Posted: 23 Jun 2010 13:48
by Jean-Baptiste Kempf
ok, does it happen if you use jpg to snapshot?