freedomboneeee/doc/EN/app_icecast.org

58 lines
3.0 KiB
Org Mode
Raw Normal View History

2017-11-27 13:30:52 +01:00
#+TITLE:
#+AUTHOR: Bob Mottram
#+EMAIL: bob@freedombone.net
#+KEYWORDS: freedombone, icecast
#+DESCRIPTION: How to use Icecast
#+OPTIONS: ^:nil toc:nil
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="freedombone.css" />
2018-04-12 14:01:49 +02:00
#+attr_html: :width 80% :height 10% :align center
2017-11-27 13:30:52 +01:00
[[file:images/logo.png]]
2018-04-12 14:01:49 +02:00
* Icecast
2017-11-27 13:30:52 +01:00
Icecast enables you to run something like an internet radio station. So if you have multiple audio files and want to be able to stream those in sequence from a web site then this can be useful.
This system is available only via an onion address, which should mitigate the potential for copyright disputes over streamed content. By default it's only set up to stream to a small number of users so that it doesn't put too much stress on CPU or memory requirements, although you can increase the maximum limit if you have a more powerful system and enough bandwidth.
* Installation
Log into your system with:
#+begin_src bash
ssh myusername@mydomain -p 2222
#+end_src
2017-11-27 13:43:26 +01:00
Using cursor keys, space bar and Enter key select *Administrator controls* and type in your password. Select *Add/Remove Apps* then *icecast*.
2017-11-27 13:30:52 +01:00
If you then go to the *About* screen you'll see the onion address for Icecast and can navigate to it in a Tor compatible browser.
* Adding files to be streamed
There are two ways to get files onto the system: either via ssh or via a USB drive. File types can be *ogg, ogv, mp3 or mp4* format.
2017-11-27 13:35:18 +01:00
It may take a while for the files to import, especially on a low power single board computer, since any mp3 or mp4 files will be converted to ogg or ogv. If you want to speed this up then you could do this conversion manually on a laptop with ffmpeg before storing files onto the USB drive or uploading them via ssh.
2017-11-27 13:30:52 +01:00
** From a USB drive
Create a directory on the USB drive named *icestream* and copy your files into there. Plug the drive into your server.
Go to the *Administrator control panel*, select *App settings*, then *icecast*, then *Import stream files from USB drive*.
** Via ssh
2017-11-27 13:34:19 +01:00
Make a directory named *icestream* and copy your files into it. Then copy the directory to your server.
2017-11-27 13:30:52 +01:00
#+begin_src bash
scp -r -P 2222 icestream myusername@mydomain:/home/myusername
#+end_src
Log into your server with:
#+begin_src bash
ssh myusername@mydomain -p 2222
#+end_src
Select *Administrator controls*, enter your password, then go to *App settings* followed by *icecast* and *Import stream files*. Choose the directory with up and down cursors and space bar to select.
* Access controls
By default anyone who happens to find your Icecast onion address can listen to your stream. If you only want it to be available to a few friends or family then you can add an extra login password.
Go to the *Administrator control panel*, select *App settings*, then *icecast*, then *Enable login for stream users*. Take a note of the password and you can give that out to whoever needs access, preferably via an encrypted chat app or sneakernet. If you need to copy and paste then hold the shift key while highlighting the password.