HNHacker News
TopNewBestAskShowJobs

sysop_

33 karma · joined April 16, 2019

submissionscomments
sysop_··on PHP Streaming Audio
I already ran into apache issues back then, that's why there is a line in the script to stop apache to do chucking or buffering for example:

header("Content-Length: ".$settings["max_listen_time"] * $settings["bitrate"] * 128); //suppreses chuncked transfer-encoding

sysop_··on PHP Streaming Audio
You need to recode your audio files with ffmpeg for example to the desired bitrate you want to stream.
sysop_··on PHP Streaming Audio
Oh wow, original author here. Never thought this would ever be picked up by HN after 12 years... :) I lost the credentials for this account, so no fixes for this script. I hope it will inspire people to reverse engineer MP3, it was very interesting for back in the days.

I found some poorly documentation on the winamp website. And basically it comes down to this: - you recode the MP3 to the lower bitrate - get rid of all headers - concatenate all audio into one big stream - inject every x bytes a "StreamTitle=[title]" regardless of frames

Very simple format.