sm-transcoder

On-the-fly preroll transcoding PoC with caching

Usage no npm install needed!

<script type="module">
  import smTranscoder from 'https://cdn.skypack.dev/sm-transcoder';
</script>

README

sm-transcoder

PoC on-the-fly transcoding audio server for StreamMachine prerolls.

Currently just hardcoded to port 3333.

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.