-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  .- Knowledge Base  . 

Audio Format Converter

   0.7.0  

Amarok Script

Score 79%
Audio Format Converter
zoom


Link:  http://mlmitton.com
Downloads:  20568
Submitted:  May 2 2005
Updated:  Apr 28 2007

Description:

This script allows you to convert the audio format of the tracks in the playlist. The script takes a snapshot of the current playlist. Once the conversion has started, you can go back to using amaroK normally.

Supported files for both input and output include .flac, .ogg, .mp3, .mpc, .m4a, and .wav. Additionally, .wma, .ra, and are supported for input. (See below for the required packages.)

I don't know how to do anything with metatags from .wma or .ra. All I know is tags will get transferred to the output file if and only if the tags show up in the amaroK playlist. If they aren't there, I suggest converting the files, then using a real tag editor like Easy Tag to put them in to the converted files.

This has only been tested on amaroK 1.2.4, but it should work on any amaroK>=1.2

The original files are NOT deleted. If the output file will overwrite an existing file, a dialog will appear to ask you whether to go ahead and overwrite or to skip the track. If you try to convert a file into the format it's already in, a dialog will ask you how to handle this situation.

Depending on the number of tracks and the speed of your computer, this can take a long time to run. With each track, a passive popup will let you know what track it's processing. At any time, you can stop the script by clicking 'stop' in the amaroK script GUI.

Required Packages:
lame -- for .mp3 in and out
flac -- for .flac in and out
oggenc -- for .ogg out
oggdec -- for .ogg in
mppenc -- for .mpc out
mppdec -- for .mpc in
mplayler -- for .wma or .ra in
faad -- for .mp4/.m4a in
faac -- for .m4a out




Changelog:

v 0.7.0
++++++
The improvements in this release are due to Frederick Schaer, and I (we) thank him for his help!

The improvements are: 1) It now should handle full utf-8 character encoding for all the usual tags. 2) It corrects the error noted in the comments below about IndexError/AttributeError--something which I believe only affects more recent versions of Python.

v.6.2
++++++
For myriad reasons, a file can fail to convert but the script will continue on with the next file (as intended--I don't want one corrupted file to stop a 1,000 file batch). There is now an error log in the top-level directory where your transcoded files are saved that lists any files that failed to convert.

v.6.1
++++++
--amaroK switched the track number xml tag in their playlist from "TrackNo" to "Track". This catches up with the change, but should still work on versions earlier than 1.3.

v.6
++++++
--Fixed a piping bug that could cause the script to stop after a couple of files.
--Added a check for whether the output format is the same as the input format, with a dialog for how to handle this situation.
--Added a few more included options for encoders (OTHER still allows you to set your own options.)




LicenseGPL
Send to a friend
Subscribe
Other  Apps  from mlmitton
Report inappropriate content



goto page: prev   1  2  3  4  5  6 

-
.

 Fantastic

 
 by bearcatsandor on: Sep 11 2005
 
Score 50%

I just wanna say how awesome this script is. It has saved me a lot of manual work converting files from one format to another.

Thank you so much!!


Reply to this

-

 Audio CDs

 
 by sbassett on: Oct 21 2005
 
Score 50%

Any thought of providing audo cd conversion. The only thing that seperates it from Itunes in my opinion.


Reply to this

-

 Re: Audio CDs

 
 by mlmitton on: Oct 24 2005
 
Score 50%

I guess I'm not sure what you mean. Do you mean ripping CDs to whatever audio format? If so, I think you can already do it in amaroK, though having never tried, I'm not exactly sure how. (Probably drag and drop like all things.) But it's not something advertised, because it really is just better to use something like Grip. AmaroK is an audio player, not a file organizer, so I think I'd just as soon leave that to programs focused on ripping.

If you mean something else, let me know.


Reply to this

-

 Re: Re: Audio CDs

 
 by sbassett on: Oct 27 2005
 
Score 50%

That is exactly what I meant, oh well. You can hope right? That is the one thing I have to hear about from the iTunes users, the fact that one needs to open another app to rip a cd. Even though amarok is the best player I have ever used.


Reply to this

-

 Re: Re: Re: Audio CDs

 
 by Dhraakellian on: Jan 11 2006
 
Score 50%
DhraakellianDhraakellian
-
Nick T. 1

Earth, 3 Sol System, Western Spiral Arm, Milky Way
Last visit Oct 19 2013
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

use audiocd:/ in the filebrowser to listen to audio CD's.

For ripping from CD to HD, dragging from audiocd:/ to your favorite kioslave-capable file manager should work.


Reply to this

-
.

 Not working for me

 
 by yggdrasil on: Nov 3 2005
 
Score 50%

I'm trying to convert a bunch of *.mpc files into mp3/ogg/whatever and all this script does is filling an error log. I don't even get an appropriate error-message why the process failed. When the script finishes, it says "All Done Transcoding Your Files!", although it has done nothing.
The error-log says

The error log for Audio Format Converter script for amaorK
/home/user/01_Track.mp3

The musepac-decoder mppdec is installed.Any hints?


Reply to this

-

 Re: Not working for

 
 by mlmitton on: Nov 3 2005
 
Score 50%

Well, there's not much info to go on here. Take the python script itself and run it from a console, i.e., not from amaroK's script manager. (You can download here, unpack it, then "python ****.py" (whatever the file name actually is) Then you'll be able to see all the error output and I can be of more help.

Oh, this might be overly pedantic, just remember to have amaroK open, with some MPC files in the playlist before you run the script from console.

Also, make sure that the first panel of the script indicates that you have the package required to decode MPC.


Reply to this

-

 Re: Re: Not working

 
 by kramg on: Dec 14 2005
 
Score 50%

In my case it turned out that the script chokes when it sees a genre it doesn't recognize, like "Christmas". Any thoughts on what to do other than re-tag my whole collection?

What Genres will the script recognize?


gjk
Reply to this

-

 Re: Re: Re: Not work

 
 by bdillahu on: Jan 7 2006
 
Score 50%

It is a "lame" failing that it doesn't handle unknown genre's (by default).

I got around this by changing line 183 to read:

encodeCommand = "lame --ignore-tag-errors " + options + id3Options + " " + tempWavFile + " " + outputFileNameE

Adding the "--ignore-tag-errors " (make sure you get the trailing space) got me moving on.

Bruce


Reply to this

-

 Lossless Formats

 
 by capntripz on: Nov 30 2005
 
Score 50%

It would be great to include shorten (.shn) and Monkey's Audio (.ape) with the ability to encode or decode (I guess that is like conversion. That would be all of what I know to be the major lossless audio formats.


TIA,
Cap

Reply to this

-

 Re: Lossless Formats

 
 by mlmitton on: Nov 30 2005
 
Score 50%

Look at the earlier comments--there's one on Ape. I wrote a version of the script which, I hope, includes support for Ape. However, I haven't been able to get the Ape encoder/decoder working on my system, so I haven't been able to test it. I asked people to let me know whether it worked, but so far, no one has said either way, despite its being downloaded about 100 times.

So give it a try, and let me know. If it works, I'll include it in the release itself.

As for SHN, I actually have never heard of it before. Always been a FLAC man myself.


Reply to this

-
.

 Unicode

 
 by xeper on: Dec 9 2005
 
Score 50%

This script is exactly what I have been looking for - however it does choke on Filenames/Tags that contain Unicode characters. Is this a problem with Audio Format Converter or with the encoder (in this case lame 3.96.1 from packman.links2linux.de)?

Error message is:

Traceback (most recent call last):
File "/srv/shares/home/cord/.kde/share/apps/amarok/scripts/formatconverter.amarokscript/formatconverter.py", line 273, in ?
mainEncodeLoop(outputFormat, destination, fileNameConven, dom_plist, options, checkOverwrite, checkInEqOut, transSkip, neverOver, FIELDS, INPUT, error_log)
File "/srv/shares/home/cord/.kde/share/apps/amarok/scripts/formatconverter.amarokscript/formatconverter.py", line 255, in mainEncodeLoop
doTranscode(infoPopup, decodeCommand, encodeCommand, rmWavCommand, transSkip)
File "/srv/shares/home/cord/.kde/share/apps/amarok/scripts/formatconverter.amarokscript/formatconverter.py", line 198, in doTranscode
os.system(infoPopup)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbf' in position 95: ordinal not in range(128)


Reply to this

-

 Re: Unicode

 
 by mlmitton on: Dec 13 2005
 
Score 50%

I honestly don't know what the problem is, but AFC won't handle unicode correctly. It sucks for me, too--I could have sworn I ripped my Sigur Ros, but where is it? :) I've put a lot of time into trying to figure out how to handle unicode, but I haven't succeeded. It's probably not hard, I just don't know what I'm doing. Too short on time and too dumb.


Reply to this

-

 Re: Re: Unicode

 
 by bdillahu on: Jan 7 2006
 
Score 50%

I don't know if it really works or helps, but maybe as a pointer, I got past this error by adding a

".encode( "utf-8" ) on each variable where the script complained... thus it went from:

error.write(outputFileName + "\n")
to:

error.write(outputFileName.encode( "utf-8" ) + "\n")

I had to change lines: 198, 200 and 264

I still have the problem that it creates the temp.wav file but I don't get the mp3 file (going from flac to mp3).


Bruce
Reply to this

-

 What if....

 
 by Zargoon on: Dec 17 2005
 
Score 50%
ZargoonZargoon
West Mark Lands
Home
-
Wesley Smith 0

West Mark Lands
United States of America, Park City
Last visit Jun 9 2007
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

I want to convert some .wav files but I don't know how to load them to the amoraK playlist. Any suggestons?


-Zargoon-
Reply to this

goto page: prev   1  2  3  4  5  6 

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.