[gst-devel] Ubuntu and Gstreamer

Thomaz Barros thomazavila at gmail.com
Fri Aug 27 21:23:02 CEST 2010


Hi all, I'm having some problems with Gstreamer in a Ubuntu 10.04 desktop.
I'm trying to make an H.264 streaming application but there is a delay about
2-3 seconds.
My current pipelines are:

Server:
 #!/bin/sh

DEST=127.0.0.1

VOFFSET=0
AOFFSET=0

VELEM="v4l2src device=/dev/video0"
VCAPS="ffmpegcolorspace"
VSOURCE="$VELEM ! $VCAPS"
VENC=" timeoverlay ! x264enc  byte-stream=true bitrate=2000 cabac=false !
rtph264pay mtu=1438 "

VRTPSINK="udpsink port=5000 host=$DEST ts-offset=$VOFFSET name=vrtpsink"
VRTCPSINK="udpsink port=5001 host=$DEST sync=false async=false
name=vrtcpsink"
VRTCPSRC="udpsrc port=5005 name=vrtpsrc"

PIPELINE="gstrtpbin name=rtpbin
            $VSOURCE ! $VENC ! rtpbin.send_rtp_sink_2
          rtpbin.send_rtp_src_2 ! $VRTPSINK
              rtpbin.send_rtcp_src_2 ! $VRTCPSINK
            $VRTCPSRC ! rtpbin.recv_rtcp_sink_2"

echo $PIPELINE

gst-launch -v $PIPELINE

Client:
#!/bin/sh
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"

DEST=127.0.0.1

gst-launch -v gstrtpbin name=rtpbin                                    \
           udpsrc caps=$VIDEO_CAPS port=5000 !
rtpbin.recv_rtp_sink_0                   \
             rtpbin. ! rtph264depay ! ffdec_h264 !
autovideosink                     \
           udpsrc port=5001 !
rtpbin.recv_rtcp_sink_0                                   \
           rtpbin.send_rtcp_src_0 ! udpsink host=$DEST port=5005 sync=false
async=false

Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100827/d7b7cb94/attachment.htm>


More information about the gstreamer-devel mailing list