Re: [Vnc2swf-users] Project Future
Status: Alpha
Brought to you by:
euske
From: Olivier H. <oli...@wa...> - 2009-04-17 06:45:10
|
Greetings! Okay .. i'm already in redesigning pyvnc in the following way : - a main thread that handle a connection to a vnc server and request for update, and grab the updated data. These one are put in a queue - a second thread (the encoder). That take data avalaible in the queue and encode it to the final output. - a third thread that handle the queue. The idea is to avoid frame dropping in case of very intensive encoding. The vnc session can be closed and the encoding can continue. To support several format, i propose that vncrec support a configuration file ... For exemple pyvncrec.conf : #Kind of output [mpeg] module=mpegenc class=MpegOut [flv] module=flvenc class=FLVOut [vnc] module=vncenc class=VNCEnc And on command line : pyvncrec -t flv -o output.flv will call the good encoder ... easy isn't it? So pyvncrec will provide some outputter (firstly gzipped vnc), but everybody could write his own outputter.. whatever if it is or not cross platform... the best one will be shipped with the main distribution (those who are efficient and cross platform). Regards, Olivier ----- Mail Original ----- De: "Reid Ellis" <ra...@tn...> À: "General discussion about vnc2swf" <vnc...@li...> Envoyé: Vendredi 17 Avril 2009 01h26:13 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [Vnc2swf-users] Project Future Well as mentioned before, we should be recording some sort of compressed (gzip?) vnc stream, and then converting the data afterwards. Actually, we could spawn a second thread that just converts the data stream to whatever format the user has selected. In this day of multi-core CPUs, this surely makes sense. Reid On Apr 16, 2009, at 19:15, Yusuke Shinyama wrote: > Hi, > > To create a speed-efficient recorder, we really need faster byte > operations. > Probably the most expensive part in the current pyvnc2swf > implementation is > just to convert the whole bitmap into another format. > > More specifically, look at line 61 in image.py: > > def create_image_from_string_argb(w, h, data): > data = ''.join([ data[i+1]+data[i+2]+data[i+3]+data[i] for i in > xrange(0, len(data), 4) ]) > return pygame.image.fromstring(data, (w, h), 'RGBA') > > Now imagine a VNC server sends you a 1600x1200 bitmap (7.6MBytes) > That's a lot of data for doing this kind of operation for each frame. > > For some time I was thinking of writing some external functions in > C, which > would be hundred times faster to do this kinda stuff. But it breaks > the beauty of platform-independentness. This is the point where I > was stuck. > People would need to install a C compiler to build pyvnc2swf. > Perhaps it's not a big problem in Linux or *BSD, but I was afraid it > brings > some extra trouble. I certainly expect complaints from Windows/Mac > folks. > > So... how do you guys think? Maybe I should ask people what kind > of platform they are using. If cross-platform is not a concern, I > think this is the way to go. > > Yusuke > > > On Thu, 16 Apr 2009 22:33:16 +0200 (CEST), Olivier Hervieu <oli...@wa... > > wrote: >> Great, >> >> TheAmigo, i think that our needs are the same ... we have to record >> several (more than 2!!) vnc session on the same computer... >> >> your idea to write a ffmeg plugin is great that might interressed >> people who wants to have an authoring/transcoding tool shipped with >> pyvnc2swf. >> >> So for the next week i propose that everybody interressed in the >> project of a safe and fast vncrecorder to send on this mailing list >> what should and shouldn't be the the vncrecorder. >> >> I propose the same for people who are interressed in an authoring >> tool to send here what should be this vncauthoringtool. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Vnc2swf-users mailing list Vnc...@li... https://lists.sourceforge.net/lists/listinfo/vnc2swf-users |