Get the data in the record rtspserver through pull-sample

james_wjc tf665415 at sina.com
Tue Dec 12 15:04:06 UTC 2017


Hi,this is my reduce code.

Two service , factory1 receives data and sends data to factory2,factory2 is
used to play.
Two clients, one to send data to factory1 , and one VLC to play factory2
data.

 factory1 = gst_rtsp_media_factory_new ();
gst_rtsp_media_factory_set_transport_mode
(factory,GST_RTSP_TRANSPORT_MODE_RECORD);
  gst_rtsp_media_factory_set_launch (factory1, "decodebin name=depay0 !
appsink name=mysink emit-signals=true sync=false");

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


One client:
 gst-launch-1.0.exe -v videotestsrc ! x264enc ! rtspclientsink
location=rtsp://192.168.0.110:10899/test
 send data to factory1

another client:
  vlc rtsp://192.168.0.110:10899/test2 
 play factory2 

 factory1 sends data to factory2
 use appsink‘s new-sample and pull-sample signals

I am running a problem now, using the Pull-sample method, the program has a
problem.
I don't know if this plan will work.

Who can help me analyze? 

Thanks




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list