-
 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:  20569
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 

-

 monkeys audio

 
 by aries on: Jun 10 2005
 
Score 50%

Thanks, this looks good!

Question:
Is it possible to add monkeys audio - ape files- to the available (input)formats?


Reply to this

-

 Re: monkeys audio

 
 by mlmitton on: Jul 4 2005
 
Score 50%

I haven't forgotten about the request. I haven't been able to get gstreamer to play .ape, and I also can't get MAC to compile properly on my AMD64. So it's been pretty hard to test encoding and decoding .ape files:)

But, here's a version of the script which may (or may not) decode your .ape.

http://www.mlmitton.com/files/monkeytest.py

The command line options for MAC are dead-simple, so I probably have the right decode command, but of course I can't check this.

If people give me positive feedback that this works, I'll put it into a formal release. Until then, just use the script here.


Reply to this

-

 non ascii characters

 
 by Runico on: Jun 20 2005
 
Score 50%

File "/home/sergio/.kde/share/apps/amarok/scripts/formatconverter.amarokscript/formatconverter.py", line 141, in createOutName
os.system(mkDirCommand)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 44: ordinal not in range(128)


Runico
Reply to this

-

 not fully working

 
 by rlklee on: Jun 30 2005
 
Score 50%

I am converting mp4's to mp3's -- the script begins to work, and does so, converting the first 5 files in the playlist successfully. After that, it just stops. No error message or anything, it just ends, even though there are nearly a thousand more files to convert. Any thought on this?


Reply to this

-

 Re: not fully workin

 
 by mlmitton on: Jul 1 2005
 
Score 50%

I've heard of one other report of this happening. I haven't yet had time to look into it, but I'm hoping to this weekend.

Can you email me more information?

Like, if you remove those 5 or 6 files, do you still get the problem? Or does it happen after any 5 files? What type of files are they? If there's a particular file that's gumming up the works, have you tried decoding/encoding that particular file on the command line? In the top level directory where you're saving the transcoded files, is there a temp.wav file? If so, is it of a song that was successfully transcoded, or is it of a song that didn't get encoded?

Answers to any of these questions would be helpful to me. My suspicion is that the decoder is hitting a file it doesn't like and killing the process. Though in that case there should be some error output...

Anyway, please, if this has happened to anyone else, also email me any info you can give me. Email can be found in my username link.


Reply to this

-

 Re: not fully workin

 
 by mlmitton on: Jul 4 2005
 
Score 50%

I think I found the problem. I'll have an update posted some time in the next 1-2 days.


Reply to this

-
.

 how to control it?

 
 by jcphil on: Jul 5 2005
 
Score 50%

The script asks me where I want to save files, format to save in and quality. It then proceeds to convert files that I don't want converted. I only want it to convert m4 files that I stored in one directory. But it jumps over to another directory and completely ignores the files I would like to convert. Wouldn't it be just a little more logical to at least ask the user which files he would like to convert? I want me to decide, not the script.


Reply to this

-
.

 Re: how to control it?

 
 by madpenguin8 on: Jul 5 2005
 
Score 50%

Well, this could easily be done with 1.3beta2 and up if support is built into this script using the customMenuClicked notification. Have a look at http://amarok.kde.org/blog/archives/35-More-scripting-goodies.html and http://amarok.kde.org/wiki/index.php/Script-Writing_HowTo#Notifications for more details.


Reply to this

-

 Re: how to control i

 
 by mlmitton on: Jul 5 2005
 
Score 50%

You do get to decide. If you want to convert something, put it in the playlist. If you don't want to convert it, leave it out. (Ref: the first sentence of the description on this page, or the first sentence in the "About" in amaroK, or the second sentence of the first panel when you run the script.)


Reply to this

-
.

 problem

 
 by mrme on: Jul 13 2005
 
Score 50%

eberything goes smooth, I got the messege the coversion is done from wma to mp3, but the folder I specified is empty, nothinh there?
what would be wrong?


Reply to this

-

 Re: problem

 
 by kriko on: Jul 15 2005
 
Score 50%

Same problem here


Reply to this

-

 Re: problem

 
 by mlmitton on: Jul 18 2005
 
Score 50%

I suspect it's either not encoding or decoding, probably decoding since dealing with wma is a bit trickier. If either encoding or decoding fails for some reason, the script keeps running despite the error.

Start amaroK from a terminal. (Most likely simply "amarok" will do.) Now, when you run the script, the terminal will give you the output of the mplayer command, which decodes the wma, and lame which encodes to wav. It will also give you what the error is if one of the commands doesn't work. My guess is it's probably an issue with mplayer.

Oh, also, watch the top-level of the directory where the transcoded files should end up--if you never see "temp.wav" appear, then you know there's a decoding problem.


Reply to this

-

 Re: Re: problem

 
 by stormcloud51090 on: Aug 6 2007
 
Score 50%

I had this problem - turns out it is an issue with a deprecated command in mplayer (for me anyway). To fix it i edited the script so the line under
elif inputFileFormat == ".wma" or inputFileFormat == ".ra":
read
decodeCommand = "mplayer " + inputFile + " " + "-vo null -vc dummy -af resample=44100 -ao pcm:file=" + tempWavFile

I would post the text that was originally there but i didnt back it up lol


Reply to this

-
.

 from konsole

 
 by mrme on: Jul 19 2005
 
Score 50%

I got the following lines after I run the script and tried a conversion. I guess, there is a problem with the jave. I have j2re rpm installed and seems to work with other applications, I never had a problem with the installed java. I will be glad if you can help me. Thanks.

which: no mppdec in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/jre/bin:/home/gurayuner/bin:/usr/lib/jre/bin)
which: no mppenc in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/jre/bin:/home/gurayuner/bin:/usr/lib/jre/bin)
Could not find "/home/gurayuner/Desktop/TempDownload/temp.wav".
rm: cannot remove `/home/gurayuner/Desktop/TempDownload/temp.wav': No such file or directory


Reply to this

-

 Re: from konsole

 
 by mlmitton on: Jul 19 2005
 
Score 50%

Well, the 2 "which" errors are telling you that that it can't find mppdec or mppenc in your standard path. That is, mppenc and mppdec are not located in any of the folders listed in parentheses, so they can't be run by simply typing "mppenc" in the konsole, which is in essence what the script does. So there's a good chance you don't have these packages installed. If you do, then you just need to put them in one of those folders (or add whatever folder the mppenc/dec binaries reside in to your standard path, but that's more complicated.)

As for the next two errors, "could not find" and "rm...", what's happening is that the decoder you're trying to use, for whatever reason, isn't actually decoding the source file into temp.wav, and since you aren't creating temp.wav, you obviously can't encode it or remove it. If you're trying to transcode a musepack file, these are the exact errors you would get since you don't have mppdec installed. I suppose that's what's happening. If not, give me more info about the decoder step in your conversion (or try a different type of source file and see if that works).


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.