GST-RTSP-SERVER Any body please tell me How can i receive an mp3 stream using the rtsp server ? In the server side gst_rtsp_media_factory_set_launch (factory, "(" "filesrc location=1.mp3 !" "mad ! audioconvert ! rtpL16pay name=pay0 pt=96 "")"); In receiver side i run the pipeline like this ./gst-launch -v rtspsrc location=rtsp://localhost:1554/test latency=10 ! rtpL16depay ! audioconvert ! osssink After Runing the server ,In client side i ran this pipeline but it give error like this /*****************************************************************************************/ /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_2987692106_96.GstProxyPad:proxypad3: caps = application/x-rtp, media=(string)audio, payload=(int)96, clock-rate=(int)11025, encoding-name=(string)L16, clock-base=(guint)2719849740, seqnum-base=(guint)18554, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1 ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: Internal data flow error. Additional debug info: gstbasesrc.c(2330): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: streaming task paused, reason not-negotiated (-4) /****************************************************************************************************/ Also in the server side it gives messages like this ./gst-rtsp-server Message: added new client 0x953cdb0 ip 127.0.0.1 with fd 6 ** Message: found media 0x95f3720 for url abspath /test ** Message: constructed media 0x9640068 for url /test ** Message: found media 0x95f3720 for url abspath /test ** Message: constructed media 0x963e048 for url /test ** Message: receive failed -11 (Received end-of-file), disconnect client 0x953cdb0 |
On Thu, 2009-05-07 at 01:12 -0700, vaisakhn7 wrote:
> > > GST-RTSP-SERVER > > Any body please tell me How can i receive an mp3 stream > using the rtsp server ? > In the server side > > gst_rtsp_media_factory_set_launch (factory, "(" "filesrc location=1.mp3 !" > "mad ! audioconvert ! rtpL16pay name=pay0 pt=96 "")"); > > > In receiver side i run the pipeline like this > ./gst-launch -v rtspsrc location=rtsp://localhost:1554/test latency=10 ! > rtpL16depay ! audioconvert ! osssink Try with audioresample between audioconvert and osssink. Likely your hardware does not accept 11025Hz audio natively. Wim > > After Runing the server ,In client side i ran this pipeline but it give > error like this > /*****************************************************************************************/ > /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_2987692106_96.GstProxyPad:proxypad3: > caps = application/x-rtp, media=(string)audio, payload=(int)96, > clock-rate=(int)11025, encoding-name=(string)L16, > clock-base=(guint)2719849740, seqnum-base=(guint)18554, > npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1 > ERROR: from element > /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: Internal data > flow error. > Additional debug info: > gstbasesrc.c(2330): gst_base_src_loop (): > /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: > streaming task paused, reason not-negotiated (-4) > /****************************************************************************************************/ > > > > > > > Also in the server side it gives messages like this > ./gst-rtsp-server > Message: added new client 0x953cdb0 ip 127.0.0.1 with fd 6 > ** Message: found media 0x95f3720 for url abspath /test > ** Message: constructed media 0x9640068 for url /test > ** Message: found media 0x95f3720 for url abspath /test > ** Message: constructed media 0x963e048 for url /test > ** Message: receive failed -11 (Received end-of-file), disconnect client > 0x953cdb0 > > > > > > ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by vaisakhn7
On Thu, 2009-05-07 at 01:12 -0700, vaisakhn7 wrote:
> Any body please tell me How can i receive an mp3 stream > using the rtsp server ? > In receiver side i run the pipeline like this > ./gst-launch -v rtspsrc location=rtsp://localhost:1554/test latency=10 ! > rtpL16depay ! audioconvert ! osssink Try: gst-launch-0.10 -v playbin2 uri=rtsp://localhost:1554/test or gst-launch-0.10 -v rtspsrc location=rtsp://localhost:1554/test ! decodebin2 ! audioconvert ! audioresample ! osssink > /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: Internal data > flow error. > Additional debug info: > gstbasesrc.c(2330): gst_base_src_loop (): > /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: > streaming task paused, reason not-negotiated (-4) This usually means some element didn't accept the caps from an upstream element. Cheers -Tim ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by vaisakhn7
Hi,
Now its getting Error like this In Sender side /**************************/ ** Message: added new client 0x8ce1db0 ip 127.0.0.1 with fd 6 ** Message: found media 0x8d99280 for url abspath /test ** Message: constructed media 0x8deaa68 for url /test ** Message: found media 0x8d99280 for url abspath /test ** Message: constructed media 0x8de8b48 for url /test ** Message: added new client 0x8ce1e30 ip 127.0.0.1 with fd 12 ** Message: receive failed -11 (Received end-of-file), disconnect client 0x8ce1db0 ** Message: found media 0x8d99280 for url abspath /test ** Message: constructed media 0x8e113b0 for url /test ** Message: found media 0x8d99280 for url abspath /test ** Message: constructed media 0x8df36c0 for url /test ** (lt-gst-rtsp-server:6990): CRITICAL **: gst_rtsp_message_parse_request: assertion `msg->type == GST_RTSP_MESSAGE_REQUEST' failed Segmentation fault /********************************/ In receiver side ./gst-launch -v rtspsrc location=rtsp://localhost:1554/test latency=10 ! rtpL16depay ! audioconvert ! audioresample ! osssink ERROR LIKE THIS:/Setting pipeline to PAUSED ... /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: latency = 10 /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: timeout = 5000000 Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0: ntp-ns-base = 3450678272636882000 New clock: GstSystemClock /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = application/x-rtcp /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtcp /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2: caps = application/x-rtcp WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource. Additional debug info: gstrtspsrc.c(2843): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a TCP connection. /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink0.GstPad:sink: caps = NULL /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = NULL /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = NULL /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = NULL /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin1: latency = 10 /******************************************************************************************/ Help me , Advance thanks !! |
In reply to this post by vaisakhn7
Hi,
Now its getting Error like this In Sender side /**************************/ ** Message: added new client 0x8ce1db0 ip 127.0.0.1 with fd 6 ** Message: found media 0x8d99280 for url abspath /test ** Message: constructed media 0x8deaa68 for url /test ** Message: found media 0x8d99280 for url abspath /test ** Message: constructed media 0x8de8b48 for url /test ** Message: added new client 0x8ce1e30 ip 127.0.0.1 with fd 12 ** Message: receive failed -11 (Received end-of-file), disconnect client 0x8ce1db0 ** Message: found media 0x8d99280 for url abspath /test ** Message: constructed media 0x8e113b0 for url /test ** Message: found media 0x8d99280 for url abspath /test ** Message: constructed media 0x8df36c0 for url /test ** (lt-gst-rtsp-server:6990): CRITICAL **: gst_rtsp_message_parse_request: assertion `msg->type == GST_RTSP_MESSAGE_REQUEST' failed Segmentation fault /********************************/ In receiver side ./gst-launch -v rtspsrc location=rtsp://localhost:1554/test latency=10 ! rtpL16depay ! audioconvert ! audioresample ! osssink ERROR LIKE THIS:/Setting pipeline to PAUSED ... /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: latency = 10 /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: timeout = 5000000 Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0: ntp-ns-base = 3450678272636882000 New clock: GstSystemClock /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = application/x-rtcp /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtcp /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2: caps = application/x-rtcp WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource. Additional debug info: gstrtspsrc.c(2843): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a TCP connection. /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink0.GstPad:sink: caps = NULL /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = NULL /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = NULL /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = NULL /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin1: latency = 10 /******************************************************************************************/ Help me , Advance thanks !! |
Free forum by Nabble | Edit this page |