Add a reverse matrix -> avframe function.

Allows us to (slowly) manipulate the image matrix
and write it back to file.
Write trailer and set timebase to a sensical value.