DarkAngel11
Usuario (Colombia)
![Radio Online en Linux [icecast2 y ices 0.4]](https://storage.posteamelo.com/assets-adonis/assets/2018/06/22/space-Z4bKQjN_Y0F.webp)
bueno, yo hago parte de una radio en internet y cuando era usuario de windows era muy facil transmitir o hacer el broadcast a traves de muchos clientes, use el winamp + plugins, el SAM broadcaster, el Edcast, y varios otros, pero al migrar a Ubuntu no encontre tantas opciones para transmitir, asi que me vi en la tarea de investigar y esto fue una de las opciones que encontre, streaming usando icecast2 y ices 0.4 [que permite transmitir mp3] Para realizar esto, vamos a necesitar las siguientes librerias instaladas en nuestro sistema [yo uso Intrepid 8.10] -icecast2 -libshout3 -libshout3-dev -lame -libmp3lame0 -libmp3lame0-dev despues que este instalado, vamos a modificar el archivo de configuracion del icecast con los valores de tu radio (/etc/icecast2/icecast.xml) dijo:<icecast> <limits> <clients>1000</clients> <sources>6</sources> <threadpool>6</threadpool> <queue-size>524288</queue-size> <client-timeout>60</client-timeout> <header-timeout>45</header-timeout> <source-timeout>90</source-timeout> <burst-size>65535</burst-size> </limits> <authentication> <source-password>dejalo_como_esta</source-password> <relay-password>dejalo_como_esta</relay-password> <admin-user>dejalo_como_esta</admin-user> <admin-password>dejalo_como_esta</admin-password> </authentication> <hostname>taringa.net</hostname> <listen-socket> <port>8000</port> </listen-socket> <mount> <mount-name>/prueba.mp3</mount-name> <password>taringa</password> <max-listeners>100</max-listeners> <bitrate>64</bitrate> <burst-size>65535</burst-size> <hidden>0</hidden> <public>1</public> </mount> <fileserve>1</fileserve> <paths> <basedir>/usr/share/icecast2</basedir> <logdir>/var/log/icecast2</logdir> <webroot>/usr/share/icecast2/web</webroot> <adminroot>/usr/share/icecast2/admin</adminroot> <pidfile>/usr/share/icecast2/icecast.pid</pidfile> <alias source="/" dest="/status.xsl"/> </paths> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <playlistlog>playlist.log</playlistlog> <loglevel>1</loglevel> </logging> <security> <chroot>0</chroot> <changeowner> <user>icecast</user> <group>icecast</group> </changeowner> </security> </icecast> Ahora vamos a instalar el ices dijo:wget http://downloads.us.xiph.org/releases/ices/ices-0.4.tar.gz tar -xzf ices-0.4.tar.gz cd ices-0.4 ./configure En esta parte es donde mas errores se presentan, cualquier duda pregunten o investiguen, si todo sale bn deberia darles un resultado como este dijo:Features: XML : no Python : no Perl : no LAME : yes Vorbis : yes MP4 : no FLAC : no ahora instalar dijo: make make install y listo ahora tenemos nuestro ices instalado, antes de transmitir debemos crear nuestro archivo de lista de reproduccion [playlist], en mi caso tengo muchisimos archivos y en varias carpetas, asi q para no tener q agregar cada uno manualmente al archivo de reproduccion lo "indexo" automaticamente de la siguiente manera dijo:find /directorio_donde_tienes_tu_musica/ -iname "*.mp3" > /directorio_de_lista/playlist.txt ahora que ya tenemos nuestro archivo de lista vamos a ejecutar el programa, abrimos una consola y ponemos lo siguiente, reemplazando por los valores de tu radio sin los simbolos <> dijo:ices -h <tu_host> -P <tu_clave> -m <el_mountpoint> -p <el_puerto> -b <el_bitrate> -H 22050 -N 1 -n <nombre_radio> -d <descripcion_radio> -g <genero_radio> -u <url_radio> -F /directorio_de_lista/playlist.txt -t http -v 0 -r 1 Yo puse los comandos mas comunes usados con el ice, pero este permite muchas opciones de configuracion, que son estos y los pueden ver en el Readme de la carpeta ices-0.4 dijo: o Server Hostname [el host de tu radio] Command line option: -h <host> Config file tag: Server/Hostname This is the name, or ip, of the host ices should connect to. It has to run a streaming server, capable of the xaudiocast or icy protocol. This value defaults to localhost. o Server Port [el puerto del server] Command line option: -p <port> Config file tag: Server/Port This is the port the server is listening on, by default 8000. o Server Password [la contraseñoa del server] Command line option: -P <password> Config file tag: Server/Password The encoder password for the server. If this is not correct, then ices cannot log in on the server, and ices will exit. o Server Protocol [el protocolo, normalmente http] Command line option: -i for icy-headers Config file tag: Server/Protocol Either xaudiocast or icy. Use xaudiocast if you can, and icy if you must. o Execution Background [ejecutarse oculto] Command line option: -B Config file tag: Execution/Background This will launch ices in the background, as a daemon. o Execution Verbose [informacion de la cancion, como tags y iv3] Command line option: -v Config file tag: Execution/Verbose Normally ices outputs what stream is playing and a small amount of extra information. With verbose turned on, you get a whole lot of debugging information and lots of track info. o Execution Base Directory [directorio donde se ejecuta y se guardan los logs] Command line option: -D <directory> Config file tag: Execution/BaseDirectory ices uses this directory for cue files, log files and temporary playlist files. You need write permissions in this directory. The default is /tmp o Execution Reencode [recodificar, esto sirve para cuando el bitrate de las canciones es mayor o menos que el de la transmision, recomendado on] Command line option: -R (turns reencoding on) Config file tag: Execution/Reencode When you turn this option on, ices (if compiled with libmp3lame support) will reencode your mp3 files on the fly to whatever bitrate you specify with the Stream Bitrate option. PLEASE note that if your files are corrupt, this might crash ices because the library used to decode (mpglib) is not very stable. I suggest you check your files with mp3check or some other mp3 verification program before you add them to your playlist. Just popping them into your favourite player and checking the sound is definately not enough. For legal reasons, this option is not available on the binary distributions. o Execution Samplerate [samplerate de la transmision, generalmente 22050 0 44100] Command line option: -H <samplerate> Config file tag: Execution/Samplerate Use this to force liblame reencoding to output mp3 data with this samplerate. o Execution Channels [numero de canales: 1 para mono 2 para stereo] Command line option: -N <number of channels> Config file tag: Execution/Channels Use this to force liblame reencoding to output mp3 data with this many channels. o Stream Mountpoint [el mountpoint en el server] Command line option: -m <mount point> Config file tag: Stream/Mountpoint This is the name of the mountpoint for this stream on the icecast server. Clients can access this stream at http://host:port/<mount point>. NOTE: This option does nothing if you are running in shoutcast compatibility mode. o Stream Name [nombre de la transmision] Command line option: -n <stream name> Config file tag: Stream/Name This is the name of the stream, not to be confused with the name of the song playing. o Stream Genre [genero de la transmision] Command line option: -g <stream genre> Config file tag: Stream/Genre This is the genre of your stream, e.g Jazz or Static. o Stream Description [descripcion de la transmision] Command line option: -d <stream description> Config file tag: Stream/Description This option is a description of your stream. o Stream URL [url de la transmision] Command line option: -u <URL> Config file tag: Stream/URL This should be a URL describing your stream. o Stream Bitrate [bitrate de la transmision] Command line option: -b <bitrate> Config file tag: Stream/Bitrate If you turn on reencoding then this will be the bitrate of the stream, otherwize the actual bitrate of the stream is the bitrate your files are encoded at, and this value is for displaying purposes only. Read the last 3 lines again, please. o Stream Public [transmision publica o privada [icecast]] Command line option: -s (makes stream private) Config file tag: Stream/Public This regulates whether the icecast server will display your stream on a directory server. Default is 1 (yes). o Playlist File [directorio donde esta el playlist] Command line option: -F <file> Config file tag: Playlist/File This is the file where ices originally looks for files to play. When using playlist modules in perl or python, this argument is passed to the playlist handler. o Playlist Randomize [lista aleatoria] Command line option: -r (randomizes file) Config file tag: Playlist/Randomize This option is passed to the playlist handler, and tells it to randomize the playlist. o Playlist Type [tipo de lista ] Command line option: -S <perl|python|builtin> Config file tag: Playlist/Type By default, ices using a builtin playlist handler. It handles randomization and not much more. Most people want sophisticated playlist handlers that interface databases and keeps track of god knows what. ices handles embedded python and embedded perl, so now you can write your own modules, without modifying ices, that does just about anything. Use this option to change the playlist handler type from builtin (default), to python or perl. o Playlist Module [modulo de la lista] Command line option: -M <module> Config file tag: Playlist/Module Use this option to execute a different python or perl module than the default. Default for python is ices.py and default for perl is ices.pm, although do NOT specify the file extension for the module. Use 'whatever' instead of 'whatever.pm' or 'whatever.py' o Playlist Crossfade [crossfade en las canciones] Command line option: -C <crossfade secs> Config file tag: Playlist/Crossfade If this is greater than zero, and you have reencoding support, ices will crossfade the specified number of seconds between tracks. Espero les sea de ayuda esta informacion. cualquier duda o pregunta me dudan visiten www.radio3hp.com y vean como funciona !! dijo:Actualización: Funciona en Ubuntu y Kubuntu 10.04 perfectamente, con algunas diferencias en las librerias que se necesitan por ejemplo libmp3lame0-dev pasa a ser libmp3lame-dev Aplica igual para OpenSUSE 11.3