avconv: rewrite output data size tracking