Created
December 5, 2012 23:34
-
-
Save oneman/4220520 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# Hello Krad World Video | |
require "/home/oneman/kode/krad_radio/scripts/kradradio_client.rb" | |
# Station name | |
station_name = "testsignal" | |
# Video resolution and frame rate | |
width = 640 | |
height = 360 | |
fps = 30 | |
# Video filename | |
server = "http://example.com" | |
port = "8000" | |
password = "test" | |
mount = "/test_signal.webm" | |
transmitter_port = "8274" | |
# Station startup | |
station = KradStation.new(station_name) | |
# setup logging | |
station.cmd("setdir ~/kradtoday") | |
logname = station.cmd("logname") | |
# Setting resolution | |
station.cmd("res #{width} #{height}") | |
# Setting framerate | |
station.cmd("fps #{fps}") | |
station.cmd("transmitter_on #{transmitter_port}") | |
station.cmd("capture test") | |
#station.cmd("transmit audiovideo #{server} #{port} #{mount} #{password}") | |
station.cmd("transmit video transmitter #{transmitter_port} #{mount} #{password}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment