avconv: factor out initializing input streams.