- Play every track through an ffmpeg process that normalises loudness
(EBU R128) and outputs Ogg Opus, handed to Discord as is: no more Opus
encoding in JavaScript with opusscript. Measured at over 40x real time,
about 2% of a core while playing. Closing the stream kills ffmpeg.
- Encoding at upload instead was ruled out: over two minutes for an 85-minute
mix, during which the upload would hang.
- Read duration, title and artist with ffprobe at upload; default the title
to "Artist - Title" or the file name without extension.
- Fill the duration of existing library entries at startup.
- Expose the position of the current track in queue snapshots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>