Hi, I'm not sure what's going on here. It certainly ought to be able to read 
mp4 and mov files.

There are two things that could be going wrong:

1. Are you quite sure that OIIO was built against ffmpeg? Try running

    oiiotool --help

and toward the bottom, you should see in the "Input formats supported" that it 
says "ffmpeg", and also in the "Dependent libraries" section, you should see 
ffmpeg with the version you expect.

2. Is it possible that ffmpeg was itself built with all the right flags and 
dependencies to support those formats? Sometimes a big package like that might 
have formats individually enabled or disabled depending on which of its own 
dependencies were available at build time, and also sometimes depending on the 
licenses in involved (for example, some movie files may be disabled by default 
for licensing reasons, but there are flags to enable them). I don't know that 
any of these things are true about ffmpeg, but it's something I would check.



> On Jan 1, 2022, at 1:50 PM, Romain Augier <cont...@romainaugier.com> wrote:
> 
> Hello,
> 
> I have encountered trouble while trying to read video files with OIIO 
> (version 2.3.7 on Windows 10).
> 
> I've built OpenImageIO using vcpkg like this :
> 
> ./vcpkg install openimageio[ffmpeg,libraw]:x64-windows
> 
> (vcpkg commit : 1085a57da0725c19e19586025438e8c16f34c890)
> 
> It builds successfully, and then I tried to read a .mov and a .mp4 file (I 
> believe they were made with Nuke 12.0) using the following C++ code :
> 
> auto in = OIIO::ImageInput::open(fp);
> 
> if(!in)
> {
>     std::cout << "[ERROR] : [OIIO] : " << OIIO::geterror() << "\n";
>     return;
> }
> 
> // code to read and process the image...
> 
> I get the following error message : [ERROR] : [OIIO] : OpenImageIO could not 
> find a format reader for 
> "C:/Users/augie/Documents/OpenViewer/test/mov/mov_simple.mov". Is it a file 
> format that OpenImageIO doesn't know about?
> And I've noticed that no dll from ffmpeg is being copied into the binary 
> build directory. It works fine for every image format I've tested with, but I 
> can't get it working with video files.
> 
> Is there any special function to call to initialize ffmpeg plugin for 
> OpenImageIO ? I can share the videos if it's needed to try to reproduce a bug.
> 
> And by the way, happy new year !
> 
> Cordially,
> 
> Romain Augier
> Houdini TD / Tool Developer
> https://romainaugier.com/ <https://romainaugier.com/>
> cont...@romainaugier.com <mailto:cont...@romainaugier.com>
> +33601020297
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
l...@larrygritz.com




_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to