Hi,
I am trying to stream and display videotestsrc through rtp on localhost on nvidia board, my scripts give me the following error : could not parse caps... can someone tell me what i am doing wrong? server: gst-launch videotestsrc ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv, width=176,height=144,framerate=25/1 ! nv_omx_h264enc ! rtph264pay pt=96 ! udpsink host=127.0.0.1 port=5000 sync=false client : gst-launch udpsrc port=5000 ! rtph264depay ! decodebin ! autovideosink [12:45] <t4nk451> gst-launch -v udpsrc port=5000 ! "application/x-rtp,media=\(string\)video,clock-rate=\(int\)90000,encoding-name=\(string\)H264,ssrc=\(guint\)2834894965,payload=\(int\)96,clock-base=\(guint\)751940475,seqnum-base=\(guint\)56645" ! rtphdepay ! nv_omx_h264dec ! ffmpegcolorspace ! nv_gl_videosink Thank you in advance Markus |
Why the backslashes before the brackets? You are quoting the caps already.
Also keep in mind that the SSRC is randomly generated in this case. Try it with rtph264pay ssrc=1 on the sender side, and ssrc=(guint)1 on the receiver side. > Hi, > > I am trying to stream and display videotestsrc through rtp on localhost on > nvidia board, my scripts give me the following error : > could not parse caps... > can someone tell me what i am doing wrong? > > server: > gst-launch videotestsrc ! ffmpegcolorspace ! videoscale method=1 ! > video/x-raw-yuv, width=176,height=144,framerate=25/1 ! nv_omx_h264enc ! > rtph264pay pt=96 ! udpsink host=127.0.0.1 port=5000 sync=false > > client : > gst-launch udpsrc port=5000 ! rtph264depay ! decodebin ! autovideosink > [12:45] <t4nk451> gst-launch -v udpsrc port=5000 ! > "application/x-rtp,media=\(string\)video,clock-rate=\(int\)90000,encoding-name=\(string\)H264,ssrc=\(guint\)2834894965,payload=\(int\)96,clock-base=\(guint\)751940475,seqnum-base=\(guint\)56645" > ! rtphdepay ! nv_omx_h264dec ! ffmpegcolorspace ! nv_gl_videosink > > > Thank you in advance > > Markus > > > > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-rtp-caps-not-good-tp4655782.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Right, im new to gstreamer I wasnt sure about that. I changed to :
client : gst-launch -v udpsrc port=5000 ! caps="application/x-rtp , media=(string)video, \ clock-rate=(int)90000 , encoding-name=(string)H264 , ssrc=(guint)1\ , payload=(int)96, clock-base=(guint)751940475, seqnum-base=(guint)56645" \ ! rtphdepay ! nv_omx_h264dec ! ffmpegcolorspace ! nv_gl_videosink im getting Warning :erroneous pipeline :link without source element. |
On 08/02/12 13:45, Markus wrote:
> Right, im new to gstreamer I wasnt sure about that. I changed to : > > client : > gst-launch -v udpsrc port=5000 ! caps="application/x-rtp , > media=(string)video, \ > clock-rate=(int)90000 , encoding-name=(string)H264 , ssrc=(guint)1\ > , payload=(int)96, clock-base=(guint)751940475, seqnum-base=(guint)56645" \ > ! rtphdepay ! nv_omx_h264dec ! ffmpegcolorspace ! nv_gl_videosink > > im getting Warning :erroneous pipeline :link without source element. > > You dont use "caps=" with capsfilters. You can use two approaches: 1. gst-launch -v udpsrc port=5000 ! "application/x-rtp , ... 2. gst-launch -v udpsrc port=5000 caps="application/x-rtp , ... (note the missing "!" in option (2)) The first one uses a capsfilter after udpsrc, the second tells udpsrc to use the specified caps for its srcpad. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
ok i understand that, im now using the 2nd option
I now have a linking problem: warning : erroneous pipeline : could not link udpsrc0 to rtph264depay |
sorry i solved this, seems i had a "\" too much :)
When i launch server, pipelines are set to playing but no windows pops out to see the videosrc, client is the same with rtph264pay ssrc=(guint)1 server gst-launch -v videotestsrc ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv, width=320, height=240, framerate=15\1 ! nv_omx_h264enc ! rtph264pay ssrc=1 udpsink host=localhost port=5000 |
On 08/02/12 14:35, Markus wrote:
> sorry i solved this, seems i had a "\" too much :) > When i launch server, pipelines are set to playing but no windows pops out > to see the videosrc, > > > client is the same with rtph264pay ssrc=(guint)1 > > server > > gst-launch -v videotestsrc ! ffmpegcolorspace ! videoscale method=1 ! > video/x-raw-yuv, width=320, height=240, framerate=15\1 ! nv_omx_h264enc ! > rtph264pay ssrc=1 udpsink host=localhost port=5000 > > > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-rtp-caps-not-good-tp4655782p4655788.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > I have seen similar issues in the past, and the reason was that I used udpsink host=127.0.0.1 . Using my machine's IP address instead of localhost solved it. I am not sure why. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |