Gstreamer RTSP src element name
rajvik
kamdar.rajvi at gmail.com
Tue Jan 24 06:07:32 UTC 2017
Thanks Tarun for the response.
I get the idea of linking using g_signal_connect. But I am still wondering
how shall I use name element with the same. The following code follows:
*Here I create rtspsrc element:*
source = gst_element_factory_make ("rtspsrc", "rtsp-source");
g_object_set(source, "location", "rtsp://192.168.3.30:8554/rajvi",
NULL);
g_object_set(source, "latency", 0, NULL);
g_object_set(source, "name", "demux", NULL)
*Here I link the call the demux0 the element to link it to the audio queue:
*
audio = gst_bin_get_by_name(GST_BIN(pipeline), "demux0");
*Here I link all the elements with audio bin*:
gst_bin_add_many(GST_BIN(audio), audioDepay, audioParse,
audioDecode,audioConvert, audioResample, audioSink, NULL);
if (!gst_element_link_many(audioQueue, audioDepay, audioParse,
audioDecode, audioConvert, audioResample, audioSink, NULL))
{
g_printerr("Cannot link audioDepay and audioParse \n");
return 0;
}
Same is applicable to video queue as well.
Question is how shall I use signal connect? And with which element shall I
use signal connect with audioQueue or any other element?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681606.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list