gst_rtp_jitter_buffer_loop Issue
kolanchi
kolanchi at fossilshale.com
Tue Apr 3 06:23:48 PDT 2012
Hi Wim
Thanks for your reply. I corrected my mistake its working fine.
Rgds
Kolanchi
>
> On 04/03/2012 06:44 AM, kolanchi wrote:
>> Hello All,
>>
>> I am prototyping client server streaming using Gstreamer.
>> Using gst-launch it works fine.
>>
>> I am constructing same elements in my code as follows :
>>
>>
>> pipeline = gst_pipeline_new ("rtsp-video-player");
>> source = gst_element_factory_make ("rtspsrc","rtsp-src");
>> depay = gst_element_factory_make
>> ("rtph264depay","h264-depay");
>> decoder = gst_element_factory_make
>> ("ffdec_h264","video-decoder");
>> sink = gst_element_factory_make ("autovideosink",
>> "video-output");
>>
>> if (!pipeline || !source || !depay || !decoder || !sink) {
>> g_printerr ("One element could not be created.
>> Exiting.\n");
>> return -1;
>> }
>>
>> /* we add all elements into the pipeline */
>> gst_bin_add_many (GST_BIN (pipeline),
>> source,depay, decoder, sink, NULL);
>>
>>
>> gst_element_link_many (source,depay,decoder,sink,NULL);
>
> Check the return code of this function, it will return FALSE. Read the
> part about dynamic
> pads in the manual to understand why and how to solve it.
>
> Wim
>
>>
>> g_signal_connect (source, "pad-added", G_CALLBACK
>> (on_pad_added),
>> depay);
>>
>>
>> static void
>> on_pad_added (GstElement *element,
>> GstPad *pad,
>> gpointer data)
>> {
>> gchar *name;
>> GstPad *sinkpad;
>> GstElement *depay = (GstElement *) data;
>> GstElement *fakesink;
>> name = gst_pad_get_name (pad);
>> printf(" Dynamic pad %s\n",name);
>> fakesink = gst_element_factory_make ("fakesink",
>> "video-output");
>>
>> if(strncmp("recv_rtp_src_1",name,14)== 0)
>> {
>> printf("linking pad\n");
>> sinkpad = gst_element_get_static_pad (depay, "sink");
>> printf("Dynamic pad created linking source to
>> %s\n",name);
>> gst_pad_link (pad, sinkpad);
>>
>> gst_object_unref (sinkpad);
>> }
>> if(strncmp("recv_rtp_src_0",name,14)== 0)
>> {
>> printf("linking pad\n");
>> sinkpad = gst_element_get_static_pad (fakesink,
>> "sink");
>> printf("Dynamic pad created linking source to
>> %s\n",name);
>> gst_pad_link (pad, sinkpad);
>>
>> gst_object_unref (sinkpad);
>> }
>>
>> }
>>
>> while running my application I am facing gst_rtp_jitter_buffer_loop is
>> going
>> on while..
>>
>> below i am mentioning the error message.
>>
>>
>> 01660460_97
>> 0:00:02.873210956 2169 0x958c2a8 INFO GST_PADS
>> gstpad.c:1941:gst_pad_link_prepare: trying to link
>> rtsp-src:recv_rtp_src_1_1101660460_97 and h264-depay:sink
>> 0:00:02.873302681 2169 0x958c2a8 INFO GST_PADS
>> gstpad.c:2124:gst_pad_link_full: linked
>> rtsp-src:recv_rtp_src_1_1101660460_97 and
>> h264-depay:sink, successful
>> 0:00:02.873492861 2169 0x958c2a8 INFO GST_EVENT
>> gstevent.c:599:gst_event_new_new_segment_full: creating newsegment
>> update 0,
>> rate
>> 1.000000, format GST_FORMAT_TIME, start 0:00:00.000000000, stop
>> 0:06:49.791992187,
>> position 0:00:00.000000000
>> 0:00:02.873899696 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:02.954846776 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:02.955177936 2169 0x95601a0 INFO basesrc
>> gstbasesrc.c:2511:gst_base_src_loop:<udpsrc1> pausing after
>> gst_pad_push() =
>> not-linked
>> 0:00:02.955233651 2169 0x95601a0 WARN basesrc
>> gstbasesrc.c:2574:gst_base_src_loop:<udpsrc1> error: Internal data flow
>> error.
>> 0:00:02.955258861 2169 0x95601a0 WARN basesrc
>> gstbasesrc.c:2574:gst_base_src_loop:<udpsrc1> error: streaming task
>> paused,
>> reason
>> not-linked (-1)
>> 0:00:02.955313831 2169 0x95601a0 INFO GST_ERROR_SYSTEM
>> gstelement.c:1865:gst_element_message_full:<udpsrc1> posting message:
>> Internal data
>> flow error.
>> 0:00:02.955361091 2169 0x95601a0 INFO GST_ERROR_SYSTEM
>> gstelement.c:1888:gst_element_message_full:<udpsrc1> posted error
>> message:
>> Internal
>> data flow error.
>> 0:00:02.955444806 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:03.037995976 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:03.038312117 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:03.038715702 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:03.121137613 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:03.121465547 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:03.205265284 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:03.205596654 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>> 0:00:03.288398519 2169 0x958c2a8 INFO gstrtpjitterbuffer
>> gstrtpjitterbuffer.c:1603:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0>
>> buffering,
>> elapsed 0:00:01.541666666 estimated_eos 0:06:49.791992187 left
>> 0:06:48.250325521
>> delay 0:00:02.000000000
>>
>>
>> 1.what was the reason the gst_rtp_jitter_buffer_loop is going continous
>> loop?.
>> 2.please guide me how to solve this issue.
>>
>> I am waiting your favourably reply
>>
>> Thanks in advance
>> Kolanchi
>>
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/gst-rtp-jitter-buffer-loop-Issue-tp4527796p4527796.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://gstreamer-devel.966125.n4.nabble.com/gst-rtp-jitter-buffer-loop-Issue-tp4527796p4528065.html
>
> To unsubscribe from gst_rtp_jitter_buffer_loop Issue, visit
> http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4527796&code=a29sYW5jaGlAZm9zc2lsc2hhbGUuY29tfDQ1Mjc3OTZ8LTEzMzQ4NzA2MjM=
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-rtp-jitter-buffer-loop-Issue-tp4527796p4528759.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120403/e4b400e1/attachment-0001.html>
More information about the gstreamer-devel
mailing list