Load network video stream

I’ve come across a few posts on this but they are either very old or seem like overkill for what I need. I’m running linux and the latest OF. I have a raspi with a picam streaming to an ip at port 12345, how can I simply load this in as a video source in OF?

This post more or less worked IP camera / Raspberry Pi Camera

Though something has changed and now you must alter the line to include .getData()

    pix.setFromExternalPixels(gst.getPixels().getData(), w, h, OF_PIXELS_RGB);