summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-02-10 22:25:39 +0100
committerJonas Smedegaard <dr@jones.dk>2021-02-10 22:29:32 +0100
commitbba76358ad6c4db53fb62e49c096279556a41a0f (patch)
tree9e104b3bd4135404b588744465c44b11545e162b /localvideowebencode
parent93ea8f57d6a8175f5196f8e86d9c94585a8f19f2 (diff)
do faster first pass for dual-pass VP8/VP9
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode12
1 files changed, 6 insertions, 6 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 3eecc98..a4a930e 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -800,9 +800,9 @@ if [ -n "${ogv:+$multipass_theora}${webm:+$multipass_vp8}${webm_vp9:+$multipass_
${ogv:+${use_melt_theora:+-consumer avformat:$stem.ogv $_melt_ogv \
pass=1 passlogfile=${stem}_theora}} \
${webm:+${use_melt_vp8:+-consumer avformat:$stem.webm $_melt_webm \
- pass=1 passlogfile=${stem}_vp8}} \
+ pass=1 cpu-used=4 passlogfile=${stem}_vp8}} \
${webm_vp9:+${use_melt_vp9:+-consumer avformat:${stem}_vp9.webm $_melt_webm_vp9 \
- pass=1 passlogfile=${stem}_vp9}} \
+ pass=1 cpu-used=4 passlogfile=${stem}_vp9}} \
${mp4:+${use_melt_avc:+-consumer avformat:$stem.mp4 $_melt_mp4 \
pass=1 passlogfile=${stem}_avc}} \
${use_any_nomelt_video:+$_melt_stdout} \
@@ -811,15 +811,15 @@ if [ -n "${ogv:+$multipass_theora}${webm:+$multipass_vp8}${webm_vp9:+$multipass_
${ogv:+${use_ffmpeg_theora:+$_ffmpeg_rawvideo $_ffmpeg_ogv -an \
-pass 1 -passlogfile ${stem}_theora /dev/null}} \
${webm:+${use_ffmpeg_vp8:+$_ffmpeg_rawvideo $_ffmpeg_vp8 -an \
- -pass 1 -passlogfile ${stem}_vp8 /dev/null}} \
+ -pass 1 -cpu-used 4 -passlogfile ${stem}_vp8 /dev/null}} \
${webm_vp9:+${use_ffmpeg_vp9:+$_ffmpeg_rawvideo $_ffmpeg_vp9 -an \
- -pass 1 -passlogfile ${stem}_vp9 /dev/null}} \
+ -pass 1 -cpu-used 4 -passlogfile ${stem}_vp9 /dev/null}} \
${mp4:+${use_ffmpeg_avc:+$_ffmpeg_rawvideo $_ffmpeg_avc -an \
-pass 1 -passlogfile ${stem}_avc /dev/null}})"} \
${webm:+${use_vpxenc:+"$(render vpxenc-chained-echo - $_vpxenc_vp8 \
- --pass=1 --fpf=${stem}_vp8.log -o /dev/null)"}} \
+ --pass=1 --cpu-used=4 --fpf=${stem}_vp8.log -o /dev/null)"}} \
${webm_vp9:+${use_vpxenc:+"$(render vpxenc-chained-echo - $_vpxenc_vp9 \
- --pass=1 --fpf=${stem}_vp9.log -o /dev/null)"}}
+ --pass=1 --cpu-used=4 --fpf=${stem}_vp9.log -o /dev/null)"}}
fi
echo >&2 "Encoding video${channels:+ and audio}..."