Skip to main content

Topic: SOX 14.4.1 - fails to handle aac files - trying to normalize (Read 9916 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • livebe
  • [*]
SOX 14.4.1 - fails to handle aac files - trying to normalize
Hi,

I'm a beginner with SoX and I want to normalize aac files.
According to http://sox.sourceforge.net/Docs/Features Sox supports aac.

Now, I first tried to execute
Code: [Select]
sox.exe retire2.mp4 -r 32k -b 8 -c 1 retire2M.aac vol 0.7

or changed the extension of retire2.mp4 to retire2.aac
I get the error
Code: [Select]
FAIL formats: no handler for file extension `aac'


SoX version 14.4.1

If I run sox-help I see:
Quote
AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f
8 flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu maud mp2 mp3 nist ogg prc raw s1 s16 s2 s24 s3 s32 s4 s8 sb sf sl sl
n smp snd sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox wav wavpcm wv wve xa
PLAYLIST FORMATS: m3u pls
AUDIO DEVICE DRIVERS: waveaudio


So no aac...

Does it mean it needs an external library?

Thanks for your help.

P.S. I tried to normalize the sound with "aacgain -a -k retire2.mp4", aacgain claims
Quote
retire2.mp4 is an MPEG Layer II file, not a layer III file


While ffmpeg 2.0 claims:
Quote
Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, 125 kb/s
  • Last Edit: 12 July, 2013, 07:19:51 AM by livebe

  • saratoga
  • [*][*][*][*][*]
SOX 14.4.1 - fails to handle aac files - trying to normalize
Reply #1
.aac is a raw aac transport stream which very few things support. Do you actually need that or do you want the standard aac in mp4?

  • livebe
  • [*]
SOX 14.4.1 - fails to handle aac files - trying to normalize
Reply #2
.aac is a raw aac transport stream which very few things support. Do you actually need that or do you want the standard aac in mp4?

I don't care in which container it is, mp4, mkv, avi, flv,...

ffmpeg can wrap it in another container:
Code: [Select]
ffmpeg -i sound.aac -c:a copy export.mp4

  • saratoga
  • [*][*][*][*][*]
SOX 14.4.1 - fails to handle aac files - trying to normalize
Reply #3
Ah i misunderstood.  Probably your SOX doesn't have AAC support enabled, I guess for patent reasons in the US/EU.

  • livebe
  • [*]
SOX 14.4.1 - fails to handle aac files - trying to normalize
Reply #4
Ah i misunderstood.  Probably your SOX doesn't have AAC support enabled, I guess for patent reasons in the US/EU.


My Sox ????
http://sourceforge.net/projects/sox/files/sox/14.4.1/

sox-14.4.1a-win32.zip

  • db1989
  • [*][*][*][*][*]
  • Global Moderator
SOX 14.4.1 - fails to handle aac files - trying to normalize
Reply #5
This is trivial to check.
Quote from: README.TXT link=msg=0 date=
MP4, AAC, AC3, WAVPACK, AMR-NB files (with optional ffmpeg library)
Seems that build does not include said library.

  • lvqcl
  • [*][*][*][*][*]
  • Developer
SOX 14.4.1 - fails to handle aac files - trying to normalize
Reply #6
Sox changelog, 4 Jan 2013:

Quote
Due to API changes in ffmpeg/libav, the ffmpeg format handler will soon stop to compile (unless it is adapted to the new API, of course). Mailing list discussion has shown that there is no interest in keeping the handler; users should instead use the ffmpeg/avconf command line utility via pipes.