tablecast.zsh 681 B

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