3.2.1 Build
This section will guide you on how to build the MOIL GStreamer Plugin on Ubuntu.
- Get and Set up the moildev library
- Clone gst-plugins-bad repository
- Build MOIL GStreamer Plugin
- Check MOIL GStreamer Plugin PATH
- Test MOIL GStreamer Plugin
1. Get and Set up the moildev library
git clone https://github.com/cjchng/mainmoil_6view.git
cd mainmoil_6view
sudo cp lib/libmoildev.a /usr/local/lib/
sudo ldconfig
2. Clone gst-plugins-bad repository
git clone https://github.com/M11158002/gst-plugins-bad-dev.git
cd gst-plugins-bad-dev
3. Build MOIL GStreamer Plugin
meson setup builddir
meson compile -C builddir
4. Check MOIL GStreamer Plugin PATH
export GST_PLUGIN_PATH="$PWD/builddir/gst/geometrictransform/:$GST_PLUGIN_PATH"
gst-inspect-1.0 geometrictransform
gst-inspect-1.0 equirectangular
5. Test MOIL GStreamer Plugin
go to the test_env directory
cd test_env
Use the video file endo01.mp4 to test the MOIL GStreamer Plugin.
gst-launch-1.0 filesrc location=endo01.mp4 ! qtdemux ! h264parse ! queue ! avdec_h264 ! videoconvert! "video/x-raw, format=BGRA" ! equirectangular ! videoconvert ! autovideosink