ffmpeg2theora added and optimization