Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: mp4tools broken HE-AAC+v2 broken? (Read 2586 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

mp4tools broken HE-AAC+v2 broken?

I'm very frustrating...
For a week I try, without success, to make good m4a files on Ubuntu 8.10 x64.
aacplusenc make raw aac files and my Motorola V3x don't recognize it (and I must convert before on wave).
I've found mp4tools, but it make broken audio files (the sample on the site is perfect on playing) in some part:
(And ignore my setting 64k bitrate!)
Code: [Select]
mkmp4 input.mp3 output.m4a 64

Analysing input file
(standard_in) 1: syntax error

Ripping Audio
MPlayer SVN-r28680-4.3.2 (C) 2000-2009 MPlayer Team
A: 148.5 (02:28.4) of 148.0 (02:28.0)  0.5%
Normalizing Audio
Computing levels...
audio.10358.wav   100% done, ETA 00:00:00 (batch 100% done, ETA 00:00:00)
/tmp/audio.10358.wav already normalized, not adjusting...

Audio only file, increasing quality a bit

Encoding AAC+ Audio

*************************************************************
* Enhanced aacPlus Encoder
* Build Oct 29 2008, 23:02:09
* Matteo Croce <rootkit85@yahoo.it>
*************************************************************

input file /tmp/audio.10358.wav:
sr = 44100, nc = 2

output file /tmp/audio.10358.aac:
br = 32000 sr-OUT = 44100  nc-OUT = 2

[100%]

encoding finished

Muxing
AAC import SBR (explicit) - sample rate 44100 - MPEG-4 audio - 1 channel
Setting up iTunes/iPod file...                      
Saving output.m4a: 0.500 secs Interleaving
                                                        
saved to
output.m4a


p.s. sorry, but i can't correct the title

mp4tools broken HE-AAC+v2 broken?

Reply #1
I've found on mp4tools this broken line:
Code: [Select]
#aacplusenc <infile> <outfile> [quality]
aacplusencode()
{
    green "Encoding AAC+ Audio"
    if [ "$AAC_ENCODER" = 'nero' ]
    then
        [ "$CHANNELS" = 2 ] && PS='v2'
        neroaacenc "$1" "$2" "-he$PS -q ${3:-0.15}"
        RET=$?
    else
        aacplusenc "$1" "$2" 32
        RET=$?
    fi
    MP4BOX_AOPTS="-sbrx -add $2"
    return $RET
}

the setting is 32 and is arbitrary (I can't set the bitrate), if i try to modify to 48,  the final output is playing but seem "mute".