Skip to content

Instantly share code, notes, and snippets.

@oneman
Created May 22, 2012 22:35
Show Gist options
  • Select an option

  • Save oneman/2772072 to your computer and use it in GitHub Desktop.

Select an option

Save oneman/2772072 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
station = "radio1"
stacmd = "krad_radio_cmd #{station}"
`#{stacmd} input Music1`
`#{stacmd} input Music2`
`#{stacmd} output Main`
`#{stacmd} xfade Music1 Music2`
`jack_connect XMMS2:out_1 #{station}:Music1_Left`
`jack_connect XMMS2:out_2 #{station}:Music1_Right`
`jack_connect XMMS2-01:out_1 #{station}:Music2_Left`
`jack_connect XMMS2-01:out_2 #{station}:Music2_Right`
sleep 2
`#{stacmd} capture v4l2`
sleep 2
`#{stacmd} transmitav phobos.kradradio.com 8080 /radio1.webm secretkode`
sleep 2
`#{stacmd} vuon`
sleep 2
`#{stacmd} webon 13000 13001`
sleep 2
`#{stacmd} transmit audio phobos.kradradio.com 8080 /radio1.opus secretkode opus`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment