Modifications to support avconv instead of ffmpeg