2012/9/9 Dunrong Huang <riegamaths@xxxxxxxxx>
2012/9/9 flooding Controlled <flooding2012@xxxxxxxxx>:
> Sounds good. But if we want to convert images to video, nearly 24 images1000ms/24=42, means spice_display_get_pixbuf() should be called every 40ms,
> per seconds to be catched, is this possible for spice to do this ?
>
e.g.
while (1) {
spice_display_get_pixbuf(display);
........
usleep(40000);
}I hacked spicy.c, added some codes as the above and test it.
> I concern that the spice may crash...
>
seems look good.
>
> 2012/9/9 Dunrong Huang <riegamaths@xxxxxxxxx>
>>
>> 2012/9/8 flooding Controlled <flooding2012@xxxxxxxxx>:
>> > Hi guys:
>> > A crazy idea or , question:
>> > Does the spice can support catching screen as video ? Or any ideas
>> > about
>> > this ?
>> Spice has provide a API that can take the screenshot of the display .
>> So you can hack it yourself. e.g. use spice_display_get_pixbuf() and
>> gdk_pixbuf_save()
>> to save the screen as images, then convert those images to video using
>> ffmpeg.
>>
>> I dont know whether there is a better way to do this, but i think the
>> above methods can work.
>> >
>> > Regards.
>> >
>> > _______________________________________________
>> > Spice-devel mailing list
>> > Spice-devel@xxxxxxxxxxxxxxxxxxxxx
>> > http://lists.freedesktop.org/mailman/listinfo/spice-devel
>> >
>>
>>
>>
>> --
>> Best Regards,
>>
>> Dunrong Huang
>
>
--
Best Regards,
Dunrong Huang
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel