<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello Everyone, </div><div><br></div><div>I  want to encode series of uiimages which are being captured live by the camera.</div><div>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.</div><div><br></div><div>I want to know which parameters should we set before using avcodec_encode_video.</div><div><br></div><div>Please help me..Any help is appreciated......... </div></div></body></html>