Fix detection of the extension if the 'extractaudio' is given and improve the error message (#1969)

Using 'foo.mp4' shouldn't raise an error.
If 'foo' is given suggest using 'foo.%(ext)s' for the template