Fixed undefined variable error when using avconv