Problem with udpsrc in gst-rtsp-server

Mailing List SVR lists at svrinformatica.it
Mon Feb 28 08:42:59 PST 2011



Il giorno lun, 28/02/2011 alle 11.14 -0500, Morris Ford ha scritto:
> Thanks a lot for your help. That was the key to getting it to run. I
> now have a working rtsp-server pipe thus:
> 
> 
> ./test-launch "( udpsrc port=5000 caps=\"application/x-rtp, media=
> \(string\)video, clock-rate=\(int\)90000, encoding-name=\(string
> \)H264,  payload=\(int\)96, ssrc=\(guint\)2396357661, clock-base=
> \(guint\)2297066863, seqnum-base=\(guint\)49439\" ! rtph264depay !
> ffdec_h264 ! ffmpegcolorspace ! videoscale ! x264enc ! rtph264pay
> name=pay0 pt=96 sync=false )"
> 

try removing the reencoding part "ffdec_h264 ! ffmpegcolorspace !
videoscale ! x264enc !"

> 
> Problem now is that there is a 3 - 4 second latency when playing using
> that pipeline and playing the resulting video through vlc or
> quicktime.

in vlc use --rtsp-caching=100

> 
> 
> My question: How do I find what is causing the delay and what can I do
> to reduce the delay?
> 
> 
> Thanks
> Morris
> 
> On Mon, Feb 28, 2011 at 2:33 AM, Marco Ballesio <gibrovacco at gmail.com>
> wrote:
>         Hi, 
>         
>         On Mon, Feb 28, 2011 at 3:05 AM, Morris Ford
>         <morrishford at gmail.com> wrote:
>         > I am working on receiving an udpsrc stream and publishing it
>         as an rtsp
>         > stream. This gst-launch string works just fine to receive
>         the stream:
>         > gst-launch-0.10 -v udpsrc port=5000 caps="application/x-rtp,
>         > media=\(string\)video, clock-rate=\(int\)90000,
>         > encoding-name=\(string\)H264,  payload=\(int\)96, ssrc=
>         \(guint\)2396357661,
>         > clock-base=\(guint\)2297066863, seqnum-base=\(guint
>         \)49439" ! rtph264depay !
>         > decodebin ! ffmpegcolorspace ! videoscale ! xvimagesink
>         sync=false
>         > but when I try to take that pipeline and put it into a
>         test-launch, I get
>         > complaints about not being able to set the caps on udpsrc to
>         > application/x-rtp.
>         > Like this:
>         > ./test-launch "( udpsrc port=5000 caps="application/x-rtp,
>         > media=\(string\)video, clock-rate=\(int\)90000,
>         
>         
>         It's just about bash syntax. The way you're using the " make
>         bash
>         thinking you're passing test-launch a first argument like
>         this:
>         
>         ( udpsrc port=5000 caps=
>         
>         concatenated to:
>         
>         application/x-rtp,
>         
>         and a second argument like:
>         
>         media=\(string\)video,
>         
>         useless to say this is not what you should pass to the
>         test-launch
>         command. I suggest you to try replacing the outmost pair of "
>         with '
>         or the innermost ones with \"
>         
>         Regards 
>         
>         > encoding-name=\(string\)H264,  payload=\(int\)96, ssrc=
>         \(guint\)2396357661,
>         > clock-base=\(guint\)2297066863, seqnum-base=\(guint
>         \)49439" ! rtph264depay !
>         > decodebin ! ffmpegcolorspace ! videoscale ! x264enc !
>         rtph264pay name-pay0
>         > pt=96 )"
>         > ** (lt-test-launch:20772): CRITICAL **: could not parse
>         launch syntax ((
>         > udpsrc port=5000 caps=application/x-rtp,): could not set
>         property "caps" in
>         > element "udpsrc0" to "application/x-rtp,"
>         > ** (lt-test-launch:20772): CRITICAL **: could not create
>         element
>         > I could not find any examples of udpsrc in a test-launch
>         line or udpsrc in a
>         > gst-rtsp-server 'c' program so I am not at all sure if what
>         I am trying to
>         > do is valid.
>         > Morris
>         
>         > _______________________________________________
>         > gstreamer-devel mailing list
>         > gstreamer-devel at lists.freedesktop.org
>         >
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>         >
>         >
>         _______________________________________________
>         gstreamer-devel mailing list
>         gstreamer-devel at lists.freedesktop.org
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel 
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list