avconv: Separate initialization from the main transcode loop.