rtspsrc plugin: udpsrc Internal data flow error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

rtspsrc plugin: udpsrc Internal data flow error

Ting Wang-3
Hello,

I'm using rtspsrc, the command:

/mnt/Temp/felix_tmp/output # ../bin/gst-launch rtspsrc location=rtsp://10.38.38.150/sample_100kbit.mp4 ! fakesink

works OK, and my streaming server is up and in good condition, but when issuing the command:

/mnt/Temp/felix_tmp/output # ../bin/gst-launch rtspsrc location=rtsp://10.38.38.150/sample_100kbit.mp4 ! gstrtpjitterbuffer ! rtph264depay ! h264dec ! overlay2sink

I got the following error message:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /pipeline0/rtspsrc0/udpsrc2: Internal data flow error.
Additional debug info:
gstbasesrc.c(2165): gst_base_src_loop (): /pipeline0/rtspsrc0/udpsrc2:
streaming task paused, reason not-linked (-1)
Execution ended after 216414462 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
overlay2 unmap error!
FREEING pipeline ...

What could have caused "Internal data flow error"?  Would someone please give me some advice? Thank you very much :)

Best regards

Felix


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtspsrc plugin: udpsrc Internal data flow error

Ting Wang-3
After setting GST_DEBUG=3, I found those following error information:

......................................................................................................
0:00:02.830674461  2063 0x102920 INFO      GST_ELEMENT_PADS gstelement.c:641:gst_element_add_pad:<rtpptdemux1> adding pad 'src_96'
0:00:02.834983692  2063 0x102920 INFO              GST_PADS gstpad.c:1769:gst_pad_link_prepare: trying to link rtpptdemux1:src_96 and recv_rtp_src_0_547059553_96:proxypad6
0:00:02.836655076  2063 0x102920 INFO              GST_PADS gstpad.c:1906:gst_pad_link: linked rtpptdemux1:src_96 and recv_rtp_src_0_547059553_96:proxypad6, successful
0:00:02.838054769  2063 0x102920 INFO      GST_ELEMENT_PADS gstelement.c:641:gst_element_add_pad:<rtpbin0> adding pad 'recv_rtp_src_0_547059553_96'
0:00:02.842733230  2063 0x102920 INFO              GST_PADS gstpad.c:1769:gst_pad_link_prepare: trying to link rtpbin0:recv_rtp_src_0_547059553_96 and recv_rtp_src_0_547059553_96:proxypad7
0:00:02.845067076  2063 0x102920 INFO              GST_PADS gstpad.c:1906:gst_pad_link: linked rtpbin0:recv_rtp_src_0_547059553_96 and recv_rtp_src_0_547059553_96:proxypad7, successful
0:00:02.846058153  2063 0x102920 INFO      GST_ELEMENT_PADS gstelement.c:641:gst_element_add_pad:<rtspsrc0> adding pad 'recv_rtp_src_0_547059553_96'
0:00:02.850103692  2063 0xe9d08 WARN             rtpsource rtpsource.c:809:calculate_jitter: cannot get current time
0:00:02.855280615  2063 0xd3d48 INFO      GST_ELEMENT_PADS gstelement.c:641:gst_element_add_pad:<rtpptdemux0> adding pad 'src_97'
0:00:02.859652307  2063 0xd3d48 INFO              GST_PADS gstpad.c:1769:gst_pad_link_prepare: trying to link rtpptdemux0:src_97 and recv_rtp_src_1_1101393272_97:proxypad8
0:00:02.861467999  2063 0xd3d48 INFO              GST_PADS gstpad.c:1906:gst_pad_link: linked rtpptdemux0:src_97 and recv_rtp_src_1_1101393272_97:proxypad8, successful
0:00:02.862773846  2063 0xd3d48 INFO      GST_ELEMENT_PADS gstelement.c:641:gst_element_add_pad:<rtpbin0> adding pad 'recv_rtp_src_1_1101393272_97'
0:00:02.867528616  2063 0xd3d48 INFO              GST_PADS gstpad.c:1769:gst_pad_link_prepare: trying to link rtpbin0:recv_rtp_src_1_1101393272_97 and recv_rtp_src_1_1101393272_97:proxypad9
0:00:02.870068923  2063 0xd3d48 INFO              GST_PADS gstpad.c:1906:gst_pad_link: linked rtpbin0:recv_rtp_src_1_1101393272_97 and recv_rtp_src_1_1101393272_97:proxypad9, successful
0:00:02.871187077  2063 0xd3d48 INFO      GST_ELEMENT_PADS gstelement.c:641:gst_element_add_pad:<rtspsrc0> adding pad 'recv_rtp_src_1_1101393272_97'
0:00:02.874814770  2063 0x130f0 INFO            GST_STATES gstelement.c:2148:gst_element_continue_state:<udpsrc0> completed state change to PLAYING
0:00:02.875670462  2063 0x130f0 INFO            GST_STATES gstelement.c:2161:gst_element_continue_state:<udpsrc0> posting state-changed PAUSED to PLAYING
0:00:02.878230461  2063 0xd2cd0 WARN             rtpsource rtpsource.c:809:calculate_jitter: cannot get current time
0:00:02.879399999  2063 0xd2cd0 INFO               basesrc gstbasesrc.c:2114:gst_base_src_loop:<udpsrc0> pausing after gst_pad_push() = not-linked
0:00:02.880337538  2063 0xd2cd0 WARN               basesrc gstbasesrc.c:2165:gst_base_src_loop:<udpsrc0> error: Internal data flow error.
0:00:02.881175692  2063 0xd2cd0 WARN               basesrc gstbasesrc.c:2165:gst_base_src_loop:<udpsrc0> error: streaming task paused, reason not-linked (-1)
0:00:02.882491384  2063 0xd2cd0 INFO      GST_ERROR_SYSTEM gstelement.c:1674:gst_element_message_full:<udpsrc0> posting message: Internal data flow error.
0:00:02.884321230  2063 0xd2cd0 INFO      GST_ERROR_SYSTEM gstelement.c:1697:gst_element_message_full:<udpsrc0> posted error message: Internal data flow error.
0:00:02.886078769  2063 0xe9d08 WARN             rtpsource rtpsource.c:809:calculate_jitter: cannot get current time
0:00:02.876917231  2063 0x130f0 INFO            GST_STATES gstbin.c:2191:gst_bin_change_state_func:<rtspsrc0> child 'udpsrc0' changed state to 4(PLAYING) successfully
0:00:02.888022461  2063 0x130f0 INFO            GST_STATES gstelement.c:2148:gst_element_continue_state:<rtspsrc0> completed state change to PLAYING
0:00:02.888841845  2063 0x130f0 INFO            GST_STATES gstelement.c:2161:gst_element_continue_state:<rtspsrc0> posting state-changed PAUSED to PLAYING
0:00:02.889984922  2063 0xe9d08 INFO               basesrc gstbasesrc.c:2114:gst_base_src_loop:<udpsrc2> pausing after gst_pad_push() = not-linked
0:00:02.890959999  2063 0xe9d08 WARN               basesrc gstbasesrc.c:2165:gst_base_src_loop:<udpsrc2> error: Internal data flow error.
0:00:02.891727076  2063 0xe9d08 WARN               basesrc gstbasesrc.c:2165:gst_base_src_loop:<udpsrc2> error: streaming task paused, reason not-linked (-1)
0:00:02.892926153  2063 0xe9d08 INFO      GST_ERROR_SYSTEM gstelement.c:1674:gst_element_message_full:<udpsrc2> posting message: Internal data flow error.
0:00:02.894355076  2063 0xe9d08 INFO      GST_ERROR_SYSTEM gstelement.c:1697:gst_element_message_full:<udpsrc2> posted error message: Internal data flow error.
0:00:02.896006461  2063 0x130f0 INFO            GST_STATES gstelement.c:2148:gst_element_continue_state:<rtpxqtdepay0> completed state change to PLAYING
0:00:02.896863692  2063 0x130f0 INFO            GST_STATES gstelement.c:2161:gst_element_continue_state:<rtpxqtdepay0> posting state-changed PAUSED to PLAYING
GST_MESSAGE_ERROR
udpsrc2 error: Internal data flow error.
Debug: gstbasesrc.c(2165): gst_base_src_loop (): /pipeline/rtspsrc0/udpsrc2:
streaming task paused, reason not-linked (-1)
      NULL
................................................................................................

the main error is "not-linked".
I'm wondering why there generates two recv_rtp_src: recv_rtp_src_1_1101393272_97 and recv_rtp_src_0_547059553_96. It seems that with one recv_rtp_src, the program can work fine.


On Wed, Jul 16, 2008 at 10:56 AM, Ting Wang <[hidden email]> wrote:
Hello,

I'm using rtspsrc, the command:

/mnt/Temp/felix_tmp/output # ../bin/gst-launch rtspsrc location=rtsp://10.38.38.150/sample_100kbit.mp4 ! fakesink

works OK, and my streaming server is up and in good condition, but when issuing the command:

/mnt/Temp/felix_tmp/output # ../bin/gst-launch rtspsrc location=rtsp://10.38.38.150/sample_100kbit.mp4 ! gstrtpjitterbuffer ! rtph264depay ! h264dec ! overlay2sink

I got the following error message:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /pipeline0/rtspsrc0/udpsrc2: Internal data flow error.
Additional debug info:
gstbasesrc.c(2165): gst_base_src_loop (): /pipeline0/rtspsrc0/udpsrc2:
streaming task paused, reason not-linked (-1)
Execution ended after 216414462 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
overlay2 unmap error!
FREEING pipeline ...

What could have caused "Internal data flow error"?  Would someone please give me some advice? Thank you very much :)

Best regards

Felix



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtspsrc plugin: udpsrc Internal data flow error

Aurelien Grimaud (elzz)
In reply to this post by Ting Wang-3
Are you sure sample_100kbit.mp4 is h264 ?
seems like a qtss sample and mine is mpeg4 ....
try rtpmp4vdepay and ffdec_mpeg4.
You should gst-launch with -v option, it will hint you about video codec.
Caps on rtspsrc video src pad is 'application/x-rtp, media=video, encoding-name=MP4V-ES'

Aurelien

Ting Wang a écrit :
Hello,

I'm using rtspsrc, the command:

/mnt/Temp/felix_tmp/output # ../bin/gst-launch rtspsrc location=<a class="moz-txt-link-freetext" href="rtsp://">rtsp://10.38.38.150/sample_100kbit.mp4 ! fakesink

works OK, and my streaming server is up and in good condition, but when issuing the command:

/mnt/Temp/felix_tmp/output # ../bin/gst-launch rtspsrc location=<a class="moz-txt-link-freetext" href="rtsp://">rtsp://10.38.38.150/sample_100kbit.mp4 ! gstrtpjitterbuffer ! rtph264depay ! h264dec ! overlay2sink

I got the following error message:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /pipeline0/rtspsrc0/udpsrc2: Internal data flow error.
Additional debug info:
gstbasesrc.c(2165): gst_base_src_loop (): /pipeline0/rtspsrc0/udpsrc2:
streaming task paused, reason not-linked (-1)
Execution ended after 216414462 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
overlay2 unmap error!
FREEING pipeline ...

What could have caused "Internal data flow error"?  Would someone please give me some advice? Thank you very much :)

Best regards

Felix


------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtspsrc plugin: udpsrc Internal data flow error

Eric Eric
In reply to this post by Ting Wang-3
Hi, gst-devel:

    Seems that you selected the wrong rtpdepay & decode elements -- this
is the most common reason for "internal data flow error" as I know.

    rtspsrc will open 2 udpsrc to receive udp packets from rtsp server,
one for RTP data transfer and another is for RTCP. Actually, rtspsrc
also use an udpsink element to send RTCP feedbacks to rtsp server. Refer
to RFC2326, RFC3550 for more details.

Eric Zhang
2008-7-17

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel