[gst-devel] rtsp-server works locally, not over network

Wes Miller wmiller at sdr.com
Wed Jun 23 21:21:48 CEST 2010


Hi Folks,

I managed to modify the test-video.c  example in the gst-rtsp package to
connect my webcam to my network.  From the host computer I can see the video
by using playbin, rtspsrc, totem and totem via firefox, all using
rtsp://127.0.0.1:8554/test as the url.  The pipeline reads:

gst_rtsp_media_factory_set_launch( factory,
      "( "
        "v4l2src "
        " ! ffmpegcolorspace  "
        " ! video/x-raw-yuv,width=640,height=480,framerate=20/1 "
        " ! videoscale "
        " ! ffenc_h263 "
        " ! rtph263pay name=pay0 pt=96  "
      ")"
    );

However, when I try with another computer on our house network using
rtsp://10.253.5.204:8554/test I get almost nothing,
Totem says an error occurred.  

Using   gst-launch playbin -v uri="..."   I get the frame for a window where
video output should be, but no picture.  No error messages.

Using    

     gst-launch -v -e rtspsrc location="rtsp://10.253.5.204:8554/test" !
rtph263depay ! ffdec_h263 ! ffmpegcolorspace ! autovideosink 

I get the output shown below.  I note that the width and height in the
receiver side do not match the sender side.  I tried adding:some video
controls, but they seem to have no effect.

     gst-launch -v -e rtspsrc location="rtsp://10.253.5.204:8554/test" !
rtph263depay ! ffdec_h263 !
video/x-raw-yuv,width=640,height=480,framerate=15/1 ! videoscale ! videorate
!  ffmpegcolorspace ! autovideosink

Any suggestions?

Wes

------------------------------------------------------------------------------------------------------------------


Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: latency = 2000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: buffer-mode =
slave (1)
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout =
5000000
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout = 0
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:sync_src:
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSsrcDemux:rtpssrcdemux0.GstPad:rtcp_sink:
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSsrcDemux:rtpssrcdemux0.GstPad:rtcp_src_831911953:
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpJitterBuffer:rtpjitterbuffer0.GstPad:sink_rtcp:
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRtpH263Depay:rtph263depay0.GstPad:src: caps =
video/x-h263, variant=(string)itu, h263version=(string)h263
/GstPipeline:pipeline0/GstRtpH263Depay:rtph263depay0.GstPad:sink: caps =
application/x-rtp, media=(string)video, payload=(int)34,
clock-rate=(int)90000, encoding-name=(string)H263, a-tool=(string)GStreamer,
a-type=(string)broadcast, clock-base=(uint)2069118295,
seqnum-base=(uint)58908, npt-start=(guint64)0, play-speed=(double)1,
play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_831911953_34:
caps = application/x-rtp, media=(string)video, payload=(int)34,
clock-rate=(int)90000, encoding-name=(string)H263, a-tool=(string)GStreamer,
a-type=(string)broadcast, clock-base=(uint)2069118295,
seqnum-base=(uint)58908, npt-start=(guint64)0, play-speed=(double)1,
play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_831911953_34.GstProxyPad:proxypad5:
caps = application/x-rtp, media=(string)video, payload=(int)34,
clock-rate=(int)90000, encoding-name=(string)H263, a-tool=(string)GStreamer,
a-type=(string)broadcast, clock-base=(uint)2069118295,
seqnum-base=(uint)58908, npt-start=(guint64)0, play-speed=(double)1,
play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_831911953_34.GstProxyPad:proxypad4:
caps = application/x-rtp, media=(string)video, payload=(int)34,
clock-rate=(int)90000, encoding-name=(string)H263, a-tool=(string)GStreamer,
a-type=(string)broadcast, clock-base=(uint)2069118295,
seqnum-base=(uint)58908, npt-start=(guint64)0, play-speed=(double)1,
play-scale=(double)1
/GstPipeline:pipeline0/ffdec_h263:ffdec_h2630.GstPad:sink: caps =
video/x-h263, variant=(string)itu, h263version=(string)h263
/GstPipeline:pipeline0/ffdec_h263:ffdec_h2630.GstPad:src: caps =
video/x-raw-yuv, width=(int)352, height=(int)288,
framerate=(fraction)30000/1001, format=(fourcc)I420,
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps =
video/x-raw-yuv, format=(fourcc)YV12, width=(int)352, height=(int)288,
framerate=(fraction)30000/1001, interlaced=(boolean)false,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps =
video/x-raw-yuv, width=(int)352, height=(int)288,
framerate=(fraction)30000/1001, format=(fourcc)I420,
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage.GstPad:sink:
caps = video/x-raw-yuv, format=(fourcc)YV12, width=(int)352,
height=(int)288, framerate=(fraction)30000/1001, interlaced=(boolean)false,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink:
caps = video/x-raw-yuv, format=(fourcc)YV12, width=(int)352,
height=(int)288, framerate=(fraction)30000/1001, interlaced=(boolean)false,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad0:
caps = video/x-raw-yuv, format=(fourcc)YV12, width=(int)352,
height=(int)288, framerate=(fraction)30000/1001, interlaced=(boolean)false,
pixel-aspect-ratio=(fraction)12/11
/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:udpsink1.GstPad:sink:
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad3:
caps = application/x-rtcp

-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/rtsp-server-works-locally-not-over-network-tp2266061p2266061.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list