Stream ALSA to ICECAST: Difference between revisions

From Pabut
Jump to navigation Jump to search
Created page with " arecord -f S16_LE -c1 -r16000 -D RADIO - | lame -r -s 16 -b 16 -m m -cbr - - | ezstream -v -c ezstream.conf Where "RADIO" is an alsa source pcm.RADIO { hint.descri..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  arecord -f S16_LE -c1 -r16000 -D RADIO - | lame -r -s 16 -b 16 -m m -cbr - - | ezstream -v -c ezstream.conf
  arecord -f S16_LE -c1 -r16000 -D RADIO - | \
lame -r -s 16 -b 16 -m m -cbr - - | \
ezstream -v -c ezstream.conf


Where "RADIO" is an alsa source
Where "RADIO" is an alsa source as defined in ~/.asoundrc (not required but if you're doing crazy stuff like this you're probably rockin' multiple sound cards and this helps you keep your sanity)


  pcm.RADIO {
  pcm.RADIO {
Line 8: Line 10:
             card 1
             card 1
  }
  }
ezstream.conf
<ezstream>
    <url>http://your-server-url/robtest.mp3</url>
    <sourceuser>source</sourceuser>
    <sourcepassword>your-passwd</sourcepassword>
    <format>MP3</format>
    <filename>stdin</filename>
    <svrinfourl>http://your-server-url/robtest.mp3</svrinfourl>
</ezstream>


Requires
Requires

Latest revision as of 14:50, 30 September 2019

arecord -f S16_LE -c1 -r16000 -D RADIO - | \
lame -r -s 16 -b 16 -m m -cbr - - | \
ezstream -v -c ezstream.conf

Where "RADIO" is an alsa source as defined in ~/.asoundrc (not required but if you're doing crazy stuff like this you're probably rockin' multiple sound cards and this helps you keep your sanity)

pcm.RADIO {
       hint.description "SignaLink USB"
       type hw
           card 1
}

ezstream.conf

<ezstream>
   <url>http://your-server-url/robtest.mp3</url>
   <sourceuser>source</sourceuser>
   <sourcepassword>your-passwd</sourcepassword>
   <format>MP3</format>
   <filename>stdin</filename>
   <svrinfourl>http://your-server-url/robtest.mp3</svrinfourl>
</ezstream>


Requires

alsa-utils  Utilities for configuring and using ALSA
lame        MP3 encoding library (frontend)
ezstream    easy media streaming client over icecast servers