avconv: split video transcoding out of output_packet().