corrected set_duration audio.duration bug. added stderr.close in ffmpeg_writer