Gstreamer add missing plugins on Arch

This is for an ArchLinux or Arch based linux distro.
You may encounter the below error when its your first time setting up an arch distro.

GStreamer could not create the element: autoaudiosink. Please make sure that you have installed all necessary GStreamer plugins (e.g. OGG and MP3)

To resolve this problem and save you time from figuring out what packages are needed for audio files, run below command then test your audio files after successful installation of packages.

sudo pacman -S --needed --noconfirm gst-plugins-bad gst-plugins-base gstreamer gstreamer0.10 gstreamer0.10-bad gstreamer0.10-bad-plugins gstreamer0.10-base-plugins gstreamer0.10-ffmpeg gstreamer0.10-good gstreamer0.10-good-plugins gstreamer0.10-python gstreamer0.10-ugly gstreamer0.10-ugly-plugins phonon-qt4-gstreamer

Credits to: FadeMind