[FFmpeg-user] avcodec_open return error -22

Jasleen Kaur Jasleen at beesys.com
Wed Jan 11 08:29:42 CET 2012

From: ffmpeg-user-bounces at ffmpeg.org [ffmpeg-user-bounces at ffmpeg.org] on behalf of Stefano Sabatini [stefasab at gmail.com]
Sent: Tuesday, January 10, 2012 11:18 PM
To: FFmpeg user questions and RTFMs
Subject: Re: [FFmpeg-user] avcodec_open return error -22

On date Tuesday 2012-01-10 11:39:50 +0000, Jasleen Kaur encoded:
> Following is the code i have written to use ffmpeg to open MP4 encoder.
> When I call avcodec_open it returns -22.
> Is there missing configuration?
> What does this error mean? Is there any documentation for the error numbers?

AVERROR(EINVAL) if I'm not in error, check libavutil/error.h but you
should debug and see where it fails (in case the log doesn't tell
nothing meaningful).

> Also what is the units for the bit_rate field?
bits per second IIRC.

thanks for guiding
I am unable to find the error log, where is error log generated?


More information about the ffmpeg-user mailing list