Fwd: gstreamer and UDP transport

John Hanks jhanks at vsicorp.com
Wed Apr 5 02:30:29 UTC 2017


I had to copy the ''single window' command line from another machine and 
managed to make a few typos.  Not the best way to introduce yourself 
asking for help.

The actual working line (now ftped from the working machine) is:

gst-launch-1.0 v4l2src ! video/x-raw ! decodebin name=src  src. ! 
xvimagesink src. ! decodebin ! alsasink

John



-------- Forwarded Message --------
Subject: 	gstreamer and UDP transport
Date: 	Tue, 4 Apr 2017 21:17:36 -0400
From: 	John Hanks <jhanks at vsicorp.com>
Reply-To: 	Discussion of the development of and with GStreamer 
<gstreamer-devel at lists.freedesktop.org>
To: 	gstreamer-devel at lists.freedesktop.org



I'm trying to use Gstreamer to send 'media' between two systems.  My 
first goal is to take an mp4 file and send it over udp from one system 
to another.  To start, I'm just trying to send it from one window to 
another on the same system.

In a single window, the following command displays the file with audio:

gst-launsh-1.0 -v filesrc location=23.mp4 tyepfind=true ! decodebin 
name=src scr. ! xvimagesink src. ! decodebin ! alsasink


I'm trying to use the example from 
https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtp/README 
line 305 to send the 'media'.  That line is:

|gst-launch-1.0 -v filesrc location=~/data/sincity.mp4 ! qtdemux name=d ! 
queue ! rtpmp4vpay ! udpsink port=5000 d. ! queue ! rtpmp4gpay ! udpsink 
port=5002 |||

|My line is |gst-launch-1.0 -v filesrc location=23.mp4 typefind=true ! 
decodebin name=src src. ! videoconvert ! avenc_h263p ! rtph263ppay ! 
udpsink port=5000 src.  ! queue ! rtpmp4gpay ! udpsink port=5002

If just do up to "..udpsink port=5000" it sends the video to the other 
window listening with this line:

  gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp\,\ 
media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H263-1998\,\ payload\=\(int\)96\,\ 
ssrc\=\(uint\)4074303028\,\ timestamp-offset\=\(uint\)1393836595\,\ 
seqnum-offset\=\(uint\)30484\,\ a-framerate\=\(string\)30" ! 
rtpjitterbuffer ! rtph263pdepay ! avdec_h263 ! autovideosink

When I send the line with just video, the screen displays lots of 
information ending in:

Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

When I send both, it doesn't 'fail' but has this message way up in the text:

failed delayed linking some pad of GstDecodeBin named src to some pad of 
GstRtpMP4GPay named rtpmp4gpay0

It does not seem to be encoding the audio but I'm not sure what to do next.

The examples from the page referenced do not work when I try replacing 
my file with the file given. In fact, no example I have found for 
sending via udp has worked as shown on the web page - I have always had 
to tweak something to get it to work at all.  This is becoming 
increasingly frustrating.

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170404/8daecc2e/attachment.html>
-------------- next part --------------
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list