Radio streaming php script

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Simple PHP Script to play control streaming radio on Raspberry PI

javawocky/webradio

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Simple PHP Script to control streaming radio on Raspberry PI

I hacked this together quickly to enable me to control streaming audio stations via a web browser on my home network. My Raspberry PI is connected to the sound system, so effectively, its a headless audio player.

This simple script is intended to run on a Raspberry PI, but could run on basically any Linux box with a little fiddling.

For starters you will need Apache and PHP installed and running. I won’t go into details of how to set that up, heaps of info on the web to help you through that process.

Secondly you need to add the www-data user — which is what Apache runs as — to the audio group and video group.

Читайте также:  Python use all cpu cores

There are proper ways to do this, but because I am lazy I edited the file /etc/group with this command sudo vi /etc/group and added ‘www-data’ as follows.

I restarted the box ofter that, but again, you could probably restart Apache and Alsa to achieve something similar, but for now a restart did it.

To add your own stations, you need to edit the index.php file and simply add your station Name and URL to the array at the top of the file. The examples in the file should be simple enough to follow, but for your sake, here is a simple example with two stations.

Other than that, enjoy your listening experence. Email me via Github if you need some help or want to contribute.

About

Simple PHP Script to play control streaming radio on Raspberry PI

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Modfwango / Radio-PHP Public archive

A PHP Streaming Audio Server Implementation

Modfwango/Radio-PHP

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Radio-PHP is a streaming server that uses the SHOUTcast client protocol in order to stream a directory of music files without the need for an external streaming source (such as Traktor or SAM Broadcoaster). Radio-PHP makes this possible by using a few utilities available in many Linux package repositories to convert your input files to a homogeneous MP3 format.

First, make sure that you have the necessary packages installed:

sudo apt-get install -y libav-tools libmp3lame-dev php5-cli

After installing the necessary packages, clone this repository and its submodules:

git clone https://github.com/Modfwango/Radio-PHP.git cd Radio-PHP && git submodule update --init

Next, configure the options in the data/Welcome/config.json file to your liking. After you have configured Radio-PHP, place some media in the folder specified in the config and start the daemon with php main.php . By default Radio-PHP listens on all interfaces on port 8000 . This can be changed in conf/listen.conf

Читайте также:  Is null data type in php

In order to develop your own features and such, take a look at this link for more information.

This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

About

A PHP Streaming Audio Server Implementation

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

License

mohamedebrahim96/PHP-Broadcast-radio

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

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.

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.

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.

Читайте также:  Название документа

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:

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.

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.

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

Edit the settings in the index.php

$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. );

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

Источник

prowebber.cc — Тут есть все для настоящих вебмастеров

Вы вошли как гость, рекомендуем Вам авторизироваться либо пройти процесс регистрации. Если Вы забыли пароль, то Вы можете его восстановить.

PROWEBBER » Web » Скрипты » Radio Streaming php Script v1.0 — скрипт радиопортала

Radio Streaming php Script v1.0 — скрипт радиопортала

Данный материал предоставлен сайтом ProWebber.cc исключительно в ознакомительных целях. Администрация не несет ответственности за его содержимое. Скачать бесплатно Radio Streaming php Script v1.0 — скрипт радиопортала.

Radio Streaming php Script v1.0 - скрипт радиопортала

Radio Streaming — это скрипт портала с радиопередачами с множеством функций и великолепным дизайном, которые предоставляют потоки неограниченного количества радиостанций по всему миру. Вы можете легко управлять всем через панель администратора. Этот радиопортал разработан с использованием фреймворка Laravel.

Radio Streaming php Script

radio-streaming-php-script-v1.0.zip [92.68 Mb] (cкачиваний: 1436)
MD5: dcaeae37e158173ba0a149e34e379771

Missing update?
Checkout our NULLED Web Community

Дополнительные ссылки на скачивание ТОЛЬКО для зарегистрированных

Источник

Оцените статью