Question / Help Need help setting CBR using Nginx+Rtmp (Linux)

Torey

New Member
So I just started using a Linux server with Nginx and Rtmp to stream. But I keep getting this in the dashboard.

Max keyframe interval is currently at 7.312 seconds. Please set it to 2 seconds.
The broadcast is not set to constant bitrate (CBR). [Current average: 1667 kbps, current max: 3847.53233316 kbps]

My current encoding settings on the server are.

exec avconv -i rtmp://localhost:1935/transcode/test -c:v libx264 -profile:v main -preset medium -cbr_quality 10 -re -crf 23 -r 45 -g 90 -b:v 3500k -maxrate 3500k -minrate 3500k -bufsize 7000k -acodec copy -vf crop=1920:1080:0:0 -af "volume=10dB" -f flv rtmp://localhost:1935/live/test;


OBS Settings http://prntscr.com/a8oucg

I'm just trying to get the Acceptable quality to turn to excellent on the Twitch dashboard =/

Any help is appreciated.
 

FerretBomb

Active Member
Look into the nginx RTMP manual. This is not an OBS issue.
You need to set your keyframe interval, and enable CBR padding to fix the bitrate averaging in the nginx rtmp module.
 
Top