#!/bin/fish set w $argv[1] set h $argv[2] for mode in trivial simple-exhaustive simple-fast advanced advanced-partial 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 | ffmpeg -y -hide_banner -framerate 25 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo -i pipe:0 samples/decoded-$mode.mp4 end