Saturday, September 4, 2010

radio streaming stuff

## download the file
auser@abox:~$ tsocks wget http://radio.mitra.net.id:8110/ --limit-rate=8k -O try.mp3 | mplayer -cache 8192 try.mp3
--2010-08-22 22:42:56-- http://radio.mitra.net.id:8110/
Resolving radio.mitra.net.id... 202.43.248.148
Connecting to radio.mitra.net.id|202.43.248.148|:8110... MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing try.mp3.
Cache fill: 0.00% (0 bytes)


Exiting... (End of file)
connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `try.mp3'

## watching the size
auser@abox:~$ watch --differences -n1 ls -l try.mp3

## << open new terminal >>
auser@abox:~$ mplayer try.mp3
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing try.mp3.
Audio only file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
mpg123: Can't rewind stream by 861 bits!
AUDIO: 22050 Hz, 2 ch, s16le, 32.0 kbit/4.54% (ratio: 4000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] 22050Hz 2ch s16le (2 bytes per sample)
Video: no video

1 comment:

  1. ## download the file continously
    auser@abox:/srv/lucid$ while true; do wget -e http_proxy=202.46.129.10:8080 --proxy-user=princeofun@chem.its.ac.id --proxy-password=secret http://radio.mitra.net.id:8110/ -O trijayafm_20100903.mp3 | mplayer -cache 8192 trijayafm_20100903.mp3;done
    --2010-09-04 07:05:07-- http://radio.mitra.net.id:8110/

    ## play the radio on
    auser@abox:/srv/lucid$ while true; do mplayer trijayafm_20100903.mp3 ; done

    enjoy

    ReplyDelete