RTSP stream into Jitter/Max 8

LIAM Power's icon

Hi Guys,

I've seen a lot of forum posts describing how to receive an rtsp stream into Jitter using [jit.movie] and [jit.qt.movie], but I can't seem to get them working,

Examples seem to have been

[read rtsp://<ip>:<port>/] ---> [jit.movie]

but that doesn't work at all.

Are RTSP or mjpg Streams supported in Max 8 or do I have to use syphon?

Thanks
Liam

Rob Ramirez's icon

rtsp streams are not currently supported by jit.movie with any video engine.

your best bet is syphon streaming. i would try VLCSyphon first, as it seems the easiest to get something going quickly.

this thread is probably the most relevant and current: https://cycling74.com/forums/jitter-ip-camera-and-or-syphon

Andrew's icon

I can't seem to run VLCSyphon on OS 10.15.7, Max 8. Is there any other way for Max to read an RTSP stream? Everything I'm finding is several or more years old and doesn't work. Am I missing something or does this involve another mechanism now? Thanks

Rob Ramirez's icon

it does look like I added rtsp stream support to viddll since the post above

Max Patch
Copy patch and select New From Clipboard in Max.

alternatively, you can use OBS to read the stream, and pipe to jitter via NDI (either first to NDISyphon, or directly via the jit.ndi 3rd party externals). you can then control OBS via node.

Andrew's icon

Thanks for your help! It was a bit of a thing finding the NDI runtime - NDI's links to it are broken. I was able to get it my IP camera into Max thru OBS -> NDI -> jit.ndi.receive. I was able to see it in NDISyphon as well.

I was not able to read my camera's rtsp stream via jit.movie. The example in your patch worked, but it would not open my camera stream. It's in the following form:
rtsp://username:password@10.0.12.80

NDISyphon couldn't see it when given the IP address, either. VLC reads it. VLCSyphon crashed everytime I tried to open the stream also. Not sure if there's something about my camera's stream that isn't fully supported, or not. I'd love the simple solution of just using jit.movie.

Thanks again,
Andrew

Andrew's icon

Just remembered to look in the console messages for jit.movie. It doesn't understand my camera's URL. I tried rearranging it, but no luck.

Rob Ramirez's icon

ah yes I'm remembering now this limitation with passwords in the URL. I'll file a feature request ticket for this, but for now the workarounds will have to suffice.

Andrew's icon

That's great, thanks!

D.Singer's icon

rtsp example also works for me with jit.movie, but ones I tried to run my local rtsp stream (using rtsp-simple-server), max just stops responding and it does so until I eider force quit Max or stop the rtsp server. Is there any specific requirement for rtsp to work with jit.movie object?

Rob Ramirez's icon

I can reproduce the breakage with rtsp-simple-server (thanks for pointing me to that), so I will investigate possible solutions for a future update. In the meantime OBS to NDI to Syphon on mac or OBS to Spout on windows is the way to go.

D.Singer's icon

This would be fantastic, since rtsp-simple-server package offers most simple solution to stream media over rtsp, if this could work with max, it could open great possibilities with video streams over network, also combination with webrtc for live streams... Looking forward.

Many thx.