partial rewrite to add much functionality and begin removing mp4creater