Ah, true, I didn't explain that very well.

The way I manage my music is to keep the master copies as FLAC audio (so
I should never need to rip the CDs again, even as the popular lossy
formats change), and then transcode to the lossy format du jour for use
on my current mobile device (at present, this means MP3).

Previously, after ripping new CDs, I would go find the new FLAC files,
add them manually to SoundKonverter and generate the MP3 versions. This
let me keep the files in separate directories, with Amarok set to only
look at the FLAC files, while making it easy for me to grab the smaller
lossy files and drop them onto my phone.

This was actually fairly tedious (since I tend to go through phases of
not buying music at all, and then buying a whole lot at once), so I
decided to script the transcoding process in Python (walk the
directories, figure out which MP3 files were missing, then use the
SoundKonverter command line interface to generate them).

This all worked like a charm *except* that I couldn't get any of the
three options listed in the issue title to behave themselves. The
relevant Python subprocess command I was using to actually invoke
SoundKonverter is as follows ('--autoclose' is deliberately commented
out, since it didn't work):

  command = ['soundkonverter', '--autostart',# '--autoclose',
            '--format', 'mp3',
            '--profile', '--medium',
            '--output', dest_dir]
  print(command)
  command.extend(song.filepath for song in album_to_convert.songs)
  subprocess.call(command)

The paths in dest_dir and the song.filepath attributes were all absolute
paths.

You can see the whole thing here, with the actual invocation of SoundKonverter 
being right at the end (it isn't pretty though - this is the result of one late 
night hacking session and is tailored specifically to a bunch of quirks in my 
own music collection):
http://code.google.com/p/ytterbium/source/browse/__main__.py

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/688986

Title:
  --invisible/--autostart/--autoclose do not appear to be working

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to