This is because libx264 or the extra codecs are not installed. Install with

sudo apt-get install -y x264 libx264-123 libx264-dev libavcodec-extra-53
1