Hey guys, ive got a linuxserver with 2 cpus so ive got an idea. i encode the stream on my pc with 15 Mbit with very good quality(my upload at home is 20mbit) and send the stream to my linuxserver and the linuxserver recode the stream with 2 - 2,5 MBit with a slower preset for twitch. so i setup everything. i have on my pc a nginx server, obs send the stream to localhost(nginx) and my linuxserver gets the stream with ffmpeg. everything works fine but ffmpeg doesnt encode with the desired bitrate. i saw my stream on twitch while i tested it but with a very bad quality because the bitrate is too low. the only problem now is how i can force ffmpeg to use the desired bitrate? this is my actual ffmpeg command:
ffmpeg -i rtmp://HomeIp/live/d0r -c:v libx264 -preset slower -b:v 2300 -minrate 2300k -maxrate 2300k -crf 19 -threads 8 -c:a copy -f flv rtmp://live-fra.twitch.tv/app/Streamkey | -f flv rtmp://a.rtmp.youtube.com/live2/streamkey
so i hope somebody know how i can fix this problem. how i said ffmpeg wont use the desired bitrate.
ffmpeg -i rtmp://HomeIp/live/d0r -c:v libx264 -preset slower -b:v 2300 -minrate 2300k -maxrate 2300k -crf 19 -threads 8 -c:a copy -f flv rtmp://live-fra.twitch.tv/app/Streamkey | -f flv rtmp://a.rtmp.youtube.com/live2/streamkey
so i hope somebody know how i can fix this problem. how i said ffmpeg wont use the desired bitrate.