Re: [Libav-user] Converting YUV Data to AVFrame

2015-04-29 Thread Carl Eugen Hoyos
Gaurav Pathak writes: > static void YUV422toRGB888() This is what libswscale is there for. But since you are using the following below: > c->pix_fmt = AV_PIX_FMT_YUV420P; This conversion is definitely completely wrong. This is how your email looks like here: https://ffmpeg.org/pipermail/liba

[Libav-user] Converting YUV Data to AVFrame

2015-04-28 Thread Gaurav Pathak
Hello all, I am working on encoding a raw yuv stream coming directly from webcam, using v4l2. The issue that I am facing is that even after using *avpicture_fill *and assigning every buffer separately as *frame->data[0] = buffers[buf.index].start;frame->data[1] = (buffers[buf.index].start)+1;fr