Skip to content

Instantly share code, notes, and snippets.

@muhammadghazali
Created December 12, 2012 06:09
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save muhammadghazali/4265343 to your computer and use it in GitHub Desktop.
Save muhammadghazali/4265343 to your computer and use it in GitHub Desktop.
A bash script to screencasting using ffmpeg. The video will recorded in mp4 format and saved on the current directory. Reference: https://wiki.ubuntu.com/ScreenCasts/ffmpeg
#!/bin/bash
# generate the file name using the string provided on the args
ffmpeg -f x11grab -r 25 -s 1366x768 -i :0.0 -vcodec libx264 -sameq $1.mp4
@muhammadghazali
Copy link
Author

How to use

Make sure you make the script file is executable using this command

chmod +x screencasting.sh

Run this command:

./screencasting.sh video-name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment