]> git.parisson.com Git - telecaster-cgi.git/commitdiff
add script
authoryomguy <yomguy@parisson.com>
Mon, 3 Oct 2011 09:27:21 +0000 (11:27 +0200)
committeryomguy <yomguy@parisson.com>
Mon, 3 Oct 2011 09:27:21 +0000 (11:27 +0200)
scripts/telecaster/gst_video_simple_ogg [new file with mode: 0644]

diff --git a/scripts/telecaster/gst_video_simple_ogg b/scripts/telecaster/gst_video_simple_ogg
new file mode 100644 (file)
index 0000000..af63af4
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+gst-launch v4l2src device=/dev/video0 ! video/x-raw-yuv,width=640, height=480 \
+       ! queue ! ffmpegcolorspace \
+       ! queue ! theoraenc quality=20 ! mux. \
+       alsasrc device=hw:0,0 ! audio/x-raw-int,rate=44100,channels=2,depth=16 \
+       !  queue ! audioconvert ! audio/x-raw-float,rate=44100,channels=2,depth=16 ! queue ! vorbisenc ! mux. \
+       oggmux name=mux ! filesink location=/var/www/test/test.ogg \
+
+# ! queue ! videorate ! video/x-raw-yuv, framerate=25/1 \
+#jackaudiosrc connect=1 ! queue ! audioconvert ! audio/x-raw-int,rate=44100,channels=1,width=16
\ No newline at end of file