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:

<meta base="rtmp://cdn.com/541833257/_definst_" />
<video src="mp4:STREAM-KEY-ORIGINAL" />
<video src="mp4:STREAM-KEY-TRANSCODED" />

basically to merge the origin and transcoded streams to generate a multi biterate output to our edge server, is that posible?