fix movie writer

add movie writer finished block
fix writer error

But now it will drop frame,TODO fix it.