x264 with RGB32 input
-
- Joined: Sun Jan 18, 2009 3:40 pm
x264 with RGB32 input
Hey all. I have an RGB32 video that I'd like to encode using x264. However, for some reason it is always converted to the YV12 color space, resulting in quality loss. I'd like to know whether it's possible to encode in RGB32 using x264.
I have been using Zarx264gui if that's any help.
I have been using Zarx264gui if that's any help.
- The Origonal Head Hunter
- The Propheteer
- Joined: Sat Jul 16, 2005 12:21 am
- Status: Hooked on a Feeling
- Location: State of Denial
Re: x264 with RGB32 input
No. If you use Zarxgui, it will HAVE to convert to YV12.
-
- Joined: Sun Jan 18, 2009 3:40 pm
Re: x264 with RGB32 input
Well, can I keep the RGB colors if I use something else?
- Qyot27
- Surreptitious fluffy bunny
- Joined: Fri Aug 30, 2002 12:08 pm
- Status: Creepin' between the bullfrogs
- Location: St. Pete, FL
- Contact:
Re: x264 with RGB32 input
No, H.264 itself doesn't support it. Distribution formats are generally YUV-only, if not strictly YV12. The only exception may be really harshly compressed MJPEG (but who would want to use MJPEG for distribution, anyway?).
Can you see the quality loss after it converts to YV12, and are you certain that loss isn't the product of your other compression settings? That's really the important question here. Colorspace conversions, while technically constituting a loss of quality via having to translate the channel info (and the fact that RGB can't be translated one-one to YUV or vice-versa, there's rounding errors), don't typically start showing the quality loss unless you've gone through several rounds of conversions back and forth.
Can you see the quality loss after it converts to YV12, and are you certain that loss isn't the product of your other compression settings? That's really the important question here. Colorspace conversions, while technically constituting a loss of quality via having to translate the channel info (and the fact that RGB can't be translated one-one to YUV or vice-versa, there's rounding errors), don't typically start showing the quality loss unless you've gone through several rounds of conversions back and forth.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
-
- Joined: Sun Jan 18, 2009 3:40 pm
Re: x264 with RGB32 input
Hmm, well I'm compressing the raw file directly - it hasn't been compressed before. The resulting file seems to have noticeably duller colours, and seeing as the only thing that changed was a conversion to YV12, I assumed that that was the reason. I'll try to post some screenshots of what I'm on about. It might just be a naturalresult of simply compressing to H264.
EDIT: I just took two comparison screenshots, one of the input and one of the output, but it seems that the differences don't show up in them. I have no idea why that may be, there is most definately a noticeable difference when playing the actual video. Any advice?
EDIT: I just took two comparison screenshots, one of the input and one of the output, but it seems that the differences don't show up in them. I have no idea why that may be, there is most definately a noticeable difference when playing the actual video. Any advice?
- Qyot27
- Surreptitious fluffy bunny
- Joined: Fri Aug 30, 2002 12:08 pm
- Status: Creepin' between the bullfrogs
- Location: St. Pete, FL
- Contact:
Re: x264 with RGB32 input
The duller colors may be more a product of the video renderer being used, rather than the video or the colorspace conversion itself. Video renderer differences are also probably the root of the screenshot issue - it could be that those are set on one renderer, and the video player is set on another.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
- Zarxrax
- Joined: Sun Apr 01, 2001 6:37 pm
- Contact:
Re: x264 with RGB32 input
If you use Media Player Classic, you can go into the options and set the video renderer that is used for playback. I don't know which other players support this.
-
- Joined: Sun Jan 18, 2009 3:40 pm
Re: x264 with RGB32 input
Hmm, well I'm not really sure what I did differently this time, but I've managed to obtain two screenshots of the problem. I'd really appreciate if someone could diagnose it.
Original:
http://img6.imageshack.us/img6/6546/rawvc8.png
After encoding:
http://img23.imageshack.us/img23/791/encodedyt9.png
Original:
http://img6.imageshack.us/img6/6546/rawvc8.png
After encoding:
http://img23.imageshack.us/img23/791/encodedyt9.png
- Zarxrax
- Joined: Sun Apr 01, 2001 6:37 pm
- Contact:
Re: x264 with RGB32 input
Its the renderer.