evert revised this gist 2 years ago. Go to revision
1 file changed, 10 insertions
restream.sh(file created)
| @@ -0,0 +1,10 @@ | |||
| 1 | + | #!/bin/bash | |
| 2 | + | STREAM_KEY="<twitch stream key>" | |
| 3 | + | SOURCE="https://tv.icynet.eu/live/<channel name>.m3u8" | |
| 4 | + | # Choose the server closest to you | |
| 5 | + | # https://stream.twitch.tv/ingests/ | |
| 6 | + | DESTINATION="rtmp://live-hel.twitch.tv/app" | |
| 7 | + | #DESTINATION="rtmp://live-arn.twitch.tv/app" | |
| 8 | + | #DESTINATION="rtmp://live-osl.twitch.tv/app" | |
| 9 | + | ||
| 10 | + | ffmpeg -re -i "$SOURCE" -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 3000k -f flv "$DESTINATION/$STREAM_KEY" | |
Newer
Older