All Projects → mohamedebrahim96 → PHP-Broadcast-radio

mohamedebrahim96 / PHP-Broadcast-radio

Licence: other
🌈 Autonomous streaming audio ,serveronline internet radio is free streaming music for your listening pleasure, as well as news and announcements.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to PHP-Broadcast-radio

Streaming
r/freemediaheckyeah
Stars: ✭ 147 (+286.84%)
Mutual labels:  streaming, free
Radiodroid
radio browser app that uses www.radio-browser.info on android
Stars: ✭ 362 (+852.63%)
Mutual labels:  radio, streaming
Waveline Server
Simple self-hosted music streaming server
Stars: ✭ 248 (+552.63%)
Mutual labels:  streaming, free
Ustreamer
µStreamer - Lightweight and fast MJPG-HTTP streamer
Stars: ✭ 533 (+1302.63%)
Mutual labels:  streaming, broadcast
Azuracast
A self-hosted web radio management suite, including turnkey installer tools for the full radio software stack and a modern, easy-to-use web app to manage your stations.
Stars: ✭ 1,253 (+3197.37%)
Mutual labels:  radio, streaming
Gpac
Modular Multimedia framework for packaging, streaming and playing your favorite content.
Stars: ✭ 1,321 (+3376.32%)
Mutual labels:  streaming, broadcast
Localradio
📻 LocalRadio is "Radio for Cord-Cutters" – a Software-Defined Radio (SDR) app for your Mac and mobile devices. With an inexpensive RTL-SDR USB device, LocalRadio provides a casual, home-based radio listening experience for your favorite local frequencies - FM broadcasts/free music/news/sports/weather/public safety & aviation scanner/etc.
Stars: ✭ 269 (+607.89%)
Mutual labels:  radio, streaming
Odio
odio is now Strimio!
Stars: ✭ 262 (+589.47%)
Mutual labels:  radio, free
Somafm Cli
🎵 Listen to SomaFM in your terminal via pure bash
Stars: ✭ 84 (+121.05%)
Mutual labels:  radio, streaming
Pandoraplayer
🅿️ PandoraPlayer is a lightweight music player for iOS, based on AudioKit and completely written in Swift.
Stars: ✭ 1,037 (+2628.95%)
Mutual labels:  radio, streaming
Rtspallthethings
Deprecated RTSP media server -- Use github.com/aler9/rtsp-simple-server instead.
Stars: ✭ 258 (+578.95%)
Mutual labels:  streaming, broadcast
streaming-pt
Live TV 📺 and Radio 📻 shell scripts from Portugal 🇵🇹.
Stars: ✭ 52 (+36.84%)
Mutual labels:  radio, streaming
Fpnd
Python package for freepn network daemon
Stars: ✭ 271 (+613.16%)
Mutual labels:  internet, free
Ffplayout Engine
python and ffmpeg based playout
Stars: ✭ 128 (+236.84%)
Mutual labels:  streaming, broadcast
Libretime
LibreTime: Radio Broadcast & Automation Platform
Stars: ✭ 439 (+1055.26%)
Mutual labels:  radio, broadcast
Soundtrack
Self-hosted collaborative music playing application.
Stars: ✭ 114 (+200%)
Mutual labels:  radio, streaming
wikiradio
A radio for Wikimedia Commons audio files
Stars: ✭ 14 (-63.16%)
Mutual labels:  radio, free
chromecast-api
📺 Chromecast Node.js module
Stars: ✭ 122 (+221.05%)
Mutual labels:  streaming
sofia-react-template
🔮 Sofia React Template - Admin Dashboard Template built with React
Stars: ✭ 96 (+152.63%)
Mutual labels:  free
qc image unpacker
Qualcomm image unpacker
Stars: ✭ 44 (+15.79%)
Mutual labels:  radio

PHP-Broadcast-radio

Autonomous streaming audio ,serveronline internet radio is free streaming music for your listening pleasure, as well as news and announcements. Description

Autonomous pseudo streaming audio server. It supports the shoutcast protocol for mainstream players. This will output streaming mpeg for all other players.

The script does not accept a single audio source, but uses lose audio files instead. It employs a trick to keep all the listeners in sync. Through a shuffled playlist with a fixed seed value, the script will always serve the same audio at the same time.

The advantage is low processor usage, because the audio has not to be transcoded on the fly.

Shoutcast protocol

The protocol is a bit of a hack. It's quite simple but there is almost no documentation on the interwebs. The protocol consists of two part: the mpeg audio and the metadata.

Audio stream

The stream is just a simple dump of concatenated MP3 files. To make it a bit more of a 'protocol' the header and the id3 tags are stripped of the file. So only the audiodata of a MP3 file used.

The metadata

Was a bit of a challege to reverse engineer. This was badly documented.

The raw audio stream (without headers and id3-tags) is spliced into chuncks the size of the buffer. The size is specified in the icy-metaint variable in the http header. Then the metadata is inserted at these point in a certain format. The metadata must have this payload:

StreamTitle='Artist - Song';

and has an null-character (0x00) to end the string. The string must be padded to the next 16th position. So the example has 28 character + 1 null-character. Makes: 29 characters. You'll have to append 3 extra null-characters.

Setup

Your audio must be transcoded to MP3 in your transmission bitrate. Please normalize and trim your audio to avoid silent parts. Put the audio in the music folder.

music.db

If the music.db is present it must be deleted after every change. This is a cache-file for the metadata of the audio.

Config

Edit the settings in the index.php

This is an example:

$settings = array( "name" => "Radio Demo", //Name of your radio station. "genre" => "Classic", //Does not have to be a MP3 genre, can be anything. "url" => $_SERVER["SCRIPT_URI"], //URL to the station, this is automatic generated by PHP. "bitrate" => 96, //Bitrate in kbps of the transmission. All audio but be transcoded to this bitrate. "music_directory" => "music/", //Folder where the audio is. "database_file" => "music.db", //Cache filename of the audio metadata. "buffer_size" => 16384, //Buffersize of the icy-data, not really important. Bigger buffer is less updates of the current song name. "max_listen_time" => 14400, //Maximum listen time of a user in seconds. Set to 4 hours. "randomize_seed" => 31337 //The seed of the pseudo random playlist. Must be set to a contant otherwise the clients won't be in sync. );

Usage

Point your audio player to the URL where you have installed this script.

Recommended players:

VLC - http://www.videolan.org/vlc/

iTunes - http://www.apple.nl/itunes/

Winamp - http://www.winamp.com/

Contact

Name: mohamed

Facebook: https://www.facebook.com/mohamedebrahim93

Note

this project is fork from this library

https://github.com/gadgetguru/PHP-Streaming-Audio

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].