Re: Screen video support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/9/9 flooding Controlled <flooding2012@xxxxxxxxx>:
> Sounds good. But if we want to convert images to video,  nearly 24 images
> per seconds to be catched, is this possible for spice to do this ?
>
1000ms/24=42, means spice_display_get_pixbuf() should be called every 40ms,
e.g.
while (1) {
    spice_display_get_pixbuf(display);
    ........
    usleep(40000);
}
> I concern that the spice may crash...
>
I hacked spicy.c, added some codes as the above and test it.
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


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]