EZStream
EZStream is a media streamer and re-encoder that can be used to feed Icecast.
Mounting Content
I have a Samba share "Media" setup on the server "samba-srv" that holds
all my media and allows anonymous read access to the content. You'll need to
install cifs-utils
to mount the samba share. To make it available to my
stream server I've performed the following:
mkdir /media/content
mount -t cifs -o username=guest /samba-srv/Media /media/content
The above command could be added to an init script like an rc.local
or
alternatively you can do it right and add it to the fstab file to be mounted
automatically. You'll want to add the following to /etc/fstab
:
/samba-srv/Media /media/content cifs auto,guest,_netdev 0 0
Nice and easy.
Installation & Configuration
Quick and Easy:
yum install ezstream -y
ezstream.xml
http://127.0.0.1:8000/automation.ogg
automation
hackme
VORBIS
./song_request.rb
1
128
2
44100
@a@ - @t@
1
FLAC
.flac
flac -s -d --force-raw-format --sign=signed --endian=little -o - "@T@"
Not supported Yet
MP3
.mp3
madplay -b 16 -R 44100 -S -o raw:- "@T@"
Not supported Yet
VORBIS
.ogg
oggdec -R -b 16 -e 0 -s 1 -o - "@T@"
oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t "@M@" -