UDP vs TCP
Tiago Katcipis
katcipis at inf.ufsc.br
Tue Mar 25 05:24:43 PDT 2014
Hi,
Im not quite sure of what you are doing wrong, but if you want to work with
RTP it will be a good idea to take a look at rtpbin:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-rtpbin.html
It always worked like a charm for me :-), and it has some working examples.
On Mon, Mar 24, 2014 at 7:07 PM, it <it at sca-uk.com> wrote:
> 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.
>>
>>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140325/edf623fe/attachment.html>
More information about the gstreamer-devel
mailing list