Added support for frame to avi merging.