initial ffmpegWriter code