[FFmpeg-user] avcodec_open return error -22

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Jan 10 14:08:10 CET 2012


Jasleen Kaur <Jasleen <at> beesys.com> writes:

> Following is the code i have written to use ffmpeg to open MP4 encoder.
> When I call avcodec_open it returns -22.

This mailing list is primarily for questions about the tool ffmpeg, there is a
mailing list for API questions, please read http://ffmpeg.org/contact.html

>  pContext->codec_id = CODEC_ID_MPEG4;

>  pContext->pix_fmt = PIX_FMT_RGBA;

I don't know much about FFmpeg API, but encoding RGB to ASP is definitely not
supported (and not defined afaik).

Carl Eugen



More information about the ffmpeg-user mailing list