From 1dc01bb9124f263a0d1b7f0bf8cd7b581516f161 Mon Sep 17 00:00:00 2001 From: Milan Santosi <milan.santosi@gmail.com> Date: Mon, 9 Apr 2012 20:29:26 +0200 Subject: [PATCH] Added a shell script I found to record screen and audio with ffmpeg. Made some notes for my presentation on Freedom. Signed-off-by: Milan Santosi <milan.santosi@gmail.com> --- kiss/ffmpeg_recorder.sh | 17 +++++++++++++++++ kiss/freedom/notes.org | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100755 kiss/ffmpeg_recorder.sh create mode 100644 kiss/freedom/notes.org diff --git a/kiss/ffmpeg_recorder.sh b/kiss/ffmpeg_recorder.sh new file mode 100755 index 0000000..fd98f8b --- /dev/null +++ b/kiss/ffmpeg_recorder.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# ffmpeg recorder script for audio and video +# Source: http://filmsbykris.com/wordpress/screen-capturing-with-ffmpeg/ + +cd $HOME/Videos/tutorials/original +SavePath=$(zenity --file-selection --save --confirm-overwrite) +echo "Saving video to $szSavePath" + +INFO=$(xwininfo -frame) + +WIN_GEO=$(echo "$INFO"|grep -e "Height:" -e "Width:"|cut -d\: -f2|tr "\n" " "|awk '{print $1 "x" $2}') +WIN_POS=$(echo "$INFO"|grep "upper-left"|head -n 2|cut -d\: -f2|tr "\n" " "|awk '{print $1 "," $2}') + +ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -s $WIN_GEO -r 15 -i :0.0+$WIN_POS -r 15 -acodec pcm_s16le -sameq "$SavePath.avi" + +echo "$WIN_GEO -i :0.0+$WIN_POS -acodec" +echo "$WIN_POS" diff --git a/kiss/freedom/notes.org b/kiss/freedom/notes.org new file mode 100644 index 0000000..8051f44 --- /dev/null +++ b/kiss/freedom/notes.org @@ -0,0 +1,36 @@ +* Selected Quotes +"Flash is not actually secret but adobe keeps making new versions which +are different, faster than anyone can keep up and make free software +to play those files, so it has almost the same effect as being secret. + +Then there are the patented formats: it's BAD to distribute recordings +in mp3 or any other proprietary format. Although there IS free software to +handle those formats, distributors legally can not include support for +such formats because they are patented in many countries. +Modern distributions of GNU/Linux such as Ubuntu facilitate use of +these formats by letting the user decide, thereby avoiding legal +issues. Whether or not this is a good thing is a question of moral. On +the one hand, many of these formats have become pseudo-standards and +for most users, the short term usability aspect prevails. On the other +hand, it's a very bad idea if we were hoping to get rid of proprietary +formats eventually. If you want to support freedom, don't distribute +recordings in non-free formats. Please use formats such as .ogg, +.webm, or .png." + + +"In an epoche when governments work for the mega corporations instead +of their citizens, every technological can be taken advantage of to +reduce our freedom..." + +* Further reading +Richard Stallman: The GNU Manifesto +Ben Klemens: Math you can't use +Eric S. Raymond: The Cathedral and the Bazaar +Stephan N. Kinsella: Against Intellectual Property + +http://stopsoftwarepatents.com +http://defectivebydesign.org +http://patentabsurdity.com +http://fsf.org +http://mises.org + -- GitLab