From b4e2708c6f8cc2191c581aef404803478e65e678 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Sep 2014 16:47:55 -0300 Subject: Moved scripts to custom repos --- start-streaming | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) delete mode 100755 start-streaming (limited to 'start-streaming') diff --git a/start-streaming b/start-streaming deleted file mode 100755 index e6acd07..0000000 --- a/start-streaming +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -# -# GStreamer command line wrapper -# -# Thanks to rafael at riseup.net and the following documents: -# -# http://current.workingdirectory.net/posts/2010/video4linux-and-audio/ -# http://mcs.hackitectura.net/tiki-index.php?page=live+stream+with+gstreamer -# https://en.wikibooks.org/wiki/Puredyne/Stream_Audio_and_Video#Gstreamer -# http://wm161.net/2011/03/02/anchorman/ -# -# Needed packages: v4l-utils gstreamer-tools -# -# Example config: -# -# SERVER="icecast.example.org" -# PORT="8000" -# PASS="hackme" -# MOUNT="mount.ogv" -# NAME="Stream" -# DESC="Description" -# GENRE="Genre" -# URL="http://example.org" - -# Parameters -DATE="`date +%Y%m%d%H%M%S`" -BASE="~/.config/start-streaming" -CONFIG="$1" - -# Parsing -if [ -z "$CONFIG" ]; then - echo "usage: `basename $0` " - exit 1 -fi - -mkdir -p $BASE - -if [ ! -f "$BASE/$CONFIG.conf" ]; then - echo "error: no $BASE/$CONFIG.conf found" - exit 1 -fi - -source $BASE/$CONFIG.conf - -#v4l2-ctl --set-input 1 - -# Video source: screen -gst-launch ximagesrc ! queue ! textoverlay text="$DESC" font-desc="50px" ! queue ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=320,height=240 ! theoraenc bitrate=100 ! queue ! oggmux name=mux alsasrc ! queue ! audioconvert ! vorbisenc bitrate=48000 ! queue ! mux. mux. ! tee name=tt ! queue ! filesink location=$DATE-$MOUNT tt. ! queue ! shout2send ip=$SERVER port=$PORT password=$PASS mount=/$MOUNT streamname="$NAME" description="$DESC" genre="$GENRE" url=$URL - -# Video source: camera -#gst-launch v4l2src ! queue ! textoverlay text="$DESC" font-desc="50px" ! queue ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=320,height=240 ! theoraenc bitrate=100 ! queue ! oggmux name=mux alsasrc ! queue ! audioconvert ! vorbisenc bitrate=48000 ! queue ! mux. mux. ! tee name=tt ! queue ! filesink location=$DATE-$MOUNT tt. ! queue ! shout2send ip=$SERVER port=$PORT password=$PASS mount=/$MOUNT streamname="$NAME" description="$DESC" genre="$GENRE" url=$URL - -# norm=NTSC does not work on debian squeeze -#gst-launch v4l2src norm=NTSC ! queue ! textoverlay text="$DESC" font-desc="50px" ! queue ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=320,height=240 ! theoraenc bitrate=100 ! queue ! oggmux name=mux alsasrc ! queue ! audioconvert ! vorbisenc bitrate=48000 ! queue ! mux. mux. ! tee name=tt ! queue ! filesink location=$MOUNT tt. ! queue ! shout2send ip=$SERVER port=$PORT password=$PASS mount=/$MOUNT streamname="$NAME" description="$DESC" genre="$GENRE" url=$URL -- cgit v1.2.3