Freevo

- Index
- AudioFxd

# AudioFxd

1. Music General
2. Streaming Audio
   1. Starcast Grabber
3. Local Audio

## Music General

FXD files can define an external music source, such as a net radio station.

If what you need is to define a cover for an album, just use the AUDIO_COVER_REGEXP from freevo_local.conf. Using the default value, you just need to name (or link) your file front.jpg or cover-f.jpg.

## Streaming Audio

The only real requirement here is a name and URL, but several metadata fields are provided to describe the stream.

A simple example:

    <freevo>
        <title>RadioIO 80's</title>
        <logo source="/opt/freevo/testfiles/netradio/">mos.jpg</logo>
        <audio>
          <mplayer_options></mplayer_options>
            <url>http://radioio.sc.llnwd.net:8220/</url>
        </audio>
        <info>
          <genre>Alternative</genre>
          <desc>More choices, more music.  Independent.  Original.  Digital.  RadioIO 80's.</desc>
        </info>
    </freevo>

### Starcast Grabber

This project is a set of perl scripts that enables you to access Shoutcast and Icecast streams.

The scripts grab web pages according to hardcoded queries (like 'get the most listened radios and with available slots'), parse the html pages and pack information into a fxd file.

URL: http://sourceforge.net/projects/starcastgrab/

A logo downloader was implemented, you have to modify the hardcoded path of the logo storage ($logo_dir in the perl script).

By default, the script gets all genres such as Rock, Funk, etc.... If you only want some of them, just edit the genre list at the begining of the script.

Usage example:

    /*
       This retrieves 10 first most listened radios
       for each genre (Funk, Rock...) from shoutcast web page
     */
    perl shoutcast_grabber.pl -d 10 -o /usr/share/freevo/fxd/shoutcast.fxd -quiet

    /*
       Add this entry in the audio files list in local_conf.py :
     */
    MUSIC_DIR = [ ('Shoutcast webradio','fxd/shoutcast.fxd')
                ]

You can also add a cron entry into crontab to automatically update the fxd file

PleaseUpdate: Should the code be adjusted so that this is not all part of the <freevo> element, but instead wrapped pushed down a level such as <freevo><music>...title, logo, audio, etc...</music></freevo>?

## Local Audio

PleaseUpdate: How to write <audio> tags, container, etc.

last edited 2005-01-06 14:19:29 by SebastienBoutet
current version: http://freevo.sourceforge.net/cgi-bin/doc/AudioFxd