0

I need to convert opus (or wav) binary to mp3 binary without saving the file locally. I have a binary (opus or wav format) response from third party api, I need to convert it to mp3 and then upload it to aws. I know I can save the file locally in tmp folder for example and then convert it using ffmpeg, but I want to solve this problem without saving file locally if not necessary. is there any way to do it in python3.11? I couldn't find any relevant libraries.

Grigory
  • 23
  • 2
  • So essentially you want to do what ffmpeg does but using your own code (or some publicly available module) and you don't want to use local storage as an intermediate staging point. Why? Maybe *pydub* will help you – DarkKnight Aug 29 '23 at 12:05
  • Does this answer your question? [Pipe input in to ffmpeg stdin](https://stackoverflow.com/questions/45899585/pipe-input-in-to-ffmpeg-stdin) – He3lixxx Aug 29 '23 at 13:04

0 Answers0