Discussion:
could not link udpsrc0 to rtpmp4vdepay0
d
2014-01-27 19:24:05 UTC
Permalink
Hi all.

this is the commands on the server:
gst-launch videotestsrc ! ffenc_mpeg4 ! rtpmp4vpay ! udpsink
host=192.168.1.16 port=5000

on the client:
gst-launch udpsrc uri=udp://192.168.1.16:5000 caps="video/x-raw-yuv,
width=(int)320, height=(int)240, framerate=(fraction)30/1,
format=(fourcc)I420, color-matrix=(string)sdtv, chroma-site=(string)mpeg2" !
rtpmp4vdepay ! ffdec_mpeg4 ! autovideosink


and I get this error:
erroneous pipeline: could not link udpsrc0 to rtpmp4vdepay0

do someone know what to do...?

thanks!



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/could-not-link-udpsrc0-to-rtpmp4vdepay0-tp4664912.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
Aleix Conchillo Flaqué
2014-01-27 22:48:33 UTC
Permalink
Post by d
Hi all.
gst-launch videotestsrc ! ffenc_mpeg4 ! rtpmp4vpay ! udpsink
host=192.168.1.16 port=5000
gst-launch udpsrc uri=udp://192.168.1.16:5000 caps="video/x-raw-yuv,
width=(int)320, height=(int)240, framerate=(fraction)30/1,
format=(fourcc)I420, color-matrix=(string)sdtv, chroma-site=(string)mpeg2" !
rtpmp4vdepay ! ffdec_mpeg4 ! autovideosink
erroneous pipeline: could not link udpsrc0 to rtpmp4vdepay0
do someone know what to do...?
The caps on the udpsrc are not right. You are receiving RTP packets
from the server so you should have RTP caps.

Run the server command with -v and it will tell you the caps on the
udpsink which are the caps you should use on the client side, except
ssrc, clock-base and seqnum-base which are always different.

Aleix
d
2014-01-28 08:12:05 UTC
Permalink
Another question:

if I have video file on my computer and I want to transmit it instead of the
"videotestsrc", how should I do that?

thank you very much again!!



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/could-not-link-udpsrc0-to-rtpmp4vdepay0-tp4664912p4664923.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
d
2014-01-28 08:05:07 UTC
Permalink
Hi! thank you for your reply!

now I can see that im doing something wrong, this is the server command with
-v:


gst-launch -v videotestsrc ! ffenc_mpeg4 ! rtpmp4vpay ! udpsink
host=192.168.1.16 port=5000

Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps =
video/x-raw-yuv, width=(int)320, height=(int)240, framerate=(fraction)30/1,
format=(fourcc)I420, color-matrix=(string)sdtv, chroma-site=(string)mpeg2
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/ffenc_mpeg4:ffenc_mpeg40.GstPad:src: caps =
video/mpeg, width=(int)320, height=(int)240, framerate=(fraction)30/1,
mpegversion=(int)4, systemstream=(boolean)false
/GstPipeline:*pipeline0/ffenc_mpeg4:ffenc_mpeg40.GstPad:sink: caps* =
video/x-raw-yuv, width=(int)320, height=(int)240, framerate=(fraction)30/1,
format=(fourcc)I420, color-matrix=(string)sdtv, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstRtpMP4VPay:*rtpmp4vpay0.GstPad:sink: caps* =
video/mpeg, width=(int)320, height=(int)240, framerate=(fraction)30/1,
mpegversion=(int)4, systemstream=(boolean)false
/GstPipeline:pipeline0/GstRtpMP4VPay:rtpmp4vpay0.GstPad:src: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)MP4V-ES, profile-level-id=(string)1,
config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766335332e33352e30,
payload=(int)96, ssrc=(uint)1927527119, clock-base=(uint)930954934,
seqnum-base=(uint)50958
/GstPipeline:pipeline0/GstRtpMP4VPay:rtpmp4vpay0: timestamp = 930954934
/GstPipeline:pipeline0/GstRtpMP4VPay:rtpmp4vpay0: seqnum = 50958
/GstPipeline:pipeline0/GstUDPSink:*udpsink0.GstPad:sink: caps* =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)MP4V-ES, profile-level-id=(string)1,
config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766335332e33352e30,
payload=(int)96, ssrc=(uint)1927527119, clock-base=(uint)930954934,
seqnum-base=(uint)50958
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

now I noticed that there are several caps in the client side, of several
filters...
so how the client command supposed to look like?
thank you for your help!



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/could-not-link-udpsrc0-to-rtpmp4vdepay0-tp4664912p4664922.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
Aleix Conchillo Flaqué
2014-01-28 20:56:20 UTC
Permalink
Post by d
Hi! thank you for your reply!
now I can see that im doing something wrong, this is the server command with
/GstPipeline:pipeline0/GstUDPSink:*udpsink0.GstPad:sink: caps* =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)MP4V-ES, profile-level-id=(string)1,
config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766335332e33352e30,
payload=(int)96, ssrc=(uint)1927527119, clock-base=(uint)930954934,
seqnum-base=(uint)50958
Try using this caps in the udpsrc (replacing the ones you were using),
except the properties ssrc, clock-base and seqnum-base.

Aleix

Loading...