initial commit
This commit is contained in:
21
ffmpeg/ultrafast_x264_mp4.sh
Executable file
21
ffmpeg/ultrafast_x264_mp4.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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 \
|
||||
Reference in New Issue
Block a user