Modified to support avconv