How to fix Missing plugin: gstreamer on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org

The follow error message appears when trying to play video or audio: Message: Missing plugin: gstreamer|1.0|totem|MPEG-4 AAC decoder|decoder-audio/mpeg, mpegversion=(int)4, level=(string)2, base-profile=(string)lc, profile=(string)lc (MPEG-4 AAC decoder) Message: Missing plugin: gstreamer|1.0|totem|H.264 (Main Profile) decoder|decoder-video/x-h264, level=(string)3.1, profile=(string)main (H.264 (Main Profile) decoder)
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-fix-missing-plugin-gstreamer-on-ubuntu-18-04-bionic-beaver-linux

ubuntu-restricted-extras in Linux Mint 19.3 is without libraries:

dpkg -L ubuntu-restricted-extras
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/ubuntu-restricted-extras
/usr/share/doc/ubuntu-restricted-extras/changelog.gz
/usr/share/doc/ubuntu-restricted-extras/copyright