Attempting to build gst-rtsp-server in a Mac OSX app

Oren Berkowitz ojberkowitz at gmail.com
Wed Apr 20 03:17:15 UTC 2016


Hello GStreamer devs,

I have been working on a project and I would like to use the
gst-rtsp-server. I am trying to build a program that will run on a Mac and
will stream multicast audio to mobile clients.

I have successfully deployed GStreamer on both Android and iOS with my
client pipeline. I also have been successful in building and modifying the
test-multicast2.c
<https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-multicast2.c>
example to stream audio to those clients. The audio sounds great and the
latency is good.

However, I now want to run the RTSP server in a Mac OSX application built
in XCode. I found this example
<https://github.com/corrosion/gstreamer-osx-bundle> which has been great
for getting GStreamer running. I added libgstrtspserver-1.0.dylib to the
dependencies "Link Binary with Libraries" and the app compiles and runs (I
was getting "Undefined for architecture" errors before doing that).
However, I keep getting this error when my server starts running:

*(Gst-Test:2073): GLib-GObject-WARNING **: gsignal.c:2516: signal
'media-constructed' is invalid for instance '0x1028e48a0' of type
'pending-state'*

The line causing this is `g_signal_connect (factory, "media-constructed", (
GCallback) media_constructed, NULL);` I don't know what the cause is, but
since this callback isn't getting set up, it isn't called, and therefore
the pool and stream aren't set up properly.

I don't get this error when running `./test-multicast2` from the command
line, so I don't know how to debug it.

If anyone has any advice for me, or is aware of any successful attempts to
bundle the gst-rtsp-server in a Mac OS X application, I would be incredibly
grateful!


Oren Berkowitz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160419/e93f6f3d/attachment.html>


More information about the gstreamer-devel mailing list