<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello!<br/></div><div><br/></div><div>what video codec are you using?<br/></div><div>in my experience, a big issue when playing back video with gem,<br/></div><div>comes from the codecs and container, resulting in extreme differences in cpu-load.<br/></div><div>i found, that mov-container work way better than avi-container, even though<br/></div><div>the same codec is used and packed in the container.<br/></div><div>try &nbsp;converting your videos to a motion-jpeg codec packed in a quicktime-mov.<br/></div><div>you could use mpeg-streamclip [1] for that purpose on win /mac machines or ffmpeg on linux.<br/></div><div><br/></div><div>[1]&nbsp;http://www.squared5.com/ &nbsp;free tool for video conversion<br/></div><div><br/></div><div>regards, peter&nbsp;<br/>
<br/></div><div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
    <div style="margin:0 0 10px 0;">
        <b>Gesendet:</b>&nbsp;Mittwoch, 27. Februar 2013 um 23:55 Uhr<br/>
        <b>Von:</b>&nbsp;&quot;Stephan Elliot Perez&quot; &lt;dreamoftheshoreofanotherworld@gmail.com&gt;<br/>
        <b>An:</b>&nbsp;&quot;Cyrille Henry&quot; &lt;ch@chnry.net&gt;<br/>
        <b>Cc:</b>&nbsp;pd-list@iem.at<br/>
        <b>Betreff:</b>&nbsp;Re: [PD] file format for GEM
    </div>
    <div name="quoted-content">
        A more urgent problem: Although the CPU usage stays under 100 (peak is around 84 with three videos overlapping), there is a substantial amount of lag. If I turn off video processing, a command that should be executed after 30 seconds via the cue list is executed punctually. If I turn it on, the command is 11 seconds late.<br/>
<br/>I can attach the patch if you like, but I probably will not be able to send the video clips as one attachment.<br/><br/>Best regards,<br/>Stephan<br/><br/><br/><div class="gmail_quote">On Wed, Feb 27, 2013 at 8:19 PM, Stephan Elliot Perez <span>&lt;<a href="dreamoftheshoreofanotherworld@gmail.com" target="_parent">dreamoftheshoreofanotherworld@gmail.com</a>&gt;</span> wrote:<br/>
<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">What is a shader, and how do I use it?<div class="HOEnZb"><div class="h5"><br/><br/><div class="gmail_quote">On Wed, Feb 27, 2013 at 7:25 PM, Cyrille Henry <span>&lt;<a href="ch@chnry.net" target="_parent">ch@chnry.net</a>&gt;</span> wrote:<br/>

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"><br/>
<br/>
Le 27/02/2013 19:17, Stephan Elliot Perez a &eacute;crit :<div><br/>
<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
Thanks, it works now. For some reason, turning &quot;auto&quot; on and off (with pix_film) causes the video to lag temporarily, but I do not have this problem if I use line-objects to go through the frames. The cpu-usage goes above 100 if I have more than two videos playing at once, but I suppose I don&#39;t need more than two for this project...<br/>


<br/>
Also, what can I do if I want an additive blend instead of a normal cross-blend?<br/>
</blockquote>
<br/></div>
i would use a shader for this.<br/>
it offer great flexibility, even if it&#39;s a bit harder to begin with.<br/>
but that&#39;s the way openGL wants you to do now.<br/>
cheers<br/>
c<br/>
<br/>
<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"><div>
<br/>
<br/>
On Tue, Feb 26, 2013 at 10:16 PM, Cyrille Henry &lt;<a href="ch@chnry.net" target="_parent">ch@chnry.net</a> &lt;mailto:<a href="ch@chnry.net" target="_parent">ch@chnry.net</a>&gt;&gt; wrote:<br/>
<br/>
&nbsp; &nbsp; hello,<br/>
&nbsp; &nbsp; Gem is mostly design to work on the GPU, and not on the CPU.<br/>
&nbsp; &nbsp; GPU have hundreds of core, they are faster than CPU for image manipulations.<br/>
<br/>
&nbsp; &nbsp; pix_add come from the 20th century and should now be avoid since it use cpu not gpu ;-)<br/>
<br/>
&nbsp; &nbsp; in order to make a fade transition between 2 videos, you can use transparency on one video.<br/>
&nbsp; &nbsp; add a [alpha] object after Gemhead, and send number between 0 and 1 in the last inlet of the colorRGB object to make the video appear / disapear.<br/>
<br/>
&nbsp; &nbsp; cheers<br/>
&nbsp; &nbsp; c<br/>
<br/>
<br/>
&nbsp; &nbsp; Le 26/02/2013 21:33, Stephan Elliot Perez a &eacute;crit :<br/>
<br/>
&nbsp; &nbsp; &nbsp; &nbsp; Hello,<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;So, looking at the help file for [pd~], it seems to be primarily for audio. How can I use multiple cores to work purely with GEM?<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I am trying to have a simple transition between video clips, but if I have two instances of pix_film and then connect them to pix_add, the CPU-ussage skyrockets well above 100... is there a more efficient object for blending two video clips?<br/>


<br/>
&nbsp; &nbsp; &nbsp; &nbsp; Best regards,<br/>
&nbsp; &nbsp; &nbsp; &nbsp; Stephan<br/>
<br/></div><div>
&nbsp; &nbsp; &nbsp; &nbsp; On Sun, Feb 3, 2013 at 10:54 PM, Thomas Mayer &lt;<a href="thomas@residuum.org" target="_parent">thomas@residuum.org</a> &lt;mailto:<a href="thomas@residuum.org" target="_parent">thomas@residuum.org</a>&gt; &lt;mailto:<a href="thomas@residuum.org" target="_parent">thomas@residuum.org</a> &lt;mailto:<a href="thomas@residuum.org" target="_parent">thomas@residuum.org</a>&gt;&gt;&gt; wrote:<br/>


<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Hi,<br/>
<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;On 03.02.2013 22:48, Stephan Elliot Perez wrote:<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt; I am talking about PD&#39;s CPU meter. I don&#39;t have the impression that PD<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt; takes full advantage of 2 quad-core processors. When processing audio,<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt; anything over 100 in PD&#39;s meter will lead to glitched audio. I am just<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt; wondering if it will be much more when I load other videos and transition<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt; between them.<br/>
<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Pd will only use one core, and one core for the GUI. There are ways to<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;distribute the load over several cores, e.g. [pd~] or use several<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;instances of Pd that communicate with each others:<br/>
<br/></div>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.mail-archive.com/__pd-list@iem.at/msg33319.html" target="_blank">http://www.mail-archive.com/__<u></u>pd-list@iem.at/msg33319.html</a> &lt;<a href="http://www.mail-archive.com/pd-list@iem.at/msg33319.html" target="_blank">http://www.mail-archive.com/<u></u>pd-list@iem.at/msg33319.html</a>&gt;<div>

<br/>
<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Hth,<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Thomas<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;Spielen Sie Strip Schnipp-Schnapp?&quot; (Adam Weishaupt to Johann<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Wolfgang von Goethe in: Robert Shea &amp; Robert A. Wilson, The Golden<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Apple)<br/>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.residuum.org/" target="_blank">http://www.residuum.org/</a><br/>
<br/></div>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;______________________________<u></u>___________________<br/>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="Pd-list@iem.at" target="_parent">Pd-list@iem.at</a> &lt;mailto:<a href="Pd-list@iem.at" target="_parent">Pd-list@iem.at</a>&gt; &lt;mailto:<a href="Pd-list@iem.at" target="_parent">Pd-list@iem.at</a> &lt;mailto:<a href="Pd-list@iem.at" target="_parent">Pd-list@iem.at</a>&gt;&gt; mailing list<br/>


<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/__listinfo/pd-list" target="_blank">http://lists.puredata.info/__<u></u>listinfo/pd-list</a> &lt;<a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a>&gt;<br/>


<br/>
<br/>
<br/>
<br/>
&nbsp; &nbsp; &nbsp; &nbsp; ______________________________<u></u>___________________<div><br/>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="Pd-list@iem.at" target="_parent">Pd-list@iem.at</a> &lt;mailto:<a href="Pd-list@iem.at" target="_parent">Pd-list@iem.at</a>&gt; mailing list<br/></div>
&nbsp; &nbsp; &nbsp; &nbsp; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/__listinfo/pd-list" target="_blank">http://lists.puredata.info/__<u></u>listinfo/pd-list</a> &lt;<a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a>&gt;<br/>


<br/>
<br/>
</blockquote>
</blockquote></div><br/>
</div></div></blockquote></div><br/>

    </div>
</div>
<br/></div></body></html>