Find the answer to your Linux question:
Results 1 to 6 of 6
hi, any apps i can use for this?...
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Location
    Earth, Australia, NSW
    Posts
    4

    convert m4a to mp3



    hi, any apps i can use for this?

  2. #2
    Linux Newbie
    Join Date
    Jul 2004
    Location
    Calcutta, India
    Posts
    220
    You need faad2 and lame installed.
    Code:
    $ faad foobar.m4a       # to convert to wav
    $ lame foobar.wav foobar.mp3          # to convert to mp3

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    1

    faad syas only

    Thanks for the tip, but here is all I get, no matter which m4a file I try:

    ----------------
    jim@mk8-939a-1:/mnt/data1FAT32/tempFromAV/Bob Marley$ faad War.m4a war.mp3
    *********** Ahead Software MPEG-4 AAC Decoder V2.0 ******************

    Build: Nov 9 2005
    Copyright 2002-2004: Ahead Software AG
    http://www.audiocoding.com
    Floating point version

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License.

    ************************************************** ************************

    Error opening file: War.m4a
    jim@mk8-939a-1:/mnt/data1FAT32/tempFromAV/Bob Marley$
    --------------------------

    Thanks for any help.

    Jim

  4. #4
    Just Joined!
    Join Date
    May 2007
    Posts
    2

    Exclamation m4a to mp3

    Quote Originally Posted by prosen View Post
    You need faad2 and lame installed.
    Code:
    $ faad foobar.m4a       # to convert to wav
    $ lame foobar.wav foobar.mp3          # to convert to mp3
    Works like a charm! Is there a way to convert multiple files at once?

  5. #5
    Just Joined! calix's Avatar
    Join Date
    Apr 2006
    Posts
    8

    Convert Multiple files at once

    Here is a script that I have had for a long time to convert mp3 and wma files to ogg. I have modified it for m4a files here:

    Code:
    #!/bin/bash
    #for i in *.wma ; do 
    
    current_directory=$( pwd )
    
    #remove spaces
    for i in *.[Mm]4[Aa]; do mv "$i" `echo $i | tr ' ' '_'`; done
    
    #remove uppercase
    for i in *.[Mm]4[Aa]; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done
    
    #ripping with mplayer
    echo Processing file: $i 
    #for i in *.mp3 ; do mplayer -vo null -vc dummy -ao pcm:file=$i.wav $i; done
    for i in *.m4a ; do faad $i; done
    
    #Convert to OGG
    oggenc *.wav;
    
    #removing old file
    rm *.wav;
    #rm *.m4a
    You can also change the line 'oggenc *.wav;' to 'lame *.wav;' to convert to mp3 rather than ogg.

  6. #6
    Just Joined!
    Join Date
    May 2007
    Posts
    2

    Smile Thanks

    Perfect! Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •