Transcode JVB streams

Hi

How could I read client streams from jvb2, transcode it using gstreamer (or Kurento?) and pipe it back to jvb2 for it to be delivered to the respective clients?

I understand this requires a lot of processing power in the server. I am exploring hybrid architectures and would like to understand how this can be accomplished.

Please let me know.

Thanks.