FFmpegWriter: Set parameters before end of encoding
close #183