Andoni is correct. These things are very much dependent on the target system. I use scripts to build test/demo pipelines so that they are always the same. I have run into problems when I copy a pipeline script to a new system and sometimes it fails due to this very reason. When that happens the error logging is correct but not 'enlightening' at all. You need to learn that when you get that error -4 (not negotiated) you likely need a ffmpegcolorspace filter just like queues solve blocking issues.<br>
<br><div class="gmail_quote">On Thu, Jan 17, 2013 at 6:40 AM, Andoni Morales <span dir="ltr"><<a href="mailto:ylatuya@gmail.com" target="_blank">ylatuya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2013/1/16 Gerard Toonstra <<a href="mailto:gtoonstra@gmail.com">gtoonstra@gmail.com</a>>:<br>
<div class="im">> Well…..<br>
><br>
> It took me a day to figure things out.<br>
> I cleared the frameworks directory so that I'd be sure to start with everything new. Then installed the "brahmaputra" release 2012-11 over again. End result: exactly the same.<br>
><br>
> then I went back on Linux where things do work and turned on more debugging to see the caps it was working with. I then explicitly took a note of the caps after rtph264depay:<br>
><br>
> ./gst-launch-0.10 -vvv udpsrc multicast-group=<a href="tel:239.255.12.12" value="+12392551212">239.255.12.12</a> port=5004 auto-multicast=true caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96" ! rtph264depay ! "video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal" ! ffdec_h264 ! ffmpegcolorspace ! autovideosink sync=false<br>
><br>
> The stream-format and alignment issues were a red herring, because it seemed the defaults for both were wrong, so the data in the stream was overriding the default properties.<br>
><br>
> Then I turned on debugging to the max and saw this on the osxvideosink, where it was trying to negotiate caps on the videosink and after the ffdec_h264:<br>
><br>
> 0:00:02.125843000 483 0x102008850 DEBUG GST_CAPS gstpad.c:2799:gst_pad_configure_sink:<autovideosink0-actual-sink-osxvideo:sink> caps 0x101873c80 not accepted<br>
> 0:00:02.125875000 483 0x102008850 INFO basesrc gstbasesrc.c:2570:gst_base_src_loop:<udpsrc0> pausing after gst_pad_push() = not-negotiated<br>
><br>
> I inserted ffmpegcolorspace and it started working after that.<br>
><br>
> Is there a way I can configure the machine so it doesn't need ffmpegcolorspace, or is this sink dependent?<br>
<br>
</div>This depends on the sink capabilities. In this case, osxvideosink only<br>
supports YUY2, which is why you need a colorspace converter.<br>
<br>
Andoni<br>
<div class="HOEnZb"><div class="h5">><br>
> Rgds,<br>
><br>
> G><br>
><br>
><br>
> On Jan 15, 2013, at 9:38 PM, Gerard Toonstra <<a href="mailto:gtoonstra@gmail.com">gtoonstra@gmail.com</a>> wrote:<br>
><br>
>> Hi there,<br>
>><br>
>> I have an IP cam that is configured to output UDP multicast. I'm getting video on Ubuntu Linux (12.10), but on Mac OSX there are issues.<br>
>> See here the output of two consecutive runs. The first one hangs, is aborted. The second one reports a "subclass rejected caps" issue,<br>
>> resulting in failure to negotiate.<br>
>><br>
>> Does anyone know what the problem could be? Missing libraries, incorrect versions?<br>
>><br>
>> I installed gstreamer from here:<br>
>><br>
>> <a href="http://docs.gstreamer.com/display/GstSDK/Installing+on+Mac+OS+X" target="_blank">http://docs.gstreamer.com/display/GstSDK/Installing+on+Mac+OS+X</a><br>
>><br>
>> Running Mountain Lion on Mac OSX mini: 12.2.0 Darwin Kernel Version 12.2.0<br>
>><br>
>> new-host-3:bin gt$ GST_DEBUG=2 ./gst-launch-0.10 -vvv udpsrc multicast-group=<a href="tel:239.255.12.12" value="+12392551212">239.255.12.12</a> port=5004 auto-multicast=true caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96,width=(int)1280,height=(int)720" ! rtph264depay ! ffdec_h264 ! video/x-raw-yuv ! ffmpegcolorspace ! autovideosink<br>
>> Setting pipeline to PAUSED ...<br>
>> Pipeline is live and does not need PREROLL ...<br>
>> Setting pipeline to PLAYING ...<br>
>> 0:00:00.126765000 499 0x10078bb00 WARN bin gstbin.c:2399:gst_bin_do_latency_func:<pipeline0> failed to query latency<br>
>> New clock: GstSystemClock<br>
>> ^CCaught interrupt -- handling interrupt.<br>
>> Interrupt: Stopping pipeline ...<br>
>> Execution ended after 46696132000 ns.<br>
>> Setting pipeline to PAUSED ...<br>
>> Setting pipeline to READY ...<br>
>> /GstPipeline:pipeline0/GstUDPSrc:udpsrc0.GstPad:src: caps = NULL<br>
>> Setting pipeline to NULL ...<br>
>> Freeing pipeline ...<br>
>> new-host-3:bin gt$ GST_DEBUG=2 ./gst-launch-0.10 -vvv udpsrc multicast-group=239.255.12.12 port=5004 auto-multicast=true caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96,width=(int)1280,height=(int)720" ! rtph264depay ! ffdec_h264 ! video/x-raw-yuv ! ffmpegcolorspace ! autovideosink<br>
>> Setting pipeline to PAUSED ...<br>
>> Pipeline is live and does not need PREROLL ...<br>
>> Setting pipeline to PLAYING ...<br>
>> 0:00:00.152357000 519 0x100763700 WARN bin gstbin.c:2399:gst_bin_do_latency_func:<pipeline0> failed to query latency<br>
>> New clock: GstSystemClock<br>
>> 0:00:00.166522000 519 0x100819050 WARN rtph264depay gstrtph264depay.c:280:gst_rtp_h264_depay_negotiate:<rtph264depay0> overriding property setting based on caps<br>
>> 0:00:00.166550000 519 0x100819050 WARN rtph264depay gstrtph264depay.c:288:gst_rtp_h264_depay_negotiate:<rtph264depay0> overriding property setting based on caps<br>
>> 0:00:00.166558000 519 0x100819050 WARN basertpdepayload gstbasertpdepayload.c:246:gst_base_rtp_depayload_setcaps:<rtph264depay0> Subclass rejected caps 0x102005440<br>
>> 0:00:00.166588000 519 0x100819050 WARN basesrc gstbasesrc.c:2633:gst_base_src_loop:<udpsrc0> error: Internal data flow error.<br>
>> 0:00:00.166596000 519 0x100819050 WARN basesrc gstbasesrc.c:2633:gst_base_src_loop:<udpsrc0> error: streaming task paused, reason not-negotiated (-4)<br>
>> 0:00:00.166653000 519 0x100819050 ERROR ffmpeg gstffmpegdec.c:2359:gst_ffmpegdec_frame:<ffdec_h2640> no codec context<br>
>> ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data flow error.<br>
>> Additional debug info:<br>
>> gstbasesrc.c(2633): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:<br>
>> streaming task paused, reason not-negotiated (-4)<br>
>> Execution ended after 14420000 ns.<br>
>> Setting pipeline to PAUSED ...<br>
>> Setting pipeline to READY ...<br>
>> /GstPipeline:pipeline0/GstUDPSrc:udpsrc0.GstPad:src: caps = NULL<br>
>> Setting pipeline to NULL ...<br>
>> Freeing pipeline ...<br>
>><br>
>><br>
>> Rgds,<br>
>><br>
>> Gerard<br>
>><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Andoni Morales Alastruey<br>
<br>
LongoMatch:The Digital Coach<br>
<a href="http://www.longomatch.ylatuya.es" target="_blank">http://www.longomatch.ylatuya.es</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>