Re: [Vnc2swf-users] [Error] unsupported operand type
Status: Alpha
Brought to you by:
euske
From: Lukasz S. <szy...@gm...> - 2008-05-01 03:56:41
|
On Wed, Apr 30, 2008 at 5:32 PM, Yusuke Shinyama <yu...@cs...> wrote: > Hello, > > > On Wed, 30 Apr 2008 12:58:47 -0500, "Lukasz Szybalski" <szy...@gm...> wrote: > > Any idea why I might be getting: > > > Traceback (most recent call last): > (snip) > > > > 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 wonder if the generated mp3 file is corrupted. > Did it play okay? What does it shows with the folloing command line? > > $ python mp3.py voice.mp3 > > If it does not show anything, try removing the ID3 tags with > some existing mp3 tools. > Still the same. There was no id3. It prints blank. I then removed the Title using xmms and I got hex code. But the code still gives the same error. Traceback (most recent call last): File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/edit.py", line 244, in ? if __name__ == "__main__": sys.exit(main(sys.argv[1:])) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/edit.py", line 239, in main mp3seek=mp3seek, mp3skip=mp3skip) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/edit.py", line 86, in reorganize builder.build(r) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/output.py", line 999, in build self.start() File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/output.py", line 941, in start self.movie.info.mp3.seek_frame(0) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/mp3.py", line 116, in seek_frame needsamples = self.needsamples(t) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/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' lucas@delldebian:~$ python ./Desktop/pyvnc2swf-0.9.3/pyvnc2swf/mp3.py voice.mp3 #Remove name lucas@delldebian:~$ python ./Desktop/pyvnc2swf-0.9.3/pyvnc2swf/mp3.py voice.mp3 TAG '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff' lucas@delldebian:~$ vi rec.sh lucas@delldebian:~$ python ~/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/edit.py -o out.swf -a voice.mp3 in.swf Using pygame 1.7.1release Reading mp3 file: voice.mp3... Input movie: version=5, size=1280x800, framerate=12fps, frames=86, duration=7.2s. Output movie size: 1280x800 Scanning source swf file: in.swf... Traceback (most recent call last): File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/edit.py", line 244, in ? if __name__ == "__main__": sys.exit(main(sys.argv[1:])) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/edit.py", line 239, in main mp3seek=mp3seek, mp3skip=mp3skip) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/edit.py", line 86, in reorganize builder.build(r) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/output.py", line 999, in build self.start() File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/output.py", line 941, in start self.movie.info.mp3.seek_frame(0) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/pyvnc2swf/mp3.py", line 116, in seek_frame needsamples = self.needsamples(t) File "/home/lucas/Desktop/pyvnc2swf-0.9.3/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' xmms plays the mp3 with no problem. voice.mp3 mpeg 2, layer 2 bitrate 64kb/s samplerate 22050hz stereo 290 frames 60732B Lucas |