Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45

Thread: HE-AAC : how to turn an album into 22 MB of data

  1. #21
    Join Date
    Sep 2006
    Beans
    3,713

    Re: HE-AAC : how to turn an album into 22 MB of data

    Quote Originally Posted by andrew.46 View Post
    I ahve to admit as well that despite many, many experiments I almost always use oggenc with -q 6 ...
    That's basically (with aoTuV) also what I've been using for years; although I don't often get a chance to listen to anything above a whisper unless I want to use headphones...which I don't since I use them all day at noisy work.

    HE-AAC seems great for lower bitrates, but I'd stick with LC-AAC for anything, subjectively, <64k (stereo), since it will "preserve" more information (hence the reason many of the HE/LC encoders choose LC above certain bitrates). Also, choose LC-AAC if you want to maximise decoder compatibility.

    Update: I forgot to ask--has anyone compared libaacplus, neroAacEnc, and fdk-aac? I believe all of these can output HE-AAC(v2), but I'm not totally sure.
    Last edited by FakeOutdoorsman; December 16th, 2012 at 07:40 PM.

  2. #22
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: HE-AAC : how to turn an album into 22 MB of data

    ok Merrattic if you need/want to rip to HE-AAC

    the absolute fastest is to use


    if you want a simple solution and you can handle basic german [it is only in German]

    Plattenkiste is the software for you under Wine

    it will rip very well to HE-AAC


    see image for guidance

    click on CDRippen button [on first window]
    click on Alle Markieren
    click on freeDB and accept to get your tags [Werte in Tag Editor...]
    Start




    ================================================



    if on the other hand you want a Linux solution here are the basics:


    First get NeroAac


    place all Linux 3 codecs in /usr/bin and make executable


    then run
    Code:
    neroAacEnc -help
    and find most of the info

    you can now bulk [or single]convert from wav with this line


    for f in *.wav ; do neroAacEnc -br 38000 -ignorelength -if "$f" -of "${f%.wav}.m4a" ;done

    change kbps to your needs i like 38000 as below 40k you get HE-AACv2 which has better sound

    Tag with easytag or puddletag for this route


    =========================================



    if you want rubyripper or deadbeef read posts 1 and 2 of this thread


    =========================================


    if you want abcde at this stage it is involved but here goes


    sudo apt-get install subversion abcde
    mkdir $HOME/abcde_build && cd $HOME/abcde_build && \
    svn checkout http://abcde.googlecode.com/svn/trunk/ abcde-read-only && \
    cd abcde-read-only && \
    ./abcde
    on precise you need this [but not on quantal]




    install each one with

    ./configure
    make
    sudo make install

    then finally

    cd $HOME/abcde_build/abcde-read-only && svn up && ./abcde


    you can change setting by tinkering with

    gedit .abcde.conf

    seek
    AACENCOPTS='-br 38000 -ignorelength'
    for bitrate choice



    those are the five routes i know............
    Last edited by shantiq; December 16th, 2012 at 11:44 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  3. #23
    Join Date
    Dec 2006
    Beans
    7,349

    Re: HE-AAC : how to turn an album into 22 MB of data

    Quote Originally Posted by shantiq View Post
    if you want Andrew's abcde[...]
    Just a small clarification: I can now commit to the abcde svn repository but abcde does not belong to me . The neroAacEnc patch was committed by me, and I added the docs, but the working part of the patch belongs to a gentleman named atheren.
    You think that's air you're breathing now?

  4. #24
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: HE-AAC : how to turn an album into 22 MB of data

    hey we know and was not a proprietary Andrew just to say "involved in" corrected it anyway ............ nice clean tool
    and many thanx for you adding that there
    Last edited by shantiq; December 16th, 2012 at 11:23 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  5. #25
    Join Date
    Dec 2006
    Beans
    7,349

    Re: HE-AAC : how to turn an album into 22 MB of data

    Quote Originally Posted by shantiq View Post
    hey we know and was not a proprietary Andrew just to say "involved in" corrected it anyway ............ nice clean tool
    and many thanx for you adding that there
    Lots of fun with abcde . BTW have you added in the simple FFmpeg pipe for creating these files?

    Code:
    ffmpeg -i "08.Brain Damage.ogg" -f wav - | \
    neroAacEnc -if - -br 38000 -ignorelength -of "08.Brain Damage.m4a"
    Just needs some scripting to pick up and rewrite the meta tags...
    You think that's air you're breathing now?

  6. #26
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: HE-AAC : how to turn an album into 22 MB of data

    no i had not [but now you have ]

    this will cater for bulk

    for f in nocaseglob nullglob * ; do ffmpeg -i "$f" -f wav - | neroAacEnc -if - -br 38000 -ignorelength -of "${f%.*}.m4a " ; done
    but still the tagging issue


    =========



    which reminds me there is a script from flac which retains the tags [i do not know who wrote it but thanx to whomever]


    #!/bin/bash
    for f in *.flac
    do
    OUTF=`echo "$f" | sed s/\.flac$/.m4a/g`

    ARTIST=`metaflac "$f" --show-tag=ARTIST | sed s/.*=//g`
    TITLE=`metaflac "$f" --show-tag=TITLE | sed s/.*=//g`
    ALBUM=`metaflac "$f" --show-tag=ALBUM | sed s/.*=//g`
    GENRE=`metaflac "$f" --show-tag=GENRE | sed s/.*=//g`
    TRACKTOTAL=`metaflac "$f" --show-tag=TRACKTOTAL | sed s/.*=//g`
    DATE=`metaflac "$f" --show-tag=DATE | sed s/.*=//g`
    TRACKNUMBER=`metaflac "$f" --show-tag=TRACKNUMBER | sed s/.*=//g`

    flac -c -d "$f" - | neroAacEnc -if - -cbr 38000 -of "$OUTF"
    neroAacTag "$OUTF" -meta:artist="$ARTIST" -meta:title="$TITLE" -meta:album="$ALBUM" -meta:genre="$GENRE" -meta:year="$DATE" -meta:track="$TRACKNUMBER" -meta:totaltracks="$TRACKTOTAL"
    done
    mkdir "$ALBUM" && mv *.m4a "$ALBUM"
    paste in txt editor as flac2m4a/place in same folder as flacs files/
    make executable
    Code:
    sudo chmod +x flac2m4a
    run
    Code:
    ./flac2m4a

    or MUCH more simply go by terminal to where flac files are and enter script above as one block


    by the way neroAac can be hiked all the way to 516000 I keep it on 38000 but you can go much higher
    Last edited by shantiq; December 21st, 2012 at 03:37 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  7. #27
    Join Date
    Dec 2006
    Beans
    7,349

    Smile Re: HE-AAC : how to turn an album into 22 MB of data

    This thread has become an absolute mine of information
    You think that's air you're breathing now?

  8. #28
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: HE-AAC : how to turn an album into 22 MB of data

    Andrew we are the Ubuntu Miners
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  9. #29
    Join Date
    Jul 2012
    Beans
    322
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: HE-AAC : how to turn an album into 22 MB of data

    Thanks Shantiq (& Andrew) :thumbsup:
    The best things in life are free, so what are we paying for?

  10. #30
    Join Date
    Oct 2010
    Location
    London
    Beans
    482
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HE-AAC : how to turn an album into 22 MB of data

    This is a cool thread, but I tend to prefer a quality-based variable bit rate mode (like x264's -crf option) with the -q flag. This way, the files that need it (mostly those with a higher dynamic range) will get a higher bitrate, whereas those that don't need it will use a lower bitrate. It ranges from 0 to 1, I've been using

    Code:
    neroAacEnc -if input.wav -q 0.5 outputfile.m4a
    From here, a guide to the average (over a number of different files) bitrates of various VBRs as set by -q:


    As for that script you found, Shantiq, I happen to have written a similar one recently that uses avprobe to gather metadata and should be more universal than using metaflac. The original thread is here, and that script should be used through nautilus-scripts. Here's a more versatile version for use on the command-line:

    Code:
    #!/bin/bash
    
    #### Requires: avconv, neroAacEnc, NeroAacTag
    
    #### Default VBR quality is 0.5
    quality="0.5"
    mode="q"
    adv=
    
    usage ()
    {
        echo "Usage: convert-to-m4a input.file <arguments>
    By default, this uses a VBR mode with the neroAacEnc tag of -q 0.5
    You can set a constant bit rate with -br <bitrate> OR -cbr <bitrate>
    You can use any other neroAacEnc options by using -adv \"-option1 -option2\" - be sure to enclose the options in quotation marks!
    Advanced options and details on the encoding modes can be found in the neroAacEnc readme.txt"
    }
    #### Parse command-line options
    if [ $# = 0 ]; then
        echo "No input file stated"
        usage
        exit
    fi
    
    while [ "$1" != "" ]; do
        case "$1" in
            -h   )    usage
                      exit
                      ;;
            -q   )    mode="q"
                      shift
                      quality="$1"
                      ;;
            -cbr )    mode="cbr"
                      shift
                      quality="$1"
                      ;;
            -br  )    mode="br"
                      shift
                      quality="$1"
                      ;;
            -adv )    shift
                      adv="$1"
                      ;;
            *    )    filename="$1"
                      ;;
        esac
        shift
    done
    
    for f in "$filename"; do
    
    #### Now grab some metadata 
        metadata=$(avprobe "$f" 2>&1)
        title=$(echo "$metadata" | grep -i title | sed 's/.*: //')
        artist=$(echo "$metadata" | grep -i artist .tempfile | sed 's/.*: //')
        track=$(echo "$metadata" | grep -i track | sed 's/.*: //')
        tracktotal=$(echo "$metadata" | grep -i tracktotal | sed 's/.*: //')
        genre=$(echo "$metadata" | grep -i genre | sed 's/.*: //')
        date=$(echo "$metadata" | grep -i date | sed 's/.*: //')
        album=$(echo "$metadata" | grep -i album | sed 's/.*: //')
        album_artist=$(echo "$metadata" | grep -i album_artist | sed 's/.*: //')
        disc=$(echo "$metadata" | grep -i disc | sed 's/.*: //')
        if [ "$artist" = "" ]; then
            artist=$(echo "$metadata" | grep -i author | sed 's/.*: //')
        fi
    
    #### The actual conversion to AAC M4A
        avconv -i "$f" -vn -f wav - | neroAacEnc -if - -"$mode" "$quality" -ignorelength "$adv" -of "${f%.*}.m4a"
    
    #### Writing the metadata to the new M4A
        neroAacTag "${f%.*}.m4a" -meta:title="$title" -meta:artist="$artist" -meta:track="$track" -meta:totaltracks="$tracktotal" -meta:genre="$genre" -meta:year="$date" -meta:album="$album" -meta:disc="$disc" -meta:composer="$album_artist"
    done
    exit 0
    This can be used to convert any format your avconv can read to M4A with neroAacEnc (though of course, you should never transcode from one lossy format to another). Put it in your ~/bin as convert-to-m4a, and basic usage is
    Code:
    convert-to-m4a input.file
    To get a usage message, use
    Code:
    convert-to-m4a -h
    Last edited by evilsoup; December 17th, 2012 at 05:27 PM.

Page 3 of 5 FirstFirst 12345 LastLast

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
  •