IP to IP Encoder

Im looking for a Hardware encoder with an rtmp input and output. Id like to send my stream with a high Bitrate from the PC (obs) over rtmp to the encoder. Here it Should encode the high incoming Bitrate of about 50mbits or whatever to round about 6 to 12 mbits 1080p60 and send it over rtmp to twitch Or Youtube.
Is that possible? Are there an Devices with an Web interface and a lan connection?
Im sorry for the bad english.
Tanks for help :)