Hi Carl, 

Sorry for posting the code to pastebin, I hadn't realised that that was frowned 
upon.
I just tried all four pixel formats that you mentioned and the results are as 
follows:

AV_PIX_FMT_ARGB: http://i.imgur.com/zg7p9AT.png
AV_PIX_FMT_ABGR: http://i.imgur.com/W2FISEX.png
AV_PIX_FMT_RGBA: http://i.imgur.com/g6beWP4.png
AV_PIX_FMT_BGRA: http://i.imgur.com/fbViLhj.png


On Wednesday, April 10, 2013 at 12:09 PM, Carl Eugen Hoyos wrote:

> Bogdan Popa <popa.bogdanp@...> writes:
> 
> > I'm receiving raw camera frames in the RGB32 little 
> > endian format and converting them to YUV420P frames 
> > which I then encode to H264 and it's working fine 
> > except for one thing: the colors are all messed up
> > 
> 
> 
> Instead of PIX_FMT_RGB32 (which depends on endianess), 
> try the four native pix_fmts:
> AV_PIX_FMT_ARGB
> AV_PIX_FMT_ABGR
> AV_PIX_FMT_RGBA
> AV_PIX_FMT_BGRA
> (Sorry if you feel I should point out the right one 
> immediately or at least mark the one that definitely 
> does not work.)
> 
> Generally, please don't use pastebin when posting here, 
> post the complete information in your email.
> 
> Carl Eugen
> 
> _______________________________________________
> Libav-user mailing list
> [email protected] (mailto:[email protected])
> http://ffmpeg.org/mailman/listinfo/libav-user
> 
> 


_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to