-
-
Save nicksellen/0f5f6b886713894213a1fcbcd7c09b92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
filename="${1:-}" | |
if [[ -z "$filename" ]]; then | |
echo "Usage: $0 <filename>" | |
exit 1 | |
fi | |
sleep 3 | |
mpv /home/nick/beep-07.wav | |
ffmpeg \ | |
-video_size 1920x1080 \ | |
-framerate 25 \ | |
-f x11grab \ | |
-i :0.0 \ | |
-f pulse \ | |
-i default \ | |
-c:a mp3 \ | |
-c:v h264 \ | |
-pix_fmt yuv420p \ | |
-preset ultrafast \ | |
-threads 0 \ | |
"$filename" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment