[Libav-user] avcodec_encode_video returns 0 or -ve value

2012-04-19 Thread Manya Chauhan
Hello Everyone,  I  want to encode series of uiimages which are being captured live by the camera. While encoding the images avcodec_encode_video is returning 0 or -ve value. I am not getting what is the problem. I might be missing setting some parameters of avcodec context or avframe. I want

[Libav-user] getting very bad image after encoding

2012-04-20 Thread Manya Chauhan
I am encoding images using avcodec_encode_video method and displaying them on subscriber demo of the Red5 media server. The problem i am facing is that all the images which are being displayed are totally distorted and nothing is clearly visible. I think something might be wrong with the pix_fmt