If you can play the livestream on a computer then it’s possible to encode that as an RTP stream using OBS studio, which you can then enter as the stream url into the stream settings box.
This would of course require the Pi device to be on the same network as the computer that was outputting the RTP stream.