[Libav-user] Error message 'Could not open codec' when running FFMPEG-codec.

Anders Branderud anders.branderud at gmail.com
Sun Mar 18 17:47:42 CET 2012


Hello!
[I accidentally sent this e-mail to the wrong list earlier. Sorry for this!
]

I am running the following code:
https://docs.google.com/document/d/1DbNpoy0MHNjS3ZV-6plaVdbmvW6g08riqtIz6fBO3ZE/edit

Some excerpts:
video_encode_example("/home/anders/grb_1.mpg", CODEC_ID_MPEG4);

static void video_encode_example(const char *filename, int codec_id)
{
 {
   //For full code see document attached above.
     /* open it */
    if (avcodec_open2(c, codec, NULL) < 0) {
        fprintf(stderr, "could not open codec\n");
        exit(1);
    }

}

The message 'could not open codec' is printed out.
video_encode_example("/home/anders/grb_1.mpg", CODEC_ID_MPEG2VIDEO);
generates the same error message.

How do I resolve this?
Thanks in advance!

-- *Kind regards, Anders
*[Personal blog] Will of the
Creator<http://www.proofexistencegod.com/will-of-god/will-of-god/>  :
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.

[Company] Anders Branderud IT Solutions - www.abitsolutions.org



-- 
*Kind regards,*

[Personal blog] Will of the
Creator<http://www.proofexistencegod.com/will-of-god/will-of-god/>  :
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.

[Company] Anders Branderud IT Solutions - www.abitsolutions.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120318/1770fa2c/attachment.html>


More information about the Libav-user mailing list