<div>Try following ;</div>
<div> </div>
<div> gst-launch v4l2src device=/dev/video0 !<br>'video/x-raw-yuv,width=386,height=386,framerate=30/1' ! ffmpegcolorspace !<br>
<div class="im">videomixer name=mix ! ffmpegcolorspace ! xvimagesink filesrc location=crosshair.png ! pngdec !<br></div>ffmpegcolorspace ! 'video/x-raw-yuv,format=(fourcc)AYUV,width=386,height=386,framerate=30/1' ! freeze ! mix<br>
<br></div>
<div class="gmail_quote">On Wed, Mar 31, 2010 at 9:32 AM, Vogan <span dir="ltr"><<a href="mailto:vaughan@infact.co.nz">vaughan@infact.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi<br><br>Thanks for the help, I am now trying this<br>
<div class="im"><br>gst-launch v4l2src device=/dev/video0 !<br></div>'video/x-raw-yuv,width=320,height=240,framerate=30/1' ! ffmpegcolorspace !<br>
<div class="im">videomixer name=mix ! xvimagesink filesrc location=crosshair.png ! pngdec !<br></div>ffmpegcolorspace ! freeze ! mix.<br><br>and are getting the following error once the pipeline has started<br><br>ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal<br>
data flow error.<br>Additional debug info:<br>gstbasesrc.c(2234): gst_base_src_loop ():<br>/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:<br>streaming task paused, reason not-negotiated (-4)<br><br>The image I am trying to overlay has a transparent background and is 386x386<br>
pixels.<br><br>Any ideas?<br><br>Vaughan<br>
<div>
<div></div>
<div class="h5"><br><br>sudarshan bisht wrote:<br>><br>> Hi ,<br>><br>> videomixer works on AYUV ( that means yuv data having alpha values for<br>> transparency ) and pngdec gives RGB data , that's why these two elements<br>
> are not linking .<br>><br>> Try putting ffmpegcolorspcae after pngdec .<br>><br>> On Wed, Mar 31, 2010 at 12:58 AM, Vogan <<a href="mailto:vaughan@infact.co.nz">vaughan@infact.co.nz</a>> wrote:<br>
><br>>><br>>> Hi<br>>><br>>> I am wanting to overlay an image (crosshairs inthis case) on top of a<br>>> stream<br>>> from a web cam. The image is a png file with a transparent background.<br>
>> The<br>>> pipeline I have tried is<br>>><br>>> gst-launch v4l2src device=/dev/video0 !<br>>> 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! videomixer<br>>> name=mix<br>
>> ! xvimagesink ! filesrc location=crosshair.png ! pngdec ! mix.<br>>><br>>> When I try to run this I get WARNING: erroneous pipeline: could not link<br>>> pngdec0 to mix<br>>><br>>> Any hints on what I am doing wrong? or is it simply not possible to<br>
>> overlay<br>>> a static image on a live stream?<br>>><br>>> Vaughan<br>>><br>>> --<br>>> View this message in context:<br>>> <a href="http://n4.nabble.com/Overlaying-an-image-on-a-live-stream-tp1745726p1745726.html" target="_blank">http://n4.nabble.com/Overlaying-an-image-on-a-live-stream-tp1745726p1745726.html</a><br>
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>>><br>>><br>>> ------------------------------------------------------------------------------<br>>> Download Intel&#174; Parallel Studio Eval<br>
>> Try the new software tools for yourself. Speed compiling, find bugs<br>>> proactively, and fine-tune applications for parallel performance.<br>>> See why Intel Parallel Studio got high marks during beta.<br>
>> <a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>>> _______________________________________________<br>>> gstreamer-devel mailing list<br>>> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
>> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>>><br>><br>><br>><br>> --<br>> Regards,<br>
><br>> Sudarshan Bisht<br>><br>> ------------------------------------------------------------------------------<br>> Download Intel&#174; Parallel Studio Eval<br>> Try the new software tools for yourself. Speed compiling, find bugs<br>
> proactively, and fine-tune applications for parallel performance.<br>> See why Intel Parallel Studio got high marks during beta.<br>> <a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
> _______________________________________________<br>> gstreamer-devel mailing list<br>> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
><br>><br><br>--<br></div></div>View this message in context: <a href="http://n4.nabble.com/Overlaying-an-image-on-a-live-stream-tp1745726p1746276.html" target="_blank">http://n4.nabble.com/Overlaying-an-image-on-a-live-stream-tp1745726p1746276.html</a><br>
<div>
<div></div>
<div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br><br>------------------------------------------------------------------------------<br>Download Intel&#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>proactively, and fine-tune applications for parallel performance.<br>See why Intel Parallel Studio got high marks during beta.<br><a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>