Files
scripts/ffmpeg/ultrafast_x264_mp4.sh
2018-08-28 13:50:46 +03:00

22 lines
308 B
Bash
Executable File

#!/bin/bash
# Capture screen script
prefix=`date +"%G.%m.%d_%H.%M.%S"`
ffmpeg -y -f x11grab \
-video_size 1920x1080 \
-r 30 \
-i $DISPLAY \
-f pulse \
-ac 2 \
-i default \
-c:v libx264 \
-crf 0 \
-pix_fmt yuv420p \
-preset ultrafast \
-threads 0 \
$prefix.mp4
# -f alsa \
# -i hw:2,1 \
#-an \