As of April 2015 Raspbian repositories include GStreamer 1.2 and the OpenMAX plugins, so the easiest way is ppumkin's answerppumkin's answer but without editing /etc/apt/sources.list
:
sudo apt-get update
sudo apt-get install gstreamer1.0
then check with:
gst-inspect-1.0 | grep omx