knik0 / faac

Freeware Advanced Audio Coder faac mirror
https://sourceforge.net/projects/faac/
Other
179 stars 60 forks source link

Webstream of aac does not work (here). #50

Closed fredvs closed 5 hours ago

fredvs commented 1 week ago

Hello. Congratulation for that great project.

Your library is used for the uos project that uses the Free Pascal compiler. https://github.com/fredvs/uos

It works perfectly to decode + play via Portaudio aac files.

The plan now is to do, like for libmpg123 and libopus, web streaming of aac files.

I did try with this site but others give the same result: https://radiorecord.hostingradio.ru/ps96.aacp The connection to the url file is ok and done via pipe-stream.

NeAACDecOpen() is ok.

NeAACDecSetConfiguration() was set with: defObjectType = LC and defSampleRate = 44100

NeAACDecInit(), using the buffer of the pipe is ok and gives: SampleRate = 44100 and Channels = 2.

But with NeAACDecDecode(), using same pipe, nothing is decoded and the result of frame_info is: frame_info.channels = 1536 frame_info.error = 0 frame_info.samplerate = 0

What did I wrong?

Thanks.

fredvs commented 5 hours ago

OK, I use now fdk-aac and it works like charm for web-streaming of aac. Sorry for the noise.