<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
&gt; I am continuing to have trouble with this.  Most every combination I<br>
&gt; try ends up with a distorted image.<br>
<br>
</div>Distorted in what way? Too narrow/wide? Or every line shifted a bit to<br>
the left/right of the previous line?<br></blockquote><div><br></div><div>Here is the original video:</div><div><a href="http://alumni.media.mit.edu/~erikb/tmp/city.ogv">http://alumni.media.mit.edu/~erikb/tmp/city.ogv</a></div>
<div><br></div><div>Here is the code I use to extract a pixbuf:</div><div><br></div><div>
<div><font size="1" face="&#39;courier new&#39;, monospace">        caps = last_frame.get_caps( )[0]</font></div><div><font size="1" face="&#39;courier new&#39;, monospace">        width = int(caps[&quot;width&quot;])</font></div>

<div><font size="1" face="&#39;courier new&#39;, monospace">        height = int(caps[&quot;height&quot;])</font></div><div><font size="1" face="&#39;courier new&#39;, monospace">        r4 = width * 3</font></div>
<div><font size="1" face="&#39;courier new&#39;, monospace">        r4 = (r4 + 3) &amp; ~ 3</font></div><div><font size="1" face="&#39;courier new&#39;, monospace">        pixBuf = gtk.gdk.pixbuf_new_from_data( last_frame.data, gtk.gdk.COLORSPACE_RGB, False, 8, width, height, r4 )</font></div>

</div><div><br></div><div>and here are the results with rowstride set to width * 2:</div><div><a href="http://alumni.media.mit.edu/~erikb/tmp/city_width_x2.png">http://alumni.media.mit.edu/~erikb/tmp/city_width_x2.png</a></div>
<div><br></div><div>and with width * 3:</div><div><a href="http://alumni.media.mit.edu/~erikb/tmp/city_width_x3.png">http://alumni.media.mit.edu/~erikb/tmp/city_width_x3.png</a></div><div><br></div><div>and with width * 4:</div>
<div><a href="http://alumni.media.mit.edu/~erikb/tmp/city_width_x4.png">http://alumni.media.mit.edu/~erikb/tmp/city_width_x4.png</a></div><div><br></div><div>Hopefully some can suggest what the rowstride should be based on these images, or suggest how I would determine what it should be?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(Though it seems to me that just asking for an image/jpeg in the desired<br>
width or height via the convert-frame action signal would be the easiest<br>
way to achieve your goal)<br><br></blockquote><div><br></div><div>Yes, this might be a good idea if I can&#39;t get the approach I am exploring above to work. </div></div>