Skip to content

Instantly share code, notes, and snippets.

@oneman
Created December 5, 2012 23:34
Show Gist options
  • Save oneman/4220520 to your computer and use it in GitHub Desktop.
Save oneman/4220520 to your computer and use it in GitHub Desktop.
#!/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