From 88cedc543d23f72c8480ef2d6e05feb289655da0 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sat, 12 Dec 2020 09:32:18 -0500 Subject: Tweak -g parameter for ffmpeg --- 2020/organizers-notebook.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '2020/organizers-notebook.org') diff --git a/2020/organizers-notebook.org b/2020/organizers-notebook.org index f8b742dc..2197edec 100644 --- a/2020/organizers-notebook.org +++ b/2020/organizers-notebook.org @@ -752,8 +752,8 @@ Another collaborative pad #+begin_src sh :eval no :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 -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 #+end_src Here's the original version which compresses audio too. Usage: compress-video-compressed-audio.sh input-filename.webm output-filename.webm -- cgit v1.2.3