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

Luca Barbato lu_zero at gentoo.org
Fri Nov 25 09:46:01 CET 2011


On 24/11/11 22:36, tasptz at gmail.com wrote:
> 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 ...

You might need 
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/opencv/files/opencv-2.3.1a-libav-0.7.patch?view=markup

lu

-- 

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero



More information about the libav-api mailing list