Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: How to convert pesky .m4a to .mp3

  1. #11
    Join Date
    May 2006
    Beans
    33

    Re: How to convert pesky .m4a to .mp3

    The easy way:

    It should be noted that these scripts may be useful in special cases, but that most people looking in the Ubuntu forums for a way to convert .m4a files to .mp3 will probably prefer to use SoundConverter:

    apt-get install soundconverter lame

    Give it a folder, set the options, and it will find all files needing to be converted, and will preserve the tags.

  2. #12
    Join Date
    Feb 2007
    Location
    Everywhere
    Beans
    1,529
    Distro
    Ubuntu Development Release

    Re: How to convert pesky .m4a to .mp3

    Mp3's are about as archaic as MS Windows.

    M4a's: Welcome to the future!

    [rant]Mp3's are not popular because it's a good format. That's like saying everyone uses Windows so it must be a good OS.[/rant]
    "Knowledge is power. Who said that?" - Dave Lister

  3. #13
    Join Date
    Feb 2008
    Beans
    12

    Re: How to convert pesky .m4a to .mp3

    To use these scripts, first check that you are using Nautilus as your file manager, then:
    • Create a new text file in Gedit or whatever you use for that purpose
    • Paste the script code into that file
    • Save it into /home/myhome/.gnome2/nautilus-scripts (where "myhome" is your username.
    • Navigate to the file, right-click on it, select Properties, Permissions, and check "Allow executing file as program."


    To use the script, right click in the folder in which you have the files you wish to convert. Choose "Scripts" and then select the script you wish to run.

    BTW, always back up the songs before attempting a conversion, as many of these scripts delete the originals as the last step. If something goes haywire, you will still have the original files. The original script in this thread is a good example. It cost me a full CD of files.

  4. #14
    Join Date
    Jul 2007
    Location
    New York City
    Beans
    265
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to convert pesky .m4a to .mp3

    Quote Originally Posted by rduke15 View Post
    The easy way:

    It should be noted that these scripts may be useful in special cases, but that most people looking in the Ubuntu forums for a way to convert .m4a files to .mp3 will probably prefer to use SoundConverter:

    apt-get install soundconverter lame

    Give it a folder, set the options, and it will find all files needing to be converted, and will preserve the tags.
    Sound Converter does not seem to accept M4A files...

  5. #15
    Join Date
    Sep 2007
    Beans
    7

    Re: How to convert pesky .m4a to .mp3

    It's 2 am in my country and still can't sleep. So I optimized your script with "great UI ::LOL::"

    #!/bin/bash

    y=`pwd`
    fileName="$1"

    if [ -z "$fileName" ]; then
    echo "Process in current folder"
    jef=ls *.m4a|tail -1
    if [ -f $jef ]; then
    echo "Next to process"
    else
    echo "File not found at first"
    exit
    fi
    else
    if [ -d "$fileName" ]; then
    cd "$fileName"
    jef=ls *.m4a|tail -1
    if [ -f $jef ]; then
    echo "Process in target folder"
    else
    echo "File not found at second"
    exit
    fi
    else
    echo "Folder not found"
    exit
    fi
    fi

    for i in *.m4a
    do
    #convert ke wav
    mplayer -ao pcm:file=tes.wav "$i"
    #namening
    name=`echo $i |sed -e 's/m4a/mp3/'`
    #convert ke mp3
    lame -h -b 192 tes.wav "$name"
    #remove wav-nya
    rm tes.wav
    done

    cd $y
    Just my 2 cents
    Last edited by burkas; October 13th, 2011 at 08:04 PM. Reason: previous script not run

  6. #16
    Join Date
    Aug 2012
    Beans
    1

    Re: How to convert pesky .m4a to .mp3

    a simple script that converts m4a to mp3...


    for i in *.m4a; do mplayer -quiet -ao pcm:fast:waveheader:file=output.wav "$i" && lame --quiet -h -b 320 output.wav "$i.mp3" && mv "$i.mp3" "`echo "$i.mp3" | sed -e 's/m4a.mp3/mp3/'`" && rm output.wav && rm "$i"; done

  7. #17
    Join Date
    Jan 2012
    Location
    Oregon, USA
    Beans
    58

    Re: How to convert pesky .m4a to .mp3

    Quote Originally Posted by dbeckham32 View Post
    You should try downloading a program called "gnormalize". It will allow you to convert one or an entire directory of MP4 files into MP3 or another output format. Works great, and has a graphical interface to boot.


    http://gnormalize.sourceforge.net/

    How does one install this? I'm a total noob and need explicit instructions/code. the code on the dl page didn't work. I only just figured out that this is why I'm not getting half my music.

  8. #18
    Join Date
    Apr 2007
    Beans
    32
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: How to convert pesky .m4a to .mp3

    Quote Originally Posted by Airycat View Post
    How does one install this? I'm a total noob and need explicit instructions/code. the code on the dl page didn't work. I only just figured out that this is why I'm not getting half my music.
    Near the bottom of the http://gnormalize.sourceforge.net/ page there is:


    To install gnormalize, with root privilege, execute the bash script command:
    tar zxvf gnormalize-version.tar.gz
    cd gnormalize-version/
    ./install

    So you must download it (click on the link on that page), open a terminal window (google it), then type the commands as you see them. The first extracts files out of the "gnormalize-version.tar.gz" archive. The second changes your current directory into the newly extracted one. The third run installs the software.
    --
    qneill

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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