aboutsummaryrefslogtreecommitdiff
path: root/evc/scripts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-13 20:01:01 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-13 20:01:01 +0100
commit82eedf3594bf21c8b780580050a95f0bdb5fd667 (patch)
tree7189b1e46546b963eb44a09920918c76b16e0880 /evc/scripts
parent4f9ff288cfd66dc33cf66ae9085075f7a242685b (diff)
downloadvideo-codec-experiments-82eedf3594bf21c8b780580050a95f0bdb5fd667.tar
video-codec-experiments-82eedf3594bf21c8b780580050a95f0bdb5fd667.tar.bz2
video-codec-experiments-82eedf3594bf21c8b780580050a95f0bdb5fd667.tar.zst
minor changes
Diffstat (limited to 'evc/scripts')
-rwxr-xr-xevc/scripts/bench_modes7
1 files changed, 5 insertions, 2 deletions
diff --git a/evc/scripts/bench_modes b/evc/scripts/bench_modes
index f6105db..7cc6abd 100755
--- a/evc/scripts/bench_modes
+++ b/evc/scripts/bench_modes
@@ -3,15 +3,18 @@ set w $argv[1]
set h $argv[2]
set t $argv[3]
-ffmpeg -hide_banner -i $argv[4] -to {$t} -vf scale={$w}x{$h},fps=30,format=rgb24 -f rawvideo pipe:1 > samples/raw
+ffmpeg -hide_banner -i $argv[4] -to {$t} -vf scale={$w}x{$h},fps=30,format=rgb24 -f rawvideo pipe:1 >samples/raw
+ffmpeg -hide_banner -y -i $argv[4] -to {$t} -vf scale={$w}x{$h},fps=30,format=rgb24 -c:v vp9 samples/reference.webm
+echo
echo "file: "$argv[4]
echo "resolution: "{$w}x{$h}
echo "frames: "(math $t \* 30)
+echo "reference (raw): "(du -h samples/raw | cut -f 1)
+echo "reference (vp8): "(du -h samples/reference.webm | cut -f 1)
for mode in trivial simple-exhaustive simple-fast advanced advanced-partial
echo -----------
echo "mode: $mode"
echo "time: $(command time -f %U ./target/release/encode -W {$w} -H {$h} --mode $mode $argv[5..] <samples/raw >samples/encoded-$mode 2>| tail -n 1)s"
echo "size: $(du -h samples/encoded-$mode | cut -f 1)"
end
-