diff options
author | metamuffin <metamuffin@disroot.org> | 2022-12-08 20:13:27 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-12-08 20:13:27 +0100 |
commit | 1b3835a38ed38d377ce337836a4b32ee89ca0289 (patch) | |
tree | 6e07407031984b989c35c581a10e857ef1f66b07 /evc/scripts | |
parent | a92c9958a539eccd545b4947202a1c9b39953851 (diff) | |
download | video-codec-experiments-1b3835a38ed38d377ce337836a4b32ee89ca0289.tar video-codec-experiments-1b3835a38ed38d377ce337836a4b32ee89ca0289.tar.bz2 video-codec-experiments-1b3835a38ed38d377ce337836a4b32ee89ca0289.tar.zst |
rename modes
Diffstat (limited to 'evc/scripts')
-rwxr-xr-x | evc/scripts/bench_modes | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/evc/scripts/bench_modes b/evc/scripts/bench_modes new file mode 100755 index 0000000..f6105db --- /dev/null +++ b/evc/scripts/bench_modes @@ -0,0 +1,17 @@ +#!/bin/fish +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 + +echo "file: "$argv[4] +echo "resolution: "{$w}x{$h} +echo "frames: "(math $t \* 30) +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 + |