Help with Gstreamer and RTSP with Axis Camera

Tom Hendrick sdtom182 at yahoo.com
Sat Apr 9 10:13:16 PDT 2011


Thanks Tim,

I can see a live feed from the Axis camera when I do:

gst-launch-0.10 playbin2 uri=rtsp://192.168.0.90/mpeg4/media.amp


I can't figure out how to modify my transmit and receive commands given that I need to depay.  I've read up on the gstreamer site and checked other forums but still can't figure it out.   When I do "gst-launch rtspsrc location=rtsp://192.168.0.90/mpeg4/media.amp !     rtpmp4gdepay ! filesink=txcap.ts" I get an error saying "streaming task paused, reason not-linked (-1)".  


Do you know how I would modify them, here they are again?

gst-launch rtspsrc location=rtsp://192.168.0.90/mpeg4/media.amp !  filesink=txcap.ts

gst-launch playbin uri=file://txcap.ts

Thanks
Tom


--- On Sat, 4/9/11, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:

From: Tim-Philipp Müller <t.i.m at zen.co.uk>
Subject: Re: Help with Gstreamer and RTSP with Axis Camera
To: gstreamer-devel at lists.freedesktop.org
Date: Saturday, April 9, 2011, 10:49 AM

On Fri, 2011-04-08 at 19:12 -0700, Tom Hendrick wrote:

Hi,

> 
> As a quick test, I am (..) just trying the following:
> 
> Transmitter :
> -------------------
> gst-launch rtspsrc location=rtsp://192.168.0.90/mpeg4/media.amp !
> filesink=txcap.ts
> 
> I let this run for 20 seconds and control ^C out of it.
> 
> Receiver:
> -------------
> gst-launch playbin uri=file://txcap.ts
> 
> 
> The problem is that when I run the gst-launch playbin=file://txcap.ts
> the video file plays very fast and then closes.  The quality also
> doesn't look as good as when I use "vlc
> rtsp://192.168.0.90/mpeg4/media.amp"
> 
> I'm a beginner with gstreamer so I'm not sure how to modify the
> transmit and receive command lines to properly set the frame rate,
> codec, etc.  Also another problem is that I want to see this live on
> the receiver, so setting gstreamer to run for a specified amount of
> time so that the header is written properly will not allow me to see
> this real-time on the receive side.  Any suggestions?
> 

This works I presume:

 gst-launch-0.10 playbin2 uri=rtsp://192.168.0.90/mpeg4/media.amp

?

Note that rtspsrc outputs RTP packets, which you need to depayload using
an appropriate depayloader (rtpmp2tdepay? rtpmp4gdepay? rtpmp4vdepay?).

Writing RTP packets to file like you do now is not going to work.

 Cheers
  -Tim

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110409/fda9d8b2/attachment.html>


More information about the gstreamer-devel mailing list