]> git.parisson.com Git - telecaster-cgi.git/commitdiff
re-organize
authoryomguy <yomguy@parisson.com>
Mon, 9 Jan 2012 13:36:53 +0000 (14:36 +0100)
committeryomguy <yomguy@parisson.com>
Mon, 9 Jan 2012 13:36:53 +0000 (14:36 +0100)
conf/home/bin/rotate_desktop [deleted file]
conf/home/fluxbox/telecaster/gst_video_double_shout2.sh [new file with mode: 0755]
conf/home/fluxbox/telecaster/tc_video_simple_webm_stream_hd.sh [new file with mode: 0755]
conf/home/media/mp3/silence.mp3 [deleted file]
conf/home/media/ogg/silence.ogg [deleted file]
conf/home/telecaster/media/mp3/silence.mp3 [new file with mode: 0644]
conf/home/telecaster/media/ogg/silence.ogg [new file with mode: 0644]
conf/usr/local/bin/rotate_desktop [new file with mode: 0755]
conf/usr/share/applications/rotate_desktop.desktop
install.py

diff --git a/conf/home/bin/rotate_desktop b/conf/home/bin/rotate_desktop
deleted file mode 100755 (executable)
index 3e6abf8..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/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
-
diff --git a/conf/home/fluxbox/telecaster/gst_video_double_shout2.sh b/conf/home/fluxbox/telecaster/gst_video_double_shout2.sh
new file mode 100755 (executable)
index 0000000..cd25b51
--- /dev/null
@@ -0,0 +1,23 @@
+#!/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
+
diff --git a/conf/home/fluxbox/telecaster/tc_video_simple_webm_stream_hd.sh b/conf/home/fluxbox/telecaster/tc_video_simple_webm_stream_hd.sh
new file mode 100755 (executable)
index 0000000..7afd26c
--- /dev/null
@@ -0,0 +1,18 @@
+#!/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 &
+
diff --git a/conf/home/media/mp3/silence.mp3 b/conf/home/media/mp3/silence.mp3
deleted file mode 100644 (file)
index 17538c9..0000000
Binary files a/conf/home/media/mp3/silence.mp3 and /dev/null differ
diff --git a/conf/home/media/ogg/silence.ogg b/conf/home/media/ogg/silence.ogg
deleted file mode 100644 (file)
index 5cfaddf..0000000
Binary files a/conf/home/media/ogg/silence.ogg and /dev/null differ
diff --git a/conf/home/telecaster/media/mp3/silence.mp3 b/conf/home/telecaster/media/mp3/silence.mp3
new file mode 100644 (file)
index 0000000..17538c9
Binary files /dev/null and b/conf/home/telecaster/media/mp3/silence.mp3 differ
diff --git a/conf/home/telecaster/media/ogg/silence.ogg b/conf/home/telecaster/media/ogg/silence.ogg
new file mode 100644 (file)
index 0000000..5cfaddf
Binary files /dev/null and b/conf/home/telecaster/media/ogg/silence.ogg differ
diff --git a/conf/usr/local/bin/rotate_desktop b/conf/usr/local/bin/rotate_desktop
new file mode 100755 (executable)
index 0000000..3e6abf8
--- /dev/null
@@ -0,0 +1,12 @@
+#!/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
+
index 4182a90e2b19289786ccaa046d2097e6d42811c9..aa85a41571b4ba995a184a34f2fefa683c002b1d 100644 (file)
@@ -1,6 +1,6 @@
 [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
index 41d276b4832e9de22098370faa175e705684e4cd..0f5235aa4804667bba2b3de074aa7f1dd347261f 100644 (file)
@@ -111,8 +111,9 @@ class Install(object):
         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):
@@ -145,6 +146,8 @@ class Install(object):
         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...'