Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Filename:screencast.sh
- #Released under a GPLv3 Licence by Clockwork PC
- rm -f ~/Videos/Screencasts/output.mkv &&
- ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1920x1080 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 ~/Videos/Screencasts/output.mkv
- ffmpeg -i ~/Videos/Screencasts/output.mkv -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre slow -crf 22 -threads 0 ~/Videos/Screencasts/screencast_on_$(date +%F_%A_at_%H:%M:%S).mp4
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement