RTSP source pipeline not working in static mode

Sebastian Dröge sebastian at centricular.com
Mon Jun 27 07:34:19 UTC 2016


On Fr, 2016-06-24 at 17:32 +0200, Marcin Woźniak wrote:
> Hello and hi to all,
> I am fighting with latest 1.8 gstreamer tree to have a pipe to get
> RTSP 
> H264 stream and put it into a filesink.
> All works well when i compile 1.8 branch using dynamic linking (.so 
> modules). But as i need to move it further and crosscompile it to
> ARM 
> board - i need it to compile as a static executable.
> I studied this group, compiled gstreamer with --enable-static and 
> ---disable-registry and plugins trees with --enable-static-plugins.
> Then i created a small piece of code to test with:
> pipeline = gst_parse_launch ("rtspsrc location=rtsp://XXXXX/ 
> protocols=GST_RTSP_LOWER_TRANS_TCP ! rtph264depay ! fakesink", NULL);
> and ran it.
> And voila - it works well when all is compiled as dynamic modules.
> In static mode i added:
> 
> GST_PLUGIN_STATIC_DECLARE(rtsp);
> GST_PLUGIN_STATIC_DECLARE(rtp);
> GST_PLUGIN_STATIC_DECLARE(coreelements);
> GST_PLUGIN_STATIC_DECLARE(videoparsersbad);
> 
> static void
> registerGstStaticPlugins()
> {
>       GST_PLUGIN_STATIC_REGISTER(rtsp);
>       GST_PLUGIN_STATIC_REGISTER(rtp);
>      GST_PLUGIN_STATIC_REGISTER(coreelements);
>      GST_PLUGIN_STATIC_REGISTER(videoparsersbad);
> }

You need a lot of other plugins for this to work. At least rtpmanager,
udp and app are missing here, probably more, depending on how your
real, non-testing pipeline looks like.

-- 

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160627/65af941d/attachment.sig>


More information about the gstreamer-devel mailing list