Experimental Video Playback Solution (cantabile-media-server)

I’ve just put up cantabile-media-server v0.0.5 which adds support for WebRTC camera feeds.

For this to work you need to have a WHEP compatible WebRTC server and you need to prefix the WHEP end-point url in the programList.txt with webrtc+. eg:

# program number to media file mapping
1: video1.mp4
2: webrtc+http://localhost:8889/camera1/whep

I’ve tested this with OBS to mediamtx and it works, but the feed can be quite slow to initially appear (see demo below).

I’ve also tested with go2rtc which gives much faster startup of the camera feed, but currently its WHEP implementation is incomplete so it doesn’t work with cantabile-media-server. I’ve logged an issue and hopefully it will get fixed soon as I think go2rtc is probably a better fit for this kind of setup.

Here’s a demo showing setup in OBS, starting mediamtx, config in cantabile-media-server and camera feed appearing in browser. It also shows the slow start time of mediamtx feeds.