diff --git a/README.md b/README.md index 4644ce0..adb3291 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # distributary -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. \ No newline at end of file +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. + +## Prototypes + +I have two PowerShell scripts that run ffmpeg in a way that works. There's also a way to use unix +sockets which might be better, but we'll start with this first. See `prototypes/` for more. diff --git a/prototypes/restream_hack.ps1 b/prototypes/restream_hack.ps1 new file mode 100644 index 0000000..f204c80 --- /dev/null +++ b/prototypes/restream_hack.ps1 @@ -0,0 +1,9 @@ +$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 diff --git a/prototypes/restream_twitch.ps1 b/prototypes/restream_twitch.ps1 new file mode 100644 index 0000000..b228dbc --- /dev/null +++ b/prototypes/restream_twitch.ps1 @@ -0,0 +1,9 @@ +$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