Created
May 22, 2012 22:35
-
-
Save oneman/2772072 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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