Introduction: Screencasting Revisited.

Thought we might take another try at screencasting. There is an earlier version of how to screencast with gtk-record-MY-Desktop, but it did not work for me. So, I decided to try something new. You may remember ffmpeg from squeeze a video instructable. It is not only a very versatile program, but it has been developed for several platforms such as certain Microsoft operating systems, Apple OS/X and Linux. We will be using it here. For our set up we will be using it from the command line. Makes adjustments for settings easier. Running Ubuntu linux 10.04 for tis demonstration.

Note: there is a new program available called Kazam, but I have not had a chance to play with iit yet. Details coming soon.

Step 1: What's Needed:

Fairly new computer running linux with a working microphone input.
Working microphone.
Mike stand.
Plan for the screencast.

Step 2: The Microphone:

You will want an easy to mount microphone that is not too much in the way. Bought mine from  local electronics retailer for $4 dollars brand new. You do not need anything special (until you become famous). So I did not have to deal with holding the mike or wasting space on the desk, we used what is called a boom to hold the microphone for us. We used the one from In addition to that we changed the add-on to hold the mike.

A good idea is to test your microphone to see if it works. Go to Applications > Sound & Video > Sound recorder to test your mike. Record for a few seconds and then see if you hear the sound in the playback. it should work. If not, you will need to address that issue first before moving on.

Step 3: Test Video Recoding Without Sound.

This is so that you can make sure everything is working long the way.

Start up a terminal and type in: The original desktop size we are using is 1024x768, but Youtube only takes 640x480. FFmpeg will do the conversion for us on the fly.

$ ffmpeg -f x11grab -s 1024x768 -r 10 -i :0.0 -s 640x480 -r 10 filename.avi

Press q in that window when you are ready to stop.

Now play it back with your favorite movie player.

See an example:

Step 4: Trying a Screen Cast.

You will want to use a terminal and type in the following code.

$ ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 -s 640x480 -acodec pcm_s16le -threads 2 firstone.avi

With this command you created a file called firstone.avi in your home directory root.

You can again use the movie player to see what you have created.

This movie is so short I did not take the time to upload it to

Videos can get rather large, so the "Squeeze a video" instructable becomes very handy.

Good luck.

Note: You may have to experiment with the sound levels.

Step 5: Youtube Signup.

Be sure to go to and sign up for an account so that you can show off your screen casts.

Step 6: Coming Soon: Video Casting.

We have up graded the microphone stand for video casting.

Step 7: Gtk-recordMyDesktop

We have started using gtk-recordMyDesktop again. I seems now to better handle higher resolutions and a bit more stable. You can not beat it's ultra simplicity.

Step 8: Not Screen Casting, But You May Want to Use Youtube Videos.

If your like me and have older computers that do not really support flash, watching movies can be a hassle. Unfortunately use of html5 is not going as fast as most people planned. Do wish that Youtube would lead the way, but noooooooooooo. If you get the dreaded Black screen of death on youtube, it generally means you do not havethe Adove flash software installed.  Adobe has allegedly decided to no longer support flash for linux. So what to do?

In any case you can get get files in a proprietary format, but non- proprietary content) from you tube and

convert them for your use. You need to install several files, but the main two are youtube-dl and ffmpeg.\

$ sudo apt-get install ffmpeg youtube-dl

First we need to go to Youtube and get the url of the file we want to download. You just need the main part.

So in our case we would use:

$ youtube-dl

Once the download is finished, you will see and xxxx.mp4 filename. If it is an filename you

should not have to do any conversion. Go ahead  and play the movie locally. If you get an .mp4

file extension you will have to do a conversion of the media You will have to choose and output file

name with the flv extension.It will probably take a while depending on the size of the file and the speed

of your computer to convert the file.

$  ffmpeg -i V3HFu6Nmvsk.mp4 theat1.flv

Once the file is converted you can use your favorite media player to see the movie.

$ totem theat1.flv

Note you can install a plugom for iceweasel that will sort of do the job for watching the videos.

$ sudo apt-get install  browser-plugin-lightspark

If you would like to use a gui then you want to use the script.

 # Get Youtube video
 # get video
 video=$(zenity --entry \
         --title="You tube video dl" \
         --text="Enter the video url:" \
         --entry-text "$video")
youtube-dl $video

Save is to a file in your bin directory and the make it executable:

$ chmod +x ~/bin/

Start a laucher setup on the desktop and the point it to the batch file.
Double click the launcher and the enter the youtube video url.
File will be saved in your home directory.
Good luck!


Made a short batch file to automatically download several videos. This is great for a server where you can let it run without wasting power on your desktop system. You also save downloading the files to your desktp and then transfering tem to the server. Create a file with the video urls with one url on each line , then name it videourls.

Create the batch file called
# Get youtube videos
while read line
do youtube-dl $line
done < $datafile

$ chmod +x

$ ./

Great for running late at night!


About This Instructable




Bio: Bytesize articles instead of a trilogy in one post.
More by Computothought:Coffeepot mealsEasy sun hatEasy cakes and pies.
Add instructable to: