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.<br>My current pipelines are:<br><br>Server:<br> #!/bin/sh<br>
<br>DEST=127.0.0.1<br><br>VOFFSET=0<br>AOFFSET=0<br><br>VELEM="v4l2src device=/dev/video0"<br>VCAPS="ffmpegcolorspace"<br>VSOURCE="$VELEM ! $VCAPS"<br>VENC=" timeoverlay ! x264enc byte-stream=true bitrate=2000 cabac=false ! rtph264pay mtu=1438 "<br>
<br>VRTPSINK="udpsink port=5000 host=$DEST ts-offset=$VOFFSET name=vrtpsink"<br>VRTCPSINK="udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink"<br>VRTCPSRC="udpsrc port=5005 name=vrtpsrc"<br>
<br>PIPELINE="gstrtpbin name=rtpbin <br> $VSOURCE ! $VENC ! rtpbin.send_rtp_sink_2<br> rtpbin.send_rtp_src_2 ! $VRTPSINK <br> rtpbin.send_rtcp_src_2 ! $VRTCPSINK<br> $VRTCPSRC ! rtpbin.recv_rtcp_sink_2"<br>
<br>echo $PIPELINE<br><br>gst-launch -v $PIPELINE<br><br>Client:<br>#!/bin/sh<br>VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"<br><br>DEST=127.0.0.1<br><br>
gst-launch -v gstrtpbin name=rtpbin \<br>
udpsrc caps=$VIDEO_CAPS port=5000 ! rtpbin.recv_rtp_sink_0 \<br> rtpbin. ! rtph264depay ! ffdec_h264 ! autovideosink \<br> udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \<br>
rtpbin.send_rtcp_src_0 ! udpsink host=$DEST port=5005 sync=false async=false<br><br>Thank you in advance.<br>