<div dir="ltr">First I've installed libmp3lame as described in ffmpeg compilation guide. I've installed ffmpeg libraries by<div><br></div><div><font color="#666666" face="monospace, monospace">$ ./configure</font></div><div><font color="#666666" face="monospace, monospace">$ make</font></div><div><font color="#666666" face="monospace, monospace">$ sudo make</font></div><div><br></div><div>In my C++ code:</div><div><br></div><div><div><font face="monospace, monospace" color="#666666">avcodec_register_all();</font></div><div><font face="monospace, monospace" color="#666666">AVCodec *codec;</font></div><div><font face="monospace, monospace" color="#666666"><span class="" style="white-space:pre">codec = avcodec_find_encoder(</span>AV_CODEC_ID_MP3<span style="white-space:pre">);</span></font></div><div><br></div></div><div>I get codec = NULL;</div><div><br></div><div>--</div><div>Gowtham</div></div>