From: yomguy Date: Thu, 5 Jan 2012 15:42:22 +0000 (+0100) Subject: add webm scripts X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6bfcd5805b6d2b62ccbe118b9a4b1395f1cf098e;p=telecaster-cgi.git add webm scripts --- diff --git a/scripts/telecaster/tc_video_simple_file.sh b/scripts/telecaster/tc_video_simple_file.sh new file mode 100755 index 0000000..181dd2f --- /dev/null +++ b/scripts/telecaster/tc_video_simple_file.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# Start TeleCaster video channel + +WIDTH=432 +HEIGHT=240 + +gst-launch v4l2src device=/dev/video0 ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \ + ! queue ! ffmpegcolorspace \ + ! queue ! theoraenc bitrate=400 speed-level=0 ! queue ! muxout. \ + jackaudiosrc connect=1 \ + ! queue ! audioconvert ! queue ! vorbisenc ! queue ! muxout. \ + oggmux name=muxout ! filesink location=/home/telecaster/archives/test.ogg \ + > /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/scripts/telecaster/tc_video_simple_file_webm.sh b/scripts/telecaster/tc_video_simple_file_webm.sh new file mode 100755 index 0000000..d08dc06 --- /dev/null +++ b/scripts/telecaster/tc_video_simple_file_webm.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# Start TeleCaster video channel + +WIDTH=640 +HEIGHT=360 +#WIDTH=1024 +#HEIGHT=576 + +gst-launch v4l2src device=/dev/video1 ! 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 ! filesink location=/home/telecaster/trash/test.webm \ + > /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/scripts/telecaster/tc_video_simple_start.sh b/scripts/telecaster/tc_video_simple_start.sh new file mode 100755 index 0000000..061e290 --- /dev/null +++ b/scripts/telecaster/tc_video_simple_start.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# Start TeleCaster video channel + +WIDTH=432 +HEIGHT=240 + +gst-launch v4l2src device=/dev/video0 ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \ + ! queue ! ffmpegcolorspace \ + ! queue ! theoraenc quality=10 ! queue ! muxout. \ + jackaudiosrc connect=1 \ + ! queue ! audioconvert ! queue ! vorbisenc quality=3 ! queue ! muxout. \ + oggmux name=muxout ! shout2send mount=/telecaster_live_video.ogg port=8000 password=source2parisson ip=127.0.0.1 \ + > /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/scripts/telecaster/tc_video_simple_webm_stream.sh b/scripts/telecaster/tc_video_simple_webm_stream.sh new file mode 100755 index 0000000..348bf02 --- /dev/null +++ b/scripts/telecaster/tc_video_simple_webm_stream.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Start TeleCaster video channel + +WIDTH=640 +HEIGHT=360 +#WIDTH=1024 +#HEIGHT=576 + +gst-launch v4l2src device=/dev/video0 ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \ + ! queue ! ffmpegcolorspace \ + ! queue ! vp8enc speed=2 threads=2 quality=3 ! queue ! muxout. \ + jackaudiosrc connect=1 \ + ! queue ! audioconvert ! queue ! vorbisenc quality=3 ! queue ! muxout. \ + webmmux streamable=true name=muxout ! souphttpclientsink location=/home/telecaster/archives/test.webm \ + > /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 +