summaryrefslogtreecommitdiffstats
path: root/2020/organizers-notebook.md
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2020-12-12 09:32:18 -0500
committerSacha Chua <sacha@sachachua.com>2020-12-12 09:32:18 -0500
commit88cedc543d23f72c8480ef2d6e05feb289655da0 (patch)
tree1b4c1f25c7b1adabc8b71b25cf35ba958e7b81bc /2020/organizers-notebook.md
parent3855bd8f030ea2db95bd418488852c6be29edcb1 (diff)
downloademacsconf-wiki-88cedc543d23f72c8480ef2d6e05feb289655da0.tar.xz
emacsconf-wiki-88cedc543d23f72c8480ef2d6e05feb289655da0.zip
Tweak -g parameter for ffmpeg
Diffstat (limited to '2020/organizers-notebook.md')
-rw-r--r--2020/organizers-notebook.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/2020/organizers-notebook.md b/2020/organizers-notebook.md
index 8eb0f4d1..746fe36a 100644
--- a/2020/organizers-notebook.md
+++ b/2020/organizers-notebook.md
@@ -747,10 +747,10 @@ Another collaborative pad
### Encode highly-compressed versions
-[Compressing video](#org146ffca)
+[Compressing video](#org40410d1)
-<a id="org146ffca"></a>
+<a id="org40410d1"></a>
### Compressing video
@@ -759,8 +759,8 @@ Thanks to ArneBab for this ffmpeg script which is now documented in [Extreme com
Usage: compress-video.sh input-filename.webm output-filename.webm
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 -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
+ 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 240 -pass 1 -f webm -threads 8 /dev/null &&
+ nice 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
Here's the original version which compresses audio too. Usage: compress-video-compressed-audio.sh input-filename.webm output-filename.webm