[Libav-user] Problems converting raw camera frames

Bogdan Popa popa.bogdanp at gmail.com
Wed Apr 10 11:27:55 CEST 2013

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 at ...> 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:
> (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
> Libav-user at ffmpeg.org (mailto:Libav-user at ffmpeg.org)
> http://ffmpeg.org/mailman/listinfo/libav-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130410/1f5b71b0/attachment.html>

More information about the Libav-user mailing list