Screencasting Revisited.

by Computothought in Circuits > Linux

2407 Views, 1 Favorites, 0 Comments

Screencasting Revisited.

Screencasting-revisited.jpg
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.

What's Needed:

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

The Microphone:

The-microphone.jpg
PCDV0150.JPG
Screenshot-soundtest.wav - Sound Recorder.png
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 https://www.instructables.com/id/Microphone-stand/. 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.


Downloads

Test Video Recoding Without Sound.

Screenshot-Movie Player.png
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: https://www.instructables.com/id/Getting-instructable-counts-continued/

Trying a Screen Cast.

Screenshot-Movie Player.png
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 Youtube.com

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.

Downloads

Youtube Signup.

Screenshot-Google Accounts - Mozilla Firefox.png
Be sure to go to www.youtube.com and sign up for an account so that you can show off your screen casts.


Coming Soon: Video Casting.

Coming-soon-Video-casting.jpg
PICT0025.JPG
We have up graded the microphone stand for video casting.

Gtk-recordMyDesktop

Screenshot - 06152012 - 03:02:27 AM.png
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.

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

Screenshot from 2012-11-28 04:19:08.png
Screenshot from 2012-12-04 00:27:00.png
Screenshot from 2012-12-04 00:10:45.png
Screenshot from 2012-12-04 00:28:28.png
Screenshot from 2012-12-04 00:30:37.png
Screenshot from 2012-12-04 00:40:09.png

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 https://www.youtube.com/watch?v=V3HFu6Nmvsk

Once the download is finished, you will see and xxxx.mp4 filename. If it is an f.lv 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.

ytgv.sh:

 #=================================
 # Get Youtube video
 #-------------------------------------------------
 # get video
 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/ytgv.sh

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 ytgvserver.sh

ytgvserver.sh:
[code]
#=================================
#
# Get youtube videos
#---------------------------------
datafile="youtube.urls"
while read line
do youtube-dl $line
done < $datafile
#===================================
[/code]

$ chmod +x ytgvserver.sh

$ ./ytgvserver.sh

Great for running late at night!