Usando Movix Para tocar Músicas pela Web:
Esta é uma opção que te permite ouvir músicas vis streaming, atraves de sites de bradcasting na web.
primeiro configure a parte de rede:
VIA CONSOLE
#ifconfig eth0 192.168.1.33 netmask 255.255.255.0
#route add eth0 default gateway 10.0.1.1
confira rodando o ifconfig:
#ifconfig
OU VIA MENU
Via menu, basta entrar em EDIT/ MOVIX OPTIONS a partir do menu da tela principal.
NET:
IP = 10.0.1.100
Netmask = 255.255.255.0
Gateway = 10.0.1.1
DNS = 200.249.243.1
checando:
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:55:37:24:10
inet addr:10.0.1.100 Bcast:10.0.1.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:681 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:46135 (45.0 Kb) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x2000 Memory:f2000000-f2000038
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.0.0.0 U
0 0 0 eth0
127.0.0.0 * 255.0.0.0 U
0 0 0 lo
default 10.0.1.1 0.0.0.0 UG 1
0 0 eth0
#cat /etc/resolv.conf
nameserver 200.249.243.1
#ping www.grisoft.com
PING www.grisoft.com (193.86.103.19): 56 data
bytes
64 bytes from 193.86.103.19: icmp_seq=0 ttl=230 time=355.4 ms
64 bytes from 193.86.103.19: icmp_seq=1 ttl=230 time=876.1 ms
64 bytes from 193.86.103.19: icmp_seq=2 ttl=230 time=729.2 ms
64 bytes from 193.86.103.19: icmp_seq=3 ttl=230 time=1503.5 ms
64 bytes from 193.86.103.19: icmp_seq=4 ttl=230 time=722.3 ms
64 bytes from 193.86.103.19: icmp_seq=5 ttl=230 time=1780.6 ms
64 bytes from 193.86.103.19: icmp_seq=6 ttl=230 time=2179.8 ms
64 bytes from 193.86.103.19: icmp_seq=7 ttl=230 time=2201.4 ms
--- www.grisoft.com ping statistics ---
14 packets transmitted, 14 packets received,
0% packet loss
round-trip min/avg/max = 355.4/1130.9/2201.4 ms
Agora, antes de tentar qualquer coisa, você deve alterar o tamanho do cahe padrão, de 8192 ( 8 MB ) para 256 ( k ) em EDIT/ MOVIX options, para que ele não faça um cache de 8 megas antes de começar a tocar.
Depois, você tem duas opções: ou entrar uma url a partir do menu principal escolhendo PLAY/ URL, ou pode carregar a partir de uma arquivo no cdrom ou hd, na opção PLAY/ FILE; o movix vem com dois arquivos de exemplo( classicRock.pls e electricBlues.pls ), que podem ser alterados de acordo com suas preferências.
Exemplo: classicRock.pls
[playlist]
NumberOfEntries=1
File1=http://www.live365.com/play/191432?membername=peggish&session=joerockusa%3A0&pid=&SaneID=212.171.38.14-1035710841539&lid=-1-ita
Exemplo: electricBlues.pls
[playlist]
NumberOfEntries=1
File1=http://www.live365.com/play/52559?membername=peggish&session=electricblues%3A0&pid=1100&SaneID=212.171.38.14-1035710841539&lid=-1-ita
Para montar suas listas, dê uma olhada em :
http://www.radios.com.br/estados.htm
http://www.layer3planet.com.ar/radios.html
Exemplo: teste_play.pls
[playlist]
NumberOfEntries=1
File1=http://www.live365.com/play/1056?&SaneID=200.238.84.40-1044886676461&pid=undefined
Eemplo: RadioGlobo_listen.pls
[playlist]
NumberOfEntries=1
File1=http://200.251.137.5:8000/
Façamos um teste, vamos colocar por modo texto ( pelo console ) para
ver executando:
#mplayer -cache 256 -playlist “/cdrom/movix/electricBlues.pls”
veja o resultado:
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/mplayer/share/locale
MPlayer 0.90rc2-3.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)
CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best
performance, recompile MPlayer with --disable-runtime-cpudetection
Reading config file /usr/local/mplayer/etc/mplayer/mplayer.confReading config
file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Reading /usr/local/mplayer/etc/mplayer/codecs.conf:
49 audio & 125 video codecs
Font /root/.mplayer/font/font.desc loaded successfully! (210 chars)
Using Linux hardware RTC timing (1024Hz)
Input config file /root/.mplayer/input.conf parsed : 51 binds
Setting up lirc support...
Playing http://www.live365.com/play/52559?membername=peggish&session=electricblues%3A0&pid=1100&SaneID=212.171.38.14-1035710841539&lid=-1-ita
Resolving www.live365.com ...
Connecting to server www.live365.com[216.235.80.145]:80 ...
Connecting to server 216.235.81.16:20304 ...
Cache size set to 256 KBytes
Connected to server: www.live365.com
done
AUDIO: 22050 Hz, 2 ch, 16 bit (0x10), ratio: 7000->88200 (56.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 22050Hz 2ch Signed 16-bit (Little-Endian)
Building audio filter chain for 22050Hz/2ch/16bit -> 22050Hz/2ch/16bit...
Video: no video!!!
Start playing...
A: 0.0 0.5% 18%
A: 16.5 0.5% 10% 25.3 0.5% 5% 4.7 30.1% 15%
11% 24.3% 10% 2.3% 2% 66.5 56.9% 5%
81.4 68.9% 0% 9.8 78.1% 1%
.8 71.8% 2%
Mais alguns sites de onde você escutar música pela web:
#mplayer -cache 256 mms://wmr02sea.activate.net/kplu
#mplayer -cache 256 http://www-org.los40.com/player/40Princip-TIC.asx
#mplayer -cache 256 mms://68.153.207.248:8080
#mplayer -cache 256 mms://66.70.17.90/villagevoice
#mplayer -cache 256 mms://200.165.140.120:80
#mplayer -cache 256 http://www.radioeldoradoam.com.br/eldoradoam.asx
#mplayer -cache 256 http://www.radioeldoradofm.com.br/eldoradofm.asx
#