<div dir="ltr"><div><div><div><div><div><div>I am experimenting with the RTSP server, specifically with the test-video application. I have created 3 factories, 3 mappings and 3 launch lines. However, I cannot access servers 2 or 3 due to not linked errors. Here is a snippet of the log.<br>
<br>0:00:07.842130745 27882  0x9cd5008 INFO        GST_ELEMENT_PADS gstutils.c:1592:gst_element_link_pads_full: trying to link element testsrc1:(any) to element capsfilter0:sink<br>0:00:07.842236067 27882  0x9cd5008 INFO        GST_ELEMENT_PADS gstelement.c:958:gst_element_get_static_pad: found pad capsfilter0:sink<br>
0:00:07.842285585 27882  0x9cd5008 DEBUG       GST_ELEMENT_PADS gstutils.c:1678:gst_element_link_pads_full: looping through allowed src and dest pads<br>0:00:07.842326722 27882  0x9cd5008 DEBUG       GST_ELEMENT_PADS gstutils.c:1681:gst_element_link_pads_full: trying src pad testsrc1:src<br>
0:00:07.853733483 27882  0x9cd5008 DEBUG       GST_ELEMENT_PADS gstutils.c:1695:gst_element_link_pads_full: linked pad testsrc1:src to pad capsfilter0:sink<br>0:00:07.853822042 27882  0x9cd5008 INFO        GST_ELEMENT_PADS gstutils.c:1592:gst_element_link_pads_full: trying to link element capsfilter0:src to element enc1:(any)<br>
0:00:07.853936235 27882  0x9cd5008 INFO        GST_ELEMENT_PADS gstelement.c:958:gst_element_get_static_pad: found pad capsfilter0:src<br>0:00:07.853998255 27882  0x9cd5008 DEBUG       GST_ELEMENT_PADS gstutils.c:1678:gst_element_link_pads_full: looping through allowed src and dest pads<br>
0:00:07.854052173 27882  0x9cd5008 DEBUG       GST_ELEMENT_PADS gstutils.c:1681:gst_element_link_pads_full: trying src pad capsfilter0:src<br>0:00:07.854137659 27882  0x9cd5008 DEBUG       GST_ELEMENT_PADS gstutils.c:1111:gst_element_get_compatible_pad: finding pad in enc1 compatible with capsfilter0:src<br>
0:00:07.854229711 27882  0x9cd5008 DEBUG       GST_ELEMENT_PADS gstutils.c:1164:gst_element_get_compatible_pad: already linked or cannot be linked (peer = (nil))<br>0:00:07.854479816 27882  0x9cd5008 DEBUG       GST_ELEMENT_PADS gstutils.c:1166:gst_element_get_compatible_pad: unreffing pads<br>
<br><br></div>Here is part of my source code.<br><br></div>factory = gst_rtsp_media_factory_new();<br></div>gst_rtsp_media_factory_set_launch(factory, "( videotestsrc name=testsrc0 ! video/x-raw-yuv,"<br></div>   "width=352,height=288,framerate=15/1 ! x264enc name=enc0 ! rtph264pay name=pay0 pt=96 )");<br>
</div>gst_rtsp_media_mapping_add_factory(mapping, "/test1", factory);<br><br>factory2 = gst_rtsp_media_factory_new();<br>gst_rtsp_media_factory_set_launch(factory2, "( videotestsrc pattern=2 name=testsrc1 ! video/x-raw-yuv,"<br>
   "width=352,height=288,framerate=15/1 ! x264enc name=enc1 ! rtph264pay name=pay1 pt=97 )");<br>gst_rtsp_media_mapping_add_factory(mapping2, "/test2", factory2);<br><br></div>Does anyone have any suggestions?<br>
<br>Thank you,<br>Chuck<br><div><br><br></div></div>