Thank you very much.<br><br><div class="gmail_quote">2012/7/4 Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, 2012-07-04 at 02:50 -0700, hasardel wrote:<br>
<br>
Hi,<br>
<br>
> I started with GStreamer.<br>
> My plugin accepts caps "video/x-raw-rgb".<br>
><br>
> gst-launch --verbose filesrc location="test.jpg" ! jpegdec ! imagefreeze !<br>
> video/x-raw-rgb ! myplugin ! autovideosink<br>
> Définition du pipeline à PAUSED...<br>
> Le pipeline est en phase de PREROLL...<br>
> /GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps =<br>
> video/x-raw-yuv, format=(fourcc)I420, width=(int)1280, height=(int)819,<br>
> framerate=(fraction)0/1<br>
> ERREUR : de l'élément /GstPipeline:pipeline0/GstFileSrc:filesrc0 : Erreur<br>
> interne de flux de données.<br>
> Information de débogage supplémentaire :<br>
> gstbasesrc.c(2625): gst_base_src_loop ():<br>
> /GstPipeline:pipeline0/GstFileSrc:filesrc0:<br>
> streaming task paused, reason not-negotiated (-4)<br>
> ERREUR : le pipeline refuse de passer en phase de préparation.<br>
> Définition du pipeline à NULL...<br>
> /GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps = NULL<br>
> Libération du pipeline...<br>
><br>
> The pad "src" of jpegdec accepts caps "video/x-raw-yuv", "video/x-raw-rgb"<br>
> and "video/x-raw-gray".<br>
> I don't understand why ?<br>
<br>
</div>Only sink pads "accept" different caps really. Source pad caps tend to<br>
depend on the input caps and the input data. jpegdec might output RGB<br>
for some images and YUV I420 for others.<br>
<br>
Just doing: ..... ! jpegdec ! ffmpegcolorspace ! yourplugin ! ...<br>
<br>
should work, assuming yourplugin announces its RGB caps properly in its<br>
sink pad template caps.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
</font></span><div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br>