Initial work on FrameEncoder.