A simple program that accepts RTMP streams and then restreams them directly to other services. I use it to record at a higher rate but stream to target services at the rate they want. It's also useful for streaming to multiple sites.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
distributary/prototypes/restream_hack.ps1

10 lines
449 B

$youtube=''
$twitter=''
$twitch=''
$youtube_br='9M'
$twitter_br='9M'
$twitch_br='7M'
ffmpeg -listen 1 -i rtmp://192.168.254.146/ -bufsize 3000k -maxrate $twitch_br -flags +global_header -c:v libx264 -preset veryfast -tune zerolatency -g:v 60 -vb $twitch_br -c:a copy -f flv $twitch -maxrate $twitter_br -bufsize 3000k -flags +global_header -c:v libx264 -preset veryfast -tune zerolatency -vb $twitter_br -c:a copy -f flv $twitter