Skip to content

satoru-takeuchi/simple-screencast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

simple-screencast

a screencast program written in simple bash script

Take a screencast of a window in X Windows System environment

Required Packages

imagemagick ffmpeg

Usgae

First, get the ID of the target window.

$ xwininfo | awk '($0 ~ "^xwininfo: Window id: "){print $4}'
# This program blocks here and it shows the ID as follows when you click the target window
0x4400002
$

Let's take a screencast by simple-screencast.

$ ./simple-screencast 0x4400002 10 5
...
$ 

1st argument is the ID of the target window. 2nd one means the frame rate. 3rd one is the length of the screencast in seconds.

Then you got the screencast as test.mp4.

Sample

See this page. It's a screencast of a terminal emulater on which I wrote and run a hello world program written in golang.

About

a screencast program written in simple bash script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages