[libav-api] avformat_open_input always returns "No such file or directory" (-2)

tasptz at gmail.com tasptz at gmail.com
Thu Nov 24 22:36:45 CET 2011


On 11/24/2011 08:17 PM, Luca Barbato wrote:
> On 24/11/11 13:58, tasptz at gmail.com wrote:
>> Hello,
>>
>> I upgraded to v0.7.2 and now avformat_open_input always returns "No such
>> file or directory" (-2). I tried it with files and http-mjpg streams but
>> it makes no difference.
>>
>> Call looks like this:
>>
>> AVFormatContext* context = NULL;
>> avformat_open_input(&context, "some file or stream", NULL, NULL);
>>
>> Please help :)
>
> what happens if you strace your application? which file does it try to 
> read?
>
> lu
>
Sorry my fault. I linked the program against libav and opencv which 
linked statically against an older version of ffmpeg ...



More information about the libav-api mailing list