[Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread francesco
Hi to all I'm attempting to encode in PIX_FMT_YUYV422 using libavcodec. It's not clear to me the format of input raw data. I understood that all pixel should be in 16 Bit format, but in buffer, how should be inserted data ? That is, if locpFrame is a pointer to an AVFrame, I should insert;

Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread Carl Eugen Hoyos
francesco@... writes: I'm attempting to encode in PIX_FMT_YUYV422 using libavcodec. It's not clear to me the format of input raw data. I understood that all pixel should be in 16 Bit format, but in buffer, how should be inserted data ? That is, if locpFrame is a pointer to an AVFrame, I

Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread Carl Eugen Hoyos
Carl Eugen Hoyos cehoyos@... writes: locpFrame-data[0] = The buffer containing packetized samples, Y0,Cr0,Y1,Cb0,Y2,Cr1,Y3,Cb1 This is approximately PIX_FMT_YUYV422 I should add that afaict, rawvideo is the only encoder that supports PIX_FMT_YUYV422, so I don't think that is what you

Re: [Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread Carl Eugen Hoyos
francesco@... writes: locpFrame-data[0] = The buffer containing packetized samples, Y0,Cr0,Y1,Cb0,Y2,Cr1,Y3,Cb1 This is approximately PIX_FMT_YUYV422, but I suspect you have Cr and Cb swapped, please see libavutil/pixfmt.h (Or is the comment wrong there?) [...] why you state

[Libav-user] libavcodec/libswscale alignment problem

2012-01-23 Thread Camera Man
I did a git pull on a project, and started getting this message: Warning: data is not aligned! This can lead to a speedloss This message is uttered by swscale because the U and V pictures are not 16-byte aligned as required for SSE2, but only 8-byte aligned. The source code indicates this is

Re: [Libav-user] problems on windows cross compile

2012-01-23 Thread Gonzalo Garramuno
2012/1/19 Michael Niedermayer michae...@gmx.at you could try asking at zeranoes forum, they probably know better how to compile for windows. except that my suggestion would be to read the manuals of the compiler and linker and look for alignment related options. also a newer compiler might