avconv: split audio transcoding out of output_packet().