HydrogenAudio

Lossy Audio Compression => AAC => AAC - General => Topic started by: yk on 2021-01-19 13:57:28

Title: QAAC stream encoding
Post by: yk on 2021-01-19 13:57:28
Hi,

I used custom encoding with ffmpeg and following params:

ffmpeg.exe -f s16le -ac 2 -ar 44100 -i - -f adts -c:a libfdk_aac -b:a 256k -cutoff 20000 -

So input is raw and output is encoded AAC stream.

How can I do the same using qaac?
Title: Re: QAAC stream encoding
Post by: Markuza97 on 2021-01-19 20:36:52
qaac --raw --adts --cbr 256 --lowpass 20000 -o - -
Title: Re: QAAC stream encoding
Post by: yk on 2021-01-19 21:08:53
qaac --raw --adts --cbr 256 --lowpass 20000 -o - -

Thanks a lot. Works like a charm!!
Title: Re: QAAC stream encoding
Post by: kode54 on 2021-01-20 09:55:39
Incidentally, if you're curious about what macOS does for AAC supporting Bluetooth A2DP devices, at least in Big Sur:

At least for AirPods (original) and the Sony WH-1000XM4, it seems to use the same profile, where it sets the Apple AAC encoder to an average bitrate of 192000 bps, with a minimum packet size enforcing ~12.5kbps, and a maximum enforcing just under 256kbps.

Continuing my off-topic musing, it would be really neato if someone could implement third party A2DP codecs into Windows. I'd settle for just AAC, but LDAC would be lovely too, and there's a freely available encoder, including source code, it seems Sony only enforces licensing for decoders.
SimplePortal 1.0.0 RC1 © 2008-2021