logo Sign In

Post #651118

Author
You_Too
Parent topic
Info: The Matrix - with original theatrical color timing?
Link to post in topic
https://originaltrilogy.com/post/id/651118/action/topic#651118
Date created
22-Jul-2013, 12:06 PM

Doctor M said:

I've never found ColourLike to do anything good for a movie.

It's good on a frame by frame basis, but even for as little as a scene it fails to produce good results.

The problem is the references it uses are for whole clips, not individual frames.

If you could get it to check the a single frame, adjust the colors and then move to the next frame and start again, it'd probably be useful.

Our own AntcuFaalb wrote a function for just that:

function ColourLikeFBF(clip c1, clip c2)
{ # Color-matches c1 to c2, frame by frame.
  # Assumes c1 and c2 are the same length and are
  # both compatible with ColourLike.
  global c1 = c1
  global c2 = c2
  return c1.ScriptClip("""
    ca = c1.Trim(current_frame, -1)
    cb = c2.Trim(current_frame, -1)
    ca.WriteHistogram("hist1.txt", 1)
    cb.WriteHistogram("hist2.txt", 1)
    ca.ColourLike("hist1.txt", "hist2.txt")
    """)
}

How good it works depends on differences in the sources. If one frame has blown out whites and the same frame of the other clip doesn't, it can adjust it weirdly sometimes.