informatica:linux:radio
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
informatica:linux:radio [2014/12/06 12:21] – [Varios] javi | informatica:linux:radio [2018/05/12 15:42] – [Icecast2] javi | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Airtime ====== | ====== Airtime ====== | ||
+ | |||
+ | http:// | ||
===== Instalación ===== | ===== Instalación ===== | ||
+ | |||
+ | ==== Debian ? - Airtime 2.? ==== | ||
1. Descargar easy install e intentar | 1. Descargar easy install e intentar | ||
Line 7: | Line 11: | ||
< | < | ||
wget http:// | wget http:// | ||
- | sudo dpkg -i airtime-easy-setup.deb | ||
</ | </ | ||
- | 2. Instalar | + | 2. Instalar |
+ | |||
+ | < | ||
+ | sudo aptitude install debconf-utils icecast2 postgresql python-virtualenv ecasound flac libcamomile-ocaml-data monit multitail odbc-postgresql php5-curl php5-pgsql pwgen rabbitmq-server zendframework | ||
+ | </ | ||
+ | |||
+ | Descargar mp3gain: | ||
https:// | https:// | ||
- | 3. Configurar | + | Instalarlo: |
- | sudo airtime-easy-setup | + | sudo dpkg -i / |
+ | |||
+ | 3. Configurar: | ||
+ | |||
+ | < | ||
+ | sudo dpkg -i airtime-easy-setup.deb | ||
+ | sudo airtime-easy-setup | ||
+ | </ | ||
+ | |||
+ | ==== Ubuntu 14.04.3 - Airtime 2.5.1-1 ==== | ||
+ | |||
+ | 1. Descargar easy install e intentar | ||
+ | |||
+ | < | ||
+ | wget http:// | ||
+ | </ | ||
+ | |||
+ | 2. Instalar paquetes necesarios: | ||
+ | |||
+ | < | ||
+ | sudo aptitude install debconf-utils icecast2 postgresql python-virtualenv ecasound flac libcamomile-ocaml-data monit multitail odbc-postgresql php5-curl php5-pgsql pwgen rabbitmq-server zend-framework libportaudio2 php5-gd php-pear unzip | ||
+ | </ | ||
+ | |||
+ | 3. Configurar: | ||
+ | |||
+ | < | ||
+ | sudo dpkg -i airtime-easy-setup.deb | ||
+ | sudo airtime-easy-setup | ||
+ | </ | ||
+ | |||
+ | ===== Configuración ===== | ||
+ | |||
+ | Asumo que airtime esta instalado en un servidor. En este ejemplo el servidor esta en la DMZ y tiene como nombre DNS " | ||
+ | |||
+ | 1. Editar archivo de config: | ||
+ | |||
+ | < | ||
+ | sudo cp / | ||
+ | sudo vim / | ||
+ | </ | ||
+ | |||
+ | Y ajustar la variable: | ||
+ | |||
+ | base_url = airtime.example.com | ||
+ | |||
+ | 2. Tras cambiar una configuracion, | ||
+ | |||
+ | sudo airtime-update-db-settings | ||
+ | |||
+ | 3. Editar el virtualhost: | ||
+ | |||
+ | < | ||
+ | sudo cp / | ||
+ | sudo vim / | ||
+ | </ | ||
+ | |||
+ | Y dejarlo tal que asi: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | SSLEngine on | ||
+ | SSLProtocol all -SSLv2 | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | Header always set Strict-Transport-Security " | ||
+ | |||
+ | ServerName airtime.example.com | ||
+ | |||
+ | ServerAdmin root@localhost | ||
+ | |||
+ | DocumentRoot / | ||
+ | DirectoryIndex index.php | ||
+ | |||
+ | < | ||
+ | AllowOverride all | ||
+ | Require all granted | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ServerName airtime.example.com | ||
+ | ServerAdmin root@localhost | ||
+ | |||
+ | DocumentRoot / | ||
+ | DirectoryIndex index.php | ||
+ | Redirect permanent /login https:// | ||
+ | |||
+ | SetEnv APPLICATION_ENV " | ||
+ | |||
+ | < | ||
+ | AllowOverride All | ||
+ | Require all granted | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 4. Recargar la config de apache: | ||
+ | |||
+ | sudo apachectl -k graceful | ||
+ | |||
+ | 5. Ya se deberia poder entrar en: | ||
+ | |||
+ | http:// | ||
+ | ===== ID3 ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Para asignar etiquetas: | ||
+ | |||
+ | sudo aptitude install id3v2 | ||
+ | |||
+ | Asignar una etiqueta: | ||
+ | |||
+ | sudo id3v2 --TBPM " | ||
===== Varios ===== | ===== Varios ===== | ||
Line 84: | Line 206: | ||
</ | </ | ||
+ | ====== Icecast2 ====== | ||
+ | sudo aptitude install icecast2 | ||
+ | | ||
+ | / | ||
+ | | ||
+ | Just the mountpoint: | ||
+ | |||
+ | < | ||
+ | <mount type=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ====== Darkice ====== | ||
+ | |||
+ | / | ||
+ | | ||
+ | < | ||
+ | [general] | ||
+ | duration = 0 # duration of encoding, in seconds. | ||
+ | # 0 means forever | ||
+ | bufferSecs = 60 # size of internal slip buffer, in seconds | ||
+ | |||
+ | # this section describes the audio input that will be streamed | ||
+ | [input] | ||
+ | device = default | ||
+ | sampleRate = 22050 # sample rate in Hz. try 11025, 22050 or 44100 | ||
+ | bitsPerSample = 16 # bits per sample. try 16 | ||
+ | channel = 1 # channels. 1 = mono, 2 = stereo | ||
+ | |||
+ | [icecast2-0] | ||
+ | bitrateMode = cbr # average bit rate | ||
+ | format = mp3 # format of the stream: ogg vorbis | ||
+ | quality = 0 # encoding quality | ||
+ | bitrate = 32 # bitrate of the stream sent to the server | ||
+ | server = icecast.example.com | ||
+ | port = 8000 | ||
+ | mountPoint = broadcast01 | ||
+ | password = secret | ||
+ | localDumpFile = | ||
+ | name = Name | ||
+ | description = Description | ||
+ | url = http:// | ||
+ | genre = music # genre of the stream | ||
+ | </ | ||
+ | Arrancar: | ||
+ | sudo darkice -v5 -c / |
informatica/linux/radio.txt · Last modified: 2018/05/12 15:43 by javi