FIRST CUT ability to write encoded frames to file