Log in

View Full Version : Interchanged colors when encoding x264 RGB source


aufkrawall
23rd January 2012, 16:33
Hello,
I'd like to encode a x264 RGB source but unfortunately the colors of the result are interchanged, even when output CSP is RGB again:
http://www.ld-host.de/uploads/thumbnails/e2b1b2829e3a9eeb84233886b2f8b93a.png (http://www.ld-host.de/show/e2b1b2829e3a9eeb84233886b2f8b93a.png)

How can I avoid this? :)
--output rgb2.mkv rgb.mkv --crf 0 --preset ultrafast --output-csp rgb --fps 30

Snowknight26
23rd January 2012, 19:13
swscale detects the output colorspace as BGRP instead of PRGB. Looks like you'll have to wait for a patch..

Dark Shikari
23rd January 2012, 19:37
Are you playing with a decoder with the latest libavcodec? RGB support was only added very recently...

aufkrawall
23rd January 2012, 20:39
Are you playing with a decoder with the latest libavcodec?

I use LAV Decoder, it can decode x264 RGB well.

When encoding there's a warning that there's a conversion from gbrp to rgb24, that it must be.
So, it's indeed a bug?

To be clear: It happens only when converting a x264 RGB source.
If the source is e.g. FRAPS RGB the result is correct.

Is there a possible workaround for this bug?

aufkrawall
25th January 2012, 02:22
Maybe I should post in the bugreports thread about it? :)