Commit 1dc01bb9 authored by Milan Santosi's avatar Milan Santosi
Browse files

Added a shell script I found to record screen and audio with ffmpeg. Made some

notes for my presentation on Freedom.
Signed-off-by: default avatarMilan Santosi <>
parent 4f88390c
# ffmpeg recorder script for audio and video
# Source:
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"
* 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment