Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
raspberry:audio_stream [2018/10/07 22:42]
admin [Icecast & Darkice]
raspberry:audio_stream [2020/12/14 14:35] (current)
admin [Links]
Line 1: Line 1:
 ===== Audio Stream ===== ===== Audio Stream =====
-Streaming audio over internet using Icecast and Darkice on RaspbianStretch.\\+Streaming audio over internet using Icecast and Darkice on a Raspberry Pi 3 and RaspbianStretch.\\
  
 ---- ----
 ==== Soundcard ==== ==== Soundcard ====
-from: [[https://www.instructables.com/id/Test-Sound-Card-and-Speakers-in-Raspberry-Pi/]]\\ 
  
 check the soundcard: check the soundcard:
Line 66: Line 65:
  
 ---- ----
-==== Icecast & Darkice ==== +==== Darkice ==== 
-Install Icecast and Darkice.\\+Install Darkice.\\ 
 update: update:
-  $ sudo apt-get update +  $ sudo apt-get update  
-install icecast2 and darkice+get the files and install them: 
-  $ sudo apt-get install icecast2 darkice +  $ wget https://github.com/x20mar/darkice-with-mp3-for-raspberry-pi/blob/master/darkice_1.0.1-999~mp3+1_armhf.deb?raw=true 
-if asked type in hostname and password + 
-  hostname: localhost +  $ mv darkice_1.0.1-999~mp3+1_armhf.deb?raw=true darkice_1.0.1-999~mp3+1_armhf.deb 
-  password: ????+ 
 +  $ sudo apt-get install libmp3lame0 libtwolame0 
 + 
 +  $ sudo dpkg -i darkice_1.0.1-999~mp3+1_armhf.deb 
 + 
 + 
 change config: change config:
   $ sudo nano /etc/darkice.cfg   $ sudo nano /etc/darkice.cfg
Line 93: Line 98:
   # this section describes a streaming connection to an IceCast2 server   # this section describes a streaming connection to an IceCast2 server
   # there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]   # there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]
-  # these can be mixed with [icecast-x] and [shoutcast-x] sections [icecast2-0]+  # these can be mixed with [icecast-x] and [shoutcast-x] sections  
 +  [icecast2-0]
   bitrateMode   = cbr              # constant bit rate ('vbr' variable 'abr' average)   bitrateMode   = cbr              # constant bit rate ('vbr' variable 'abr' average)
   bitrate       = 128   bitrate       = 128
Line 100: Line 106:
   server        = localhost        # host name of the server   server        = localhost        # host name of the server
   port          = 8000             # port of the IceCast2 server, usually 8000   port          = 8000             # port of the IceCast2 server, usually 8000
-  password      = embedded         # source password to the IceCast2 server+  password      = ????????         # source password to the IceCast2 server
   mountPoint    = pisound.mp3      # mount point of this stream on the IceCast2 server   mountPoint    = pisound.mp3      # mount point of this stream on the IceCast2 server
   name          = pisound          # name of the stream   name          = pisound          # name of the stream
Line 108: Line 114:
   public        = no               # advertise this stream?   public        = no               # advertise this stream?
   #localDumpFile = recording.mp3   # Record also to a file   #localDumpFile = recording.mp3   # Record also to a file
-   
-   
-run: 
-  $ darkice   
  
 ---- ----
-==== Link ==== +==== Icecast ==== 
-[[https://www.hackster.io/pranciskus/internet-radio-station-f0bdc1]]+Install Icecast.\\ 
 +update: 
 +  $ sudo apt-get update 
 +install icecast2: 
 +  $ sudo apt-get install icecast2 
 +if asked type in hostname and password 
 +  hostname: localhost 
 +  password: ???? 
 +start icecast2: 
 +  $ sudo service icecast2 start 
 + 
 +---- 
 +==== Stream ==== 
 +just run: 
 +  $ darkice  
 +and then open in your browser: 
 +  http://192.168.178.112:8000/pisound.mp3 
 +Icecast2 Status one will find here: 
 +  http://192.168.178.112:8000 
 + 
 +---- 
 +==== Links ==== 
 +[[https://www.instructables.com/id/Test-Sound-Card-and-Speakers-in-Raspberry-Pi/]]\\ 
 +[[https://www.hackster.io/pranciskus/internet-radio-station-f0bdc1]]\\ 
 +[[https://technicalustad.com/live-streaming-of-mp3-using-darkice-and-icecast2-on-raspberry-pi/]]\\ 
 +[[https://w7apk.com/streaming-radio]]\\ 
 +[[http://rabarar.github.io/blog/2015/07/02/darkice-and-icecast/]]\\ 
 + 
 +---- 
 +==== License ==== 
 + 
 +This manuals is made by **Wolfgang Spahn** 2018-20.\\ 
 +Except where otherwise noted, content on this wiki is licensed under the following license: [[http://creativecommons.org/licenses/by-nc-sa/4.0/"|Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License]].\\ 
 + 
 +<html> 
 +<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>  
 +</html>
  
 ---- ----