yeah, I will try it. <br><br><div class="gmail_quote">2012/9/9 Dunrong Huang <span dir="ltr"><<a href="mailto:riegamaths@gmail.com" target="_blank">riegamaths@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/9/9 flooding Controlled <<a href="mailto:flooding2012@gmail.com">flooding2012@gmail.com</a>>:<br>
<div class="im">> Sounds good. But if we want to convert images to video, nearly 24 images<br>
> per seconds to be catched, is this possible for spice to do this ?<br>
><br>
</div>1000ms/24=42, means spice_display_get_pixbuf() should be called every 40ms,<br>
e.g.<br>
while (1) {<br>
spice_display_get_pixbuf(display);<br>
........<br>
usleep(40000);<br>
<div class="im">}<br>
> I concern that the spice may crash...<br>
><br>
</div>I hacked spicy.c, added some codes as the above and test it.<br>
seems look good.<br>
<div class="HOEnZb"><div class="h5">><br>
> 2012/9/9 Dunrong Huang <<a href="mailto:riegamaths@gmail.com">riegamaths@gmail.com</a>><br>
>><br>
>> 2012/9/8 flooding Controlled <<a href="mailto:flooding2012@gmail.com">flooding2012@gmail.com</a>>:<br>
>> > Hi guys:<br>
>> > A crazy idea or , question:<br>
>> > Does the spice can support catching screen as video ? Or any ideas<br>
>> > about<br>
>> > this ?<br>
>> Spice has provide a API that can take the screenshot of the display .<br>
>> So you can hack it yourself. e.g. use spice_display_get_pixbuf() and<br>
>> gdk_pixbuf_save()<br>
>> to save the screen as images, then convert those images to video using<br>
>> ffmpeg.<br>
>><br>
>> I dont know whether there is a better way to do this, but i think the<br>
>> above methods can work.<br>
>> ><br>
>> > Regards.<br>
>> ><br>
>> > _______________________________________________<br>
>> > Spice-devel mailing list<br>
>> > <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
>> > <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Best Regards,<br>
>><br>
>> Dunrong Huang<br>
><br>
><br>
<br>
<br>
<br>
--<br>
Best Regards,<br>
<br>
Dunrong Huang<br>
</div></div></blockquote></div><br>