i'm using subsonic on a mobiledevice and want to use low bitrates. But if i go down to 64 kbit/s or 32 kbit/s mp3 sounds bad. So i want using HE-AAC, which sounds with 32 kbit/s acceptable. But how?

With the magic help of google, I found out, that NeroAacEnc have He-AAC and works with linux. But it only accept wav-Files. So i have to transcode to wav first and then to aac. But for the "Downsampling", subsonic hasn't a second step field. So what can i do?
I tried:
ffmpeg -i %s -v 0 -f wav - | neroAacEnc -br 32000 -ignorelength -if - -of -
but without success.
- Code: Select all
[26.06.13 17:11:35 MSK] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 192 kb/s
[26.06.13 17:11:35 MSK] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) [NULL @ 0x97da8e0] Unable to find a suitable output format for '|'
[26.06.13 17:11:35 MSK] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) |: Invalid argument
Of course, a simple commandline like
ffmpeg -i /var/itunes/Music/pathToSong/song.mp3 -v 0 -f wav - | ./neroAacEnc -br 32000 -ignorelength -if - -of /home/qupfer/test.m4a
works.
Edit:
okay, found the HE-tutorial..