Convert PCM to AAC while streaming

544 Views Asked by At

I'm looking to use Python to convert audio that's in PCM (G.711U to be specific) to AAC so it can be streamed using HLS. What options are there for doing this conversion in memory so the streaming can be continued in real-time.

1

There are 1 best solutions below

1
Markus Schumann On

Low level access to ffmpeg with a python binding should do it.

I'd try https://github.com/kkroening/ffmpeg-python