Im using a bit older a version  1.7.17.
Im trying to find the quickest way to set the RGBA default channels of a 37
channel 4k openexr file to a 0.0 value. Im doing this to replace
missing/bad frames in a sequence. On my fairly hefty workstation its taking
48 seconds. I could just do this once per sequence and duplicate for every
other missing/bad frame but ...  Im trying to keep everything else in the
file intact like resolution and metadata etc
At first I tried this ... which understandably takes 48 seconds.

oiiotool -i frame.exr  --mulc 0.0 -o foo.exr

after reading the programmer document with it's excellent examples I did
this:

oiiotool -threads 0 --autitile 1 --threads 0 --autotile 1 -i:ch=R,G,B,A
frame.exr  --ch R=0,G=0,B=0,A=1 --compression "zip" -o foo.exr

still took 21 seconds ... ...

Threads: 32
oiiotool runtime statistics:
  Total time: 21.29s
      --ch         : 21.13
      -o           :  0.14
      input        :  0.01
      unaccounted  :  0.00
  Peak memory:    2.0 GB
  Current memory: 2.0 GB
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to