+++ /dev/null
-#!/bin/bash
-
-xrandrout="$(xrandr)"
-
-case $xrandrout in
- *1024x600+0+0\ inverted\ \(* ) rotate=0; invert=0;;
- *1024x600+0+0\ \(* ) rotate=2; invert=1;;
-esac
-
-xrandr -o $rotate
-xinput --set-prop 11 "Evdev Axis Inversion" $invert, $invert
-
--- /dev/null
+#!/bin/sh
+
+# Start TeleCaster video channel
+
+WIDTH=480
+HEIGHT=270
+
+gst-launch v4l2src device=/dev/video0 ! queue ! videoscale ! video/x-raw-yuv, width=160, height=120 \
+ ! queue ! videorate ! video/x-raw-yuv,framerate=25/1 \
+ ! queue ! videomixer name=mix sink_1::xpos=0 sink_1::ypos=0 sink_1::alpha=0.9 \
+ ! queue ! ffmpegcolorspace ! queue ! theoraenc quality=25 ! muxout. \
+ jackaudiosrc connect=1 ! audioconvert ! audio/x-raw-int,rate=44100,channels=1,width=16 \
+ ! queue ! audioconvert ! vorbisenc ! queue ! muxout. \
+ oggmux name=muxout ! queue ! shout2send mount=/telecaster_live_video.ogg port=8000 password=source2parisson ip=127.0.0.1 \
+ v4l2src device=/dev/video1 ! queue ! videoscale ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \
+ ! queue ! videorate ! video/x-raw-yuv,framerate=25/1 ! mix. \
+ > /dev/null &
+
+sleep 2
+
+jack_disconnect system:capture_1 gst-launch-0.10:in_jackaudiosrc0_1
+jack_connect jack_rack:out_1 gst-launch-0.10:in_jackaudiosrc0_1
+
--- /dev/null
+#!/bin/sh
+
+# Start TeleCaster video channel
+
+WIDTH=1024
+HEIGHT=576
+
+gst-launch v4l2src device=/dev/video0 ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \
+ ! queue ! videoflip method=rotate-180 \
+ ! queue ! ffmpegcolorspace \
+ ! queue ! vp8enc speed=2 threads=2 quality=5 ! queue ! muxout. \
+ jackaudiosrc connect=1 \
+ ! queue ! audioconvert ! queue ! vorbisenc quality=3 ! queue ! muxout. \
+ webmmux streamable=true name=muxout \
+ ! tee name=t ! queue ! tcpserversink host=127.0.0.1 port=9000 \
+ t. ! queue ! filesink location=/home/telecaster/trash/test.webm \
+ > /dev/null &
+
--- /dev/null
+#!/bin/bash
+
+xrandrout="$(xrandr)"
+
+case $xrandrout in
+ *1024x600+0+0\ inverted\ \(* ) rotate=0; invert=0;;
+ *1024x600+0+0\ \(* ) rotate=2; invert=1;;
+esac
+
+xrandr -o $rotate
+xinput --set-prop 11 "Evdev Axis Inversion" $invert, $invert
+
[Desktop Entry]
Name=Rotate Desktop
-Exec=~/bin/rotate_desktop
+Exec=/usr/local/bin/rotate_desktop
Icon=preferences-desktop-rotate
Type=Application
Comment=Rotate Desktop for 180 degrees with the touchscreen
for dir in self.home_dirs:
home_dir = self.home + '/.' + dir
if not os.path.exists(home_dir):
- shutil.copytree('conf/home/'+dir, home_dir, ignore=shutil.ignore_patterns('*.svn*'))
- self.chown(dir)
+ os.makedirs(home_dir)
+ os.system('cp -r conf/home/'+dir + ' ' + home_dir)
+ self.chown(home_dir)
dir = 'media'
if not os.path.exists(self.home+os.sep+dir):
if not os.path.islink(init_link):
os.system('ln -s /etc/init.d/vncserver '+init_link)
+
+
def run(self):
if self.options['keepinit'] == False:
print 'Installing init files...'