avconv: use new encode API