PoC on-the-fly transcoding audio server for StreamMachine prerolls.
Run with:
DEBUG=sm-transcoder:* node ./index.js
Then hit:
curl http://localhost:3333/encoding?uri=<URI>&key=<KEY>
URI is the audio creative to grab for transcoding.
KEY specifies the output encoding. Currently just mp3 is supported. See the stream key generation in sm-parsers for more context.
The last 100 transcoded outputs are currently cached in memory for faster repeat deliveries.
Running the image in a container starts the sm-transcoder listening in on port 3333