Dear Experts ,
I am trying to encode in ( .mpg) by capturing as bitmap .MPEG1
compression
In the encode I am converting RGB24 to yuv444p (tried yuv420p as well )
img_convert_ctx = sws_getContext(c->width, c->height,
PIX_FMT_RGB24,
c->width, c->height,
PIX_FMT_YUV420P,
SWS_SPLINE, NULL, NULL, NULL); // i tried with different
flags here as well ... for SWS_SPLINE & fSPLINE_FAST ..
I found the output has got some color problem
sws_scale(img_convert_ctx, tmp_picture->data, tmp_picture->linesize,
0, c->height, picture->data, picture->linesize);
ALIGNCALL16(out_size = avcodec_encode_video(c, video_outbuf,
video_outbuf_size, picture));
Then i do the write .....
Align call is to avoid the crash in encoding ...
Can anybody give me any hint to this...
THanks....
Mukilan S
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user