Hey Larry,

Looks like you're right. OpenImageIO can't find a format writer for .mov.
It's likely that I'm missing an FFmpeg dependency. Thanks!

On Fri., Sep. 25, 2020, 10:00 a.m. Larry Gritz, <[email protected]> wrote:

> I think it should work. Two things to check:
>
>     oiiotool --help
>
> Look at the bottom, make sure that ffmpeg is in the "input formats
> supported" section, and that the "dependent libraries" section lists it and
> has the version you expect.
>
> Next, try adding this to your test:
>
> out = oiio.ImageOutput.create(path)
> * if not out :*
>
> *     print("error:", oiio.geterror())* image_format = out.format_name()
>
> Maybe there's something up with opening that particular file.
>
>
> On Sep 23, 2020, at 10:18 AM, Scott Wilson <[email protected]> wrote:
>
> Hello all,
>
> We're upgrading oiio from 1.7 to 2.2.6.1 for the big Python 3 update. I've
> compiled oiio with FFmpeg support for Python 2.7 and 3.7.
>
> I have some code that I use to get the file type of an image or movie that
> looks like this:
>
> out = oiio.ImageOutput.create(path)
> image_format = out.format_name()
>
> If the path is something like "file.mov", then out is None. However, in
> our 1.7 build, it'll return mov. Is there something I did wrong with my
> compile, or does oiio return None in this case now?
>
> Thanks!
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
>
> --
> Larry Gritz
> [email protected]
>
>
>
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to