Skip to content

Commit 528453e

Browse files
committed
Improve screen-capture (v1.2.0)
Improve screen-capture (v1.2.0) Signed-off-by: Bensuperpc <[email protected]>
1 parent 141325e commit 528453e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

video/screen-capture.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ set -euo pipefail
2020
#// //
2121
#//////////////////////////////////////////////////////////////
2222

23-
readonly VERSION="1.1.0"
23+
readonly VERSION="1.2.0"
2424

2525
DS_version() {
26-
echo "screen-capture $VERSION"
26+
echo "screen-capture: $VERSION"
2727
}
2828

2929
# Values can by override
@@ -46,22 +46,22 @@ TESTS=${TESTS:-none}
4646
COPY=${COPY:-true}
4747

4848
DS_check() {
49-
type ffmpeg >/dev/null 2>&1 || { echo "ffmpeg could not be found" >&2; exit 1; }
49+
type ffmpeg >/dev/null 2>&1 || { echo "ffmpeg could not be found!" >&2; exit 1; }
5050
}
5151

5252
DS_help() {
5353
echo "Usage: ${0##*/} --output <output file>"
5454
echo "Others option:
55-
--lib libx264, libx265, h263p, hevc_nvenc, nvenc_h264, hevc_qsv, h264_qsv, h264_amf
55+
--lib libx264, libx265, huffyuv, h263p, hevc_nvenc, nvenc_h264, hevc_qsv, h264_qsv, h264_amf
5656
--resolution 1920x1080
5757
--framerate 60, 30...
58-
--quality 0
58+
--quality 0 (lossless) to X
5959
--screen :0
6060
--preset ultrafast, fast, medium, slow... (fast, medium, slow on nvenc)
6161
--pixel yuv444p, yuv420p...
6262
--profile baseline, main, high, high10, high422, high444 (main, main10, high444p... for nvenc)
6363
--level auto, 0, 1, 1.0 ... 5.0, 5.1
64-
--ffmpeg_arg=\"\" ffmpeg arguments
64+
--ffmpeg_arg=\"<arg 1> <arg2> ...\" additional ffmpeg arguments
6565
-h or --help
6666
-v or --version"
6767
exit 0

0 commit comments

Comments
 (0)