Sunday, 15 August 2010

windows - ffmpeg avformat_open_input always returns "Protocol not found" rv=(-1330794744) -



windows - ffmpeg avformat_open_input always returns "Protocol not found" rv=(-1330794744) -

trying ffmpeg working in visual studio 2010. far ffmpeg headers , libs loaded, no error or warning occurs.

avcodec_register_all(); avformatcontext *pformatctx = null; char errbuf[256]; pformatctx = avformat_alloc_context(); int rv = avformat_open_input(&pformatctx, "myfile.ext", null, null); if (rv!=0){ av_strerror(rv, errbuf, sizeof(errbuf)); }

the problem is, avformat_open_input returning -1330794744 (errbuf="protocol not found"). tried x86 & x64 headers , libs on 32bit xp , 64bit w7. whatever set "myfile.ext" (tried "file1.avi", "file=c:\file1.avi", "http://www.someweb.com/file1.avi", , empty char* "") response "protocol not found". ideas?

i having same problem. right initialization is

av_register_all();

windows visual-studio-2010 visual-c++ ffmpeg

No comments:

Post a Comment