-
 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 (2) .- Knowledge Base  . 

Copy Selected Tracks

   0.2  

Amarok 2.0 Script

Score 77%
Copy Selected Tracks
zoom


Copy Selected Tracks
zoom


Downloads:  257
Submitted:  Jan 26 2010
Updated:  Aug 8 2011

Description:

'Copy Selected Tracks' to device or local path.
All further updates have been frozen. This code is free with no license, please feel free to take and update as your own...

Features:
• This script will copy tracks that have been highlighted (aka selected) from a playlist to a destination folder.
• Added feature to convert flac files to mp3 - as long as you have flac.soundforge.net and lame.soundforge.net installed (currently does not work in windows platforms).

Selecting Tracks:
In Amarok, tracks can be selected by clicking on the track, holding ctrl and adding each additionally clicked track to the selection or by holding shift and clicking on a range of tracks.

Copy Tracks:
When imported, the "Copy Selected Tracks..." menu item will be added to the tools menu.

Importing Scripts into Amarok:
Amarok looks for scripts in the ~/$KDEHOME/share/apps/amarok/script/yourscriptname/ directory. $KDEHOME is likely .kde, .kde4 or .amarok-nightly if you use Neon.

Pending Updates:
None at the moment, I generally wrote this for myself to copy songs to my media device (mp3 player). But I wanted to share if this is useful to anyone. If you have any ideas, I'd love to hear them.

• Additional languages easily added. Current language found in en.js. If you can translate this file, i'd gladly add additional languages.

Outstanding Issues:
• tbd...

Tags: copy songs, copy tracks, copy files, amarok, media device.




Changelog:

0.1 - released to public
0.2 - added convert flac to mp3 feature and artist/album folder structure. Conversion requires installation of flac and lame (lame.sourceforge.net and flac.soundforge.net). Not compatible with windows platforms yet.




LicenseGPL
(CopySelectedTracks 0.2.tar.gz)
Send to a friend
Subscribe
Other  Apps  from spiritofelric
Report inappropriate content



goto page:  1  2 

-

 Convert & Copy?

 
 by jabster on: Feb 18 2010
 
Score 50%

Hi.
Would it be possible to add a "Convert to MP3 and Copy" option?

Problem is that my wife's MP3 player only plays OGG & MP3, not flac, which is a hefty part of my collection. So if she could just create a playlist in amarok, and then select convert & copy, she would have a really easy time of loading up her mp3 player. Just hard-code to 128 bitrate probably.

If you need "encouragement" let me know, and I'll see what I can do. (I'd try and do it myself but I have very limited programming ability.)

thanks,
john


Reply to this

-
.

 Re: Convert & Copy?

 
 by spiritofelric on: Feb 20 2010
 
Score 50%

Hi John,
There are no tools within Amarok for conversion, however, it is still a possibility if I call on an external tool.

What OS are you running on? I could do some research on getting this done... but i'd like to look into your platform first ;).

Cheers, Elric


Reply to this

-

 Re: Re: Convert & Copy?

 
 by jabster on: Feb 20 2010
 
Score 50%

Hi.
I'm running Mandriva 2010.0 with the PLF repos. KDE SC 4.4 and amarok 2.2.0.

thanks again,
john


Reply to this

-
.

 flac to mp3

 
 by spiritofelric on: Mar 9 2010
 
Score 50%

Okay...

It's in a very beta stage, but it will make a mp3 copy of your flac file on the destination specified. You will need http://flac.sourceforge.net/ and http://lame.sourceforge.net/ installed on your system (you probably already have flac - they're small command line programs).

It takes a while to convert each file - 30seconds approximately.

Let me know if you have any issues.


Reply to this

-

 Re: flac to mp3

 
 by jabster on: Mar 22 2010
 
Score 50%

Ooh! Just saw this yesterday!

Awesome!

Works great for the FLAC files!

However (you know there's gotta be a however) ;-) ....I wanted it to convert OGG's as well.

But, now that I have a starting point, I am able to use my Amazing Programming Skills(tm) to modify your code! :-)

So, I have now modified it to convert FLAC and OGG to MP3s!

I also modified your code to stop using flac and lame, and to use ffmpeg instead. Not really sure what's better for general distribution tho. Both lame and ffmeg (with mp3 support) need to be installed from outside the "official" repos. But ffmpeg seems to be much quicker.

I will try send the updated files over to you later today. I'll try and make diff files for you.

Thanks again!

-john


Reply to this

-

 Re: Re: flac to mp3

 
 by jabster on: Mar 22 2010
 
Score 50%

Ok...I'm having trouble with the diff files...so the files are here: http://www.jabster.net/amarok/

main.js & en.js

en.js:
changed to "const LANG_CTconvert="Convert FLAC/OGG files to MP3 (slow)";"

main.js:
-changed function name from "convertFlacToMp3" to "convertToMp3" since it does both now
-test program lines: added check for ffmpeg; changed error messages a bit.
-relevant function conversion line: "pConvert.start("ffmpeg -y -ab 128k -ac 2 -i \"" + strSource + "\" \"" + strDest + "\"");"

Seems to be working fine.

Let me know what you think.

Thanks,
-john


Reply to this

-

 Re: Re: flac to mp3

 
 by tifff on: May 20 2010
 
Score 50%

Using sox as a flac/ogg/... decoder allows to change more attributes. I use it e.g. for tempo control (additionally added to Dialog.js) to adjust tempo for dance competitions.

To play using different tempo (without file conversion) I prefer the dbus-monitor together with dbus-send to stop/pause/restart amarok during playing with sox.


h.f.
Reply to this

-

 Translation

 
 by Kirilo on: Mar 15 2010
 
Score 50%

For my home use I translate all Amarok scripts I have into German.
I'm glad I can share it in this case: http://www.cyrilbrosch.net/de.js


Reply to this

-
.

 Re: Translation

 
 by spiritofelric on: Mar 16 2010
 
Score 50%

Amazing!
Thank you so much. I'll definitely add this.


Reply to this

-

 Re: Translation

 
 by DenisSeidel on: Jun 19 2010
 
Score 50%

Danke dafür ^^


Reply to this

-

 Ogg/oga-support

 
 by DenisSeidel on: Jun 19 2010
 
Score 50%

Thanks for this very useful script. I'm wondering about this isn't almost part of Amarok.However, I'm looking forward for ogg/oga-support for the converting-functionality of your script, because my Mp3-Players only support mp3, wav or wma.

Will it come?


Reply to this

-

 Last used folder

 
 by marcs on: Jun 26 2011
 
Score 50%

I lately make heavy use of this tool, thanks. However, I have different folders in which I copy and always have to click through the directory structure. It would be great if the last 5 folders could be remembered.


Reply to this

-

 tags

 
 by e1nste1n on: Jul 16 2011
 
Score 50%

is it possible to save flac tags into converted mp3's?


Reply to this

goto page:  1  2 

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.