Created
November 3, 2020 14:40
-
-
Save m1k1o/2480898643ab3bb9a27e9540842c3f12 to your computer and use it in GitHub Desktop.
Live stream to Icecast using FFMPEG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SOURCE="rtmp://localhost:1935/live" | |
BITRATE="64k" | |
IC_USER="source" | |
IC_PASS="abc" | |
IC_HOST="localhost" | |
IC_PORT="8080" | |
IC_STREAM="stream" | |
ffmpeg \ | |
-re -i "${SOURCE}" -vn \ | |
-codec:a libmp3lame -b:a ${BITRATE} -f mp3 \ | |
-content_type audio/mpeg \ | |
"icecast://${IC_USER}:${IC_PASS}@${IC_HOST}:${IC_PORT}/${IC_STREAM}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment