Thread: [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 |
From: Lukasz S. <szy...@gm...> - 2008-04-30 17:58:42
|
Any idea why I might be getting: > 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' Thanks, Lucas |
From: David K. <dav...@gm...> - 2008-04-30 20:10:19
|
I share all this, not as a final solution, but rather a "how to read the error message" and only respond because no one else had anything for you. I don't use pyvnc2swf, this is just general python/linux troubleshooting. It looks like self.sample_rate is not set, according to the error. The first thing is to make sure that I am using it correctly, checking all the command-line parameters, especially those related to MP3s. I found all the parameters in edit.py: usage: edit.py [-d] [-c] [-t type] [-V] [-f|-F frames] [-a mp3file] [-r framerate] [-S mp3sampleskip] [-C WxH+X+Y] [-B blocksize] [-K keyframe] [-R framestep] [-s scaling] -o outfile.swf file1 file2 ... Specify one output filename from the following: *.swf: generate a SWF movie. *.flv: generate a FLV movie. *.mpg: generate a MPEG movie. *.png|*.bmp: save snapshots of given frames as "X-nnn.png" -d: debug mode. -c: compression. -t {shape,video,mpeg,png,bmp}: specify the output movie type. -V: equivalent to -t video. (Flash version7 or above only) -f(-F) frames: frames to extract. e.g. 1-2,100-300,310,500- -F disables seeking audio. -R framestep: frame resampling step (default: 1) -s scaling: scale factor (default: 1.0) -a filename: attach MP3 file(s). (multiple files can be specified) -r framerate: override framerate. -B blocksize: (Video mode only) blocksize of video packet (must be a multiple of 16) -K keyframe: keyframe interval -S N[s]: skip the first N samples (or N seconds) of the sound when the movie starts. -C WxH+X+Y: crop a specific area of the movie. -b: disable seekbar. -l: disable loop. -z: make the movie scalable. So, it seems like some important things are these: [-a mp3file] [-S mp3sampleskip] So, if those didn't solve the problem, I would move on to the code. The error message is saying that on line 83, None and and integer are being multiplied (which is not supported, in python None and 0 are different types of things. NoneType is for things that are not defined) On Ubuntu I did a search for mp3 related python modules (to see if there might be a missing dependency) like this: apt-cache search mp3|grep python It came up with this list: python-eyed3 - Python module for id3-tags manipulation python-mutagen - audio metadata editing library python-hachoir-metadata - Program to extract metadata using Hachoir library python-id3 - Python module for id3-tags manipulation python-kaa-metadata - Media Metadata for Python python-mmpython - Media Metadata for Python python-musicbrainz - Second generation incarnation of the CD Index - python bindings python-osd - Python bindings for X On-Screen Display library python-pykaraoke - free CDG/MIDI/MPEG karaoke player python-pymad - Python wrapper to the MPEG Audio Decoder library python-pynjb - python wrapper for libnjb python-pysnmp-se - speed enhanced Python SNMP library for agents and managers python-tagpy - Python module for manipulating tags in music files python-tksnack - Sound functionality extension to Tcl/Tk and Python/Tkinter - Python library python-tunepimp - Python bindings for MusicBrainz tagging library Since the error appears to be related to getting info about the MP3s, or creating the MP3s in the first place, you may want to try this on the command-line (on Ubuntu): sudo apt-get install python-eyed3 python-mmpython python-pymad python-tagpy python-id3 python-mmpython Just to make sure all the stuff that works with MP3s is installed. Again, I don't use pyvnc2swf, so this isn't related to actually looking at it's dependencies, or some intimate knowledge of pyvnc2swf, specifically, just a step I might take to get it working quickly. Also, if you are using linux, I might recommend using the C version at http://www.unixuser.org/~euske/vnc2swf/ I use it on Ubuntu, with really great results. It's fast, and worked right away for me. It says on the main page that it's not as actively developed, or have as many features, but I really just want a fast, low-overhead screencast maker, and it works perfectly for that. On Wed, 2008-04-30 at 12:58 -0500, Lukasz Szybalski wrote: > Any idea why I might be getting: > > 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' > |
From: Yusuke S. <yu...@cs...> - 2008-05-01 00:24:10
|
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. Yusuke |
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 |
From: Yusuke S. <yu...@cs...> - 2008-05-01 13:25:44
|
On Wed, 30 Apr 2008 22:56:41 -0500, "Lukasz Szybalski" <szy...@gm...> wrote: > > 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. > Hmmm, could you send me the mp3 file off the list? I might take a look into it. Yusuke |
From: Lukasz S. <szy...@gm...> - 2008-05-02 19:23:06
|
On Fri, May 2, 2008 at 5:44 AM, Yusuke Shinyama <yu...@cs...> wrote: > On Thu, 1 May 2008 16:36:47 -0500, "Lukasz Szybalski" <szy...@gm...> wrote: > > Attached... > > > > also: > > apt-cache policy x11vnc > > x11vnc: > > Installed: 0.9.3.dfsg.1-1 > > > > apt-cache policy ffmpeg > > ffmpeg: > > Installed: 0.cvs20070307-6 > > Now I know, this was not an MP3. It is MP2. > Actually, your log says it: > > > 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% > > > I guess you need to install a package called "lame", which may not be > in your distro by default, due to the mp3 patent issues. > Then re-encode the wav file. Meanwhile, I'll make it > report an error in a less confusing manner... Thanks. That solved my problem. Also, I installed lame codec but I am not sure how to tell ffmpeg about a new codec? Does ffmpeg need to be precompiled or can I modify some config file or tell ffmpeg to use my codec? ffmpeg -i voice.wav -ar 22050 voice.mp3 tried ffmpeg -i voice.wav -ar 22050 -acodec mp3 voice.mp3 but still writes mp2 Unless there is a different command? Please list any that might appropriate. Thanks, Lucas |
From: Yusuke S. <yu...@cs...> - 2008-05-03 00:09:12
|
On Fri, 2 May 2008 14:23:11 -0500, "Lukasz Szybalski" <szy...@gm...> wrote: > > I installed lame codec but I am not sure how to tell ffmpeg about a new codec? > Does ffmpeg need to be precompiled or can I modify some config file or > tell ffmpeg to use my codec? > "lame" is the command name I use. I don't know how to use it with ffmpeg. Yusuke |