Results 1 to 4 of 4

Thread: NeroAacEnc with multiple files

  1. #1
    Join Date
    Nov 2005
    Beans
    40

    NeroAacEnc with multiple files

    I would like to create AAC files using NeroAAC.

    I have directories of wav files I need to encode and I cannot figure out how to do this with the neroAacEnc command on the command line. The program will not accept neroAacEnc -if *.wav -of *.aac as a valid command, though FAAC, LAME and OggEnc will accept similar commands.

    I lack the coding skills to write a proper script for it. I'd just like to be able to type in a command and have an entire directory converted from wavs to aacs with the Nero codec. Is this possible? If not, can it be programmed? How?

    Thanks.

    Reference: NeroAac files http://www.nero.com/eng/technologies-aac-codec.html

  2. #2
    Join Date
    Jun 2007
    Beans
    17,337

    Re: NeroAacEnc with multiple files

    At the directory prompt for folder containing .wav's try this - (blue is adjustable, 0.375 is around 128k

    Code:
    for f in *.wav; do neroAacEnc -q 0.65 -if "$f" -of  "${f%.wav}.m4a"; done
    or if you wish an .aac ext. (some players don't like the .aac ext
    Code:
    for f in *.wav; do neroAacEnc -q 0.65 -if "$f" -of  "${f%.wav}.aac"; done
    Note this will give you same name files, - spaces/characters don't matter
    Last edited by mc4man; March 9th, 2010 at 03:54 AM.

  3. #3
    Join Date
    Nov 2005
    Beans
    40

    Re: NeroAacEnc with multiple files

    Amazing! Thank you! I am going to post this on Hydrogenaudio.org too, for people to use with credit to you.

  4. #4
    Join Date
    Jun 2007
    Beans
    17,337

    Re: NeroAacEnc with multiple files

    A very adaptable command, either alone or in a script.

    you can adjust the save path by adding directly in front of
    "${f%.wav}.m4a"

    Ex. to Music dir in home
    for f in *.wav; do neroAacEnc -q 0.65 -if "$f" -of ~/Music/"${f%.wav}.m4a"; done

    or make a dir in the pwd and save there
    mkdir m4a
    for f in *.wav; do neroAacEnc -q 0.65 -if "$f" -of ./m4a/"${f%.wav}.m4a"; done

    ect., ect.

Tags for this Thread

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
  •