diff options
author | Leo Vivier <zaeph@zaeph.net> | 2022-11-01 18:59:28 +0100 |
---|---|---|
committer | Leo Vivier <zaeph@zaeph.net> | 2022-11-01 18:59:28 +0100 |
commit | 5e70ff954c39b69cee80a7c00c7734a51921712d (patch) | |
tree | c716f0a3e8b571281b104b678e02d85f04eed437 /2022 | |
parent | 8301aecded05bac32df501f1c41fff57c23e1c52 (diff) | |
download | emacsconf-wiki-5e70ff954c39b69cee80a7c00c7734a51921712d.tar.xz emacsconf-wiki-5e70ff954c39b69cee80a7c00c7734a51921712d.zip |
Update incantation
Diffstat (limited to '')
-rw-r--r-- | 2022/prepare.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/2022/prepare.md b/2022/prepare.md index ae4e560f..fe678b57 100644 --- a/2022/prepare.md +++ b/2022/prepare.md @@ -112,8 +112,9 @@ WebM format if possible.* If you would like to compress your video before uploading, the following shell script may be useful: Q=32 - ffmpeg -y -i "$1" -c:v libvpx-vp9 -b:v 0 -crf $Q -aq-mode 2 -an -tile-columns 0 -tile-rows 0 -frame-parallel 0 -cpu-used 8 -auto-alt-ref 1 -lag-in-frames 25 -g 240 -pass 1 -f webm -threads 8 /dev/null && - ffmpeg -y -i "$1" -c:v libvpx-vp9 -b:v 0 -crf $Q -c:a copy -tile-columns 2 -tile-rows 2 -frame-parallel 0 -cpu-used -5 -auto-alt-ref 1 -lag-in-frames 25 -pass 2 -g 240 -threads 8 "$2" + CPU=8 + ffmpeg -y -i "$1" -c:v libvpx-vp9 -b:v 0 -crf $Q -an -row-mt 1 -tile-columns 2 -tile-rows 2 -cpu-used $CPU -g 240 -pass 1 -f webm -threads $CPU /dev/null && + ffmpeg -y -i "$1" -c:v libvpx-vp9 -b:v 0 -crf $Q -c:a libopus -row-mt 1 -tile-columns 2 -tile-rows 2 -cpu-used $CPU -pass 2 -g 240 -threads $CPU "$2" If you put it in a file called `compress-video.sh`, you can execute it from the command line with something like `sh compress-video.sh |