Skip to content

Instantly share code, notes, and snippets.

@Bioblaze
Forked from kfatehi/_README.md
Created June 26, 2020 05:26
Show Gist options
  • Save Bioblaze/e75326c5f217ce344774d5a54a7af5de to your computer and use it in GitHub Desktop.
Save Bioblaze/e75326c5f217ce344774d5a54a7af5de to your computer and use it in GitHub Desktop.
Rebroadcasting an icecast stream to another icecast server with inline transcoding

What?

A one-liner that pulls an AAC stream, pipes it into ffmpeg which transcodes it to mp3, then pipes it into ezstream with your settings (in the xml file) which streams it your radio.

Dependencies

sudo apt-get install ficy ffmpeg ezstream

<ezstream>
<url>http://zeno.link.radiojar.com:80/your-mount-point</url>
<sourcepassword>your-password</sourcepassword>
<format>MP3</format>
<filename>stdin</filename>
</ezstream>
fIcy http://example.org/somestream | ffmpeg -i pipe: -f mp3 - | ezstream -c ezstream-config.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment