#!/bin/zsh # OBS -> mediamtx -> VLC -> External Renderer (e.g. Chromecast) set -e set -x brew services start mediamtx obs_client.py \ SetCurrentProfile '{"profileName": "Tablecast"}' \ SetCurrentSceneCollection '{"sceneCollectionName": "Tablecast"}' \ SetStreamServiceSettings '{"streamServiceType": "rtmp_custom", "streamServiceSettings": {"server": "rtmp://localhost", "key": "mystream"}}' \ StartStream sleep 5 # Give the stream a moment to start vlc --network-caching=50 rtsp://localhost:8554/mystream obs_client.py \ StopStream \ SetCurrentProfile '{"profileName": "Disabled"}' \ SetCurrentSceneCollection '{"sceneCollectionName": "Disabled"}'