There is generally no reliable way to automatically detect those encodings from each other.
If you have (or can find) tools which do the guesswork well enough, and if they have command-line interfaces, you can run them from Opus buttons to automate things.