summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2020-12-08 21:48:04 -0500
committerSacha Chua <sacha@sachachua.com>2020-12-08 21:48:04 -0500
commit32a4711e753c53b41db1077c8f40a21713f91fd4 (patch)
tree43058fc9229839894a99037e01d00ab2afa2ea88
parentccb8be62cfb1ebdfe1d506192c800d8b68f0f611 (diff)
downloademacsconf-wiki-32a4711e753c53b41db1077c8f40a21713f91fd4.tar.xz
emacsconf-wiki-32a4711e753c53b41db1077c8f40a21713f91fd4.zip
Add ffmpeg incantation
Diffstat (limited to '')
-rw-r--r--2020/organizers-notebook.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/2020/organizers-notebook.org b/2020/organizers-notebook.org
index 29ad4dd4..455af4f1 100644
--- a/2020/organizers-notebook.org
+++ b/2020/organizers-notebook.org
@@ -189,3 +189,21 @@ using ffmpeg.
+* Compressing video
+
+Usage: compress-video input-filename.webm output-filename.webm
+Thanks to ArneBab for this incantation!
+
+#+begin_src sh :tangle compress-video.sh
+Q=56
+nice 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 999 -pass 1 -f webm -threads 8 /dev/null &&
+nice ffmpeg -y -i $1 -c:v libvpx-vp9 -b:v 0 -crf $Q -aq-mode 2 -c:a libopus -b:a 12k -tile-columns 2 -tile-rows 2 -frame-parallel 0 -cpu-used -5 -auto-alt-ref 1 -lag-in-frames 25 -pass 2 -g 999 -threads 8 $2
+#+end_src
+
+Usage: compress-video-original-audio input-filename.webm output-filename.webm
+
+#+begin_src sh :tangle compress-video-original-audio.sh
+Q=56
+nice 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 999 -pass 1 -f webm -threads 8 /dev/null &&
+nice ffmpeg -y -i $1 -c:v libvpx-vp9 -b:v 0 -crf $Q -aq-mode 2 -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 999 -threads 8 $2
+#+end_src