#!/bin/bash
# 12-14-2005
# fedora-video-timestamp.sh
# Simple shellscript to mix theora video+audio using gstreamer pipeline
# Takes 3 arguments wavfile theoravideo output-theora-video

if [ "$1" == "" ] ; then
  echo "Usage: $0 theora-video-to-encode  outputvideo"
  echo "Ex: $0 desktop-recording.ogg desktop-with-clock.ogg"
else
  gst-launch-0.8 \{ oggmux name=mux \! filesink location=$2 \} \{ filesrc location=$1 \! decodebin name=v \} \{ v. \! queue \! ffmpegcolorspace \! timeoverlay \! theoraenc \! queue name=theora-q \! mux. \} 
fi

