The video container of course tells you what codec the video is, but it can lie or be otherwise incorrect. FFMpeg will use what it says as the default, but you can override it if you'd like (or if you have multiple decoders for a given codec).
But yes, you're right. 99.9% of the time there's no need to specify input decoder library
But yes, you're right. 99.9% of the time there's no need to specify input decoder library