A very light screen-casting solution

5 views
Skip to first unread message

Dilawar

unread,
Jun 28, 2013, 4:25:48 AM6/28/13
to wncc...@googlegroups.com
There are various softwares available with fancy GUIs to create screen-casts. This script will do just fine without much fuss. You need the 'swiss-knife' ffmpeg installed. If you have vlc or mplayer installed, it must already be there. You need to have ~/Video directory. You can save this scripts as executable e.g. record_my_desktop.sh in /usr/local/bin or in some other PATH. After saving this file to some file you need to do chmod +x filename.sh to make it executable.

#!/bin/bash


# This script record your desktop. It calculates your screen resolution and saves
# the video in ~/Video/output.mkv file.
rm
-f ~/Video/output.mkv
Xaxis=$(xrandr -q | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)
Yaxis=$(xrandr -q | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)
ffmpeg
-f x11grab -s $(($Xaxis))x$(($Yaxis)) -r 25 -i :0.0 -sameq ~/Video/output.mkv


First two lines calculate your screen resolution. Last line do the job of capturing your desktop . FFMPEG is a great tool to edit and modify videos, and various other things.

If you want to save your video to somewhere else change the filename at the end in 4th line.

Execute it in a terminal, minimize the terminal, do your work and then terminate the script. Downsize the video if required, and post the screen-cast.

Possible improvements could be like forcing a max-size to video saved. Sometimes moodle etc. have restriction on how big a file can be posted.
 
--
Dilawar
EE, IITB

Sudarshan Wadkar

unread,
Jun 28, 2013, 8:34:00 AM6/28/13
to wncc...@googlegroups.com
If you want to share only your terminal, then check out ascii.io (I think somebody posted about it on this group only)

-Sudhi :)


--
--
The website for the club is http://stab-iitb.org/wncc
To post to this group, send email to wncc...@googlegroups.com
 
---
You received this message because you are subscribed to the Google Groups "Web and Coding Club IIT Bombay" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wncc_iitb+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages