From 5cb75ee4fd8c08f9c0534887241a0157624bdfe3 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 2 Mar 2023 08:54:38 -0700 Subject: [PATCH] Bring step 2 speed claim down to earth --- README.md | 2 +- h264 | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f236ac..ef576a1 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Doing things in two steps adds a little bit of time, but in my experience, the hardware transcoder is so much faster, the second step time isn't a problem. -I see ffmpeg reporting running at `speed=500x` and higher +I see ffmpeg reporting running at `speed=84x` and higher on the second step. # Thanks diff --git a/h264 b/h264 index bfd8280..8747d39 100755 --- a/h264 +++ b/h264 @@ -12,7 +12,8 @@ Output will be written to \$SRC.h264.mp4 -1080p Rescale to no bigger than 1080p -720p Rescale to no bigger than 720p -480p Rescale to no bigger than 480p - -bitrate B Set average bitrate to B, overriding rescale setting + -bitrate B Set average bitrate to B, overriding rescale setting or CRF + -crf C Set CRF to C, overriding rescale setting or bitrate -swenc Software encode instead of hardware EOD @@ -44,6 +45,10 @@ while true; do bitrateManual="-b:v $2" shift 2 ;; + -crf|--crf) + bitrateManual="-crf $2" + shift 2 + ;; -swenc|--swenc) codec=h264 shift