This is the old SliTaz forum - Please use the main forum.slitaz.org

用slitaz 听网络广播
  • ydfydf April 2010
    先安装mplayer

    tux@slitaz:~$ mplayer mms://202.172.226.199/FM933a #这是新加坡第一台
    MPlayer 1.0rc2-4.4.1 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (Family: 15, Model: 4, Stepping: 9)
    MMX supported but disabled
    MMX2 supported but disabled
    SSE supported but disabled
    SSE2 supported but disabled
    CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
    Compiled for x86 CPU with extensions:
    mplayer: could not connect to socket
    mplayer: Permission denied
    Failed to open LIRC support. You will not be able to use your remote control.

    Playing mms://202.172.226.199/FM933a.
    STREAM_ASF, URL: mms://202.172.226.199/FM933a
    Connecting to server 202.172.226.199[202.172.226.199]: 1755...
    connect error: Connection refused
    Connecting to server 202.172.226.199[202.172.226.199]: 80...
    Connecting to server 202.172.226.199[202.172.226.199]: 80...
    Cache size set to 8192 KBytes
    Cache fill: 9.96% (835584 bytes)
    ASF file format detected.
    [asfheader] Audio stream found, -aid 1
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6002->176400)
    Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
    ==========================================================================
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    Video: no video
  • guruguru April 2010
  • ydfydf April 2010
    hinet radio 可以用但是不能自定义添加其他的电台
    base = 'http://hichannel.hinet.net/player/radio/mediaplay.jsp?radio_id='
    url = base + sys.argv[1]

    dir_path = os.path.expanduser('~/.config/hinedo/' )

    def download( url ):
    class Downloader( urllib.FancyURLopener ):
    version = 'Windows Media Player'
    f = Downloader().open( url )
    if f:
    content = f.read()
    f.close()
    return content
    return ''

    page = download( url )
    reg = re.compile( '(mms://.*?)(&|")', re.I|re.M )
    match = reg.search( page )
    url = match.group(1)
    url=url.replace('mms://','http://')
    os.execl( '/usr/bin/mplayer', 'mplayer', '-prefer-ipv4', '-cache', '32',url)
    print 'Error: cannot execute player.'

    只是给mplayer 加了个外壳

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social