bitpim crashes when attempting to convert mp3 for new ringtone

Bug #520280 reported by Gregory Gleason
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bitpim (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bitpim

First I was getting a crash because ffmpeg wasn't installed. Now that it's installed, I get this exception when trying to convert the mp3 to add it as a ringtone:

BitPim version: 1.0.6-Debian
An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
  File "/usr/share/bitpim/code/guihelper.py", line 165, in _busywrapper
    return method(*args, **kwargs)
  File "/usr/share/bitpim/code/ringers.py", line 451, in OnConvert
    getattr(self, self.PARAMETERS[self.convertinfo.format]['convert'])()
  File "/usr/share/bitpim/code/ringers.py", line 575, in mp3convert
    open(self.mp3file, "wb").write(conversions.converttomp3(self.file, int(self.bitrate.GetStringSelection()), int(self.samplerate.GetStringSelection()), int(self.channels.GetStringSelection())))
  File "/usr/share/bitpim/code/conversions.py", line 250, in converttomp3
    raise ConversionFailed, ' '.join(e.args)+'\n'+e.logstr
ConversionFailed: /usr/share/bitpim/helpers/ffmpeg.lbin -i /home/gsg/pick up the pieces.mp3 -ab 48 -ar 44100 -ac 2 /tmp/tmpbwyrkd.mp3
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
  libavutil 49.15. 0 / 49.15. 0
  libavcodec 52.20. 0 / 52.20. 0
  libavformat 52.31. 0 / 52.31. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 4. 0 / 0. 4. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Oct 13 2009 22:15:16, gcc: 4.4.1
Input #0, mp3, from '/home/gsg/pick up the pieces.mp3':
  Duration: 00:00:35.72, start: 0.000000, bitrate: 95 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, mono, s16, 96 kb/s
WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
Output #0, mp3, to '/tmp/tmpbwyrkd.mp3':
    Stream #0.0: Audio: 0x0000, 44100 Hz, stereo, s16, 0 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Unsupported codec for output stream #0.0

Variables by last 8 frames, innermost last

Frame _busywrapper in /usr/share/bitpim/code/guihelper.py at line 167
           args = (<ringers.ConvertDialog; proxy of <Swig Object of type 'wxDialog *' at 0xcbc56f0
         method = <function OnConvert at 0xaa5f02c>
         kwargs = Keys []
                   {}

Frame OnConvert in /usr/share/bitpim/code/ringers.py at line 451
              i = 329
           self = <ringers.ConvertDialog; proxy of <Swig Object of type 'wxDialog *' at 0xcbc56f0>
              _ = <wx._core.CommandEvent; proxy of <Swig Object of type 'wxCommandEvent *' at 0xbf

Frame mp3convert in /usr/share/bitpim/code/ringers.py at line 575
           self = <ringers.ConvertDialog; proxy of <Swig Object of type 'wxDialog *' at 0xcbc56f0>

Frame converttomp3 in /usr/share/bitpim/code/conversions.py at line 251
              e = CommandExecutionFailed('/usr/share/bitpim/helpers/ffmpeg.lbin', '-i', u'/home/gs
         ffmpeg = '/usr/share/bitpim/helpers/ffmpeg.lbin'
        mp3file = '/tmp/tmpbwyrkd.mp3'
  inputfilename = u'/home/gsg/pick up the pieces.mp3'
       channels = 2
     samplerate = 44100
        bitrate = 48

ProblemType: Bug
Architecture: i386
Date: Wed Feb 10 22:52:29 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: bitpim 1.0.6.dfsg.1-4ubuntu1
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-19.56-generic
SourcePackage: bitpim
Uname: Linux 2.6.31-19-generic i686

Revision history for this message
Gregory Gleason (gsgleason) wrote :
Revision history for this message
Gregory Gleason (gsgleason) wrote :

I can see that the issue is how the python script is creating the job for ffmpeg. It's passing the bitrate in kpbs when in fact ffmpeg uses bps. I solved it by adding 000 to the end of each option in /usr/share/bitpim/code/ringers.py which doesn't look good.

I also had to find the package that would allow ffmpeg to output mp3. This should also be a dependency.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.