Wowza Community

Ffmpeg transcode

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:

Hello.

Here is an example of how this would work:

ffmpeg -i sample.mp4 -strict -2 -c:a aac -b:a 32k  -c:v libx264 -b:v 128K -f flv rtmp://localhost/live/stream_low -c:a copy  -c:v libx264 -b:v 256k -f flv rtmp://localhost/live/stream_mid

You can modify the details as needed.

Kind regards,

Salvadore