<div dir="ltr">Just a quick guess...but have you tried stopping the firewall? sudo iptables stop<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 20, 2015 at 6:06 AM, gagankumarnigam <span dir="ltr"><<a href="mailto:gagankumarnigam@bel.co.in" target="_blank">gagankumarnigam@bel.co.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
i have taken demo-send.cpp(from net which is given below) example compiled<br>
and run on one system .It is Running successfully without any error and also<br>
showing display.<br>
<br>
however on client i gave cmd line argument which is running well but not<br>
given any display: It is like that<br>
<br>
[arcgis@localhost Desktop]$ gst-launch -v udpsrc port=8999<br>
caps="application/x-rtp,payload=96,encoding-name=H264" ! rtph264depay !<br>
h264parse ! ffdec_h264 ! autovideosink<br>
<br>
and o/p is<br>
<br>
Pipeline is live and does not need PREROLL ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
<br>
but no display..................<br>
<br>
Can any one suggest me what is the errrrrrrrrrrrrrrrrrrrrrrrrrrr here??<br>
Server side code is given below<br>
<br>
************demo.server.cpp*******************<br>
<br>
#include<gst/gst.h><br>
#define RECV_IP "192.168.1.3"<br>
<br>
static gboolean<br>
bus_call( GstBus *bus,GstMessage *msg, gpointer data )<br>
{<br>
GMainLoop *loop = ( GMainLoop* )data;<br>
switch( GST_MESSAGE_TYPE( msg )) {<br>
case GST_MESSAGE_EOS:<br>
g_print ( "End-of-stream\n" );<br>
g_main_loop_quit( loop );<br>
break;<br>
case GST_MESSAGE_ERROR: {<br>
gchar *debug;<br>
GError* err;<br>
gst_message_parse_error( msg,&err,&debug );<br>
g_print ( "Error: %s\n", err ->message );<br>
g_error_free( err );<br>
g_main_loop_quit ( loop );<br>
break;<br>
}<br>
default:<br>
break;<br>
}<br>
return TRUE;<br>
}<br>
<br>
int main(int argc, char* argv[])<br>
{<br>
GstElement *pipeline, *source,*queue,*videoscale,*capsfilter;<br>
GstElement *ffmpegcs, *encoder, *rtph264pay;<br>
GstElement *rtpbin, *udpsink_rtp, *udpsink_rtcp,*udpsrc_rtcp;<br>
GstElement *sink, *tee, *queuesave,*queuesend;<br>
GstElement *filesink;<br>
GstElement *ffmpegcsd;<br>
GMainLoop *loop;<br>
gboolean ret = FALSE;<br>
int port = 4030;<br>
GstCaps* caps;<br>
gchar* name;<br>
GstPad* sinkpad;<br>
GstCaps* sinkcaps;<br>
<br>
gint* port2;<br>
//GstStaticCaps staticcaps;<br>
<br>
gst_init (&argc, &argv);<br>
caps = gst_caps_from_string( "video/x-raw-yuv,width=320,height=240" );//<br>
GST_STATIC_CAPS( "video/x-raw-yuv,width=320,height=240" );<br>
//staticcaps = GST_STATIC_CAPS( "video/x-raw-yuv,width=320,height=240" );//<br>
GST_STATIC_CAPS( "video/x-raw-yuv,width=320,height=240" );<br>
loop = g_main_loop_new( NULL,FALSE );<br>
<br>
pipeline = gst_pipeline_new( "video-send" );<br>
source = gst_element_factory_make ( "v4l2src","file-source" );<br>
queue = gst_element_factory_make ( "queue", "queue" );<br>
videoscale = gst_element_factory_make ( "videoscale", "videoscale" );<br>
capsfilter = gst_element_factory_make ( "capsfilter", "capsfilter" );<br>
ffmpegcs = gst_element_factory_make ( "ffmpegcolorspace", "ffmpegcs"<br>
);<br>
ffmpegcsd = gst_element_factory_make ( "ffmpegcolorspace", "ffmpegcsd"<br>
);<br>
encoder = gst_element_factory_make ( "x264enc", "encoder" );<br>
rtph264pay = gst_element_factory_make ( "rtph264pay", "rtph264pay" );<br>
rtpbin = gst_element_factory_make ( "gstrtpbin", "rtpbin" );<br>
udpsink_rtp = gst_element_factory_make ( "udpsink", "udpsink-send data"<br>
);<br>
udpsink_rtcp = gst_element_factory_make ( "udpsink", "udpsink-rtcp" );<br>
udpsrc_rtcp = gst_element_factory_make ( "udpsrc", "udpsrc-rtcp" );<br>
sink = gst_element_factory_make ( "autovideosink", "sink" );<br>
filesink = gst_element_factory_make ( "filesink", "filesink" );<br>
tee = gst_element_factory_make ( "tee", "tee" );<br>
queuesave = gst_element_factory_make ( "queue", "queuesave" );<br>
queuesend = gst_element_factory_make ( "queue", "queuesend" );<br>
<br>
<br>
if( !pipeline || !source || !queue || !videoscale || !capsfilter ||<br>
!ffmpegcs || !encoder || !rtph264pay || !rtpbin ||<br>
!udpsink_rtp || !udpsink_rtcp || !udpsrc_rtcp || !ffmpegcsd ) {<br>
g_print ( "One element could not be created \n" );<br>
return -1;<br>
}<br>
<br>
g_object_set( G_OBJECT ( filesink ), "location", "./test.txt", NULL );<br>
g_object_set( G_OBJECT ( capsfilter ), "caps", caps, NULL );<br>
g_object_set( G_OBJECT ( encoder ), "bitrate", 100000, NULL);<br>
<br>
g_object_set( G_OBJECT ( udpsink_rtp ), "host", RECV_IP, NULL );<br>
g_object_set( G_OBJECT ( udpsink_rtp ), "port", 10000, NULL );<br>
g_object_set( G_OBJECT ( udpsink_rtcp ),"host", RECV_IP, NULL );<br>
g_object_set( G_OBJECT ( udpsink_rtcp ), "port", 10001, NULL );<br>
g_object_set( G_OBJECT ( udpsrc_rtcp ), "port", 10002, NULL );<br>
<br>
<br>
//gst_bus_add_watch( gst_pipeline_get_bus( GST_PIPELINE( pl_send ) ),<br>
//bus_call,loop );<br>
#if 0<br>
gst_bin_add_many( GST_BIN( pipeline ), source, queue, videoscale,<br>
capsfilter,<br>
ffmpegcs, queuesave,queuesend, tee, filesink, sink, NULL);<br>
ret = gst_element_link_many( source, capsfilter, ffmpegcs,queue, tee, NULL<br>
);<br>
ret = gst_element_link_many( tee, queuesend, sink, NULL );<br>
ret = gst_element_link_many( tee, queuesave, filesink, NULL );<br>
//ret = gst_element_link_many( source, queue, filesink, NULL );<br>
<br>
/*gst_bin_add_many( GST_BIN( pipeline ), source, queue, videoscale,<br>
capsfilter,<br>
ffmpegcs, encoder, rtph264pay, udpsink_rtp, udpsink_rtcp, udpsrc_rtcp,<br>
rtpbin, NULL);<br>
ret = gst_element_link_many( source, queue, videoscale, capsfilter,<br>
ffmpegcs, encoder, udpsink_rtp, NULL );*/<br>
<br>
#else<br>
gst_bin_add_many( GST_BIN( pipeline ), source,ffmpegcs, capsfilter, queue,<br>
tee,<br>
encoder,queuesend,rtph264pay, rtpbin,udpsink_rtp, udpsink_rtcp,<br>
udpsrc_rtcp,<br>
queuesave, ffmpegcsd, sink, NULL);<br>
<br>
ret = gst_element_link_many( source, capsfilter,ffmpegcs, queue, tee, NULL<br>
);<br>
<br>
ret = gst_element_link_many( tee, queuesave,ffmpegcsd, sink, NULL );<br>
ret = gst_element_link_many( tee, queuesend, encoder, rtph264pay, NULL );<br>
ret = gst_element_link_pads_filtered( rtph264pay, "src", rtpbin,<br>
"send_rtp_sink_0", NULL );<br>
ret = gst_element_link_pads_filtered( rtpbin, "send_rtp_src_0",<br>
udpsink_rtp, "sink", NULL );<br>
ret = gst_element_link_pads_filtered( rtpbin, "send_rtcp_src_0",<br>
udpsink_rtcp,"sink", NULL );<br>
ret = gst_element_link_pads_filtered( udpsrc_rtcp, "src", rtpbin,<br>
"recv_rtcp_sink_0", NULL );<br>
#endif<br>
g_print ( "Setting to sending data\n" );<br>
gst_element_set_state ( pipeline, GST_STATE_PLAYING );<br>
gst_element_set_locked_state( udpsink_rtcp, TRUE );<br>
<br>
/*sinkpad = gst_element_get_pad( udpsink_rtp, "sink" );<br>
sinkcaps = gst_caps_new_simple( NULL, NULL );<br>
g_object_get( G_OBJECT ( udpsink_rtp ), "caps", sinkcaps, NULL );<br>
sinkcaps = gst_pad_get_caps( sinkpad );<br>
name = gst_caps_to_string( sinkcaps );*/<br>
<br>
g_main_loop_run( loop );<br>
<br>
<br>
<br>
g_print ( "returned ,stopping playback\n" );<br>
gst_element_set_state( pipeline, GST_STATE_NULL );<br>
<br>
g_print ( "Deleting pipeline\n" );<br>
gst_object_unref( GST_OBJECT ( pipeline ) );<br>
<br>
return 0;<br>
}<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/video-not-displayed-with-the-use-of-rtp-tp4672364.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/video-not-displayed-with-the-use-of-rtp-tp4672364.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br><div dir="ltr"><br><div dir="ltr"><span style="color:black"><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)"></span></font></span><span style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif"></span></div></div></div></div></div></div></div>
</div></div>