X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc2;h=6ac51839640d6b111de332c2196a89468ff154f4;hb=refs%2Fheads%2Fmaster;hp=d6ff1a401367e8412b3cbd8d1bb90975b4f09b18;hpb=87c3f2244a47ad10a031a27d0d0456f0a7defd21;p=distro-setup diff --git a/brc2 b/brc2 index d6ff1a4..fe5d60f 100644 --- a/brc2 +++ b/brc2 @@ -3291,6 +3291,11 @@ mpvd() { mpva() { mpv --profile=a "$@"; } +# mpv for testing video quality, dont scale. +mpvt() { + mpv --video-unscaled "$@"; + } + # mpv all media files in . or $1 mpvm() { local -a extensions arg @@ -4983,6 +4988,13 @@ ife() { fi } +# decrease filesize without losing any noticeable quality. inspired from +# https://gist.github.com/BlueSwordM/86dfcb6ab38a93a524472a0cbe4c4100 +ffsencode() { + in="$1" + out="$2" + ffmpeg -i "$in" -c:v libsvtav1 -crf 60 -preset 6 -g 60 -svtav1-params tune=0:enable-overlays=1:scd=1:scm=1 -pix_fmt yuv420p10le -c:a copy "$out" +} export BASEFILE_DIR=/a/bin/fai-basefiles