Changed ffmpeg to avconv for obvious reasons.
Adapted the main script for this occasion.