<div dir="ltr">Was it an oversight that you didn't specify the format in the capsfilter for the udp pipeline? Shouldn't you specify a payload type for the rtp payloader and depayloader (even through there is a default)? Do you need to specify an MTU size (< 1400) for the mobile network? Shouldn't you reverse the videorate and videoscale? I don't really know how these are being used but you don't want to scale frames that will be discarded in videorate.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 24, 2014 at 3:42 PM, it <span dir="ltr"><<a href="mailto:it@sca-uk.com" target="_blank">it@sca-uk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Guys,<br>
<br>
I'm trying to live stream a v4l2src over a tethered mobile phone local area network between two IP addresses 192.168.43.134 and 192.168.43.247.  The video capture card is plugged into 192.168.43.134.<br>
<br>
I have live streaming with very little lag initially in TCP, apart from network buffering which gets worse by the minute, using these commands:<br>
<br>
# TCP host command<br>
<br>
gst-launch v4l2src device=/dev/video0 queue-size=1 always-copy=0 ! videoscale ! videorate ! ffmpegcolorspace ! videobalance brightness=.3 contrast=.8 ! gamma gamma = .5 ! tee name=t1 \<br>
t1. ! queue ! xvimagesink sync=false \<br>
t1. ! queue ! videorate ! video/x-raw-yuv,format=I420,<u></u>width=640,height=480,<u></u>framerate=30000/1001 ! theoraenc quality=63 keyframe-force=1 ! oggmux ! filesink location=video.ogg \<br>
t1. ! queue ! jpegenc ! tcpserversink port=5000<br>
<br>
# TCP client command<br>
<br>
gst-launch tcpclientsrc host=192.168.43.134 port=5000 ! jpegdec ! tee name=t1  \<br>
t1. ! queue ! xvimagesink sync=false \<br>
t1. ! queue ! videorate ! video/x-raw-yuv,width=640,<u></u>height=480,framerate=30000/<u></u>1001 ! theoraenc quality=63 keyframe-force=1 ! oggmux ! filesink location=video.ogg<br>
<br>
So I'm trying to switch to UDP, and I can't get it to work.  Here is what I'm using:<br>
<br>
# UDP<br>
<br>
gst-launch -v v4l2src device=/dev/video0 queue-size=1 always-copy=0 ! videoscale ! videorate ! ffmpegcolorspace ! videobalance brightness=.3 contrast=.8 ! gamma gamma = .5 ! video/x-raw-yuv, framerate=30000/1001, width=640, height=480, pixel-aspect-ratio=1/1 ! tee name=t1  \<br>

t1. ! queue ! xvimagesink sync=false \<br>
t1. ! queue ! theoraenc quality=63 keyframe-force=1 ! filesink location=video.ogg \<br>
t1. ! queue !  rtpvrawpay ! udpsink host=192.168.43.134 port=5000<br>
<br>
gst-launch  udpsrc caps="application/x-rtp, format=I420, framerate=30000/1001, width=640, height=480, interlaced=false, pixel-aspect-ratio=1/1" port=5000 ! rtpvrawdepay ! xvimagesink<br>
<br>
I'd be very grateful for any help.<br>
<br>
Regards<br>
<br>
Steve.<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</blockquote></div><br></div>