#!/bin/bash STREAM_KEY="" SOURCE="https://tv.icynet.eu/live/.m3u8" # Choose the server closest to you # https://stream.twitch.tv/ingests/ DESTINATION="rtmp://live-hel.twitch.tv/app" #DESTINATION="rtmp://live-arn.twitch.tv/app" #DESTINATION="rtmp://live-osl.twitch.tv/app" 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"