[gst-devel] RTSP_SERVER
Wim Taymans
wim.taymans at gmail.com
Thu May 7 10:38:24 CEST 2009
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
>
>
>
>
>
>
More information about the gstreamer-devel
mailing list