Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FFMPEG=$(which ffmpeg)
- set -e
- if [[ $# -lt 1 ]]; then
- dest=${HOME}/Videos/$(date --iso-8601=second)-desktop.mp4
- else
- dest=$1
- fi
- echo $dest
- ${FFMPEG} -f x11grab -s 1366x742 -i :0.0+0 -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -codec:v libx264 -b:v 10M -maxrate 10M -bufsize 10M -threads 0 -c:a libvorbis -ab 256k -r 60 ${dest}
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement