Automatic bitrate detection is back. Closes #3.