#!/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 LOG=info cargo run --release --bin decode --