using buffered input stream for clips.