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.
Asked
Active
Viewed 344 times
1
-
pydub https://pydub.com I haven't used it personally but heard its good. – balu Mar 17 '22 at 05:22
-
`pydub` seems interesting but it only appears to work on files. I need to be able to do this with data in memory – Dave Johansen Mar 22 '22 at 16:06
1 Answers
1
Low level access to ffmpeg with a python binding should do it.

Markus Schumann
- 7,636
- 1
- 21
- 27
-
This appears to be a wrapper around running `ffmpeg` commands and doesn't give access to the raw data that I can feed into it and get back out – Dave Johansen May 09 '22 at 15:34