Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
13
.bin/OLD/KAPUTT/rec_encode_noaudio
Executable file
13
.bin/OLD/KAPUTT/rec_encode_noaudio
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
_vidfile="/home/sdk/work/rec-screen.mkv"
|
||||
_outfile="${_vidfile%%.*}-$(date "+%Y%m%d_%H%M%S").mp4"
|
||||
|
||||
ffmpeg -y -i $_vidfile \
|
||||
-c:v libx265 \
|
||||
-c:a aac -shortest \
|
||||
-crf 21 -s 1920x1080 \
|
||||
-preset medium -movflags faststart \
|
||||
-threads $(sysctl -n hw.ncpuonline) \
|
||||
$_outfile \
|
||||
&& echo "Done encoding $(readlink -f $_outfile)"
|
||||
Reference in New Issue
Block a user