aboutsummaryrefslogtreecommitdiff
path: root/evc/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'evc/scripts')
-rwxr-xr-xevc/scripts/bench_modes3
-rwxr-xr-xevc/scripts/bench_out3
-rwxr-xr-xevc/scripts/gen7
3 files changed, 7 insertions, 6 deletions
diff --git a/evc/scripts/bench_modes b/evc/scripts/bench_modes
index 9fa17f6..87ccf93 100755
--- a/evc/scripts/bench_modes
+++ b/evc/scripts/bench_modes
@@ -13,7 +13,8 @@ echo "frames: "(math $t \* 30)
echo "reference (raw): "(du -h samples/raw | cut -f 1)
echo "reference (input): "(du -h $argv[4] | 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
+# for mode in trivial simple-exhaustive simple-fast advanced advanced-partial
+for mode in trivial simple-fast
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"
diff --git a/evc/scripts/bench_out b/evc/scripts/bench_out
index 5bb0639..17aa1a4 100755
--- a/evc/scripts/bench_out
+++ b/evc/scripts/bench_out
@@ -2,7 +2,8 @@
set w $argv[1]
set h $argv[2]
-for mode in trivial simple-exhaustive simple-fast advanced advanced-partial
+# for mode in trivial simple-exhaustive simple-fast advanced advanced-partial
+for mode in trivial simple-fast
cargo run --release --bin decode -- --debug < samples/encoded-$mode |
ffmpeg -y -hide_banner -framerate 25 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo -i pipe:0 samples/decoded-$mode-debug.mp4
cargo run --release --bin decode -- < samples/encoded-$mode |
diff --git a/evc/scripts/gen b/evc/scripts/gen
index 22448c5..da24dec 100755
--- a/evc/scripts/gen
+++ b/evc/scripts/gen
@@ -1,10 +1,9 @@
#!/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 |
- LOG=info cargo run --release --bin encode -- -W {$w} -H {$h} $argv[5..] >samples/encoded
-ffmpeg -hide_banner -y -i $argv[4] -to {$t} -vf scale={$w}x{$h},fps=30,format=rgb24 samples/reference.webm
+ffmpeg -hide_banner -i $argv[3] -vf scale={$w}x{$h},fps=30,format=rgb24 -f rawvideo pipe:1 |
+ LOG=info cargo run --release --bin encode -- -W {$w} -H {$h} $argv[4..] >samples/encoded
+ffmpeg -hide_banner -y -i $argv[3] -vf scale={$w}x{$h},fps=30,format=rgb24 samples/reference.webm
LOG=info cargo run --release --bin decode -- <samples/encoded |
ffmpeg -hide_banner -y -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo -i pipe:0 samples/decoded.webm
LOG=info cargo run --release --bin decode -- --debug <samples/encoded |