avconv: factor out the output stream initialization