avconv: split printing the final statistics into a separate function