m4a->mp3 help

Jonas Norlander jonorland at gmail.com
Sat Oct 11 18:09:33 UTC 2008


2008/10/11 Juan Kawada <juankawada at gmail.com>:
> As far as I know K3b won't burn any m4a's or similar codecs onto a cd. I
> would like to be able to burn anything from my music collection onto a cd,
> not just some of it.
> so is there a way to get K3b to do this?
>
> or even better, I have my music collection in /home/udyrfrykte/Music, all
> organized in folders by letter/ artist name/ album name.  I would be very
> grateful to anyone who could write me a script that will find all of my
> songs that aren't mp3s and convert them to mp3.
>  I found an old script to do this here:
> http://ubuntuforums.org/showthread.php?t=138419
> but it's outdated and some changes need to be made to it before it will
> work.
>
> I would like this script not only for me, but for my friends that I
> convinced to use linux. It seems that main problem anyone I know has had
> converting is getting all music to play with amarok, etc.
>
> (p.s., my m4a's are all drm free)
>
> Thanks!
> --

Hi!

I use this find command in one of my scripts i use to "manage" my
music archive. It will find all music files based on it's extension.

find "$SEARCHDIR" -type f \( -iname "*.mp3" -o -iname "*.wma" -o
-iname "*.flac" -o -iname "*.ogg" -o -iname "*.mpc" -o -iname "*.ac3"
-o -iname "*.wav" -o -iname "*.acc" -o -iname "*.mp4" -o -iname
"*.m4a" \) -exec basename '{}' \;

If you want to find all music files except mp3 files you can change it
to something like this.

find "$SEARCHDIR" -type f \(  \! -iname "*.mp3" -a -iname "*.wma" -o
-iname "*.flac" -o -iname "*.ogg" -o -iname "*.mpc" -o -iname "*.ac3"
-o -iname "*.wav" -o -iname "*.acc" -o -iname "*.mp4" -o -iname
"*.m4a" \) -print

Then pipe it to some program that do the converting.

Good Luck

/ Jonas




More information about the kubuntu-users mailing list