RTP problem

Bkmz zzbkmzz at gmail.com
Tue Feb 21 00:41:04 PST 2012


Hello, I have problem with rtp.

Here the code:


sender

gst-launch --gst-plugin-path=/home/counter/detector/bin -v rtspsrc 
location=rtsp://user:pass@10.10.10.11/axis-media/media.amp ! 
rtph264depay ! decodebin !  rtpvrawpay ! udpsink host=127.0.0.1 
port=8811 | while read line ; do
   if [[ $line =~ .*GstUDPSink.*caps.*video.* ]]
   then
      echo $line | sed -e 's/.*caps = //' | sed -e 's/ //g' > caps_11.txt
   fi
   echo $line
done

It captures rtsp from ip-camera and sends raw RGB images via UDP. Caps I 
parse from sender output

receiver

CAPS=$( (cat caps_11.txt) )

gst-launch  -v udpsrc do-timestamp=true multicast-group=127.0.0.1 
port=8811 caps="$CAPS" ! rtpvrawdepay ! clockoverlay halignment=1 
text="`date +%d.%m.%y`" font-desc="Sans 28" ! ffenc_flv ! ffmux_flv ! 
filesink async=false sync=false location=$FDIR/$FFNAME


when I listen lo interface with tcpdump - I see udp packets to 8811, 
thats ok, but file is zero size

If i put to reciever invalid caps (width and height bigger than real) in 
starts receiv packets with corrupted frames.


I used debian 6.0 with it's gstreamer

Package: libgstreamer0.10-0
New: yes
State: installed
Automatically installed: no
Version: 0.10.30-1
Priority: optional
Section: libs
Maintainer: Maintainers of GStreamer packages 
<pkg-gstreamer-maintainers at lists.alioth.debian.org>
Uncompressed Size: 3449 k
Depends: libc6 (>= 2.10), libglib2.0-0 (>= 2.24.0), libxml2 (>= 2.7.4)
Suggests: gstreamer0.10-tools, gstreamer0.10-plugins
Conflicts: gstreamer0.10-plugins-base (< 0.10.25.2), 
libgstreamer-plugins-base0.10-0 (< 0.10.11cvs20070110-0ubuntu5)
Replaces: gobject-introspection-repository (< 0.6.5-2)
Description: Core GStreamer libraries and elements
  GStreamer is a streaming media framework, based on graphs of filters 
which operate on media data.  Applications using this
  library can do anything from real-time sound processing to playing 
videos, and just about anything else media-related.  Its
  plugin-based architecture means that new data types or processing 
capabilities can be added simply by installing new plug-ins.

  This package contains the core library and elements.
Homepage: http://gstreamer.freedesktop.org





More information about the gstreamer-devel mailing list