# Set up the gst-omx environment for the pi user cp omx/gstomx-raspberry.conf $HOME/omx/lib/gstreamer-0.10/gstomx.conf cd $HOME echo -e \\n# Gstreamer environment >> .profile echo export GST_PLUGIN_PATH=$HOME/omx/lib/gstreamer-0.10/ >> .profile echo export GST_OMX_CONFIG_DIR=$HOME/omx/lib/gstreamer-0.10/ >> .profile echo export LD_LIBRARY_PATH=$HOME/omx/lib/gstreamer-0.10/ >> .profile . ./.profile # Verify that gst-omx has been installed correctly. If it has the following command should show these plug-ins gst-inspect-0.10 | grep omx openmax omxmpeg4videodec: OpenMAX MPEG4 Video Decoder openmax omxh264dec: OpenMAX H.264 Video Decoder # Enable omxh264enc plugin for hardware h.264 Encoding This plugin, so far, appears to be broken, but here's how to enable it. Add the following to $GST_OMX_CONFIG_DIR/gstomx.conf [omxh264enc] type-name=GstOMXH264Enc core-name=/opt/vc/lib/libopenmaxil.so component-name=OMX.broadcom.video_encode rank=256 in-port-index=200 out-port-index=201 hacks=no-empty-eos-buffer;no-component-role