[gst-devel] help needed to write rtsp client using gstreamer plugins

sanjay kumar gupta sanjay417 at rediffmail.com
Thu Jan 11 14:43:04 CET 2007


Hi Wim & Lutz Müller,
   Thanks a lot for your reply.
   I checkout the latest code for gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad  & gst-plugins-ugly from
$cvs -d:pserver:anoncvs at anoncvs.freedesktop.org:/cvs/gstreamer co modulename
and installed into my system (linux fedora 6).
I saw in RELEASE file that code changes for rtsp support in playbin element (336301 : [playbin] can't handle RTSP source) has been in cluded in this code.
when I am trying to play 3gp and mov then getting the following errors:

Command of 3gp:
$gst-launch-0.10  --gst-debug=2 --gst-debug-no-color  playbin uri=rtsp://192.168.3.9/sample_50kbit.3gp
Error for for this command:
================================
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.281914000 11591 0x8c8ca50 WARN               basesrc gstbasesrc.c:1614:gst_base_src_loop:<udpsrc0> error: Internal data flow error.
0:00:00.282223000 11591 0x8c8ca50 WARN               basesrc gstbasesrc.c:1614:gst_base_src_loop:<udpsrc0> error: streaming task paused, reason not-linked (-1)
ERROR: from element /playbin0/source/udpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(1614): gst_base_src_loop (): /playbin0/source/udpsrc0:
streaming task paused, reason not-linked (-1)
Execution ended after 5872000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:00:00.287840000 11591 0x8c94150 WARN              GST_PADS gstpad.c:669:gst_pad_set_active: Failed to activate pad '':sink
0:00:00.309929000 11591 0x8c94150 WARN              GST_PADS gstpad.c:669:gst_pad_set_active: Failed to activate pad '':sink
Setting pipeline to NULL ...
FREEING pipeline ...
======================================

Command for mov:
$gst-launch-0.10  --gst-debug=2 --gst-debug-no-color  playbin uri=rtsp://192.168.3.9/sample_100kbit.mov

Error log for this command
============================================
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.283858000 29988 0x8b727d8 WARN              GST_PADS gstpad.c:669:gst_pad_set_active: Failed to activate pad '':sink
0:00:00.285810000 29988 0x8b727d8 WARN              GST_PADS gstpad.c:669:gst_pad_set_active: Failed to activate pad '':sink
** Message: don't know how to handle application/x-rtp, media=(string)audio, payload=(int)97, clock-rate=(int)22050, encoding-name=(string)X-QDM, encoding-params=(string)2
0:00:00.291022000 29988 0x8b727d8 WARN               basesrc gstbasesrc.c:1614:gst_base_src_loop:<udpsrc2> error: Internal data flow error.
0:00:00.291085000 29988 0x8b727d8 WARN               basesrc gstbasesrc.c:1614:gst_base_src_loop:<udpsrc2> error: streaming task paused, reason not-linked (-1)
ERROR: from element /playbin0/source/udpsrc2: Internal data flow error.
Additional debug info:
gstbasesrc.c(1614): gst_base_src_loop (): /playbin0/source/udpsrc2:
streaming task paused, reason not-linked (-1)
Execution ended after 36916000 ns.
Setting pipeline to PAUSED ...
0:00:00.401864000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:849:gst_ffmpeg_codecid_to_caps: Could not create stream format caps for ppm
0:00:00.402136000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:849:gst_ffmpeg_codecid_to_caps: Could not create stream format caps for pgm
0:00:00.402358000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:849:gst_ffmpeg_codecid_to_caps: Could not create stream format caps for pgmyuv
0:00:00.402574000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:849:gst_ffmpeg_codecid_to_caps: Could not create stream format caps for pbm
0:00:00.402808000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:849:gst_ffmpeg_codecid_to_caps: Could not create stream format caps for pam
0:00:00.403165000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:849:gst_ffmpeg_codecid_to_caps: Could not create stream format caps for ffvhuff
.....
0:00:00.413854000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:893:gst_ffmpeg_codecid_to_caps: No caps found for codec_id=1
0:00:00.415211000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:893:gst_ffmpeg_codecid_to_caps: No caps found for codec_id=86016
..........
0:00:00.515353000 29988 0x8b6e750 WARN                ffmpeg gstffmpegcodecmap.c:1526:gst_ffmpeg_formatid_to_caps: Could not create stream format caps for avs
0:00:00.957342000 29988 0x8aba068 WARN               rtspsrc gstrtspsrc.c:1598:gst_rtspsrc_send:<source> error: Could not receive message. (Operation interrupted)
0:00:00.957499000 29988 0x8aba068 WARN               rtspsrc gstrtspsrc.c:2377:gst_rtspsrc_pause:<source> error: Could not send message.
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...
=========================================

Thanks & Regards,
Sanjay

On Thu, 11 Jan 2007 Wim Taymans wrote :
>On Thu, 2007-01-11 at 07:31 +0100, Lutz Müller wrote:
> > On Thu, 2007-01-11 at 05:15 +0000, sanjay kumar gupta wrote:
> > > 0:00:00.161803000 27571 0xa097df8 WARN              basesrc
> > > gstbasesrc.c:1614:gst_base_src_loop:<udpsrc2> error: Internal data
> > > flow error.
> > > 0:00:00.161868000 27571 0xa097df8 WARN              basesrc
> > > gstbasesrc.c:1614:gst_base_src_loop:<udpsrc2> error: streaming task
> > > paused, reason not-linked (-1)
>
>This is still a known problem, as soon as one of the UDP sources is
>unlinked, it'll post an error and -launch will stop. RTSPSrc should only
>forward the error if *all* UDP sources are unlinked.
>
> >
> > Have you tried playbin location="rtsp:..." with latest CVS? Wim made it
> > support rtsp recently.
> >
> > gst-launch itself cannot handle rtspsrc, as the source pad of this
> > element is only created while the element is playing. Therefore the
> > elements rtspsrc and rtpmp4vdepay will never get linked by gst-launch.
>
>This is not true, -launch can link perfectly fine while playing.
>however, you need to manually disable synchronisation in the sinks for
>now (xvimagesink sync=0).
>
>Wim
>
>
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>--
>Wim Taymans <wim at fluendo.com>
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>gstreamer-devel mailing list
>gstreamer-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070111/d33f9bae/attachment.htm>


More information about the gstreamer-devel mailing list