Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use gst-rtsp-server with own pipeline?

I am writing gstreamer application and need to transfer output audio/video stream over rtsp. But in gst-rtsp-server examples I have founded factory creation only by gst-launch syntax:

factory = gst_rtsp_media_factory_new ();  
gst_rtsp_media_factory_set_launch (factory,
  "( appsrc name=mysrc ! videoconvert ! x264enc ! rtph264pay name=pay0 pt=96 )");

Is it possible to connect gst-rtsp-server elements to my pipe?

like image 945
victor1234 Avatar asked Oct 11 '25 07:10

victor1234


1 Answers

You have to subclass rtsp-media-factory and override default_create_element that will return your pipeline as GstElement

like image 108
aborilov Avatar answered Oct 13 '25 20:10

aborilov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!