Quickstart Guide

From RidgeRun Developer Wiki

Follow Us On Twitter LinkedIn Email Share this page







Preferred Partner Logo 3 Partner Program Banner




This wiki will show you how to quickly get started with GStreamer Browser Sink.


Building the Project

Start by installing dependencies and building the code as described in the Building the Code page.

Running the Sample

Once you've built the project, you can run the example provided as follows.

1) Run the pipeline

gst-launch-1.0 autovideosrc ! videoconvert ! queue ! \
    x264enc speed-preset=ultrafast tune=zerolatency key-int-max=30 ! \
    h264parse ! rrbrowsersink serve-path=examples/simple/

2) Navigate to http://127.0.0.1:8080/

You should see the following output in your browser.

Expected output for simple example

In this example, since there is no camera connected, the pipeline defaults to videotestsrc pattern generator as the fallback source. If you have a camera, you'll see that pop up instead.

Troubleshooting

If you run into any problem running the pipeline, please send the following information to support@ridgerun.com :

  • Re-run the pipeline with GST_DEBUG=2,rrbrowsersink:6 environment variable and share the terminal output
GST_DEBUG=2,rrbrowsersink:6 gst-launch-1.0 autovideosrc ! videoconvert ! queue ! \
    x264enc speed-preset=ultrafast tune=zerolatency key-int-max=30 ! \
    h264parse ! rrbrowsersink serve-path=examples/simple/
  • Information about your execution environment
echo "GStreamer version"
gst-launch-1.0 --gst-version
echo "GStreamer default plugin path"
gst-inspect-1.0 identity | grep Filename
echo "GStreamer env usr path: $GST_PLUGIN_PATH"
echo "GStreamer env sys path: $GST_PLUGIN_SYSTEM_PATH"
echo "Direct plugin inspect"
gst-inspect-1.0 /usr/lib/$(uname -m)-linux-gnu/gstreamer-1.0/libgstrrbrowsersink.so