<div dir="ltr">Hello!<br><div class="gmail_quote"><div dir="ltr">[I accidentally sent this e-mail to the wrong list earlier. Sorry for this! ]<br><br>I am running the following code:<br><a href="https://docs.google.com/document/d/1DbNpoy0MHNjS3ZV-6plaVdbmvW6g08riqtIz6fBO3ZE/edit" target="_blank">https://docs.google.com/document/d/1DbNpoy0MHNjS3ZV-6plaVdbmvW6g08riqtIz6fBO3ZE/edit</a><br clear="all">

<br>Some excerpts:<br>video_encode_example("/home/anders/grb_1.mpg", CODEC_ID_MPEG4);<br><br>static void video_encode_example(const char *filename, int codec_id)<br>{<br> {<br>   //For full code see document attached above.<br>

     /* open it */<br>    if (avcodec_open2(c, codec, NULL) < 0) {<br>        fprintf(stderr, "could not open codec\n");<br>        exit(1);<br>    }<br><br>} <br><br>The message 'could not open codec' is printed out.<br>

video_encode_example("/home/anders/grb_1.mpg", CODEC_ID_MPEG2VIDEO); generates the same error message.<br><br>How do I resolve this?<br>Thanks in advance!<br><br>-- <span style="border-collapse:collapse;color:rgb(51,51,51);font-family:arial,sans-serif;font-size:13px"><b>Kind regards, Anders<br>

</b></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"></span><span style="border-collapse:collapse;color:rgb(51,51,51);font-family:arial,sans-serif;font-size:13px"></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font color="#000099">[Personal blog] <a href="http://www.proofexistencegod.com/will-of-god/will-of-god/" target="_blank">Will of the Creator</a>  : Logical reasons - based on scientific premises - for the existence of a Super intelligent and Orderly Creator and that He hasn't left His sapient creatures without an Instruction Manual - Torah ['books of Moses'] - to ascertain, and aspire to, His purpose.<br>

<br>[Company] Anders Branderud IT Solutions - <a href="http://www.abitsolutions.org/" target="_blank">www.abitsolutions.org</a></font></span><br>
</div>
</div><br><br clear="all"><br>-- <br><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><div style="color:rgb(51,51,51)"><span style="border-collapse:collapse;color:rgb(51,51,51);font-family:arial,sans-serif;font-size:13px"><b>Kind regards,</b></span></div>
</span><span style="border-collapse:collapse;color:rgb(51,51,51);font-family:arial,sans-serif;font-size:13px"><img src="http://www.proofexistencegod.com/wp-content/uploads/2011/01/SignaturAndersBranderud60procent.jpg"></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><div style="color:rgb(51,51,51)">
<br></div><font color="#000099">[Personal blog] <a href="http://www.proofexistencegod.com/will-of-god/will-of-god/" target="_blank">Will of the Creator</a>  : Logical reasons - based on scientific premises - for the existence of a Super intelligent and Orderly Creator and that He hasn't left His sapient creatures without an Instruction Manual - Torah ['books of Moses'] - to ascertain, and aspire to, His purpose.<br>
<br>[Company] Anders Branderud IT Solutions - <a href="http://www.abitsolutions.org/" target="_blank">www.abitsolutions.org</a></font></span><br>
</div>