[Vnc2swf-users] [Error] unsupported operand type
Status: Alpha
Brought to you by:
euske
From: Lukasz S. <szy...@gm...> - 2008-04-30 03:48:15
|
I downloaded the current version of pyvnc2swf and I keep getting this error: ############################################################### #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# #@ @# #@ ** WARNING ** WARNING ** WARNING ** WARNING ** @# #@ @# #@ YOU ARE RUNNING X11VNC WITHOUT A PASSWORD!! @# #@ @# #@ This means anyone with network access to this computer @# #@ will be able to view and control your desktop. @# #@ @# #@ >>> If you did not mean to do this Press CTRL-C now!! <<< @# #@ @# #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# Using pygame 1.7.1release #@ @# #@ You can create an x11vnc password file by running: @# #@ @# #@ x11vnc -storepasswd password /path/to/passfile @# #@ or x11vnc -storepasswd /path/to/passfile @# #@ or x11vnc -storepasswd @# #@ @# #@ (the last one will use ~/.vnc/passwd) @# #@ @# #@ and then starting x11vnc via: @# #@ @# #@ x11vnc -rfbauth /path/to/passfile @# #@ @# #@ an existing ~/.vnc/passwd file from another VNC @# #@ application will work fine too. @# #@ @# #@ You can also use the -passwdfile or -passwd options. @# #@ (note -passwd is unsafe if local users are not trusted) @# #@ @# #@ Make sure any -rfbauth and -passwdfile password files @# #@ cannot be read by untrusted users. @# #@ @# #@ Use x11vnc -usepw to automatically use your @# #@ ~/.vnc/passwd or ~/.vnc/passwdfile password files. @# #@ (and prompt you to create ~/.vnc/passwd if neither @# #@ file exists.) Under -usepw, x11vnc will exit if it @# #@ cannot find a password to use. @# #@ @# #@ @# #@ Even with a password, the subsequent VNC traffic is @# #@ sent in the clear. Consider tunnelling via ssh(1): @# #@ @# #@ http://www.karlrunge.com/x11vnc/#tunnelling @# #@ @# #@ Or using the x11vnc SSL options: -ssl and -stunnel @# #@ @# #@ Please Read the documention for more info about @# #@ passwords, security, and encryption. @# #@ @# #@ http://www.karlrunge.com/x11vnc/#faq-passwd @# #@ @# #@ You are using the -localhost option and that is a good @# #@ thing!! Especially if you ssh(1) into this machine and @# #@ use port redirection. Nevertheless, without a password @# #@ other users could possibly do redirection as well to @# #@ gain access to your desktop. @# #@ @# #@ To disable this warning use the -nopw option, or put @# #@ the setting in your ~/.x11vncrc file. @# #@ @# #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ############################################################### 29/04/2008 22:42:15 x11vnc version: 0.9.3 lastmod: 2007-09-30 29/04/2008 22:42:15 Using X display :0.0 29/04/2008 22:42:15 29/04/2008 22:42:15 ------------------ USEFUL INFORMATION ------------------ 29/04/2008 22:42:15 X DAMAGE available on display, using it for polling hints. 29/04/2008 22:42:15 To disable this behavior use: '-noxdamage' 29/04/2008 22:42:15 29/04/2008 22:42:15 Wireframing: -wireframe mode is in effect for window moves. 29/04/2008 22:42:15 If this yields undesired behavior (poor response, painting 29/04/2008 22:42:15 errors, etc) it may be disabled: 29/04/2008 22:42:15 - use '-nowf' to disable wireframing completely. 29/04/2008 22:42:15 - use '-nowcr' to disable the Copy Rectangle after the 29/04/2008 22:42:15 moved window is released in the new position. 29/04/2008 22:42:15 Also see the -help entry for tuning parameters. 29/04/2008 22:42:15 You can press 3 Alt_L's (Left "Alt" key) in a row to 29/04/2008 22:42:15 repaint the screen, also see the -fixscreen option for 29/04/2008 22:42:15 periodic repaints. 29/04/2008 22:42:15 29/04/2008 22:42:15 XFIXES available on display, resetting cursor mode 29/04/2008 22:42:15 to: '-cursor most'. 29/04/2008 22:42:15 to disable this behavior use: '-cursor arrow' 29/04/2008 22:42:15 or '-noxfixes'. 29/04/2008 22:42:15 using XFIXES for cursor drawing. 29/04/2008 22:42:15 GrabServer control via XTEST. 29/04/2008 22:42:15 29/04/2008 22:42:15 Scroll Detection: -scrollcopyrect mode is in effect to 29/04/2008 22:42:15 use RECORD extension to try to detect scrolling windows 29/04/2008 22:42:15 (induced by either user keystroke or mouse input). 29/04/2008 22:42:15 If this yields undesired behavior (poor response, painting 29/04/2008 22:42:15 errors, etc) it may be disabled via: '-noscr' 29/04/2008 22:42:15 Also see the -help entry for tuning parameters. 29/04/2008 22:42:15 You can press 3 Alt_L's (Left "Alt" key) in a row to 29/04/2008 22:42:15 repaint the screen, also see the -fixscreen option for 29/04/2008 22:42:15 periodic repaints. 29/04/2008 22:42:15 29/04/2008 22:42:15 XKEYBOARD: all 28 "must have" keysyms accounted for. 29/04/2008 22:42:15 Not automatically switching to -xkb mode. 29/04/2008 22:42:15 If some keys still cannot be typed, try using -xkb. 29/04/2008 22:42:15 Also, remember "-remap DEAD" for accenting characters. 29/04/2008 22:42:15 X FBPM extension not supported. 29/04/2008 22:42:15 X display is capable of DPMS. 29/04/2008 22:42:15 -------------------------------------------------------- 29/04/2008 22:42:15 29/04/2008 22:42:15 Default visual ID: 0x23 29/04/2008 22:42:15 Read initial data from X display into framebuffer. 29/04/2008 22:42:15 initialize_screen: fb_depth/fb_bpp/fb_Bpl 16/16/2560 29/04/2008 22:42:15 29/04/2008 22:42:15 X display :0.0 is 16bpp depth=16 true color 29/04/2008 22:42:15 29/04/2008 22:42:15 Autoprobing TCP port 29/04/2008 22:42:15 Autoprobing selected port 5900 29/04/2008 22:42:15 29/04/2008 22:42:15 Xinerama is present and active (e.g. multi-head). 29/04/2008 22:42:15 Xinerama: enabling -xwarppointer mode to try to correct 29/04/2008 22:42:15 Xinerama: mouse pointer motion. XTEST+XINERAMA bug. 29/04/2008 22:42:15 Xinerama: Use -noxwarppointer to force XTEST. 29/04/2008 22:42:16 fb read rate: 4 MB/sec 29/04/2008 22:42:16 screen setup finished. 29/04/2008 22:42:16 29/04/2008 22:42:16 WARNING: You are running x11vnc WITHOUT a password. See 29/04/2008 22:42:16 WARNING: the warning message printed above for more info. 29/04/2008 22:42:16 The VNC desktop is: localhost:0 PORT=5900 ****************************************************************************** Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet? The scheme stores pixel data offscreen on the VNC viewer side for faster retrieval. It should work with any VNC viewer. Try it by running: x11vnc -ncache 10 ... more info: http://www.karlrunge.com/x11vnc/#faq-client-caching 29/04/2008 22:42:18 Got connection from client 127.0.0.1 29/04/2008 22:42:18 other clients: 29/04/2008 22:42:18 check_access: client 127.0.0.1 matches host 127.0.0.1 Connected: localhost:5900, protocol_version=3.8, preferred_encoding=(0,) 29/04/2008 22:42:18 created xdamage object: 0x360002c 29/04/2008 22:42:18 Client Protocol Version 3.8 29/04/2008 22:42:18 Protocol version sent 3.8, using 3.8 29/04/2008 22:42:18 rfbProcessClientSecurityType: executing handler for type 1 29/04/2008 22:42:18 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8 VNC Screen: size=1280x800, name='delldebian:0.0'29/04/2008 22:42:18 Pixel format for client 127.0.0.1: 29/04/2008 22:42:18 32 bpp, depth 8, big endian 29/04/2008 22:42:18 true colour: max r 255 g 255 b 255, shift r 24 g 16 b 8 Output movie size: 1280x800 Creating movie: 'tutorial.swf': version=5, size=1280x800, framerate=12.0, compression=None 29/04/2008 22:42:18 Using raw encoding for client 127.0.0.1 Recording WAVE 'voice.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo 29/04/2008 22:42:19 client 1 network rate 100000.0 KB/sec (660410.5 eff KB/sec) 29/04/2008 22:42:19 client 1 latency: 117.9 ms 29/04/2008 22:42:19 dt1: 0.0061, dt2: 0.0001 dt3: 0.1179 bytes: 4096012 29/04/2008 22:42:19 link_rate: LR_BROADBAND - 117 ms, 100000 KB/s Aborted by signal Interrupt... 29/04/2008 22:42:25 rfbSendUpdateBuf: write: Broken pipe 29/04/2008 22:42:25 client_count: 0 29/04/2008 22:42:25 viewer exited. 29/04/2008 22:42:25 deleted 40 tile_row polling images. Writing: /home/lucas/tutorial.html... FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-liba52 --enable-libdts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr libavutil version: 1d.49.3.0 libavcodec version: 1d.51.38.0 libavformat version: 1d.51.10.0 built on Jul 9 2007 22:27:18, gcc: 4.1.3 20070601 (prerelease) (Debian 4.1.2-12) Input #0, wav, from 'voice.wav': Duration: 00:00:06.3, start: 0.000000, bitrate: 1411 kb/s Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s Output #0, mp2, to 'voice.mp3': Stream #0.0: Audio: mp2, 22050 Hz, stereo, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding size= 49kB time=6.3 bitrate= 64.0kbits/s video:0kB audio:49kB global headers:0kB muxing overhead 0.000000% Using pygame 1.7.1release Reading mp3 file: voice.mp3... Input movie: version=5, size=1280x800, framerate=12fps, frames=73, duration=6.1s. Output movie size: 1280x800 Scanning source swf file: tutorial.swf... Traceback (most recent call last): File "/home/lucas/pyvnc2swf/edit.py", line 244, in ? if __name__ == "__main__": sys.exit(main(sys.argv[1:])) File "/home/lucas/pyvnc2swf/edit.py", line 239, in main mp3seek=mp3seek, mp3skip=mp3skip) File "/home/lucas/pyvnc2swf/edit.py", line 86, in reorganize builder.build(r) File "/home/lucas/pyvnc2swf/output.py", line 999, in build self.start() File "/home/lucas/pyvnc2swf/output.py", line 941, in start self.movie.info.mp3.seek_frame(0) File "/home/lucas/pyvnc2swf/mp3.py", line 116, in seek_frame needsamples = self.needsamples(t) File "/home/lucas/pyvnc2swf/mp3.py", line 83, in needsamples return int(self.sample_rate * t) + self.initial_skip TypeError: unsupported operand type(s) for *: 'NoneType' and 'int' I am following: http://wolphination.com/linux/2006/06/30/how-to-record-videos-of-your-desktop/ and I record stuff using this script: #!/bin/sh #aptitude install python-pyvncswf x11vnc x11vnc -localhost -viewonly -wait 10 -defer 10 & python ~/pyvnc2swf/vnc2swf.py -o tutorial.swf -N -S 'arecord -c 2 -fcd -t wav voice.wav' localhost:0 ffmpeg -i voice.wav -ar 22050 voice.mp3 python ~/pyvnc2swf/edit.py -o tutorial1.swf -a voice.mp3 tutorial.swf mv ~/tutorial1.swf ~/tutorial.swf rm ~/voice.wav rm ~/voice.mp3 rm ~/tutorial1.html Any idea why I keep getting this error? Lucas |