OIIO is not really trying to be a video oriented API and doesn't understand 
video files. That's just not what it was designed for. There are some edge 
cases, for example, it can read from many video files, but to OIIO they just 
look like a container with many separate still images. But it glosses over 
things like frame rates, audio, the ins and outs of all the parameters you need 
for certain video codecs, etc., and doesn't have a provision for writing video 
files.

ffmpeg is exactly the opposite -- it's the king of reading and writing video 
formats, but actually its grasp of OpenEXR is pretty suspect, and it doesn't 
have any provision for an OpenColorIO-based color management pipeline.

So the short answer is that what most studios do is use oiiotool to 
batch-convert their exr -> png (to pick a format that ffmpeg is good at), 
including resizing and the OCIO transformations to the intended final output 
color space, then feed those images to ffmpeg for the actual encoding into a 
video file of the desired format.

Please note this repo https://richardssam.github.io/ffmpeg-tests
in which Sam Richards from Disney Imagineering has tried to investigate best 
practices for this task. That whole site is full of information you'll want to 
read.



> On Jan 18, 2023, at 1:37 AM, Mike Battcock 
> <mike.battc...@time-based-arts.com> wrote:
> 
> Hello,
> 
> I'm not very familiar with OIIO but it seems very powerful. Does it just 
> convert from one image format to another or can it convert an image sequence 
> to a video?
> 
> I would like to convert an AcesCG exr sequence to an h264 video, is that 
> possible with OIIO? I've not been able to find a solution with ffmpeg that 
> manages the aces colourspace and I'm hoping to find a solution that can do 
> the conversion at once without first converting the images to a different 
> colourspace...
> 
> Cheers,
> Mike 
> _______________________________________________
> 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