#!/bin/fish set w $argv[1] set h $argv[2] ffmpeg -hide_banner -i $argv[3] -vf scale={$w}x{$h},fps=30,format=rgb24 -f rawvideo pipe:1 | cargo run --release --bin reschmux-encode -- -W {$w} -H {$h} $argv[4..] | cargo run --release --bin reschmux-decode -- --debug | ffplay -hide_banner -framerate 30 -video_size {$w}x{$h} -pixel_format rgb24 -f rawvideo pipe:0