gstreamer and UDP transport

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gstreamer and UDP transport

jhanksv

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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Fwd: gstreamer and UDP transport

jhanksv

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 [hidden email]
Reply-To: Discussion of the development of and with GStreamer [hidden email]
To: [hidden email]


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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

Attached Message Part (246 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Fwd: Fwd: gstreamer and UDP transport

jhanksv

Not my night - copied the wrong line. That was a line I was doing another test from.

The correct line is:


gst-launch-1.0 -v filesrc location=23.mp4 typefind=true  ! decodebin name=src src. ! xvimagesink src. ! decodebin ! alsasink

Sorry for all of the messages.

John

-------- Forwarded Message ------------

Subject: Fwd: gstreamer and UDP transport
Date: Tue, 4 Apr 2017 22:30:29 -0400
From: John Hanks [hidden email]
Reply-To: Discussion of the development of and with GStreamer [hidden email]
To: [hidden email]


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 [hidden email]
Reply-To: Discussion of the development of and with GStreamer [hidden email]
To: [hidden email]


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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

Attached Message Part (246 bytes) Download Attachment
Attached Message Part (246 bytes) Download Attachment