Hello everyone,
I have this problem on transcoding rtmp using ffmpeg, the command below can successfully transcode rtmp to rtmp (with lower bireate):
ffmpeg -i rtmp://sample.com/live/mp4:STREAM-KEY-ORIGINAL -vcodec libx264 -preset veryfast -x264opts nal-hrd=cbr:force-cfr=1:keyint=60 -b:v 600k -maxrate 600k -bufsize 3400k -sws_flags spline -r 30 -acodec copy -f flv rtmp://sample.com/live/mp4:STREAM-KEY-TRANSCODED
we are actually using cdn as edge, what we want to achieve is something like this output: