SoundKonverter is not called from Amarok

Bug #285387 reported by Evgeny Kuznetsov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
soundkonverter (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: soundkonverter-amarok

In current Intrepid Beta with soundkonverter-amarok 0.3.8-2 and all of its dependencies installed, soundKonverter script appears in Amarok as it should and can be run, but does nothing.

On attempt to transfer a file that requires conversion, Amarok shows a message "running soundKonverter in background" and starts waiting for SoundKonverter to finish its job. In fact, SoundKonverter is either not run at all, or quits quickly leaving no log (at least I couldn't find any log in SoundKonverter's log directory). So Amarok would wait forever.

Revision history for this message
Daniel Faust (hessijames) wrote :

i think i found the problem, you can check out the new (attached) script if you want.
please note that i changed the handling of special characters a little bit in the upcoming version 0.3.9, so most special characters should work then, too.

Changed in soundkonverter:
status: New → Fix Committed
Revision history for this message
Evgeny Kuznetsov (nekr0z) wrote :

Yes, this fixes the problem.

Changed in soundkonverter:
status: Fix Committed → Fix Released
Revision history for this message
James Cuzella (trinitronx) wrote :

This package is broken in Intrepid. Out of box, amarok does not find the script, it does not have a .spec file to tell amarok to use it as a transcoder, and the script is broken until using this version.

Here's how I fixed it on my system:

# Create symlink for amarok to find the script
sudo ln -s /usr/share/apps/amarok/scripts/soundkonverter /usr/share/apps/soundkonverter/amarokscript/
cd /usr/share/apps/soundkonverter/amarokscript/
# Replace bad script
rm soundKonverter.rb
wget http://launchpadlibrarian.net/18982229/soundKonverter.rb
# Create spec file
sudo vim soundKonverter.spec

Now paste this into the .spec file:
-----------------START CUTTING HERE-----------------
name = SoundKonverter
type = transcode

[Transcode]
target_formats = mp3 ogg flac m4a mp4 wav
-----------------STOP CUTTING HERE-----------------

Save that file. Now the next problem is that the transcode job will use "Very low" setting no matter what setting is chosen in the script's configuration in amarok.

I looked at the script, and saw it was looking for a 'config' file, so I created one. It's probably a matter of having no write access to this directory to create one.

I put one of the following settings on a single line:

Very_low
Low
Medium
High
Very_high

# EXAMPLE: set transcoding option to Very_high
cd /usr/share/apps/soundkonverter/amarokscript/
echo 'Very_high' > config

Perhaps the best way would be to install the script into the user's home directory like you posted before. I would think another solution would be to symlink any config files into the user's home dir, but then what happens with multiple users? Perhaps there's a way I do not know of using the debian packaging tools to set configuration files to a directory based on user.

Please fix these bugs in 0.3.9 ;-)

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

Other bug subscribers

Related questions

Remote bug watches

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