====== reogg - Prepare audio-files for radio loops ====== Did you ever want to automate live audio streaming from the command-line? Well, I do. To cut it short the requirements here were: * command-line (terminal) only * generate one long stream - concatenate all songs * retain (id3) tags * stream [[wp>Ogg/Vorbis]] to an [[http://icecast.org|icecast]] server In principle one can simply concatenate OGG files and use [[http://v2v.cc/~j/oggfwd/|oggfwd]] to send it to icecast. However most players (in particular mplayer) will produce garbled output when mixing OGG files with different bitrate/samplerate/channels in one stream. Furthermore some input files may not be OGG/Vorbis encoded in the first place. To remedy the situation, here's a simple shell-script that converts all files in a given folder to a common format and copies over the id3 tags. You'll need to have ''oggenc'', ''oggdec'', ''mpg321'', ''flac123'' and ''id3tool'' installed. You can [[http://gareus.org/gitweb/?p=scripts.git;a=blob_plain;f=reogg.sh|download the script from the repository]], but it's simple enough to be printed here: extern>http://gareus.org/gitweb/?p=scripts.git;a=blob_plain;f=reogg.sh;hb=HEAD \\ \\ To transmit the converted files repeatedly to an icecast server I run the following shell script in a [[wp>Gnu_Screen|GNU Screen]]: extern>http://gareus.org/gitweb/?p=scripts.git;a=blob_plain;f=loop_ice.sh;hb=HEAD \\ \\ If you find these scripts useful or want to suggest some improvements.. drop me a word: {{tag>floss linux audio}}