bitpim crashes when attempting to convert mp3 for new ringtone
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/
return method(*args, **kwargs)
File "/usr/share/
getattr(self, self.PARAMETERS
File "/usr/share/
open(
File "/usr/share/
raise ConversionFailed, ' '.join(
ConversionFailed: /usr/share/
FFmpeg version SVN-r19352-
configuration: --extra-
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
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/
args = (<ringers.
method = <function OnConvert at 0xaa5f02c>
kwargs = Keys []
Frame OnConvert in /usr/share/
i = 329
self = <ringers.
_ = <wx._core.
Frame mp3convert in /usr/share/
self = <ringers.
Frame converttomp3 in /usr/share/
e = CommandExecutio
ffmpeg = '/usr/share/
mp3file = '/tmp/tmpbwyrkd
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)
NonfreeKernelMo
Package: bitpim 1.0.6.dfsg.
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: bitpim
Uname: Linux 2.6.31-19-generic i686
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.