I am trying to make a rtsp server that can catch a rtsp feed from a onvif camera and then redistribute this stream to everyone that connects to my server.
I created a new Ubuntu 64-bit vm on VMware Workstation using this iso: https://www.ubuntu.com/download/desktop/thank-you?version=18.04.1&architecture=amd64
I then installed ubuntu-desktop:
$ sudo apt-get update
$ sudo apt-get install ubuntu-desktop
$ reboot
I cloned the gst-rtsp-server from its github repository to a folder on my desktop:
$ cd Desktop
$ mkdir camSrv
$ cd camSrv
$ git clone https://github.com/GStreamer/gst-rtsp-server.git
I then installed the dependency referenced by this post:
$ sudo apt-get install autoconf -y
$ sudo apt-get install automake -y
$ sudo apt-get install autopoint -y
$ sudo apt-get install libtool -y
but when i try to build the gst-rtsp-server project, I keep getting errors...
I installed a bunch of other dependencies, but now I'm stuck at the error:
configure: No package 'gstreamer-1.0' found
configure: error: no gstreamer-1.0 >= 1.15.0.1 (GSTreamer) found
I can't find what i'm missing... all i want is to make the example mentioned in this post work for me...
It seems that we do not need to compile anything by ourselves.
We can simply install required development packages from
gst-rtsp-server1.0
source package :and then you can use it as planned.
Below is manual compilation method if you are sure that you want to do.
Install development tools:
(note
libgstreamer1.0-dev
above).Clone the repository:
But Ubuntu 18.04 LTS has old version of GStreamer library (1.14.0) so we need to checkout previous version and then compile:
Note: you can use
sudo make install
in the last stage, butcheckinstall
is safer as it will create deb-package with compiled application (so it is controlled by APT and may be removed withsudo dpkg -r gst-rtsp
).