UDP vs TCP
it
it at sca-uk.com
Mon Mar 24 15:07:31 PDT 2014
Hi Chuck,
This is what it looks like now:
gst-launch -v v4l2src device=/dev/video0 queue-size=1 always-copy=0 !
videorate ! videoscale ! 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 \
t1. ! queue ! xvimagesink sync=false \
t1. ! queue ! theoraenc quality=63 keyframe-force=1 ! filesink
location=video.ogg \
t1. ! queue ! rtpvrawpay mtp=64 pt=96! udpsink host=192.168.43.134
port=5000
gst-launch -v udpsrc caps="application/x-rtp, format=I420,
framerate=30000/1001, width=640, height=480, interlaced=(boolean)false,
pixel-aspect-ratio=1/1" port=5000 ! rtpvrawdepay ! xvimagesink
I can see no syntax to put mtu or pt on rtpvrawdepay.
I get no screen and this is the text print out:
image at image-TAICHI21A:~$ gst-launch -v udpsrc caps="application/x-rtp,
format=I420, framerate=30000/1001, width=640, height=480,
interlaced=(boolean)false, pixel-aspect-ratio=1/1" port=5000 !
rtpvrawdepay ! xvimagesink
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0.GstPad:src: caps =
application/x-rtp, media=(string)video, payload=(int)96,
clock-rate=(int)90000, encoding-name=(string)RAW, format=(string)I420,
framerate=(fraction)30000/1001, width=(int)640, height=(int)480,
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Any ideas?
Regards
Steve.
On 24/03/14 20:27, Chuck Crisler wrote:
> 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.
>
More information about the gstreamer-devel
mailing list