diff -Nru captureme-3.0.1/captureme captureme-3.0.1/captureme
--- captureme-3.0.1/captureme 1970-01-01 00:00:00.000000000 +0000
+++ captureme-3.0.1/captureme 2015-10-11 21:05:00.000000000 +0000
@@ -0,0 +1,69 @@
+#!/usr/bin/env bash
+#______________________________________________________________________________________________________
+#Name : CaptureMe
+#Licence: GPL3 (http://www.gnu.org/licenses/gpl.html), FFmepeg and Zenity have their recspective licence, please see their man page
+#Author : Salih Emin
+#Email : salihemin (at) about.me
+#Date : 11-10-2015 (first release 14-7-2011)
+#Version: 3.0.1
+#System : Linux with Zenity and FFmpeg packages preinstalled
+#WebSite: http://screen-captureme.blogspot.com
+#Source Code: Everything below comments is the sourcecode :)
+#Description:
+#This simple script will use FFmpeg to make a video from your screen or a selected window with or without sound
+#______________________________________________________________________________________________________
+ DIR=$HOME
+ FORMAT=avi
+ DATE=`date +%F_%T`
+ VideoSaveFile=$DIR/CaptureMe_${DATE}.${FORMAT}
+ test -f $VideoSaveFile && rm $VideoSaveFile
+ #TMP=`mktemp`
+
+#Main CaptureMe app:
+CMWindowTitle=$"CaptureMe"
+CMVersion=$"| v3.0.1"
+
+if [ -f /usr/bin/ffmpeg ]; then
+sound_or_not=$(zenity --list \
+ --width="400" \
+ --height="200" \
+ --title="$CMWindowTitle $CMVersion" \
+ --text "Choose if the recorded video should Have sound or Not\n" \
+ --radiolist --column "Choise" --column "Screencasting" \
+ TRUE "With Sound" \
+ FALSE "No Sound" \
+ --separator=":")
+ #If user pressed "Cancel":
+ if [ $? -eq 1 ] ;
+ then
+ zenity --info \
+ --title="$CMWindowTitle $CMVersion" \
+ --text="Screencasting was Canceled"
+ exit 1
+ fi
+
+ INFO=$(xwininfo -frame)
+
+ WIN_GEOMETRY=$(echo "$INFO"|grep -e "Height:" -e "Width:"|cut -d\: -f2|tr "\n" " "|awk '{print $1 "x" $2}')
+ WIN_POSITION=$(echo "$INFO"|grep "upper-left"|head -n 2|cut -d\: -f2|tr "\n" " "|awk '{print $1 "," $2}')
+ echo "$WIN_GEOMETRY -i :0.0+$WIN_POSITION -acodec"
+ echo "$WIN_GEOMETRY"
+
+ #Kernel of CaptureMe
+([[ $sound_or_not = *With* ]] && ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -s $WIN_GEOMETRY -r 25 -i :0.0+$WIN_POSITION -acodec pcm_s16le -y -qscale 0 $VideoSaveFile
+[[ $sound_or_not = *No* ]] && ffmpeg -f x11grab -s $WIN_GEOMETRY -r 24 -i :0.0+$WIN_POSITION -qscale 0 -y $VideoSaveFile) & zenity --warning --width="300" --height="30" --title="$CMWindowTitle $CMVersion" --text="Screencasting started... \n\nto stop screencasting \npress OK"
+
+#kill -9 `ps ux | awk '/ffmpeg/ && !/awk/ {print $2}'`
+pkill ffmpeg
+zenity --info \
+ --title="$CMWindowTitle $CMVersion" \
+ --height="30" \
+ --text="Your recording has been saved \nin your home folder $DIR"
+else
+ zenity --title="$CMWindowTitle $CMVersion" \
+ --error \
+ --text "The FFmpeg library was not found in your system! \nPlease install it from your distributions Software Center and then try again."
+fi
+
+#The following code creates commpressed audio at a lower quality from the above and smaller sized video
+#ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -s $WIN_GEOMETRY -r 15 -i :0.0+$WIN_POSITION -r 15 -vcodec libx264 -vpre lossless_ultrafast -sameq -threads 4 "$VideoSavePath.avi"
diff -Nru captureme-3.0.1/debian/changelog captureme-3.0.1/debian/changelog
--- captureme-3.0.1/debian/changelog 2015-10-11 20:01:41.000000000 +0000
+++ captureme-3.0.1/debian/changelog 2015-10-11 21:05:17.000000000 +0000
@@ -1,5 +1,5 @@
-captureme (3.0.1-1+wily1) wily; urgency=low
+captureme (3.0.1-1+wily2) wily; urgency=low
- * Build properly for this version
+ * Fix empty tmp file
- -- Salih Emin Sun, 11 Oct 2015 14:58:08 -0500
+ -- Salih Emin Sun, 11 Oct 2015 16:02:02 -0500
diff -Nru captureme-3.0.1/debian/control captureme-3.0.1/debian/control
--- captureme-3.0.1/debian/control 2015-10-11 20:00:21.000000000 +0000
+++ captureme-3.0.1/debian/control 2015-10-11 21:02:20.000000000 +0000
@@ -16,3 +16,4 @@
selected window. To use this app You need to have installed in your Linux
distribution the FFmpeg and Zenity packages. After that you just doubleclick
and then follow on-screen instructions.
+
diff -Nru captureme-3.0.1/debian/copyright captureme-3.0.1/debian/copyright
--- captureme-3.0.1/debian/copyright 2015-10-11 20:05:55.000000000 +0000
+++ captureme-3.0.1/debian/copyright 2015-10-11 21:03:12.000000000 +0000
@@ -19,4 +19,4 @@
along with this program. If not, see
.
On Debian systems, the complete text of the GNU General
- Public License version 2 can be found in "/usr/share/common-licenses/GPL-3".
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".