Hi,
The AI answer explained their purpose correctly. It’s best to keep them installed since they help videos play properly on your system. If you remove those codecs, some videos may stop playing or have playback issues.
In addition to that, some apps and websites, including YouTube, also use these codecs for streaming and video playback. Keeping them installed helps avoid compatibility issues and makes sure different video formats work as expected.